migrate
pnpm dlx @smplcty/ralph migrate [options]# ornpx @smplcty/ralph migrate [options]Migrate legacy ralph prompt files from the old copy-and-edit model to the built-in-first architecture. This command analyzes files that were copied into your project by earlier versions of ralph and determines the appropriate action for each.
How It Works
Section titled “How It Works”Ralph scans for legacy files that are now built into the package:
docs/prompts/boot.md— previously the full boot prompt templatedocs/prompts/system.md— previously the full system promptdocs/prompts/README.md— prompt directory documentationdocs/RALPH-METHODOLOGY.md— methodology reference- Agent instruction files (
.claude/CLAUDE.md,GEMINI.md, etc.)
For each file found, ralph classifies it into one of three outcomes:
| Outcome | Condition | Action |
|---|---|---|
| REMOVE | File matches the built-in template exactly | Delete the file — built-in content is identical |
| EXTRACT | File has user customizations added to template | Extract only the user additions as an extension file |
| SKIP | File content is unrecognized | Leave as-is — verify manually with ralph show |
Options
Section titled “Options”| Flag | Description |
|---|---|
--dry-run | Show migration plan without modifying any files |
--force | Apply the migration (required for non-interactive) |
Examples
Section titled “Examples”# Preview what would changeralph migrate --dry-run
# Apply the migrationralph migrate --forceExample Output
Section titled “Example Output”Migration plan:
✓ REMOVE docs/prompts/boot.md (unmodified copy of built-in template) → EXTRACT docs/prompts/system.md (user customizations detected) ⚠ SKIP docs/RALPH-METHODOLOGY.md (unrecognized — verify with ralph show)
Summary: 1 file removed, 1 file migrated to extensions, 1 file left as-is.After migration, use ralph show to verify the effective content matches your expectations.