← ClaudeAtlas

promotelisted

Graduate a proven pattern from auto-memory (MEMORY.md) to CLAUDE.md or .claude/rules/ for permanent enforcement.
kopp0510/claude-dd · ★ 6 · AI & Automation · score 81
Install: claude install-skill kopp0510/claude-dd
# /self-improving-agent:promote — Graduate Learnings to Rules Moves a proven pattern from Claude's auto-memory into the project's rule system, where it becomes an enforced instruction rather than a background note. ## Usage ``` /self-improving-agent:promote <pattern description> # Auto-detect best target /self-improving-agent:promote <pattern> --target claude.md # Promote to CLAUDE.md /self-improving-agent:promote <pattern> --target rules/testing.md # Promote to scoped rule /self-improving-agent:promote <pattern> --target rules/api.md --paths "src/api/**/*.ts" # Scoped with paths ``` ## Workflow ### Step 1: Understand the pattern Parse the user's description. If vague, ask one clarifying question: - "What specific behavior should Claude follow?" - "Does this apply to all files or specific paths?" ### Step 2: Find the pattern in auto-memory ```bash # Search MEMORY.md for related entries MEMORY_DIR="$HOME/.claude/projects/$(pwd | sed 's|/|%2F|g; s|%2F|/|; s|^/||')/memory" grep -ni "<keywords>" "$MEMORY_DIR/MEMORY.md" ``` Show the matching entries and confirm they're what the user means. ### Step 3: Determine the right target | Pattern scope | Target | Example | |---|---|---| | Applies to entire project | `./CLAUDE.md` | "Use pnpm, not npm" | | Applies to specific file types | `.claude/rules/<topic>.md` | "API handlers need validation" | | Applies to all your projects | `~/.claude/CLAUDE.md` | "Prefer explicit error handling" | If