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 commands/theclaymethod/artifacture/plan-reviewgit clone --depth 1 https://github.com/theclaymethod/artifactureWhat 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.00016 | $0.02164 |
| Opus 5 | $0.00008 | $0.01082 |
| Sonnet 5 | $0.00003 | $0.00433 |
| Haiku 4.5 | $0.00002 | $0.00216 |
Grade A, and why
plan-review 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.
This is a copy
91% identical to plan-review — 12 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Load the visual-explainer skill, then generate a comprehensive visual plan review as a self-contained HTML page, comparing the current codebase against a proposed implementation plan.
Authoring contract. Prefer the MDX/React pipeline after the plan/code fact-gathering checkpoint. Write the editable review as .mdx by default, or .tsx when the report needs custom interaction, generated SVG logic, or local state. Use shared components from visual-explainer-mdx/components.tsx, then export the generated standalone HTML with:
npm run ve:export -- <source.mdx> --out ~/.agent/diagrams/<slug>-plan-review.html
The generated HTML is the artifact, not the source of truth. Revise the MDX/TSX source when facts change or point-and-click feedback arrives, then re-export.
Clarify. This is a Tier 1 command per ./references/clarify.md. If the plan path and audience are clear from the request + context, generate directly. If the plan could be interpreted multiple ways, ask 1 clarifying question before writing HTML. Bypass with --no-ask.
Follow the visual-explainer skill workflow. Read the reference template, CSS patterns, and mermaid theming references before generating. Use a blueprint/editorial aesthetic with current-state vs. planned-state panels, but vary fonts and palette from previous diagrams.
Inputs:
- Plan file:
$1(path to a markdown plan, spec, or RFC document) - Codebase:
$2if provided, otherwise the current working directory
Data gathering phase — read and cross-reference these before generating:
-
Read the plan file in full. Extract:
- The problem statement and motivation
- Each proposed change (files to modify, new files, deletions)
- Rejected alternatives and their reasoning
- Any explicit scope boundaries or non-goals
-
Read every file the plan references. For each file mentioned in the plan, read the current version in full. Also read files that import or depend on those files — the plan may not mention all ripple effects.
-
Map the blast radius. From the codebase, identify:
- What imports/requires the files being changed (grep for import paths)
- What tests exist for the affected files (look for corresponding
.test.*/.spec.*files) - Config files, types, or schemas that might need updates
- Public API surface that callers depend on
-
Cross-reference plan vs. code. For each change the plan proposes, verify:
- Does the file/function/type the plan references actually exist in the current code?
- Does the plan's description of current behavior match what the code actually does?
- Are there implicit assumptions about code structure that don't hold?
Verification checkpoint — before generating HTML, produce a structured fact sheet of every claim you will present in the review:
- Every quantitative figure: file counts, estimated lines, function counts, test counts
- Every function, type, and module name you will reference from both the plan and the codebase
- Every behavior description: what the code currently does vs. what the plan proposes
- For each, cite the source: the plan section or the file:line where you read it Verify each claim against the code and the plan. If something cannot be verified, mark it as uncertain rather than stating it as fact. This fact sheet is your source of truth during HTML generation — do not deviate from it.
Diagram structure — the page should include:
-
Plan summary — lead with the intuition: what problem does this plan solve, and what's the core insight behind the approach? Then the scope: how many files touched, estimated scale of changes, new modules or tests planned. A reader who only sees this section should understand the plan's essence. Visual treatment: this is the visual anchor — use hero depth (larger type 20-24px, subtle accent-tinted background, more padding than other sections).
-
Impact dashboard — files to modify, files to create, files to delete, estimated lines added/removed, new test files planned, dependencies affected. Include a completeness indicator: whether the plan covers tests (green/red), docs updates (green/yellow/red), and migration/rollback (green/grey for N/A).
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 · 95 lines · 16 tokens per session scan A c73c60a0b519
plan-review is a command published in the GitHub repository theclaymethod/artifacture (2 stars, last pushed 10d ago), licensed MIT. It adds 16 tokens to every session and 2,164 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to plan-review, differing in 12 lines, and is treated as a copy.
Other commands, from other repositories
editor
You are my personal writing editor for MDX/Markdown content. Improve clarity, flow, grammar, and style while preserving the author's voice, meaning, and factual details. Infer the content type and appropriate tone from the context.
git
Git operations with intelligent commit messages and workflow optimization.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.