document

A command for bringing project documentation back in line with the code. It checks documents such as the README, architecture notes, specifications, and memory log against the actual repository.

In plain words
What is it for?
Use it to reconcile README instructions, architecture descriptions, and project memory, while recording unresolved decisions for the commands that own them.
Why use it?
It finds outdated, missing, or contradictory documentation without turning the task into a product-design decision.

Command for Claude Code

Install

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.

agentmods
npx agentmods add commands/opagani/cassini-workshop/document
Clone the repo
git clone --depth 1 https://github.com/opagani/cassini-workshop

Made for: Claude Code.

Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 487 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5 $0.00020 $0.00487
Opus 5 $0.00010 $0.00244
Sonnet 5 $0.00004 $0.00097
Haiku 4.5 $0.00002 $0.00049

Measured yesterday against content hash 3f74c109dc7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

document 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 yesterday.

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.

Origin

This is a copy

100% identical to document — 0 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.

.claude/commands/document.md · 50 lines

What it actually says

document

Bring the human-facing docs in line with what actually exists. Not a phase — a reconciler you run whenever code and docs have drifted. It detects drift; it does not re-interview the project.

Scope

  • IN: README, ARCHITECTURE.md prose accuracy, curating docs/MEMORY.md.
  • OUT: making product/architecture decisions (that's /explore, /design). If reconciling reveals an undecided question, log it and point at the owning command — don't decide it here.

Preflight

  1. Read CLAUDE.md, docs/PROJECT.md, docs/ARCHITECTURE.md, docs/SPEC.md, docs/MEMORY.md, README.md.
  2. Read the actual code/structure. Diff docs vs. reality, not docs vs. docs. Build a short drift list (claimed but absent, present but undocumented, contradictions).

Interview

Minimal and targeted. Only ask when reconciliation is genuinely ambiguous (e.g. "ARCHITECTURE says Postgres, code uses SQLite — which is intended?"). No standing question bank. If nothing is ambiguous, ask nothing.

Produce

  • README.md (owned): accurate for a human arriving cold — what it is, how to run it, how to test it, where the docs are. Concise.
  • docs/ARCHITECTURE.md: correct stale prose to match reality. Don't redesign — if reality diverged from a deliberate decision, flag it for /design rather than rewriting the decision.
  • docs/MEMORY.md (curated here): dedupe, order by date, keep it a tight log of decisions-made-with-AI and why. This is the project's memory for Claude Code — terse, durable, not a changelog of everything.

Hand off

Report the drift found and what you reconciled vs. flagged. Suggested next is context-dependent — e.g. /design if a contradiction needs a real decision, otherwise nothing.

Changes

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.

  1. yesterday First seen · 50 lines · 20 tokens per session scan A 3f74c109dc7c

Subscribe to this mod's changes

document is a command published in the GitHub repository opagani/cassini-workshop (0 stars, last pushed 2mo ago), licensed MIT. It adds 20 tokens to every session and 487 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to document, differing in 0 lines, and is treated as a copy.