ワンクリックで
migrate-managed-claude-md
Migrate legacy CLAUDE.md to use magic markers for VE-managed content.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Migrate legacy CLAUDE.md to use magic markers for VE-managed content.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Collaboratively refine a high-level ambition into a set of chunk prompts.
Migrate the project's ACTIVE chunks to the present-tense, intent-owning standard. Audits each chunk's goal against the code it claims to govern; rewrites retrospective framing inline; logs over-claims that need operator triage; historicalizes chunks with no enduring intent. Designed for full-corpus migrations — fans out across many parallel sub-agents at 5 chunks per agent.
Create a new chunk of work and refine its goal. Use when the operator wants to start new intent-bearing work, chunk something, define a piece of work, or break work into a chunk.
Update code references in the current chunk and move both the PLAN.md and the GOAL.md to the ACTIVE state.
Wake an entity by loading its identity, memories, and operational context
Set up a project steward via interactive interview
| name | migrate-managed-claude-md |
| description | Migrate legacy CLAUDE.md to use magic markers for VE-managed content. |
This migration adds magic markers to an existing CLAUDE.md file:
<!-- VE:MANAGED:START --> marks the beginning of VE-managed content<!-- VE:MANAGED:END --> marks the endAfter migration, ve init will only update content between the markers, preserving
any user customizations outside them.
Check if CLAUDE.md exists:
<!-- VE:MANAGED:START -->
<!-- VE:MANAGED:END -->
Then run ve init to populate the managed section.Check if already migrated:
<!-- VE:MANAGED:START --> markerCreate migration directory:
ve migration create managed_claude_md
This creates docs/migrations/managed_claude_md/MIGRATION.md to track progress.
Read CLAUDE.md and analyze its content to identify VE-managed content boundaries.
Detection signals to look for:
| Signal | Strength | Description |
|---|---|---|
# Vibe Engineering Workflow heading | Strong | Primary VE content indicator |
docs/trunk/, docs/chunks/, docs/subsystems/ references | Strong | VE documentation structure |
ve chunk, ve init, ve orch commands | Strong | VE CLI references |
| Available Commands section with VE slash commands | Strong | VE workflow commands |
| Chunk Lifecycle, Narrative, Investigation sections | Medium | VE artifact documentation |
| Working with the Orchestrator section | Medium | VE orchestrator docs |
| Generic project setup (Python, testing) | Weak | Could be user or VE content |
Agent task: Read CLAUDE.md and propose line number boundaries.
Read the entire CLAUDE.md file, noting line numbers
Identify where VE content begins (typically # Vibe Engineering Workflow)
Identify where VE content ends (last VE-specific section before user content)
Record your findings in MIGRATION.md:
Update the detected_boundaries frontmatter:
detected_boundaries:
start_line: <number>
end_line: <number>
confidence: high|medium|low
reasoning: "<explanation>"
Also update the "Detection Results" section with your analysis.
Update status to REFINING
Edge cases:
No VE content detected: Set start_line: null, end_line: null, confidence: high,
reasoning: "No VE content signatures found". The wrapping phase will append empty markers.
User content before VE section: Start boundary should be after user content
User content after VE section: End boundary should be before user content
User content interleaved within VE section: Flag this in your reasoning and ask operator for guidance during proposal phase
Present the detected boundaries to the operator for confirmation.
Display the proposed boundaries:
"Based on my analysis of CLAUDE.md, I propose:
VE-managed content: Lines {start_line} - {end_line}
Confidence: {confidence} Reasoning: {reasoning}
Preview of boundary lines:
- Line {start_line}:
{content of start line}- Line {end_line}:
{content of end line}Please confirm:
- Accept: Proceed with these boundaries
- Adjust: Specify different line numbers (e.g., "use lines 5-120")
- No VE content: Append empty markers to end of file"
Record the operator's decision as a resolved question in MIGRATION.md
If operator requests adjustment, update detected_boundaries accordingly
Update status to EXECUTING
Note: Status is EXECUTING for both wrapping and validation phases.
Insert the magic markers around the confirmed VE content.
Case A: VE content detected (start_line and end_line are set)
<!-- VE:MANAGED:START --> on its own line BEFORE line {start_line}<!-- VE:MANAGED:END --> on its own line AFTER line {end_line}Important: Preserve exact whitespace. Insert markers on their own lines without modifying surrounding content.
Case B: No VE content (start_line and end_line are null)
Append to the end of CLAUDE.md:
<!-- VE:MANAGED:START -->
<!-- VE:MANAGED:END -->
Update MIGRATION.md progress log
Proceed to validation (status remains EXECUTING)
Verify the migration was successful.
Validation checks:
Markers exist: Both <!-- VE:MANAGED:START --> and <!-- VE:MANAGED:END -->
are present in CLAUDE.md
Markers are well-formed:
Content preserved:
Future compatibility:
ve init would only modify content between markers (verify by reading the
template and comparing marker positions)Record results in MIGRATION.md "Validation Results" section.
If validation passes:
"Migration complete. CLAUDE.md now has VE-managed markers.
Next step: Run
ve initto update the managed section with the latest VE content from the template."
If validation fails:
This migration supports pause/resume:
The MIGRATION.md frontmatter tracks all state needed to resume.
Q: What if the operator made significant changes to VE sections? A: The agent should note this in the detection reasoning. The operator can then decide whether to include modified VE sections in the managed area or not.
Q: What if there's interleaved user/VE content? A: The agent should flag this during detection. The operator must decide which parts to include. In complex cases, the operator may need to manually reorganize content before or after migration.
Q: What if ve init fails after migration?
A: Check that markers are well-formed. The ve init command expects exact marker
format: <!-- VE:MANAGED:START --> and <!-- VE:MANAGED:END -->.