Graduates proven auto-memory patterns into CLAUDE.md or scoped rules so Claude enforces them permanently.

CCM score
76 of 100
skills.sh installs
1.6K
GitHub stars
30.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full promotion flow: locate the pattern in MEMORY.md, pick a target, distill it, write it, and remove the original entry
  • Supports targets ./CLAUDE.md, ~/.claude/CLAUDE.md, and .claude/rules/<topic>.md, with optional --paths frontmatter to scope a rule to file globs
  • Distills verbose notes into one imperative line per rule, and suggests .claude/rules/ when CLAUDE.md would exceed 200 lines
  • Guides the choice between promotion and leaving a note in place, based on recurrence (three or more occurrences) and whether the pattern is stable
  • Designed for projects where a recurring correction should become a standing instruction rather than a background memory note

Install

$ npx -y skills add alirezarezvani/claude-skills --skill promote -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

/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

# 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

Details

Repository
github.com/alirezarezvani/claude-skills
Categories
Memory & Context, Skill & Plugin Building, Agent Workflow & Planning
First seen
Apr 16, 2026

More from alirezarezvani/claude-skills

All 259

Similar to Promote

More Memory & Context