---
description: "Extract reusable patterns from the current session and save them as candidate skills or guidance"
---

# Learn

Extract reusable patterns from the current session and save them as guidance.

## Usage

`/learn [topic]`

## What to Extract

1. **Error Resolution Patterns** — root cause and fix for non-trivial errors
2. **Debugging Techniques** — non-obvious steps, tool combinations
3. **Workarounds** — library quirks, API limitations, version-specific fixes
4. **Project-Specific Patterns** — conventions, architecture decisions, integration patterns

## Output

For each valuable pattern, create a focused skill entry:

```markdown
# [Pattern Name]

**Context:** [When this applies]

## Problem
[What problem this solves]

## Solution
[The pattern/technique/workaround]

## Example
[Code example if applicable]

## When to Use
[Trigger conditions]
```

## Notes

- Don't extract trivial fixes (typos, simple syntax errors)
- Focus on patterns that save time in future sessions
- One pattern per entry

## Related

- Skill: `skill://agent-introspection-debugging`
