Migrate to guidance

From juicesharp/rpiv-pi · View interactive version

Migrate to guidance is an AI agent skill from the GitHub repository juicesharp/rpiv-pi. Migrate existing CLAUDE.md files to .rpiv/guidance/ system. Finds all CLAUDE.md files, transforms references, and creates architecture.md files in the guidance shadow tree.

How to use this skill

Skill file

Migrate CLAUDE.md to Guidance

You are tasked with migrating a project's existing CLAUDE.md files (typically created by /skill:annotate-inline) into the .rpiv/guidance/ system.

The migration relocates files from in-place CLAUDE.md to .rpiv/guidance/{path}/architecture.md and transforms internal cross-references.

Steps to follow:

  1. Pre-flight check:
  1. Dry run — preview the migration:

```

node scripts/migrate.js --project-dir "${CWD}" --dry-run

```

```

## Migration Plan

Found [N] CLAUDE.md files to migrate:

| Source | Target | Lines |

|--------|--------|-------|

| CLAUDE.md | .rpiv/guidance/architecture.md | 45 |

| src/core/CLAUDE.md | .rpiv/guidance/src/core/architecture.md | 78 |

| ... | ... | ... |

```

```

### Conflicts (targets already exist):

Use --force to overwrite these.

```

```

### Warnings:

```

  1. Execute the migration:

```

node scripts/migrate.js --project-dir "${CWD}" [--delete-originals] [--force]

```

```

## Migration Complete

| Source | Target | Lines | Refs Updated |

|--------|--------|-------|--------------|

| CLAUDE.md | .rpiv/guidance/architecture.md | 45 | 3 |

| src/core/CLAUDE.md | .rpiv/guidance/src/core/architecture.md | 78 | 1 |

| ... | ... | ... | ... |

Total: [N] files migrated

[Originals deleted: yes/no]

```

  1. Post-migration:

Important notes:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.