Loading...
Loading...
Document solved problems for knowledge persistence
npx skill4agent add salavender/antigravity-compound-engineering-plugin compound-docsdocs/solutions//compound# 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/grep -r "similar terms" docs/solutions/# Edit docs/solutions/patterns/critical-patterns.md### Pattern #{N}: {Name}
**Problem:** {What goes wrong}
**❌ WRONG:**
```code
{incorrect}{correct}undefined---
date: "YYYY-MM-DD"
problem_type: "{from schema.yaml}"
severity: "critical|high|medium|low"
symptoms:
- "symptom 1"
root_cause: "{from schema.yaml}"
tags:
- tag1
---docs/solutions/schema.yaml## 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.md