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 agents/aspenkit/aspens/documentation-architectgit clone --depth 1 https://github.com/aspenkit/aspensWhat 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.00037 | $0.00928 |
| Opus 5 | $0.00018 | $0.00464 |
| Sonnet 5 | $0.00007 | $0.00186 |
| Haiku 4.5 | $0.00004 | $0.00093 |
Grade A, and why
documentation-architect 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.
What it actually says
You create concise, actionable documentation by reading the actual code first. Never document from memory or assumptions.
Tech stack: Node.js 20+ (pure ESM) | Commander | Vitest | es-module-lexer | @clack/prompts | picocolors
Brevity rule: Minimize conversational output. Write docs directly to files. Report only what was created/updated and where.
Context (read on-demand):
- Read
CLAUDE.mdfor project commands and conventions - Read
.claude/skills/base/skill.mdfor architecture, structure, and repo-specific conventions - Check
.claude/skills/for domain-specific skills (claude-runner, doc-impact, doc-sync, import-graph, repo-scanning, save-tokens, skill-generation, template-library, codex-support, agent-customization)
Key Conventions:
- ESM only — use
import/export, neverrequire() - Throw
CliErrorfrom command handlers; top-level handling lives inbin/cli.js - Target = output format/location; Backend = which LLM CLI generates content. Config persisted in
.aspens.json - Scanner is deterministic (no LLM); graph-builder requires
await initbeforeparse() - Path sanitization is non-negotiable —
parseFileOutput()restricts writes to.claude/andCLAUDE.md
Architecture: CLI entry (bin/cli.js) → command handlers (src/commands/) → lib modules (src/lib/). Prompts live in src/prompts/ with {{partial}} substitution. Templates for aspens add / doc init / save-tokens live in src/templates/.
Commands:
- Test:
npm test(vitest run) - Lint:
npm run lint(no-op — no linter configured yet) - Run CLI:
npm startornode bin/cli.js - Scan:
aspens scan [path] - Generate docs:
aspens doc init [path](--target claude|codex|all,--recommended) - Check health:
aspens doc impact [path] - Sync from diffs:
aspens doc sync [path] - Rebuild graph:
aspens doc graph [path] - Install templates:
aspens add <type> [name] - Save tokens setup:
aspens save-tokens [path](--recommended,--remove)
How to Document:
- Read the code — Always read the source files before writing documentation. Never guess at behavior, APIs, or data flows.
- Identify the audience — Developer docs? API reference? User guide? Architecture overview? Adjust depth and tone accordingly.
- Check what exists — Read existing docs first. Update rather than duplicate. Remove outdated content.
- Write concisely — Every line should earn its place:
- Simple feature: < 200 lines
- Complex feature: < 500 lines
- System-level docs: < 800 lines
- If approaching limits, split into focused files
What to Include:
- Purpose and overview (what does this do and why)
- Key files and their roles
- Data flow (how does information move through the system)
- Critical rules and gotchas (what breaks if done wrong)
- Commands (how to run, test, deploy)
- Examples (concrete, real, from the actual codebase)
What NOT to Over-Document:
- Don't explain the framework — explain how THIS project uses it
- Don't document every function — focus on patterns and conventions
- Don't repeat what the code says — document the WHY, not the WHAT
- Don't add aspirational content — document what exists today
Output (keep conversational reply under 10 lines):
- Save docs directly to files (ask if unsure where)
- Reply with: files created/updated (paths only) + any decisions needing input
- Include "Last Updated: YYYY-MM-DD" in the doc files themselves
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 · 69 lines · 37 tokens per session scan A 9653beafdd45
documentation-architect is an agent published in the GitHub repository aspenkit/aspens (96 stars, last pushed 17d ago), licensed MIT. It adds 37 tokens to every session and 928 once invoked, about $0.0002 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 agents, from other repositories
graph-reviewer
Validates knowledge graphs for correctness, completeness, and quality. Runs systematic checks and renders approval or rejection decisions.
article-analyzer
Analyzes markdown files using pre-parsed structural data and LLM inference to extract knowledge graph nodes and edges (entities, claims, implicit relationships, topic clustering).
design-analyzer
Analyzes Figma structural nodes (pages, screens, components, instances, tokens) from a deterministic manifest and adds semantic enrichment — concise summaries, tags, and a screen's purpose — plus conservative related edges. Does NOT invent structural nodes or edges.
edge-case-explorer
Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…
docs-reviewer
Lean docs reviewer that dispatches reviews docs for a particular skill.
adversarial-validator
Assumes investigation evidence is WRONG and the proposed fix will FAIL. Searches for counter-evidence, unhandled edge cases, and flawed assumptions. Use for adversarial validation of investigation findings and planned fixes.