anotherben/claude-enterprise-skills/enterprise-compound
Claude Code and agent skill by anotherben/claude-enterprise-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Captures institutional knowledge after solving problems. Documents what was solved, how, and how to prevent it. Searchable by tags and categories. Builds organizational memory that compounds over time. Use after fixes are verified or features are complete.
Install
npx vskill@latest install anotherben/claude-enterprise-skills/enterprise-compoundSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as anotherben/claude-enterprise-skills/enterprise-compound.
Enterprise Compound — Institutional Knowledge Capture
Philosophy
Every solved problem is an investment. If the solution lives only in git history, it is lost. If it lives in a searchable, tagged, cross-referenced knowledge base, it compounds. The next person (or agent) who hits the same class of problem finds the answer in seconds instead of hours.
Three principles:
- Capture at the moment of understanding. The best time to document is right after solving — before context fades.
- Structure for retrieval, not for reading. Tags, categories, and YAML frontmatter make solutions findable.
- Prevent, not just solve. Every solution document includes a prevention section — how to stop this class of problem from recurring.
Triggers
Run this skill when:
| Event | Trigger | |
|---|---|---|
| Bug fix verified and committed | Capture the root cause, investigation path, and fix | |
| Feature verified and committed | Capture key design decisions, tradeoffs, and patterns | |
| Debugging session found a root cause | Capture even if the fix is not yet applied | |
| Architecture decision made | Capture the decision, alternatives considered, and rationale | |
| Gotcha discovered | Capture the trap and how to avoid it | |
| Performance issue resolved | Capture the bottleneck, measurement, and optimization | |
| Integration quirk found | Capture the external system behavior and workaround |
Step 1: Check for Duplicates
Before creating a new solution document, search for existing ones.
Search existing solutions:
Search memory for prior knowledge:
Query memory (Memora/Muninn if available) with the problem domain keywords to check if this was already captured.
Search git history:
If a duplicate exists: update the existing document instead of creating a new one. Add the new findings, update the date, and note what changed.
If a near-duplicate exists: link to it. Cross-reference in both documents.
Step 2: Classify the Solution
Determine the solution type and severity to guide the document structure.
| Type | When | Sections Required | |
|---|---|---|---|
bug-fix | Fixed a defect | Problem, Investigation, Root Cause, Solution, Prevention | |
feature | Built new functionality | Problem, Design Decision, Implementation, Key Patterns, Gotchas | |
architecture | Made a structural decision | Context, Decision, Alternatives, Consequences | |
gotcha | Found a non-obvious trap | Trap, Symptom, Cause, Avoidance | |
performance | Resolved a performance issue | Symptom, Measurement, Bottleneck, Optimization, Verification | |
integration | External system quirk | System, Behavior, Workaround, Documentation Gap |
| Severity | When | |
|---|---|---|
critical | Data corruption, security, production outage | |
high | Functional bug affecting users, performance degradation | |
medium | Incorrect behavior in edge cases, developer experience | |
low | Cosmetic, documentation, minor inconvenience |
Step 3: Write the Solution Document
File location: docs/solutions/YYYY-MM-DD-<slug>.md
Create the directory if it does not exist:
Document Template
[entry point] → [layer] → [layer] → ROOT CAUSE at [file:line]
// Only include code if it illustrates a non-obvious pattern or technique // that someone would need to see to understand the solution
// If this solution established a pattern, show the pattern here // so future code can copy it
// If this bug came from a common anti-pattern, show what NOT to do // with a comment explaining why
Step 4: Save to Memory
After writing the solution document, save the key knowledge for cross-session retrieval. Use whichever memory backend is available (Memora MCP, Muninn MCP, or filesystem fallback).
What to save:
Always save:
- The root cause (for bugs) or the key design decision (for features)
- The prevention guidance
- Any gotchas discovered during investigation
Save format:
Memory save commands:
For bug fixes and gotchas — save as issue type:
For features and architecture — save as decision type:
For patterns and anti-patterns — save as pattern type:
Step 5: Cross-Reference
Link from MEMORY.md
If the solution is significant (critical/high severity, or establishes a new pattern), add a reference to the relevant section of MEMORY.md.
Link from related solutions
If the document references or is referenced by other solutions, update both documents with cross-references in the related frontmatter field.
Link from affected code
For critical bugs, consider adding a brief comment in the code pointing to the solution document:
Use this sparingly — only for traps that are genuinely surprising and would catch future developers.
Examples
Example 1: Bug Fix Solution
Example 2: Architecture Decision
Example 3: Gotcha
Quick Capture Mode
For low-severity gotchas or quick patterns, use a shortened format:
Save to Memora and move on. Full investigation section is not needed for simple gotchas.
Metrics — How Knowledge Compounds
Track these to see the value of captured knowledge:
| Metric | How to Measure | |
|---|---|---|
| Solutions referenced | How often a solution doc is read by agents (memory recall hits) | |
| Time saved | When a solution doc prevents re-investigation of a known issue | |
| Duplicate bugs prevented | When a prevention checklist catches a bug before it ships | |
| Pattern adoption | When a documented pattern is reused in new code |
The ROI of a solution document is: (time to investigate originally) x (number of times referenced).
A 2-hour investigation documented in 10 minutes saves 2 hours every time someone hits the same class of problem. After 3 references, the document has paid for itself 6x over.
Output — Compound Report
Print this after saving the solution:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/enterprise-compound/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/anotherben/claude-enterprise-skills/enterprise-compound)