Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Live Probe?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/edloidas-live-probe)
---
name: live-probe
description: >
Settle a claim about observable behavior by running the thing and reading the result, or write
the project's runbook for doing so.
argument-hint: "[claim | write-runbook]"
license: MIT
compatibility: Claude Code, Codex, OpenCode, Pi
allowed-tools: Bash Read Write Edit Glob Grep
metadata:
author: edloidas
tier: routed
---
# Live Probe
Runs commands and may create scratch files; every one it creates is removed before it returns,
except a rendered frame a caller asked to keep. It leaves source as it found it, never commits,
and never changes what it is observing.
With the argument `write-runbook` it runs a second mode instead: it writes the project's
"Running and observing" section — see [Write-runbook mode](#write-runbook-mode). That mode runs
the project to prove each step, edits the project's agent instruction file, and keeps the proof
run's evidence files — only when the user asked for it.
## The premise
Reading settles claims about code structure; only running settles claims about observable output
— layout, rendering, wire format, exit code, timing, log content. A claim of the second kind
reported as "verified by reading" is **not verified**. This is not debugging: one hypothesis, one
observation, one verdict, and a probe that does not answer its question ends rather than becoming
an investigation.
## What a probe is
Three properties, all required:
- **Bounded** — one command and one observation. A claim about speed, timing, memory, or frame
rate is the one exception: one run cannot settle it, so its observation is a measured series
per `references/measuring.md`. If setup alone outgrows a couple of minutes, drop to a cheaper
rung or report the claim unverified with that cost named.
- **Citable** — it yields something specific to point at: a response body, an exit code, a log
line, a golden diff, a rendered frame, a stack trace with a file and line. "It looked right" is
not an artifact.
- **Discarded** — scratch files, scratch scripts, and captured output leave the tree. Nothing a
probe creates is committed. The one exception is a rendered frame a caller asked to keep so it
can publish it: that file stays in the artifact directory and its path goes on the `Cleanup`
line, and removing it belongs to the caller. Everything else the probe made still goes.
## Which claims need one
| Claim is about | Settled by | Example |
| -------------- | ---------- | ------- |
| Code structure | Reading | "Nothing writes this field any more" |
| A dependency's behavior at the resolved version | Reading the resolved artifact | "The supertype default returns null" |
| Reachability from an actor | Reading call paths | "No caller can pass that value" |
| **Observable output** | **Running** | "The container overflows at narrow widths" |
| **Wire format or protocol** | **Running** | "The response omits the field" |
| **Exit code, timing, log content** | **Running** | "It exits 0 on a malformed input" |
| **A golden, snapshot, or image result** | **Running** | "The snapshot still matches" |
Where a claim splits — a premise about the world and a conclusion about this code — a probe answers
whichever half is about output, and reading answers the other. Both halves need an answer.
## Finding the way to run
In this order. The point of the order is that the project and the user already decided this, and a
guess that contradicts them is worse than no probe.
1. **The agent instruction layer** — `CLAUDE.md`, `AGENTS.md`, `.claude/rules/`, `.agents/rules/`,
and the project docs they point at. A "Running and observing" section is the direct answer.
Where it names a tool for running the app, driving a browser, or rendering components in
isolation, that tool is the answer. It also owns the local
conventions: which ports, which flags, where captured artifacts belong.
2. **The repo's declared commands** — manifest scripts, a `Makefile`, a task runner, the CI
workflow. CI is the most reliable of these: it is the one list of commands that is known to run.
3. **Nothing else.** Never invent a command the repo does not define, and never assume a tool is
installed because the ecosystem usually has it. Absent both sources, the answer is `unverified` —
do not manufacture a test suite, a harness, or a fixture the project does not have. A repo with
no way to run itself is reported as such; filling that gap is scope expansion wearing a safety
vest. The report names the missing piece and offers the mode that fills it — see
[What to return](#what-to-return).
Expect **one** such tool to exist, not a matched pair. A project with a component harness often has
no browser driver, and the reverse is as common. Detect what is there; do not require a pair.
## The ladder
Cheapest rung that can answer the claim. Stop there — a rung that answers it makes every rung below
it waste.
| Rung | What it is | Costs |
| ---- | ---------- | ----- |
| 1 | **An existing check, narrowed** — the one test, golden, or snapshot covering the touched path | Seconds. Always try this first |
| 2 | **A throwaway probe** — a scratch script or test that executes the exact case, deleted after | Seconds to a minute |
| 3 | **The built artifact, queried** — start the server, binary, or CLI; hit the one endpoint or invoke the one command; read the output | A minute, plus a process to clean up |
| 4 | **Rendered and compared** — a component harness, a headless browser, an image or golden diff | Slowest. Only for a claim that is genuinely visual |
Two techniques for rungs 2 and 3 when ambient state gets in the way: probe with an identifier that
cannot already exist, so nothing masks the result; and remove whatever props the happy path up, so
the real symptom appears.
At rung 4, read computed values rather than markup. A class name, an attribute, or a DOM shape is
the input to rendering, not its result — the claim is about the result.
**A snapshot or golden is inspected, never accepted.** Updating it to match makes any claim pass.
Before running, print one line: `Probing <the claim> at rung <N>: <the command>`.
## The one-hypothesis boundary
The probe tests the claim as stated. When the first observation does not settle it:
| Situation | Do |
| --------- | -- |
| The observation contradicts the claim | Report `refuted` with the artifact |
| The observation reproduces the claim | Report `reproduced` with the artifact |
| The setup failed — nothing built, nothing started, the tool is absent | Report `unverified`, name what was missing |
| The observation is ambiguous, or answering needs a second hypothesis | **Stop.** Report `unverified` and say what a real investigation would have to establish |
That last row is the rule that keeps this cheap. Callers running rounds — a fix loop, a polish
pass — may probe again after changing the code, because that is a new hypothesis about new code.
A second probe against the *same* code to chase the *same* question is debugging, and belongs to a
debugging workflow instead.
## Running things without breaking things
The instruction layer owns the specifics. These hold regardless of what it says:
- **Probe ownership before touching a port or process.** Something already listening was not
started here. Use it read-only and never stop it.
- **Clean up only what this probe started**, and only what it started.
- **Suppress anything that opens a window or a browser tab** on a machine a person is using.
- **Captured artifacts go where the project puts them** — the instruction layer names the
directory. Absent one, the scratch location, never the working tree.
- **Never edit source to make a probe work.** Removing a prop to expose a symptom is reverted the
moment the observation is taken, by reversing that one edit — never by restoring the file, which
also discards the caller's uncommitted work.
## What to return
One block. Callers quote the evidence line verbatim into their own reports, so it has to be the
specific thing.
```text
- **Verdict**: reproduced | refuted | unverified
- **Rung**: 1 | 2 | 3 | 4 — <the command or tool actually used>
- **Evidence**: <the artifact: response, exit code, log line, diff, frame — not "checked the code">
- **Cleanup**: <what was removed, or "nothing created"; and the path of any frame kept on request>
```
`unverified` also carries **what was missing** — no declared runner, the tool is not installed, the
build failed, the observation was ambiguous. A named absence is a usable result; a silent one reads
as a pass. Never report `reproduced` or `refuted` without an artifact on the evidence line.
When the missing piece is the declared runner itself, add one line naming the instruction file
that lacks it and the offer:
```text
- **Missing**: `AGENTS.md` has no "Running and observing" section — how to launch, check
readiness, drive the main paths, capture evidence, and clean up. `live-probe write-runbook`
writes one, proving each step first.
```
That line is an offer. The section is written only when the user asks for it.
A filled instance:
```text
- **Verdict**: refuted
- **Rung**: 2 — `node --test test/scratch-offset.probe.mjs`
- **Evidence**: `parseOffset('-1.5')` returned `-2`, not the `-1` the finding claimed; the same
probe returned `-1` against the previous commit
- **Cleanup**: removed `test/scratch-offset.probe.mjs`
```
The same block with a frame kept for the caller to publish:
```text
- **Verdict**: reproduced
- **Rung**: 4 — Storybook on port 6007, `Combobox / Basic` at a 320px viewport
- **Evidence**: the 280px submenu's computed rect spans x 295 to 575, so 255px of it sits outside
the 320px viewport; the same story at 768px spans 295 to 575 inside a 768px box
- **Cleanup**: stopped the instance this probe started; kept
`.tmp/screenshots/submenu-320.png` as requested
```
Then stop. Do not fix what the probe revealed, do not probe the same code a second time, do not
write a runbook the user has not asked for, and do not turn the result into an investigation. The
caller decides what happens next.
## Write-runbook mode
Runs only on the argument `write-runbook`, or when a caller passes it on the user's request. It
writes a "Running and observing" section into the instruction file the project already uses — how
to launch, how to tell it is ready, a read-only doctor check, how to drive the main user paths, what
evidence to capture and where, and how to clean up — proving each step by running it before writing
it down.
The procedure, its gates, the section template with a filled example, and the closing report are in
`references/write-runbook.md`. Read it before the first step.