compound-docs

compound-docs is a skill for Claude Code, Codex from aegntic/compound-engineering. It costs 17 tokens per session (734 once invoked), scanned A, original, MIT.

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

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter; mentions Codex; mentions OpenCode.

Good fit Use it after solving a problem that required investigation to create a concise solution record, link related documents, and validate its metadata.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aegntic/compound-engineering/compound-docs
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.

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.

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

agentmods badge for compound-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/aegntic/compound-engineering/compound-docs/github.svg)](https://agentmods.dev/skills/aegntic/compound-engineering/compound-docs)
Your own site
<a href="https://agentmods.dev/skills/aegntic/compound-engineering/compound-docs"><img src="https://agentmods.dev/badge/skills/aegntic/compound-engineering/compound-docs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for compound-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/aegntic/compound-engineering/compound-docs"><img src="https://agentmods.dev/badge/skills/aegntic/compound-engineering/compound-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00017 $0.00734
Opus 5.5 $0.00007 $0.00294
Sonnet 5.5 $0.00003 $0.00147
Haiku 4.5 $0.00002 $0.00073

Measured 3mo ago against content hash 2f1240df70f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 5d ago), licensed MIT. It adds 17 tokens to every session and 734 once invoked, about $0.0001 per session on Opus 5.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

compound-docs compared with skills from other repositories

compound-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
compound-docsaegntic/compound-engineeringSkill25d agoMITA17Claude Code, Codex
sync-checkItamarZand88/CLI-Anything-WEBSkill25023d agoMITA95Claude Code
gap-analyzerItamarZand88/CLI-Anything-WEBSkill25023d agoMITA62Claude Code
futbin-cliItamarZand88/CLI-Anything-WEBSkill25023d agoMITA116Claude Code
airbnb-cliItamarZand88/CLI-Anything-WEBSkill25023d agoMITA76Claude Code, Codex
linkedin-cliItamarZand88/CLI-Anything-WEBSkill25023d agoMITA93Claude Code
notebooklm-cliItamarZand88/CLI-Anything-WEBSkill25023d agoMITA109Claude Code