promote

Solid

Graduate a proven pattern from auto-memory (MEMORY.md) to CLAUDE.md or .claude/rules/ for permanent enforcement.

AI & Automation 17,886 stars 2466 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /si: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 ``` /si:promote <pattern description> # Auto-detect best target /si:promote <pattern> --target claude.md # Promote to CLAUDE.md /si:promote <pattern> --target rules/testing.md # Promote to scoped rule /si: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 the user didn't specify a target, recommend one based on scope. ### Step 4: Distill into...

Details

Author
alirezarezvani
Repository
alirezarezvani/claude-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category