knowledge-compound
/knowledge-compound — Document Solutions & Learnings
Capture solutions, decisions, and learnings into a searchable knowledge base at docs/solutions/. Makes every unit of work compound into future productivity.
When to Use
- After solving a tricky bug
- After making an architectural decision
- After a session with useful discoveries
- User says "document this", "compound this", "save this"
- After completing
/engineer-workor/engineer-review
Process
Step 1: Determine What to Document
Ask the user what they want to capture:
AskUserQuestion:
question: "What would you like to document?"
options:
- "A problem and its solution"
- "An architectural decision"
- "A pattern or technique I discovered"
- "A session summary (multiple learnings)"
Step 2: Gather Context
Based on the type:
Problem/Solution:
- What was the problem? (symptoms, error messages)
- What caused it? (root cause)
- What fixed it? (the solution with key code)
- What didn't work? (dead ends worth documenting)
- How to prevent it? (prevention strategy)
Architectural Decision:
- What was the decision?
- What options were considered?
- Why was this option chosen? (rationale)
- What are the tradeoffs?
- When would you revisit this?
Pattern/Technique:
- What is the pattern?
- When should it be used?
- Example implementation
- Gotchas or edge cases
Session Summary:
- What were the key decisions made?
- What problems were encountered and solved?
- What patterns were established?
- What's left to do?
If context is available from the current conversation (recent problem-solving, code changes), extract it automatically and confirm with the user rather than asking from scratch.
Step 3: Write the Document
Use the solution template from references/solution-template.md.
YAML frontmatter is critical — it enables future searchability:
---
title: "Clear, searchable title"
date: YYYY-MM-DD
category: auth|database|api|ui|state|navigation|performance|testing|deployment|typescript|tooling|architecture|mobile|general
tags: [minimum 2, maximum 8 relevant tags]
difficulty: low|medium|high
applicability: specific|moderate|broad
---
Category selection rules:
- Choose the most specific matching category
- If multi-category, choose the root cause category
- Use tags for secondary categories
Step 4: Save
Save to docs/solutions/YYYY-MM-DD-<slug>.md where slug is a short, descriptive kebab-case name.
If docs/solutions/ doesn't exist, create it.
Step 5: Confirm
Show the user the file path and a brief summary of what was captured. Suggest related skills:
- Want to create a plan from this? →
/engineer-plan - Want to continue building? →
/engineer-work - More to document? → Run
/knowledge-compoundagain
More from elliottrjacobs/bench-skills
product-prd
Write product requirements documents from feature ideas or brainstorm output. Use when the user says "write a PRD", "product requirements", "feature spec", or needs to formalize a product concept into a structured document.
17product-naming
Expert naming process for products, companies, and features based on David Placek's methodology. Use when the user says "name this", "brainstorm names", "naming process", or needs to find a name for a product, feature, company, or project.
10image-gen
Generate images using Gemini Nano Banana Pro or Ideogram V3 APIs via curl. Use when the user says 'generate an image', 'create an image', 'image gen', 'draw me', 'make a picture', 'nano banana', 'ideogram', or wants AI-generated images from the terminal.
3create-new-skill
Create new skills following all conventions. Use when the user says "create a new skill", "add a skill", "new slash command", or wants to extend the skills repo with additional capabilities.
3gtm-meeting-prep
Prepare for specific sales meetings, investor meetings, or partnership conversations with account research, meeting briefs, tailored discovery questions, and follow-up templates. Use when the user says "meeting prep", "prep for a meeting", "meeting with [company]", "call prep", or has an upcoming meeting.
3design-lead
Bridge strategy and design — set design direction, review design quality, and establish design tenets. Use when the user says "design review", "design direction", "design strategy", "creative direction", "design quality", "design tenets", or needs to translate strategy into design decisions.
3