Skip to content
gsd-add-phase logo

Example transformation

gsd-add-phase

Add new integer phase to end of current milestone in roadmap

SKILL.md

Full skill instructions

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

This command appends sequential phases to the current milestone's phase list, automatically calculating the next phase number based on existing phases.

Purpose: Add planned work discovered during execution that belongs at the end of current milestone. </​objective>

<execution_context> @.planning/​ROADMAP.md @.planning/​STATE.md </​execution_context>

<process> <step name="parse_arguments"> Parse the command arguments: - All arguments become the phase description - Example: `/​gsd-add-phase Add authentication` → description = "Add authentication" - Example: `/​gsd-add-phase Fix critical performance issues` → description = "Fix critical performance issues"

If no arguments provided:

ERROR: Phase description required
Usage: /​gsd-add-phase <description>
Example: /​gsd-add-phase Add authentication system

Exit. </​step>

<step name="load_roadmap"> Load the roadmap file:
if [ -f .planning/​ROADMAP.md ]; then
  ROADMAP=".planning/​ROADMAP.md"
else
  echo "ERROR: No roadmap found (.planning/​ROADMAP.md)"
  exit 1
fi

Read roadmap content for parsing. </​step>

<step name="find_current_milestone"> Parse the roadmap to find the current milestone section:
  1. Locate the "## Current Milestone:" heading
  2. Extract milestone name and version
  3. Identify all phases under this milestone (before next "---" separator or next milestone heading)
  4. Parse existing phase numbers (including decimals if present)

Example structure:

## Current Milestone: v1.0 Foundation

### Phase 4: Focused Command System
### Phase 5: Path Routing & Validation
### Phase 6: Documentation & Distribution

</​step>

<step name="calculate_next_phase"> Find the highest integer phase number in the current milestone:
  1. Extract all phase numbers from phase headings (### Phase N:)
  2. Filter to integer phases only (ignore decimals like 4.1, 4.2)
  3. Find the maximum integer value
  4. Add 1 to get the next phase number

Example: If phases are 4, 5, 5.1, 6 → next is 7

Format as two-digit: printf "%02d" $next_phase </​step>

<step name="generate_slug"> Convert the phase description to a kebab-case slug:
# Example transformation:
# "Add authentication" → "add-authentication"
# "Fix critical performance issues" → "fix-critical-performance-issues"

slug=$(echo "$description" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/​-/​g' | sed 's/​--*/​-/​g' | sed 's/^-//;s|-$||')

Phase directory name: {two-digit-phase}-{slug} Example: 07-add-authentication </​step>

<step name="create_phase_directory"> Create the phase directory structure:
phase_dir=".planning/​phases/​${phase_num}-${slug}"
mkdir -p "$phase_dir"

Confirm: "Created directory: $phase_dir" </​step>

<step name="update_roadmap"> Add the new phase entry to the roadmap:
  1. Find the insertion point (after last phase in current milestone, before "---" separator)

  2. Insert new phase heading:

    ### Phase {N}: {Description}
    
    **Goal:** [To be planned]
    **Depends on:** Phase {N-1}
    **Plans:** 0 plans
    
    Plans:
    - [ ] TBD (run /​gsd-plan-phase {N} to break down)
    
    **Details:**
    [To be added during planning]
    
  3. Write updated roadmap back to file

Preserve all other content exactly (formatting, spacing, other phases). </​step>

<step name="update_project_state"> Update STATE.md to reflect the new phase:
  1. Read .planning/​STATE.md
  2. Under "## Current Position" → "Next Phase:" add reference to new phase
  3. Under "## Accumulated Context" → "### Roadmap Evolution" add entry:
    - Phase {N} added: {description}
    

If "Roadmap Evolution" section doesn't exist, create it. </​step>

<step name="completion"> Present completion summary:
Phase {N} added to current milestone:
- Description: {description}
- Directory: .planning/​phases/​{phase-num}-{slug}/
- Status: Not planned yet

Roadmap updated: {roadmap-path}
Project state updated: .planning/​STATE.md

---

## ▶ Next Up

**Phase {N}: {description}**

`/​gsd-plan-phase {N}`

<sub>`/​clear` first → fresh context window</​sub>

---

**Also available:**
- `/​gsd-add-phase <description>` — add another phase
- Review roadmap

---

</​step>

</​process>

<anti_patterns>

  • Don't modify phases outside current milestone
  • Don't renumber existing phases
  • Don't use decimal numbering (that's /​gsd-insert-phase)
  • Don't create plans yet (that's /​gsd-plan-phase)
  • Don't commit changes (user decides when to commit) </​anti_patterns>

<success_criteria> Phase addition is complete when:

  • Phase directory created: .planning/​phases/​{NN}-{slug}/
  • Roadmap updated with new phase entry
  • STATE.md updated with roadmap evolution note
  • New phase appears at end of current milestone
  • Next phase number calculated correctly (ignoring decimals)
  • User informed of next steps </​success_criteria>

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View