원클릭으로
gpd-add-phase
Add research phase to end of current milestone in roadmap
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Add research phase to end of current milestone in roadmap
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Capture idea or task as todo from current research conversation context
Prepare a paper for arXiv submission with validation and packaging
Audit research milestone completion against original research goals
Create a hypothesis branch for parallel investigation of an alternative approach
List pending research todos and select one to work on
Archive historical entries from STATE.md to keep it under the 150-line target
| name | gpd-add-phase |
| description | Add research phase to end of current milestone in roadmap |
| argument-hint | <description> |
| context_mode | project-required |
| allowed-tools | ["read_file","write_file","shell"] |
<codex_runtime_notes> Codex shell compatibility:
gpd on PATH.GPD_ACTIVE_RUNTIME=codex uv run gpd ....
</codex_runtime_notes>Routes to the add-phase workflow which handles:
Typical research phases include:
<execution_context> @.gpd/ROADMAP.md @.gpd/STATE.md
Add a new integer phase to the end of the current milestone in the roadmap. Automatically calculates next phase number, creates phase directory, and updates roadmap structure. Phases represent major stages of a physics research project (e.g., literature review, formalism development, analytical calculation, numerical implementation, validation).<required_reading> Read all files referenced by the invoking prompt's execution_context before starting. </required_reading>
Parse the command arguments: - All arguments become the phase description - Example: `$gpd-add-phase Develop effective Hamiltonian formalism` -> description = "Develop effective Hamiltonian formalism" - Example: `$gpd-add-phase Validate perturbative expansion against exact diagonalization` -> description = "Validate perturbative expansion against exact diagonalization"If no arguments provided:
ERROR: Phase description required
Usage: $gpd-add-phase <description>
Example: $gpd-add-phase Derive renormalization group equations
Exit.
Load phase operation context:INIT=$(/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local init phase-op "0")
if [ $? -ne 0 ]; then
echo "ERROR: gpd initialization failed: $INIT"
# STOP — display the error to the user and do not proceed.
fi
Check roadmap_exists from init JSON. If false:
ERROR: No roadmap found (.gpd/ROADMAP.md)
Run $gpd-new-project to initialize.
Exit.
**Delegate the phase addition to gpd CLI:**RESULT=$(/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local phase add "${description}")
if [ $? -ne 0 ]; then
echo "ERROR: phase add failed: $RESULT"
# STOP — do not proceed.
fi
The CLI handles:
.gpd/phases/{NN}-{slug}/)Extract from result: phase_number, padded, name, slug, directory.
/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local state add-decision --phase "${N}" --summary "Added Phase ${N}: ${description}" --rationale "Extends current milestone with new research phase"
/Users/charlie/.gpd/venv/bin/python -m gpd.runtime_cli --runtime codex --config-dir ./.codex --install-scope local state update "Last Activity" "$(date +%Y-%m-%d)"
This ensures STATE.md and state.json stay in sync. Do NOT edit STATE.md directly — always use gpd state commands.
Present completion summary:Phase {N} added to current milestone:
- Description: {description}
- Directory: .gpd/phases/{phase-num}-{slug}/
- Status: Not planned yet
Roadmap updated: .gpd/ROADMAP.md
---
## Next Up
**Phase {N}: {description}**
`$gpd-plan-phase {N}`
<sub>`/clear` first -> fresh context window</sub>
---
**Also available:**
- `$gpd-add-phase <description>` -- add another phase
- Review roadmap
---
<success_criteria>
gpd phase add executed successfullygpd state add-decision (STATE.md + state.json synced)</success_criteria>
</execution_context>
**Follow the add-phase workflow** from `@./.codex/get-physics-done/workflows/add-phase.md`.The workflow handles all logic including: