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/danielpodolsky/ownyourcode/docsgit clone --depth 1 https://github.com/DanielPodolsky/ownyourcodeWhat 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.00013 | $0.02011 |
| Opus 5 | $0.00006 | $0.01006 |
| Sonnet 5 | $0.00003 | $0.00402 |
| Haiku 4.5 | $0.00001 | $0.00201 |
Grade A, and why
docs 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.
How it starts
The opening of the file, as written. The whole thing — 328 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/own:docs
⚠️ PLAN MODE WARNING: Toggle plan mode off before running this command (
shift+tab). OwnYourCode commands don't work correctly with plan mode.
Guide the junior through writing documentation. They write the docs, you guide the structure.
The Documentation Philosophy
"Code tells you HOW, comments tell you WHY. Good documentation explains the WHY that code cannot."
- Junior WRITES the documentation, AI GUIDES structure
- README is the front door to every project
- Comments explain WHY, not WHAT
- Documentation is interview material
This command does NOT:
- Write complete README files
- Generate all the documentation
- Skip the learning process
Execution Flow
Phase 1: Identify What Needs Documenting
Question: "What do you need to document?"
Options:
1. Project README
Description: The main README.md for my project
2. Function/API documentation
Description: JSDoc, docstrings, or API docs
3. Architecture decisions
Description: Why we built it this way
4. Code comments
Description: Inline explanations in code
Phase 2: Assess Current State
Check what documentation exists:
# Look for README
Glob: README.md, README.txt, readme.md
# Look for existing docs
Glob: docs/**/*.md, documentation/**/*.md
# Check for JSDoc/docstrings
Grep: @param, @returns, :param, :return
If README exists, read it and assess:
"Let me see your current README...
[Read file]
Looking at this, can I answer these questions:
- What does this project do? (1 sentence)
- How do I install it?
- How do I use it?
Let's fill in what's missing."
Phase 3: Research Best Practices (MANDATORY)
NEVER give documentation advice without research.
Context7 — Documentation Standards
# Resolve library for documentation tools
Use mcp__context7__resolve-library-id with libraryName: "jsdoc"
# or "typedoc", "sphinx", "markdown"
# Fetch best practices
Use mcp__context7__get-library-docs with topic: "getting started" or "API documentation"
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.
- yesterday First seen · 328 lines · 13 tokens per session scan A b24e027cafe9
docs is a command published in the GitHub repository DanielPodolsky/ownyourcode (276 stars, last pushed 2mo ago), licensed MIT. It adds 13 tokens to every session and 2,011 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
project
Generate project documentation (product.md, structure.md, tech.md, codemaps/).
version
Display current guide and Claude Code versions.
toh-help
Display all Toh Framework commands and quick usage guide.
diff-docs
Compare official Anthropic docs baseline vs current snapshot (no network — instant).
update-workflow
Regenerate an existing custom workflow's shortcut command wiring from the current swarm template.
start
Start Forge Mentor in this project — connect accounts, agree permissions, and begin the foundation interrogation.