agentleFS
willink-osswillink-oss/willink-claude-kit/skills/live-state-verify-guard/SKILL.md

live-state-verify-guard

Skill0 starsChanged 4 months agoMITView on GitHub

Scan a report body and flag every state-claim (merged/deployed/published/released/done) that has no live probe (gh/curl/aws/git) preceding it in the same section. A read-only, deterministic audit — one unverified claim exits 1; a document is plan, live is state. Triggers: live-state audit, unverified claim, status-claim verification, report verify guard, no self-report, doc-vs-live.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not self-report "the audit works".

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

live-state-verify-guard

Scan a report body (a status update, a standup, a daily report) and, for every state-claim — merged / deployed / published / released / shipped / done / in production / up and running — check that a live probe (gh / curl / aws / a cloud CLI / git / GitHub MCP) appears BEFORE that claim in the same section. A claim with no preceding probe in its section is an unverified claim and is flagged; one or more of them makes the audit exit 1. The principle is no self-report: a document is plan; live is state.

This is the post-hoc audit counterpart to the read-only /pulse command (which renders a dashboard only from what a deterministic probe returned) and to the pre-report advisory hook examples/hooks/pre-status-verify-guard.sh (which nudges before you write). /pulse measures, the advisory hook nudges, and this skill machine-checks the body after you wrote it.

Detection heuristic

The engine walks the body one line at a time, tracking a live_seen flag.

  • LIVE_RE — live-probe markers are command signatures, not prose, so that "the git repository" does not false-trigger: gh pr|run|api|workflow|release…, git ls-files|log|rev-parse|show…, aws <service>, a cloud CLI (kubectl|docker|terraform|gcloud|az|psql|redis-cli), curl, mcp__(plugin_)github.
  • CLAIM_RE — state-claim phrases: merged|deployed|published|released|shipped, rolled out|in production|went live|is live|up and running, completed|done|passing.
  • A claim is verified if a live marker appeared at or before its line within the same section, else unverified. >= 1 unverified → exit 1.
  • Evidence is scoped. A blank line, a markdown heading, OR the start of a new list item (-, *, +, 1.) resets live_seen, so an opening probe cannot rubber-stamp the whole document — the probe must be co-located with the claim in the same paragraph, section, or bullet. The list-item reset matters because status reports are bullet lists with no blank line between items; without it, one probe bullet would verify every following claim bullet and hollow out the gate.

The flags are heuristic candidates, not verdicts, and coverage is deliberately recall-first: a missed claim (an unverified doc exiting 0) is the dangerous mode, so CLAIM_RE errs toward matching (it will over-match some prose). A summary or citation of a past measurement can false-positive; a human reads the snippet to separate a real unverified claim from a legitimate citation. Register any domain- or language-specific claim phrasings the built-in set misses via LSA_EXTRA_CLAIMS.

How to run

bash "${CLAUDE_PLUGIN_ROOT:-.}/scripts/live-state-audit.sh" --report <path>     # audit a file
bash "${CLAUDE_PLUGIN_ROOT:-.}/scripts/live-state-audit.sh" < report.md          # audit stdin
bash "${CLAUDE_PLUGIN_ROOT:-.}/scripts/live-state-audit.sh" --report <path> --json  # machine-readable
exitmeaning
0no unverified claims (no state-claim at all, OR every claim had a preceding live probe in its section)
1>= 1 unverified claim (a state-claim with no preceding live-probe marker)
2argument error (e.g. --report file missing) or a config error (a malformed LSA_EXTRA_LIVE / LSA_EXTRA_CLAIMS regex) — distinct from 1 so a wrapper never reads a broken pattern as an "unverified claim"

Then: (1) read each XX unverified line — L<line> [phrase] snippet; (2) separate a real unverified claim (needs fixing) from a citation of a past measurement (false positive); (3) for a real one, run a live probe before the claim (gh pr view <N> --json state,mergedAt / curl -w "%{http_code}" / aws … list-jobs), fix the wording, and re-run until exit 0 before recording "done".

Read-only boundary

This skill detects, it does not fix. scripts/live-state-audit.sh reads the report body only — it never touches git, deploy, secrets, or any external service. Correcting a flag (re-measuring, then editing the wording) is a human step, and anything externally visible, financial, or legally binding stays a human decision regardless of what this gate returns.

Deterministic self-test (--check)

Do not self-report "the audit works". Machine-verify it:

bash "${CLAUDE_PLUGIN_ROOT:-.}/scripts/live-state-audit.sh" --self-test
  • exit 0 = PASS. In-memory fixtures run through the SAME audit() the CLI uses (no hardcoded success): gh/curl/cloud-CLI probe before a claim → 0; a claim with no probe → 1; no claim phrase → 0; a probe after the claim → 1; a claim in a separate blank-line paragraph → 1; a claim under a different heading → 1.
  • non-zero = the audit logic is broken; fix the engine before trusting a flag.
  • The self-test is hermetic (in-memory fixtures only; no external read/write; it never runs a live probe).

Extension env vars

Extend the patterns without editing code (useful for a non-English or domain-specific team):

  • LSA_EXTRA_LIVE — if set, | + its value is appended to LIVE_RE (register extra probe command signatures, e.g. flyctl|heroku).
  • LSA_EXTRA_CLAIMS — if set, | + its value is appended to CLAIM_RE (register extra state-claim phrases). Both are ERE alternation fragments.

Related

  • command: /pulse — the read-only measurement layer this audit complements (it renders only what a probe returned).
  • pre-report advisory: examples/hooks/pre-status-verify-guard.sh — nudges before you write; this skill machine-checks after.
  • profile: docs/harness-profile.md principle 6 — "read live state before you report it" (docs are plan; live is state).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.