
Promote Learnings to Rules
Turns a proven note from Claude's auto-memory into a permanent CLAUDE.md or rules file instruction
- Repository
- alirezarezvani/claude-skills
- Stars
- 29,149
- Licence
- MIT
- Files
- 1 file
What it does
Claude Code can save notes to its auto-memory (MEMORY.md) as it learns how a project works. This skill lets you take a pattern that has been proven in those notes and rewrite it as a short, direct instruction in CLAUDE.md or a scoped file under .claude/rules/, so the agent treats it as a standing rule in future sessions. It searches memory for matching entries, suggests where the rule belongs, rewrites it in imperative form, and removes the original note after you confirm.
Great for
- Developers who keep correcting Claude on the same project convention, such as package manager or test style
- Teams that want recurring project conventions written into shared CLAUDE.md files
- Maintainers who want to keep CLAUDE.md concise by moving file-specific rules into .claude/rules/
Skip it if
- One-off debugging notes or temporary session context, which the skill itself says should stay in memory; promoting them clutters rules
- Patterns that may change soon, such as during a migration, since a stale rule can mislead the agent
- Users unfamiliar with Claude Code's memory and rules files, who may not be able to review the edits it makes to project files
Try asking
- “/si:promote use pnpm not npm for this repo”
- “/si:promote API handlers must validate input with Zod --target rules/api.md --paths "src/api/**/*.ts"”
- “/si:promote prefer explicit error handling --target ~/.claude/CLAUDE.md”
- “Make the pnpm-lock lesson permanent so every session follows it”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 1 original files, the MIT licence and an attribution note.
promote.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip promote.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip promote.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Review the distilled rule before confirming, since it becomes an enforced instruction for all future sessions
- Keep CLAUDE.md under about 200 lines and move file-specific rules to .claude/rules/
- Revisit promoted rules periodically and remove those that no longer apply
What's inside
- SKILL.md
Redistributed unmodified from alirezarezvani/claude-skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.