gpd-merge-phases

Merge research phase artifacts, plans, and state into another phase.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/MichaelsEngineering/sentinel-multiscale-field-dynamics --skill gpd-merge-phases-michaelsengineering
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gpd-merge-phases
Source: https://github.com/MichaelsEngineering/sentinel-multiscale-field-dynamics/tree/main/.agents/skills/gpd-merge-phases
Command: npx skills add https://github.com/MichaelsEngineering/sentinel-multiscale-field-dynamics --skill gpd-merge-phases-michaelsengineering

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Research projects managed with the GPD phase system sometimes produce phases that are more tightly coupled than expected, requiring plans, summaries, verification results, and decisions from one phase to be folded into another without losing history or breaking dependencies. ## Core Features & Use Cases - Artifact Merging: Copies and renumbers source phase plans and summaries into the target phase while preserving verification artifacts with merge markers. - Convention Reconciliation: Detects conflicting convention declarations between phases and records the resolution as a decision in STATE.md. - Roadmap and State Updates: Removes the source phase from ROADMAP.md, redirects dependencies, renumbers subsequent phases, and commits all changes atomically. - Use Case: When a decimal phase like 2.1 turns out to belong with its parent phase 2, run the merge to absorb its plans and results, update the roadmap, and record the merge decision in one confirmed operation. ## Quick Start Ask the assistant to merge phase 2.1 into phase 2 using the gpd-merge-phases skill, optionally with --dry-run to preview the plan first.

Frequently Asked Questions about gpd-merge-phases

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I merge two phases in a GPD research project?▼

Invoke the skill with the source phase first and target phase second, for example merging phase 5 into phase 4. The workflow validates both phases, presents a merge plan, and waits for your confirmation before copying artifacts and updating the roadmap.

How to preview a phase merge without making changes?▼

Pass the --dry-run flag with the merge command. It shows which artifacts would move and which results would combine without executing any file copies, roadmap edits, or commits.

What happens to plans and summaries when phases are merged?▼

Source plans are appended to the target phase with renumbered filenames and updated depends_on references, never overwriting existing target plans. Verification files are copied with a merged-from-phase prefix to preserve provenance.

Can a phase merge be applied twice by accident?▼

The workflow includes idempotency guards that check whether the source directory still exists and whether the target already contains merged artifacts. If a partial merge is detected, it warns you and stops instead of duplicating work.

What happens if the two phases declare conflicting conventions?▼

The merge pauses and presents the conflicting fields side by side, requiring you to choose which convention the merged phase keeps. The decision is recorded in STATE.md with your rationale before the merge completes.

When should I not merge two research phases?▼

Avoid merging phases that are far apart in the roadmap, since the workflow warns when phases differ by more than two positions due to dependency risks. Also avoid merging when other phases depend solely on artifacts the source phase provides.