Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/cognitive-fab/polygraph/capture-readynpx skills add cognitive-fab/polygraph --skill capture-readygit clone --depth 1 https://github.com/cognitive-fab/polygraphWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00215 | $0.01694 |
| Opus 5 | $0.00108 | $0.00847 |
| Sonnet 5 | $0.00043 | $0.00339 |
| Haiku 4.5 | $0.00021 | $0.00169 |
Grade A, and why
capture-ready scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
capture-ready — write it instrumented, so nobody retrofits traces
The Polygraph toolchain starts working at code-generation time, not at verification time. Every other capture path in this repo answers "the code exists; how do I get traces out of it?" — instrument a copy, keep a patch, hope it doesn't rot. That retrofit is only ever necessary because the code was shaped without capture in mind. This skill states the rule for code an agent writes: get the shape right at authoring time and the corpus falls out of a listener registration — no patch, no seam hunt, nothing to re-derive when the code moves.
Source of truth (ships with the plugin — read it when detail is needed):
${CLAUDE_PLUGIN_ROOT}/docs/capture-ready.md. The retrofit path for code we
did NOT write is unchanged (polygraph skill Step 2 + docs/capture-spec.md)
— never reshape someone else's target to make it easier to capture.
Scope disclosure: capture-ready is not verified and not evidence — a module can satisfy all eight requirements and be wrong. It is the precondition that makes verification cheap and repeatable.
When this fires
Any session where you are authoring or substantially reshaping stateful code — a state machine, workflow, reducer, store, saga, protocol handler — in ANY language, with or without polygen. Apply BEFORE the first commit: adding the listener seam to a well-shaped module later is a one-line change; adding a single step boundary to a module that grew three mutation paths is a rewrite. If polygen is in play (JS/TS), it enforces CR-1..CR-4 and CR-8 structurally; your job narrows to CR-5, CR-6, CR-7 as review points.
The eight requirements
- CR-1 — One named step boundary. All state change flows through a single
entry taking a named action and its data (
dispatch(action, data),handle(msg),next(state, action, data)). No second mutation path, no transition logic in a route handler, view, oruseEffect. A trace window is defined by this boundary. - CR-2 — Observable state is a declared projection. One function returns
exactly the contract's state keys — a snapshot, never references into a
live model (aliasing makes
pre === postand every window silently reads as a no-op). - CR-3 — Rejections are observable. An action that does not apply
produces an explicit
reject(reason)and a window withpre == post— never athrow(the window is lost) and never a silentreturn state(deliberate no-op and unhandled become indistinguishable). - CR-4 — A step-listener seam exists from the first commit. The module
accepts an optional observer firing once per step, after the transition
settles, with
{action, data, classification}. Defaults to a no-op; costs nothing unused. This single requirement is what replaces the instrumentation patch forever. - CR-5 — Non-determinism is injected. Clock, RNG, ID generation, env reads, locale formatting are constructor/config ports so a scenario can pin them at a seed. Ambient reads make deterministic re-capture impossible without redacting the very fields the transition depends on.
- CR-6 — Effects are declared, then executed at the edge. The transition
returns/records effect intent; a caller performs the I/O. No
await fetch(...)mid-transition. (Also the precondition for running under polyrun, whose journal is the strongest corpus in the system.) - CR-7 — Scenarios are exported functions, callable from plain Node/CLI — not bodies buried in a test runner. The same drivers serve the test suite, the demo corpus, and any later capture run.
- CR-8 — One in-flight step per instance. The step boundary serializes: a transition settles before the next action presents. This is an observable serialization point, not a thread-safety claim — transactional handlers, queue consumers, actor mailboxes, and per-node apply loops all satisfy it.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 117 lines · 0 tokens per session scan A 3c4561f1a9fe
capture-ready is a skill published in the GitHub repository cognitive-fab/polygraph (11 stars, last pushed 6d ago), licensed Apache-2.0. It adds 215 tokens to every session and 1,694 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
compiler-orchestrator
Orchestrate the Rust compiler port end-to-end. Discovers the current frontier, fixes failing passes, ports new passes, reviews, and commits in a loop.
maintain-model-list
Maintain the supported LLM model list: add a new model, or run routine maintenance to verify availability and discover new models worth adding. Use when the user asks to add/support a model, update the model list, or check model availability.
ax-cpp-agent-memory-skills
Use when writing C++ code with axllm for agent memory, recall callbacks, dynamic skill discovery, loaded-skill state, and used-skill tracking.
ax-cpp-flow
Use when writing C++ code with axllm for flows, nodes, program graphs, nested programs, dynamic options, caching, and optimizer components.
ax-go-flow
Use when writing Go code with github.com/ax-llm/ax/packages/go for flows, nodes, program graphs, nested programs, dynamic options, caching, and optimizer components.
ax-java-agent-observability
Use when writing Java code with dev.axllm:ax for agent tracing, centralized and multi-tenant usage accounting, action logs, runtime diagnostics, replay, and production debugging.