| 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.md to map the problem to the correct solution category.
- Check for overlap with nearby solution docs before creating a new artifact.
- Use
references/overlap-rules.md to decide whether to create, update, or consolidate.
- Use
pattern_extractor to 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.
- Out-of-scope branch: if the request was rejected or already implemented, write to
docs/out-of-scope/ (template: assets/out-of-scope-template.md, convention: ../../docs/out-of-scope/README.md) instead of docs/solutions/.
- Make the result useful to future
02-plan and 04-review runs via the search strategy in references/solution-search-strategy.md.
Workflow
- Identify the recently solved problem or learning.
- Use
pattern_extractor extract to scan existing artifacts for recurring patterns.
- Use
pattern_extractor categorize to 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-plan and 04-review runs 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 shared Handoff-lite template in skills/references/pipeline-config.md.
Before finishing this skill, apply the completion checklist in shared pipeline instructions.