Migrate CLAUDE.md to modular .claude/rules/ directory structure
Migrates CLAUDE.md files to modular .claude/rules/ directory structure with automatic organization
/plugin marketplace add lisaross/claude-code-plugins/plugin install rules-migrate@lisarossMigrate a CLAUDE.md file to Claude Code's modular .claude/rules/ system.
{{args}}
You MUST follow these steps in order. Announce each step before executing.
DO NOT just describe what you would do. ACTUALLY EXECUTE the Task tool.
Extract from {{args}}:
source-path: Path to CLAUDE.md file (optional, defaults to auto-detection)If no path provided, search in order:
./.claude/CLAUDE.md./CLAUDE.mdUse the Task tool to invoke the migrate agent:
Task(
subagent_type: "migrate",
prompt: "Migrate CLAUDE.md at {{source-path}} to .claude/rules/ directory structure"
)
The agent will:
rules-migration skillAfter completion, display:
## Migration Complete
**Source**: {source-path}
**Destination**: .claude/rules/
### Created Files
- .claude/rules/core.md
- .claude/rules/...
- (list all created files)
### Archived
- .claude/CLAUDE.md.backup
### Next Steps
1. Review the new rule files
2. Adjust organization if needed
3. Run `/memory` to verify rules are loaded
Migrate default CLAUDE.md:
/rules-migrate:run
Migrate specific file:
/rules-migrate:run ./.claude/CLAUDE.md
paths frontmatter apply conditionally