An Agent Skill that synchronizes session learnings from auto-memory into your project's CLAUDE.md.
Claude Code's auto-memory accumulates valuable patterns, architectural decisions, and conventions across sessions. But MEMORY.md truncates at 200 lines, and CLAUDE.md drifts out of date. Knowledge gets lost.
When you run /sync-docs, the skill:
- Reads both CLAUDE.md and MEMORY.md
- Identifies stable patterns worth promoting (filters out one-off fixes)
- Presents a sync plan for your approval
- Makes surgical edits to CLAUDE.md (never rewrites the file)
- Trims promoted entries from MEMORY.md to stay under the 200-line limit
- Updates any related project docs affected by the changes
npx skills add amirnoyman/sync-docsIn Claude Code, type:
/sync-docs
Or ask naturally: "sync docs", "update claude md", "promote memory".
Best used at the end of a productive session or after several sessions of accumulated work.
Qualifies:
- Stable patterns confirmed across multiple sessions
- Architectural decisions that affect future work
- Naming or API changes already applied across the codebase
- Corrections to outdated CLAUDE.md content
- Workflow or tooling changes
Does not qualify:
- One-time bug fixes
- Session-specific context
- Single-file changes that don't establish a pattern
- Information already in CLAUDE.md
MIT