Logo vun State Probing

State Probing

Communautéit
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.

Iwwersiicht

Editeurrlaope
Repositoryultraprompt
Skill-Nummstate-probing
Stären
36
Forks
6
Matgeliwwert Fichieren
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum rlaope op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill State Probing an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/rlaope/ultraprompt/tree/main/skills/state-probing
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert State Probing an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet State Probing automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass State Probing net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat State Probing op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. State Probing besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech State Probing an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/rlaope/ultraprompt/tree/main/skills/state-probing an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen State Probing benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat State Probing benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir State Probing domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill State Probing gratis?

Jo. De Skill gëtt vum rlaope ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇