Skip to content
Development
Command

/insert-phase

Insert urgent work as decimal phase (e.g., 72.1) between existing phases

From plugin
plan-build-run
1770 skills18 agents70 commands
Install
$ npx -y skills add SienkLogic/plan-build-run --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/insert-phase

Context preview

What this command does when you run it.

Insert urgent work as decimal phase (e.g., 72.1) between existing phases

Command definition

insert-phase.md
description: "Insert urgent work as decimal phase (e.g., 72.1) between existing phases"
argument-hint: "<after> <description>"
allowed-tools:
  - Read
  - Write
  - Bash

<objective> Insert a decimal phase for urgent work discovered mid-milestone that must be completed between existing integer phases.

Uses decimal numbering (72.1, 72.2, etc.) to preserve the logical sequence of planned phases while accommodating urgent insertions.

Purpose: Handle urgent work discovered during execution without renumbering entire roadmap. </objective>

<context> Arguments: $ARGUMENTS (format: <after-phase-number> <description>)

@.planning/ROADMAP.md @.planning/STATE.md </context>

<process>

1. Parse Arguments

Extract after-phase-number and description from $ARGUMENTS. Error if either is missing.

2. Calculate Decimal Phase Number

Find existing decimal phases after the target number to determine next available decimal (e.g., if 3.1 exists, use 3.2).

3. Generate Slug

SLUG=$(pbr-tools generate-slug "{description}")

4. Create Phase

pbr-tools roadmap insert-phase {after} --goal "{description}"

Create `.planning/phases/{NN.D}-{slug}/` directory.

5. Update State

pbr-tools state record-activity "Inserted phase {NN.D}: {description}"

6. Commit

git add .planning/
git commit -m "docs: insert phase {NN.D} — {slug}"

7. Report

Display: "Phase {NN.D}: {description} inserted after phase {NN}." Suggest: `/pbr:plan-phase {NN.D}` as next step. </process>

Read more
Ships withplan-build-run

Plan it. Build it. Run it. A Claude Code plugin for structured development with context-engineered agents.

Get the whole plugin, auto-invoked
Stats
17
Stars
1
Views
5
Forks
Maintained
Maintenance
JavaScript
Language
MIT
License
4mo ago
Last commit
5mo ago
Created

Repo: SienkLogic/plan-build-run