name: 05-learn description: "Capture solved problems as searchable solution artifacts. Use after a workflow loop completes or a non-trivial problem is solved."
Learn
Use this skill after solving a problem so the repository gains a reusable learning in docs/solutions/.
See shared pipeline instructions for model routing and pipeline behavior.
Core rules
- Every solution MUST include YAML frontmatter per
references/solution-schema.yaml(title, category, severity, tags, applies_when). - Use
references/category-map.mdto map the problem to the correct solution category. - Check for overlap with nearby solution docs before creating a new artifact.
- Use
references/overlap-rules.mdto decide whether to create, update, or consolidate. - Use
pattern_extractorto identify recurring patterns across existing artifacts before writing a new solution. - Structure the document with
assets/solution-template.md. - Determine storage level:
- Project-specific →
{project-root}/docs/solutions/(only relevant to current project) - Cross-project (global) →
~/.pi/agent/docs/solutions/(applicable to any project) - Default to global when uncertain.
- Project-specific →
- Make the result useful to future
02-planand04-reviewruns via the search strategy inreferences/solution-search-strategy.md.
Workflow
- Identify the recently solved problem or learning.
- Use
pattern_extractorextractto scan existing artifacts for recurring patterns. - Use
pattern_extractorcategorizeto group patterns by type. - Search
docs/solutions/for related artifacts and perform an overlap check. - Choose the correct category using
references/category-map.md. - Write or update the solution artifact under
docs/solutions/<category>/. - Mention how future
02-planand04-reviewruns should benefit from the new learning. - Include
🧠 Context Status(health, handoff path, active files, new-session recommendation) for workflow closure. - Save/mention handoff-lite path under
.context/compound-engineering/handoffs/using the sharedHandoff-lite templateinskills/references/pipeline-config.md.
Before finishing this skill, apply the completion checklist in shared pipeline instructions.