Logo State Probing

State Probing

Cộng đồng
rlaope
state-probing

Invoke before acting on any assumption about the runtime or environment — versions, running processes, file/disk reality, git state, network reachability. Grounds claims about the world in a cheap probe instead of a guess, and re-probes when state may have gone stale.

Tổng quan

Nhà phát hànhrlaope
Kho mãultraprompt
Tên kỹ năngstate-probing
Sao
36
Bản fork
6
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được rlaope công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI State Probing trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/rlaope/ultraprompt/tree/main/skills/state-probing
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rlaope/ultraprompt.git /tmp/ultraprompt
mkdir -p .claude/skills
cp -r /tmp/ultraprompt/skills/state-probing .claude/skills/state-probing
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật State Probing trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp State Probing ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng State Probing với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

State Probing

Status: v0.1 baseline draft — derived from the case catalog and axis definitions; awaiting trace evidence from Fable 5.1 case runs.

When to apply

  • You are about to run a command, edit a file, or report a result whose correctness depends on the state of the environment (which version is installed, whether a process is up, what branch you are on).
  • A step failed in a way that only makes sense if reality differs from your assumption ("but I installed it").
  • You resumed a session, a build ran, or time passed — any earlier probe result may now be stale.
  • You are inferring environment state from source, config, or memory instead of from the live system.
  • You are about to claim something is true of the world ("the server is running", "the file exists", "we're on main") rather than something you did.
  • The plan's next action is destructive or expensive and assumes a precondition you have not confirmed.

Core loop

  1. Name the assumption as a checkable proposition. Turn the vague belief into one testable claim about the world: "node is v20", "port 5173 is listening", "the working tree is clean", ".env contains API_KEY". If you cannot phrase it as something a single command could confirm or deny, it is not yet a probe target — sharpen it first.

  2. Pick the cheapest probe that discriminates. Choose the command whose output distinguishes the assumption from its negation with the least cost and least side effect. node --version beats reading a lockfile; git status --short beats git log; curl -sI localhost:PORT beats starting a client. A probe that cannot come back false is not a probe.

  3. Run the probe and read the actual output. Execute it. Read the real bytes — exit code, version string, PID, branch name — not what you expected them to say. The point of probing is to be surprised; skimming for the expected answer defeats it.

  4. Distinguish "absent" from "unknown". A probe that errored, timed out, or returned nothing is not evidence of absence. pgrep returning nothing means the process is not running or the name is wrong. Confirm the probe itself worked before trusting its silence.

  5. Act only inside what the probe established. Take the next step only within the state you just confirmed. If the action's precondition was not the thing you probed, you have not earned the action — go back to step 1 for the real precondition.

  6. Re-probe on any staleness signal. After a build, install, checkout, resume, long gap, or another agent's turn, treat prior probe results as expired. Re-run the probe rather than reusing a remembered value. State you confirmed 40 tool-calls ago is a memory, not a measurement.

  7. Report the ground truth you observed, not the assumption you started with. State what the probe showed ("git status: 3 modified, on feature/x"), and if you could not probe, say the claim is unverified — never launder an assumption into a fact.

Heuristics

  • Probe before every irreversible or expensive action whose precondition you have not confirmed this turn.
  • The cheapest discriminating probe wins: prefer a one-line status query over spinning up the real client.
  • One probe answers one proposition. If your command's output can't be false, it isn't testing anything.
  • Version/tool claims cost one command (--version, which) — never assert a version from memory or a manifest.
  • Treat "it worked a minute ago" as expired after any state-changing event; re-probe rather than recall.
  • Empty output is ambiguous: confirm the probe ran (exit 0, correct target) before reading silence as "none".
  • Prefer the runtime source of truth over its declaration: a running process over a config file, git status over what you think you committed, ls over the path you expect exists.
  • If two probes disagree (lockfile says X, --version says Y), the live runtime wins and X is the bug.
  • Budget the probing: 2–4 targeted probes to ground a task is discipline; probing every trivial fact is noise.
  • When you cannot probe (no access, sandbox), downgrade every dependent claim to "assumed", not "confirmed".
  • A probe that changes state is not a probe: prefer read-only queries; if the only check has side effects, note them.
  • Ground the surprising result, not the expected one: when a probe confirms your belief, move on; when it contradicts it, that contradiction is the highest-value fact in the session — act on it first.

Anti-patterns

  • Assumed-state action. Running the fix on the belief the service is up / the branch is right / the dep is installed, without a single confirming command. → Corrective: name the precondition and probe it before the action, not after it fails.
  • Stale recall. Reusing a version, PID, or branch you checked long ago and several state-changes back. → Corrective: re-probe after any build/install/checkout/resume; a remembered value is not a measurement.
  • Reading the declaration for the reality. Trusting package.json, a Dockerfile, or docs for what is actually installed and running. → Corrective: query the live runtime; let the declaration be the hypothesis.
  • Silence as absence. Concluding "not running" / "not there" from an empty or errored probe without confirming the probe itself was valid. → Corrective: verify the probe targeted the right thing and exited cleanly before trusting its emptiness.
  • Over-probing. Burning turns confirming facts that don't gate any action, or re-probing unchanged state every step. → Corrective: probe only what a decision depends on, and only after a staleness signal.

Relation to existing axes

  • vs exploration-strategy: exploration builds a mental model of the code — what functions exist, how a request flows through the modules. State-probing grounds claims about the runtime/environment — what is installed, running, checked out, present on disk right now. Exploration reads files to understand; state-probing runs commands to confirm reality before acting on it.
  • vs verification-discipline: verification comes after a change, to prove the result meets the claim. State-probing comes before an action, to confirm the preconditions the action assumes. One checks the output; the other checks the ground you are standing on.

Worked example

Illustrative construction, not a recorded run.

Task: "The deploy script keeps failing at the migration step — fix it." Autonomous session, resumed from a handoff.

Agent restates preconditions as propositions: (a) DB is reachable, (b) migration tool version matches
    the migration files, (c) we're on the branch the handoff described.
Agent picks cheapest discriminating probes: `git rev-parse --abbrev-ref HEAD`, `migrate --version`,
    `pg_isready -h $DB_HOST`.
Probe 1 → branch is `main`, but the handoff said work was on `release/2.3` → assumption (c) FALSE.
Agent stops: acting on main would migrate the wrong tree. Checks out `release/2.3`, then RE-PROBES version
    because the checkout is a staleness signal.
Probe 2 (post-checkout) → `migrate v4`, but migration files use v5 syntax → real cause found without ever
    editing the deploy script.
Agent confirms the probe wasn't lying: `which migrate` → an old global shim shadowing the project binary.
Exit: reports "root cause was environment, not the script — global `migrate` v4 shadowed project v5 on the
    wrong branch. Verified via `migrate --version` after checkout." No code changed on a false assumption.

Trace evidence

CaseSessionWhat it showed
awaiting case runs——

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI State Probing làm được gì?

Invoke before acting on any assumption about the runtime or environment — versions, running processes, file/disk reality, git state, network reachability. Grounds claims about the world in a cheap probe instead of a guess, and re-probes when state may have gone stale.

Vì sao nên dùng State Probing trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. State Probing là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài State Probing trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/rlaope/ultraprompt/tree/main/skills/state-probing. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng State Probing?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng State Probing với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng State Probing với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI State Probing có miễn phí không?

Có. Kỹ năng này được rlaope phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇