/s2s:plan:close [plan-id] [--merge] [--no-delete-branch]from s2s
Marks an implementation plan as closed, with optional git branch merge and cleanup. Accepts plan ID, --merge, and --no-delete-branch flags.
Ships in s2s. Installing the plugin adds it to Claude Code.
pwdls -laBased on the context output above, determine:
.s2s directory appears in Directory contents → "yes", otherwise → "NOT_S2S".git directory appears in Directory contents → "yes", otherwise → "no"If S2S is initialized:
.s2s/plans/*.mdIf S2S initialized is "NOT_S2S", display error and stop:
Error: Not an s2s project. Run /s2s:init first.
Extract from $ARGUMENTS:
IF plan-id provided in arguments:
.s2s/plans/{plan-id}.mdELSE find active plans:
For each plan file in .s2s/plans/*.md:
**Status**: activeIF no active plans found:
No active plan found.
Use /s2s:plan:list to see available plans.
Use /s2s:plan --session "plan-id" to work on a plan.
IF multiple active plans found:
IF single active plan found:
If "Is git repo" is "yes", use Bash tool to gather:
git status --porcelain to check for uncommitted changes
git branch --show-current to get current branch name
git symbolic-ref refs/remotes/origin/HEAD to get default branch
If "Is git repo" is "no":
Read .s2s/plans/{plan-id}.md and extract:
If there are incomplete tasks:
Present summary and ask for confirmation:
If --merge flag is present:
If "Is git repo" is "no":
If plan's branch is "N/A":
If "Git status clean" is "dirty":
Checkout default branch: git checkout {default-branch}
Pull latest: git pull origin {default-branch}
Merge feature branch: git merge {branch}
If --no-delete-branch NOT present:
git branch -d {branch}Edit .s2s/plans/{plan-id}.md:
Display confirmation:
Plan closed!
Plan: {plan-id}
Topic: {topic}
Tasks: {completed}/{total} completed
Duration: {days since created} days
{if --merge}
Branch merged: {branch} → {default-branch}
Branch deleted: {yes/no}
{end if}
Next steps:
- View all plans: /s2s:plan:list
- Create new plan: /s2s:plan --new
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub spec2ship/spec2ship --plugin s2s16 commands in this plugin
/brainstormBrainstorm SessionCreative brainstorming session using the Disney strategy (Dreamer → Realist → Critic). Use for ideation and exploring new ideas without constraints. Auto-detects active sessions./designDesign Technical ArchitectureDesign technical architecture through a roundtable discussion. Reads requirements.md and produces architecture documentation. Auto-detects active sessions./dev:checkDevelopment CheckRun development checks on s2s plugin code. Verifies instruction quality (INST-*) and cross-command consistency (CONS-*)./dev:testDevelopment TestRun integration tests on s2s plugin. Tests session validation (VAL-RT-*), resume capability (RES-*) and edge cases (EDGE-*)./initInitialize Spec2Ship ProjectInitialize or update a Spec2Ship project. Analyzes existing structure, creates .s2s/ configuration, and gathers project context./planGenerate Implementation PlansGenerate implementation plans. Smart behavior - reads from specs/architecture docs if available, otherwise prompts for topic. Auto-detects active plans.Other plugins' commands for the same job