compound-docs
Skill373 starsChanged 10 months agoMITView on GitHub
Document solved problems for knowledge persistence
3 other projects use a version of this.
Adopted by
Most recently taken up by
- aegntic/compound-engineeringtheir own version, first seen Jun 5, 2026
- ratacat/claude-skillstheir own version, first seen Feb 11, 2026
- salavender/antigravity-compound-engineering-pluginword for word, first seen Dec 23, 2025
Other versions3 projects use a version of this.
Word for word · 1
- salavender/antigravity-compound-engineering-plugin★ 48100% same
Edited · 0
None found.
Wrote their own version · 2
- ratacat/claude-skills★ 56same name
- aegntic/compound-engineering★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- api-designSkill
- code-reviewSkill
- debugSkill
- dockerSkill
- supabaseSkill
- file-todosSkill
- mobileSkill
- nextjsSkill
- performanceSkill
- react-patternsSkill
- securitySkill
- session-resumeSkill
- tailwindSkill
- testingSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
When you solve a problem, document it so the solution can be found and reused later.
- Distinctive: line 45
When an issue occurs 3+ times:
- Distinctive: line 47
Search for similar solutions:
- Distinctive: line 52
Add to critical patterns:
- Distinctive: line 76
All solutions must have valid frontmatter:
- Distinctive: line 95
When documenting solutions, capture the full journey:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Compound Documentation Skill
Manages solution documentation in docs/solutions/ for knowledge persistence across sessions.
Overview
When you solve a problem, document it so the solution can be found and reused later.
What do you want to do?
- Document a solution → Use
/compoundworkflow - Find existing solutions → See "Searching Solutions" below
- Promote to pattern → See "Pattern Promotion" below
- Validate schema → See "YAML Validation" below
Instrumentation
# Log usage when using this skill
./scripts/log-skill.sh "compound-docs" "manual" "$$"Searching Solutions
# Search by keyword
grep -r "keyword" docs/solutions/
# Search by tag
grep -l "tags:.*performance" docs/solutions/**/*.md
# Search by problem type
ls docs/solutions/performance-issues/Pattern Promotion
When an issue occurs 3+ times:
- Search for similar solutions:
grep -r "similar terms" docs/solutions/ - Add to critical patterns:
# Edit docs/solutions/patterns/critical-patterns.md Format:
### Pattern #{N}: {Name} **Problem:** {What goes wrong} **❌ WRONG:** ```code {incorrect}✅ CORRECT:
{correct}
YAML Validation
All solutions must have valid frontmatter:
---
date: "YYYY-MM-DD"
problem_type: "{from schema.yaml}"
severity: "critical|high|medium|low"
symptoms:
- "symptom 1"
root_cause: "{from schema.yaml}"
tags:
- tag1
---See docs/solutions/schema.yaml for valid enum values.
Documenting Failures & Learnings
When documenting solutions, capture the full journey:
What to Include
- ✅ Failed attempts with explanations
- ✅ Incorrect assumptions and corrections
- ✅ Key insights from mistakes
- ✅ Course corrections and why
- ✅ Time investment (helps prioritize future similar issues)
Example Pattern
## Investigation Steps
| Attempt | Hypothesis | Result |
|---------|------------|--------|
| 1. Check API logs | API might be timing out | ❌ No timeouts found |
| 2. Review database queries | N+1 query suspected | ❌ Queries were optimized |
| 3. Check cache invalidation | Cache might be stale | ✅ Found cache not clearing |
## Lessons Learned
### Mistakes Made
- **Assumption:** Assumed the API was the bottleneck
- **Why wrong:** Didn't check cache layer first
- **Correction:** Should always check cache before API
### Key Breakthrough
- **Insight:** Realized cache invalidation logic was only running on UPDATE, not DELETE
- **Impact:** Led directly to the solution[!TIP] Document the journey, not just the destination. Future readers learn from understanding WHY failed approaches didn't work.
References
- Schema:
docs/solutions/schema.yaml - Template:
docs/solutions/templates/solution-template.md - Patterns:
docs/solutions/patterns/critical-patterns.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

