d48cda4081
CI / Test (ubuntu-latest, Node 18.x, bun) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, npm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, pnpm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, yarn) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 20.x, bun) (push) Failing after 17m13s
CI / Test (ubuntu-latest, Node 20.x, npm) (push) Failing after 18m42s
CI / Test (ubuntu-latest, Node 20.x, pnpm) (push) Failing after 15m0s
CI / Test (ubuntu-latest, Node 20.x, yarn) (push) Failing after 49m44s
CI / Test (ubuntu-latest, Node 22.x, bun) (push) Failing after 51m55s
CI / Test (ubuntu-latest, Node 22.x, pnpm) (push) Failing after 21m57s
CI / Test (ubuntu-latest, Node 22.x, npm) (push) Failing after 37m39s
CI / Test (ubuntu-latest, Node 22.x, yarn) (push) Failing after 34m7s
CI / Validate Components (push) Failing after 37m15s
CI / Python Tests (push) Failing after 10m1s
CI / Security Scan (push) Failing after 10m1s
CI / Lint (push) Failing after 17m12s
CI / Coverage (push) Failing after 20m19s
CI / Test (macos-latest, Node 18.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, yarn) (push) Has been cancelled
75 lines
1.7 KiB
Markdown
75 lines
1.7 KiB
Markdown
---
|
|
description: Extract reusable patterns from the current session and save them as candidate skills or guidance.
|
|
---
|
|
|
|
# /learn - Extract Reusable Patterns
|
|
|
|
Analyze the current session and extract any patterns worth saving as skills.
|
|
|
|
## Trigger
|
|
|
|
Run `/learn` at any point during a session when you've solved a non-trivial problem.
|
|
|
|
## What to Extract
|
|
|
|
Look for:
|
|
|
|
1. **Error Resolution Patterns**
|
|
- What error occurred?
|
|
- What was the root cause?
|
|
- What fixed it?
|
|
- Is this reusable for similar errors?
|
|
|
|
2. **Debugging Techniques**
|
|
- Non-obvious debugging steps
|
|
- Tool combinations that worked
|
|
- Diagnostic patterns
|
|
|
|
3. **Workarounds**
|
|
- Library quirks
|
|
- API limitations
|
|
- Version-specific fixes
|
|
|
|
4. **Project-Specific Patterns**
|
|
- Codebase conventions discovered
|
|
- Architecture decisions made
|
|
- Integration patterns
|
|
|
|
## Output Format
|
|
|
|
Create a skill file at `~/.claude/skills/learned/[pattern-name].md`:
|
|
|
|
```markdown
|
|
# [Descriptive Pattern Name]
|
|
|
|
**Extracted:** [Date]
|
|
**Context:** [Brief description of when this applies]
|
|
|
|
## Problem
|
|
[What problem this solves - be specific]
|
|
|
|
## Solution
|
|
[The pattern/technique/workaround]
|
|
|
|
## Example
|
|
[Code example if applicable]
|
|
|
|
## When to Use
|
|
[Trigger conditions - what should activate this skill]
|
|
```
|
|
|
|
## Process
|
|
|
|
1. Review the session for extractable patterns
|
|
2. Identify the most valuable/reusable insight
|
|
3. Draft the skill file
|
|
4. Ask user to confirm before saving
|
|
5. Save to `~/.claude/skills/learned/`
|
|
|
|
## Notes
|
|
|
|
- Don't extract trivial fixes (typos, simple syntax errors)
|
|
- Don't extract one-time issues (specific API outages, etc.)
|
|
- Focus on patterns that will save time in future sessions
|
|
- Keep skills focused - one pattern per skill
|