compound-docs

A documentation skill for recording confirmed solutions to non-trivial bugs, migrations, incidents, or setup problems in docs/solutions/. It uses structured YAML metadata and searchable filenames.

In plain words
What is it for?
Use it after solving a problem that required investigation to create a concise solution record, link related documents, and validate its metadata.
Why use it?
It preserves the cause, fix, and prevention guidance so the team can find and reuse the knowledge later.

Skill for Claude CodeCodex

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 skills/aegntic/compound-engineering/compound-docs
Any agent
npx skills add aegntic/compound-engineering --skill compound-docs
Clone the repo
git clone --depth 1 https://github.com/aegntic/compound-engineering

Made for: Claude Code, Codex.

Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 734 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00017 $0.00734
Opus 5 $0.00009 $0.00367
Sonnet 5 $0.00003 $0.00147
Haiku 4.5 $0.00002 $0.00073

Measured 2d ago against content hash 2f1240df70f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

skills/compound-docs/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

compound-docs Skill

Capture non-trivial solved problems as searchable documentation in docs/solutions/. Keep the file short, structured, and schema-valid so future sessions can actually find and trust it.

When to use

  • A bug, migration issue, incident, or tricky setup problem is confirmed fixed.
  • The solution required real investigation, multiple attempts, or a non-obvious insight.
  • The team would benefit from preserving the failure mode, root cause, and prevention guidance.
  • Skip trivial typos, obvious syntax mistakes, and fixes that needed no meaningful investigation.

Workflow

  1. Detect a confirmed fix. Auto-invoke on clear success phrases such as "that worked", "it's fixed", or "problem solved", or run manually.
  2. Gather the required context: module, exact symptom/error, failed attempts, root cause, fix, prevention guidance, file references, and relevant environment details.
  3. If critical context is missing, stop and ask for it before writing anything.
  4. Search docs/solutions/ for similar documents. Reuse or cross-link only when the root cause genuinely matches.
  5. Build a filename as [sanitized-symptom]-[module]-[YYYYMMDD].md.
  6. Validate YAML frontmatter against schema.yaml using the enum guidance in references/yaml-schema.md.
  7. Create the solution doc with assets/resolution-template.md, then offer the post-capture menu.

Required context

  • Module or subsystem name.
  • Exact symptom or error message.
  • Stage or execution context.
  • What failed during investigation.
  • Root cause and what changed to fix it.
  • Prevention guidance and any follow-up actions.

Validation rules

  • problem_type, component, root_cause, and severity must match the schema exactly.
  • Use category mapping from references/yaml-schema.md to place the file under docs/solutions/<category>/.
  • Block on invalid YAML, missing required fields, or vague symptoms.
  • Include concrete examples or commands whenever the fix would be hard to repeat without them.

Read the full file on GitHub · 73 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 73 lines · 17 tokens per session scan A 2f1240df70f2

Subscribe to this mod's changes

compound-docs is a skill published in the GitHub repository aegntic/compound-engineering (2 stars, last pushed 2mo ago), licensed MIT. It adds 17 tokens to every session and 734 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-31.

Related

Other skills, from other repositories

a2ui-renderer

Render A2UI (Agent-to-UI declarative surfaces) in CopilotKit v2. Enable the runtime via CopilotRuntime({ a2ui: {...} }), then enable the provider via . Auto-activates via /info — do NOT manually pass renderActivityMessages. createA2UIMessageRenderer ships from @copilotkit/react-core/v2; low-level primitives…

CopilotKit/CopilotKit · 175 tokens

copilotkit-develop

Use when building AI-powered features with CopilotKit v2 -- adding chat interfaces, registering frontend tools, sharing application context with agents, handling agent interrupts, and working with the CopilotKit runtime.

CopilotKit/CopilotKit · 46 tokens

recon

Codebase reconnaissance agent for Bug Hunter. Maps architecture, identifies trust boundaries, classifies files by risk priority, and detects service boundaries. Does NOT find bugs — finds where bugs hide.

codexstar69/bug-hunter · 40 tokens

standards

Runs Phase 4 review/publish/verify for a cli-web- CLI: implementation review by 3 parallel agents, the tiered quality checklist (Tier 1 critical fail-fast, then comprehensive), pip install + smoke test, and per-CLI skill generation. Use when a CLI's tests pass and it is ready to be validated and published.

ItamarZand88/CLI-Anything-WEB · 73 tokens

airbnb-cli

Use cli-web-airbnb to search Airbnb stays, get listing details, check availability calendars, read guest reviews, and look up location suggestions. Invoke this skill whenever the user asks about Airbnb accommodations, vacation rentals, listing prices, availability, guest reviews, or wants to search for places to stay.…

ItamarZand88/CLI-Anything-WEB · 76 tokens

notebooklm-cli

Drives Google NotebookLM via the cli-web-notebooklm command-line tool — create and manage notebooks, add URL/text sources, ask questions grounded in the sources, and generate/download artifacts (audio overview, video, slide deck, mindmap, study guide, quiz, FAQ, briefing, infographic, data table). Use when the user…

ItamarZand88/CLI-Anything-WEB · 109 tokens