Skip to content
Development
Command

/add-phase

Add phase to end of current milestone in roadmap

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/add-phase

Context preview

What this command does when you run it.

Add phase to end of current milestone in roadmap

Command definition

add-phase.md
description: "Add phase to end of current milestone in roadmap"
argument-hint: "<description>"
allowed-tools:
  - Read
  - Write
  - Bash

<objective> Add a new integer phase to the end of the current milestone in the roadmap.

Handles:

  • Phase number calculation (next sequential integer)
  • Directory creation with slug generation
  • Roadmap structure updates
  • STATE.md roadmap evolution tracking

</objective>

<context> Description: $ARGUMENTS

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

<process>

1. Parse Arguments

Extract phase description from $ARGUMENTS. If empty, ask user for a description.

2. Validate State

pbr-tools roadmap analyze

Check that ROADMAP.md exists and has at least one milestone.

3. Calculate Next Phase Number

Read ROADMAP.md, find the highest integer phase number in the current milestone, add 1.

4. Generate Slug

SLUG=$(pbr-tools generate-slug "$ARGUMENTS")

5. Create Phase Directory and Update Roadmap

pbr-tools roadmap append-phase --goal "$ARGUMENTS"

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

6. Update State

pbr-tools state record-activity "Added phase {NN}: {description}"

7. Commit

git add .planning/ROADMAP.md .planning/STATE.md .planning/phases/
git commit -m "docs: add phase {NN} — {slug}"

8. Report

Display: "Phase {NN}: {description} added to roadmap." Suggest: `/pbr:discuss-phase {NN}` or `/pbr:plan-phase {NN}` as next steps. </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