State Probing logo

State Probing

Community
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.

Overview

Publisherrlaope
Repositoryultraprompt
Skill namestate-probing
Stars
36
Forks
6
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by rlaope on GitHub. Read the source before you install it.

Installation

Install the State Probing AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/rlaope/ultraprompt/tree/main/skills/state-probing
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable State Probing in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads State Probing on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so State Probing is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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——

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the State Probing AI skill do?

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.

Why use State Probing on TypingMind?

Because you install it once and use it with any model. State Probing is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install State Probing in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/rlaope/ultraprompt/tree/main/skills/state-probing. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use State Probing?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with State Probing?

As many as you like. As long as a model supports skills, you can use State Probing with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the State Probing AI skill free?

Yes. It is published on GitHub by rlaope under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇