/xp-agents:xp-planfrom xp-agents
Creates or updates execution_plan.json: turns design sources into ordered milestones with change zones and design details. Useful for structured project planning and tracking.
Ships in xp-agents. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Sequential discipline. Run Mode Detection → System-Context Check → Create (Steps 1–6) or Update (Steps 1–11) one step per turn — never batch an
AskUserQuestionwith the action consuming its answer (Step 1's source question vs writing the plan).
If the preload shows NEEDS_SYSTEM_CONTEXT=true, invoke /xp-system-context first via the Skill tool. Wait for it to complete.
If SYSTEM_CONTEXT=<path> is shown, read it for reference but do not modify it.
Unconditional gate — do not skip. Ask the user via AskUserQuestion:
"What are the sources for this change? Provide file paths, paste content, or describe verbally."
Options: "Repo files (I'll give paths)", "Paste content", "I'll describe it", "Multiple sources"
For each source:
Read to load them. Record in the Sources table.<details> block in the Sources table.Glob to find files related to the change areas.Read on 3-5 key files to understand current architecture and patterns.From the sources + codebase scan, propose ordered milestones, each roughly one sprint's worth of work.
Discovery pass for change_zones. Before finalizing each milestone's change_zones: for every file you intend to declare, identify the symbols (functions, classes, top-level constants) it exports, then Grep for call-sites of those symbols. Union the call-site files into the milestone footprint — as impact_zones (read-only impact) or as additional change_zones (when the call-site itself must change). For symbols with too many call-sites to enumerate (>20 callers), record the count and a representative sample.
For each milestone:
["<12-hex event id>", ...]. The retrospective reads it to report "scheduled in M<n>" instead of escalating the item as aging debt. One test: when this milestone ships, is the item resolved? List the id only then — not when the milestone merely mentions it, touches its files, or rejects its premise. Judge the DEFECT, not the remedy the item proposed: fixing it a better way than prescribed still resolves it. Omit when the milestone answers nothing recorded./xp-sprint-review verifies the milestone is done. Only include when system_context.json has an acceptance_surfaces entry with status: "covered". Format: {"type": "<harness>", "command": "<run command>"} for one command, or {"type": "<harness>", "commands": ["<cmd1>", "<cmd2>", ...]} for multiple (run in order, fail on first non-zero). Optional setup and notes fields. When a command is present, name the proof test file directly (the path-naming binary form, e.g. npx playwright test <spec>) rather than a bare script alias whose proof file is hidden in config.Guidelines:
[planned] status.Present the complete plan: Sources table, change overview, each milestone with details.
Ask via AskUserQuestion: "Does this plan look right? Any milestones to adjust?"
Iterate until the user confirms.
cat <<'PLANEOF' | python3 ${CLAUDE_PLUGIN_ROOT}/smm/plan_cli.py --smm-dir <SMM_DIR> create
{
"title": "<title>",
"sources": [
{"label": "<name>", "location": "<path or inline>", "type": "<repo|url|pasted>", "content": null}
],
"overview": "<current state to desired state>",
"milestones": [
{
"number": 1,
"name": "<name>",
"status": "planned",
"delivered_sprint": null,
"goal": "<one sentence>",
"done": "<testable condition>",
"sources": "<label> §section, <label> §section",
"change_zones": [{"path": "path/to/file", "note": "<what changes>"}],
"impact_zones": [{"path": "path/to/file", "note": "<why affected>"}],
"design_details": "<decisions, patterns, implementation notes>",
"constraints": ["<limit or requirement>"],
"schedules": ["<12-hex id of a recorded item this milestone fixes>"],
"acceptance_execution": null
}
]
}
PLANEOF
Then render the plan and output it as text for the user:
python3 ${CLAUDE_PLUGIN_ROOT}/smm/plan_cli.py --smm-dir <SMM_DIR> render
Skip when any of:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/branching.py --smm-dir <SMM_DIR> stage).Otherwise, ask via AskUserQuestion: "Create a plan branch so intermediate milestones don't land on the primary branch until the plan completes?" — Yes / No.
On Yes:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/branching.py --smm-dir <SMM_DIR> \
create-plan --cwd . --slug <plan-title-slug>
The CLI outputs created: <branch> or resumed: <branch>. If resumed:, ask via AskUserQuestion: "Plan branch <branch> already exists. Adopt this branch for the new plan?" Options: "Adopt existing branch", "Choose a different slug". On different slug, re-run.
On No, do nothing — sprints will base off the primary branch.
${CLAUDE_PLUGIN_ROOT}/smm/append.sh --smm-dir <SMM_DIR> \
--type "status" \
--agent "xp-plan" \
--content "Created execution_plan.json with N milestones" \
--working-on '["execution_plan.json"]'
EXECUTION_PLAN=<path> using Read.AskUserQuestion: "Add milestones", "Refine existing", "Add sources", "Archive and start fresh", "Done".python3 ${CLAUDE_PLUGIN_ROOT}/smm/plan_cli.py --smm-dir <SMM_DIR> archive, then switch to the Create Flow (step 1 above).schedules included:
cat <<'EOF' | python3 ${CLAUDE_PLUGIN_ROOT}/smm/plan_cli.py --smm-dir <SMM_DIR> add-milestone
{"number": N, "name": "...", "status": "planned", "delivered_sprint": null, ...}
EOF
schedules as the full new list:
cat <<'EOF' | python3 ${CLAUDE_PLUGIN_ROOT}/smm/plan_cli.py --smm-dir <SMM_DIR> edit-milestone N
{"schedules": ["<12-hex event id>"]}
EOF
cat <<'EOF' | python3 ${CLAUDE_PLUGIN_ROOT}/smm/plan_cli.py --smm-dir <SMM_DIR> add-source
{"label": "...", "location": "...", "type": "repo", "content": null}
EOF
echo "New overview text" | python3 ${CLAUDE_PLUGIN_ROOT}/smm/plan_cli.py --smm-dir <SMM_DIR> set-overview
status or delivered_sprint, and never touch a delivered milestone — /xp-sprint-review owns delivery via update-status. edit-milestone refuses all three.python3 ${CLAUDE_PLUGIN_ROOT}/smm/plan_cli.py --smm-dir <SMM_DIR> render
What SKILL.md sets; muted values are Claude Code's defaults
highnpx claudepluginhub paulingalls/xp-agents --plugin xp-agents19 skills in this plugin
/xp-acceptVerify acceptance criteria for in-progress stories and mark each done or deferred. Use when a story is ready to accept./xp-assignPer-story execution-shape decision: continue in-agent, or spawn one teammate at the chosen tier. Runs once per story after its plan is reviewed./xp-end-sessionEnd-of-session cleanup: drafts a session summary, force-closes open questions, and triages maybe-addressed concerns and debts./xp-free-closeClose ad-hoc work done outside a sprint or plan: review the free branch diff and merge it into the integration branch.Other plugins' skills for the same job