Borrowing it
Nothing to install: this file belongs to davidmatousek/tachi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/davidmatousek/tachi/main/.claude/commands/aod.document.mdgit clone --depth 1 https://github.com/davidmatousek/tachiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/davidmatousek/tachi/aod.document)<a href="https://agentmods.dev/commands/davidmatousek/tachi/aod.document"><img src="https://agentmods.dev/badge/commands/davidmatousek/tachi/aod.document.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00021 | $0.03413 |
| Opus 5 | $0.00010 | $0.01707 |
| Sonnet 5 | $0.00004 | $0.00683 |
| Haiku 4.5 | $0.00002 | $0.00341 |
Grade A, and why
aod.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 7d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- aod.document — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 277 lines — stays where its author put it; the contents beside it link to each section on GitHub.
User Input
$ARGUMENTS
Consider user input before proceeding (if not empty).
Step 0a: Parse --autonomous
- If
$ARGUMENTScontains--autonomous:- Set
autonomous = true - Strip
--autonomousfrom$ARGUMENTS(trim extra whitespace)
- Set
- If
$ARGUMENTSdoes NOT contain--autonomous:- Set
autonomous = false
- Set
Overview
Post-delivery quality review for the completed feature. This is Stage 6 of the AOD lifecycle — the one stage designed for human judgment. Each step presents findings interactively and commits only what the human approves.
Flow: Validate context → Branch → Code simplification → Docs-lint → CHANGELOG → API sync → KB review → PR squash-merge → Report
IMPORTANT: Execute ALL steps 0–7 sequentially. Do not stop or wait for further instructions between steps. After completing each step (including user interaction), immediately proceed to the next step until the Step 7 Report is displayed.
Step 0: Validate Context
- Get branch:
git branch --show-current - Determine feature number NNN:
- If on a
NNN-*branch: extract NNN from branch name - If on
main: extract NNN from user input$ARGUMENTS, or detect from most recentfeat(NNN)ordocs(NNN)commit on main - If NNN cannot be determined: prompt the user for the feature number
- If on a
- Find tasks:
specs/{NNN}-*/tasks.md→ verify all tasks marked[X](build complete) - If tasks incomplete: warn "Build may not be complete — {incomplete_count} tasks remain" and ask whether to proceed
- Display: "Document stage for Feature {NNN}"
Step 0b: Create Document Branch
- If not already on main:
git checkout main && git pull origin main - Create branch:
git checkout -b {NNN}-document-stage - Display: "Working on branch {NNN}-document-stage"
Step 1: Code Simplification
Detect changed code files and run /simplify for human review.
1a: Detect Changed Files
- Run:
git diff --name-only main...HEAD - Filter to code extensions:
.py,.js,.ts,.jsx,.tsx,.sh,.go,.rs,.java,.rb,.swift,.kt - Exclude:
*.lock,*.min.js,*.min.css,*.map,*.generated.*,vendor/,dist/,build/,node_modules/,.aod/,docs/ - Store as
changed_fileslist andfile_count - If
file_countis 0: display "No code files changed — skipping simplification", proceed to Step 2 - If
file_count> 50: warn "Large diff ({file_count} files). Simplify may take several minutes." and ask whether to continue or skip
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.
- 7d ago First seen · 277 lines · 21 tokens per session scan A 3b1ce7e498be
aod.document is a command published in the GitHub repository davidmatousek/tachi (90 stars, last pushed 25d ago), licensed Apache-2.0. It adds 21 tokens to every session and 3,413 once invoked, about $0.0001 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-30.
Other commands, from other repositories
fortigate
Run cs-security-analyst (AT + CA workflows) against the Fintech FortiGate zero-day scenario and produce a 7-task scorecard.
challenge
Run cs-security-analyst (AT workflow) against the Perfect Storm 8-vector crisis scenario and produce a 12-check mock comparison scorecard.
test
Run a USAP skill against the FortiGate zero-day test scenario and produce a 6-problem compliance scorecard.
run
Load a USAP skill SKILL.md and activate it as your operating persona. Argument: skill slug.
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.