ワンクリックで
plan
Create or update a feature implementation plan with concrete steps, risks, and acceptance criteria for the Architect workflow.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create or update a feature implementation plan with concrete steps, risks, and acceptance criteria for the Architect workflow.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Audit a feature implementation against its approved plan and implementation report, then produce the architect verdict and follow-up direction.
Create a feature document covering business context and initial architecture for a new feature using the PM and Architect workflow.
Execute a review-approved feature plan and produce or refine the implementation report for that feature.
Orchestrate the full feature workflow loop by detecting artifact state and routing through review, implementation, audit, and follow-up steps.
Revise an existing feature plan after review findings, implementation issues, or manual edits while preserving plan history.
Run feature research with document pre-search and produce a context document covering options, best practices, and third-party findings.
| name | plan |
| description | Create or update a feature implementation plan with concrete steps, risks, and acceptance criteria for the Architect workflow. |
Purpose: Invoke the Architect to create or update a workflow plan. The primary mode is feature-scoped planning, but this skill also supports standalone fixes under .pythia/workflows/fixes/.
feat-2026-01-cursor-subagents-skills-planloop-ts) or a path to the feature doc.fix trigger or rely on the corrective implicit routing rules below.1-agents-commands-data-exchange for plan 1-agents-commands-data-exchange.plan.md.plans/{plan-slug}.plan.md under the resolved feature or fixes workspace.When /plan is called with fix keyword (for example /plan fix auth-bug):
N from .pythia/workflows/fixes/plans/*.plan.md.pythia/workflows/fixes/plans/ exists.pythia/workflows/fixes/fixes.md exists with a minimal ## Plans section.pythia/workflows/fixes/plans/N-{slug}.plan.md.pythia/workflows/fixes/fixes.md using the fix-specific Plans Index rules belowNo confirmation is required for the explicit fix trigger.
When /plan is called without an explicit feature-id and:
route to fixes and tell the user:
Routing to fixes (no active feature, corrective intent). Plan: fixes/plans/N-{slug}.plan.md
If the request is additive and no active feature is available, ask the user for a feature-id or direct them to /feat first.
The standard ## Plans Index update section below is feature-specific. For the fixes case:
{feature-dir}/{feature-id}.md.pythia/workflows/fixes/fixes.md as the parent index document## Plans- [{slug}](plans/{slug}.plan.md) — {Title} · Status: {status}You are the Architect (architect.md). Doc context = resolved planning workspace: either a feature directory (feat doc + plans/) or the standalone fixes workspace (fixes.md + plans/).
CRITICAL — Execution context: Execute the planning work in the current context. Do NOT launch a subagent to create the plan. Validator delegation is allowed only after the plan is saved; see Validation.
Input: Feature context + plan slug (required). Plan path = plans/{plan-slug}.plan.md. Optional: existing plan content, review text or link to round (for revision), or user's edits to the plan — if the user asks to "apply automatically" or "agree with these changes", output the plan with those edits incorporated.
Architecture Ambiguity Checkpoint (required before writing plan):
Pros, Cons, and expected impactBefore generating plan: Get current date via date +%Y-%m-%d. Use this date in the Date Created field.
When /plan is invoked with an argument that resolves to an existing .plan.md file, enter Plan Brainstorm Mode instead of create mode.
Detect brainstorm mode only when:
.plan.md, andDo not enter brainstorm mode when:
.plan.mdBrainstorm mode suppresses Scenario B's overwrite question for existing plan paths.
Run this sequence once on activation before the first brainstorm response:
scripts/inputs.sh check <plan-file>STALE or MISSING resultsinputs: block exists, skip silentlyplans/ for implemented or archived plans[risk] and [plan] items from their ## Retrospective## Contexts, run scripts/inputs.sh check <context-file> when the context declares inputs:After every brainstorm response:
/replanWhen the user is ready, /replan <plan-path> uses those agreed changes as Manual-trigger context.
Append this after every brainstorm response:
Agreed changes:
- {change 1}
- {change 2}
---
Active plan: {plan-slug} v{version} · {Status} | Agreed: {comma-separated labels or "none yet"}
Omit the bullet list when no agreed changes exist, but always print the final Active plan: line.
Step detail (mandatory): Each step MUST follow the step structure in plan-format.md. Steps must be concrete and reviewable: (a) Developer can implement without guessing what "done" means, (b) Reviewer can verify completeness, feasibility, and test coverage. Include per step: Change (concrete, bounded), Where (files/modules), Preconditions (if any), Concrete outcome (verifiable "done"), Edge cases / errors (if the step touches I/O, persistence, or integration), Validation (explicit command(s); when the step adds behavior, state which new tests are required), Tests to add (if the step requires new tests — list test names or scenarios so Developer knows exactly what to write), API / types (if the step introduces or changes public API or data format — signatures, struct/schema, or example JSON), Pattern / approach (if relevant), Acceptance. Prefer more, smaller steps with clear boundaries over fewer vague steps. Vague steps (e.g. "Add error handling", "Refactor X") are not acceptable — they block good review.
Check if sufficient data is available to write a concrete, reviewable plan.
Scenario A — insufficient data
Scenario B — sufficient data
plans/{plan-slug}.plan.mdOutput: the written plan file must include:
/plan format)Reusable findings: While analyzing the codebase for planning, put transferable lessons in ## Retrospective. A good retrospective entry is reusable outside this artifact, evidence-backed, and useful for future planning, implementation, review, audit, or automation. Put only explicit user choices/corrections in ## Decision Log.
Record in ## Decision Log only when user choices or corrections affect the artifact. The section itself means "user"; do not prefix entries with User:. Examples:
## Decision Log
- Current plan scope: keep adjacent cleanup out of scope
- Implementation report language: always English
Do not use an Observations section. Reusable findings belong in ## Retrospective; user-only decisions belong in ## Decision Log. Do not put plan summaries, completed work, issue restatements, or user decisions in Retrospective.
Automation awareness (optional, accumulated over iterations): While creating the plan, watch for repetitive manual operations, validation steps, or configuration patterns in the plan steps. If you notice opportunities for automation, record them in ## Retrospective with label [automation] so /retro can collect them.
/plan is the authoritative write path for a single plan create/update.
After writing the plan file in Scenario B:
{feature-dir}/{feature-id}.md## Plans section; add it if needed- [{slug}](plans/{slug}.plan.md) — {Title} · Status: {status}If the parent feature doc is missing, skip silently.
/feat sync is a manual reconciliation path for ## Plans, not an alternate authoring path. Both flows must use the same line format and replace-by-slug logic.
For standalone fixes, do not use the feature-doc lookup above. Update .pythia/workflows/fixes/fixes.md instead, using the fix-case rules in ## Fix routing.
Cross-reference update (after writing plan): For each context listed in ## Contexts, update that context file's ## Used by section to add a link back to this plan if not already present.
Inputs integration:
## Contexts, if that context file declares inputs:, run scripts/inputs.sh check <context-file>.STALE, MISSING, or INVALID, surface that raw result to the user before proceeding. This skill does not assign a global warn/block policy and must not hide the check output.inputs: block, proceed normally and do not invent one just because the plan consumes it.scripts/inputs.sh add <plan-file> <dep> [<dep>...] to record the feature doc and each consulted context as direct plan inputs. Do not run update on first creation.scripts/inputs.sh update <plan-file> only after the document already reflects the current source files.Validation (before completing):
{ABS_PATH_TO_VALIDATE_SKILL} (this repo’s .agents/skills/validate/SKILL.md or .claude/skills/validate/SKILL.md) and absolute path to plans/{plan-slug}.plan.md. Do not claim the plan matches the format contract until exit 0.
subagent_type="generalPurpose" or the same type your /loop skill uses for one-shot subagent handoffs when no dedicated Validator type exists. Put only the filled handoff prompt from /validate skill § Validator subagent in the delegated body (paths substituted); do not paste plan content, step drafts, or long architecture narrative — only validation instructions.## Navigation is present with links to all stepsYYYY-MM-DD (from date +%Y-%m-%d)## Contexts has this plan listed in its ## Used by sectionMigration Note: If an existing plan (created via /plan) lacks Plan-Version field, add:
Use Architect Response Format A1. Plan Creation Response from response-formats.md.
After Scenario B, respond with:
Do not print the full plan markdown back into chat after a successful write unless the user explicitly asks for it.
After a successful save in Scenario B, show the chooser and halt for user input.
/replan as a separate workflow for formal revision of the current plan; do not hide or disable this action based on whether a review artifact existsEnter a, q, b, r, or pAt the end of every /plan response, output:
## Next Steps with separate **Actions** and **Copy to run elsewhere** blocks**Active context** footer with explicit modeUse the feature form when planning inside a feature create flow:
Active context: role: Architect · feat: {feat-id} · plan: {plan-slug} · mode: create · skill: /plan
Use the fixes form when planning in .pythia/workflows/fixes/:
Active context: role: Architect · fixes · plan: {plan-slug} · mode: create · skill: /plan
Use the brainstorm form when /plan is active on an existing plan path:
Active context: role: Architect · feat: {feat-id}|fixes · plan: {plan-slug} · mode: brainstorm · skill: /plan
Do not put brainstorm hints, review hints, See also, or implementation notes inside the active context footer itself.