compound-knowledge
Skill11 starsChanged 10 days agoMITView on GitHub
Document a solved problem as one searchable file in the project's docs/solutions/<category>/ so future sessions (and insistir's learnings researcher) find it instead of re-solving it. Three parallel read-only subagents extract context, root cause and fix, and prevention; you write the single file. Use right after a non-trivial fix is confirmed: "that worked", "it's fixed", "problem solved", "document this fix", "write up the solution", "compound this", "ya funcionó", "quedó arreglado", "documenta la solución". NOT for trivial fixes (typos, obvious one-liners), problems still unresolved (keep debugging first), or general docs, READMEs and changelogs.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- jsvillalbat/sevito-skillstheir own version, first seen Oct 20, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- jsvillalbat/sevito-skills★ 0same 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 repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- image-to-frontendSkill
- motion-designSkill
- file-todosSkill
- agent-sdk-wizardSkill
- askcodexSkill
- managed-agents-wizardSkill
- metapromptSkill
- goal-loopSkill
- insistirSkill
- remote-agentsSkill
- second-opinionSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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 22
If that is empty, document the most recently solved problem in this conversation.
- Distinctive: line 57
How detected: test failure, user report, monitoring alert, etc.
- Distinctive: line 82
Write the single file: every frontmatter field and every section filled from the subagent outputs.
- Distinctive: line 88
After writing, offer one follow-up by category and proceed only if the user confirms:
- Distinctive: line 100
No secrets, tokens or personal data in the doc: redact them from logs and snippets.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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 knowledge
Capture a solved problem as searchable documentation so nobody solves it twice. Adapted from EveryInc's compound-engineering plugin (https://github.com/EveryInc/compound-engineering-plugin).
Problem to document: $ARGUMENTS
If that is empty, document the most recently solved problem in this conversation. If nothing was actually fixed and verified, stop and say so; do not document a guess.
Exactly ONE file gets written: the final solution doc. Subagents return text only.
Convention (per project)
docs/solutions/ at the project root is the knowledge store. insistir's learnings researcher greps it during planning, so keep paths, frontmatter and tags exactly as below.
Categories (subdirectories of docs/solutions/):
build-errorstest-failuresruntime-errorsperformance-issuesdatabase-issuessecurity-issuesui-bugsintegration-issueslogic-errors
Filename: docs/solutions/<category>/YYYY-MM-DD-<kebab-description>.md
Example: docs/solutions/runtime-errors/2026-02-13-null-pointer-in-auth-middleware.md
File format: references/solution-template.md.
Phase 1: parallel gathering (3 read-only subagents)
Spawn the three in one message so they run in parallel (Claude Code: Agent tool, general-purpose type). Give each the problem summary, the relevant conversation excerpts (error messages, commands, diffs) and the files touched; they have no conversation history. Each returns structured text and writes nothing. No subagent support in this harness: do the three analyses yourself, in order.
1a. Context analyzer
Extract from the conversation and codebase:
- Problem type: best-fitting category from the list above
- Affected area: files, modules, systems
- Severity: low / medium / high / critical
- How detected: test failure, user report, monitoring alert, etc.
- Impact: what was broken or degraded
1b. Solution extractor
Extract from the conversation and code changes:
- Root cause: why it happened (1-2 paragraphs)
- Code references: files and lines involved
- What fixed it: the actual changes (before/after snippets)
- Key insight: the non-obvious realization that led to the fix
1c. Prevention strategist
Determine from the problem and solution:
- Prevent recurrence: practices, checks, guards
- Tests to add: cases that would catch it next time
- Monitoring: alerts or checks that should exist
- Related patterns: similar problems that may exist elsewhere
Phase 2: assembly (you, sequential)
- Read references/solution-template.md.
- Take the category from the context analyzer. Ambiguous between two categories → ask the user.
- Grep
docs/solutions/for the key error string and symptom. A doc with the same root cause exists → update that file (refine sections, add to Related) instead of creating a duplicate. - Otherwise name the file
YYYY-MM-DD-<kebab-description>.mdwith today's date and createdocs/solutions/<category>/if missing. - Write the single file: every frontmatter field and every section filled from the subagent outputs. Tags carry the searchable keywords (error names, libraries, symptoms).
status: draftunless the fix was verified by a test or reproduction in this session, thenvalidated.
This is the only file write in the skill.
Phase 3: optional follow-up
After writing, offer one follow-up by category and proceed only if the user confirms:
security-issues: check whether the fix needs broader application.performance-issues: verify the improvement with a benchmark.build-errors/test-failures: run the test suite to confirm the fix holds.- Other categories: search the codebase for the same pattern elsewhere.
Rules
- Subagents return TEXT only; they never write files.
- One file per solved problem, always in the template format.
- Ground every claim in the conversation or the code; mark anything unverified as such in the doc.
- No secrets, tokens or personal data in the doc: redact them from logs and snippets.
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.

