extractlisted
Install: claude install-skill kopp0510/claude-dd
# /self-improving-agent:extract — Create Skills from Patterns
Transforms a recurring pattern or debugging solution into a standalone, portable skill that can be installed in any project.
## Usage
```
/self-improving-agent:extract <pattern description> # Interactive extraction
/self-improving-agent:extract <pattern> --name docker-m1-fixes # Specify skill name
/self-improving-agent:extract <pattern> --output ./skills/ # Custom output directory
/self-improving-agent:extract <pattern> --dry-run # Preview without creating files
```
## When to Extract
A learning qualifies for skill extraction when ANY of these are true:
| Criterion | Signal |
|---|---|
| **Recurring** | Same issue across 2+ projects |
| **Non-obvious** | Required real debugging to discover |
| **Broadly applicable** | Not tied to one specific codebase |
| **Complex solution** | Multi-step fix that's easy to forget |
| **User-flagged** | "Save this as a skill", "I want to reuse this" |
## Workflow
### Step 1: Identify the pattern
Read the user's description. Search auto-memory for related entries:
```bash
# Claude Code replaces EVERY non-alphanumeric character in the resolved absolute cwd
# with a single "-" (dots, spaces and CJK included).
MEMORY_DIR="$HOME/.claude/projects/$(pwd -P | sed 's/[^a-zA-Z0-9]/-/g')/memory"
# Verify first; a missing directory means "wrong path", not "auto-memory has nothing".
# Under LC_ALL=C sed goes per byte, so glob as a