with one click
compound-docs
Document solved problems for knowledge persistence
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Document solved problems for knowledge persistence
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | compound-docs |
| description | Document solved problems for knowledge persistence |
Manages solution documentation in docs/solutions/ for knowledge persistence across sessions.
When you solve a problem, document it so the solution can be found and reused later.
/compound workflow# Log usage when using this skill
./scripts/log-skill.sh "compound-docs" "manual" "$$"
# 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/
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}
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.
When documenting solutions, capture the full journey:
## 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.
docs/solutions/schema.yamldocs/solutions/templates/solution-template.mddocs/solutions/patterns/critical-patterns.mdSystematic multi-perspective code review with consistent quality gates.
Systematic debugging with structured reproduction and root cause analysis.
Database, auth, and backend expertise for Supabase operations in [PROJECT_NAME]
Manage file-based todo tracking in the todos/ directory
Resume context from previous session
Unified testing commands and patterns across frontend and backend.