بنقرة واحدة
plan
Create a planning document through collaborative dialogue, with support for multi-phase plans
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create a planning document through collaborative dialogue, with support for multi-phase plans
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Initialize PARA-Programming structure in the current project
Perform deep codebase exploration and produce a context-compressed research document
Orchestrate the full PARA execution cycle across phases
Archive the current context to create a clean slate for the next task
Execute the active plan by creating an isolated worktree and tracking todos
Spawn an independent subagent with a Staff+ FAANG engineer persona to review a plan or PR
| name | plan |
| description | Create a planning document through collaborative dialogue, with support for multi-phase plans |
| model | opus |
| effort | high |
Create a planning document through collaborative dialogue, with support for multi-phase plans.
/para:plan [task-description]
If no task description is provided, Claude will ask for one.
Planning is a dialogue, not a one-shot generation.
When /para:plan is invoked:
Identify ambiguities in the task description -- scope, approach, constraints, preferences.
Ask 1-4 clarifying questions using AskUserQuestion before doing anything else:
Check for research doc. If a research document exists (context/data/YYYY-MM-DD-task-name-research.md), use it as primary input for steps 4-6. If no research doc exists for a non-trivial task, suggest running /para:research first.
Explore the codebase with clarifications in hand -- identify:
Draft spec + stubs:
context/data/YYYY-MM-DD-task-name-spec.yaml (OpenAPI/Swagger YAML for HTTP APIs; TypeScript interface file or markdown contract for UI components, modules, and scripts)null, {}, or 501 Not Implemented as appropriate)Determine plan type:
main — not just complete — before it can begin (dependency chain)Draft the plan applying Staff+ engineering criteria:
Tests: annotation with specific function signatures, test case names, and key assertions -- not vague descriptions like "test the API".- [ ] ...) where the text serves as the git commit message. Keep items atomic -- one logical change per item.Self-review loop (2-3 rounds). Before presenting the plan to the user, re-read the entire plan and revise it. This is NOT optional for any plan that spans more than 2-3 files.
Round 1 -- Correctness & Completeness:
Round 2 -- Testing & TDD:
Round 3 (conditional) -- Consistency & Cross-references: Run this round ONLY if Rounds 1 and 2 together produced more than 3 substantive changes to the plan.
Convergence rule: Stop self-review when a round produces fewer than 3 substantive edits. A "substantive edit" is a change to logic, structure, contracts, or test coverage -- not a typo fix or wording improvement.
Present the plan to the user for review. Note how many self-review rounds were completed and summarize the key changes made during self-review (e.g., "Self-review completed (2 rounds). Key changes: added missing error handling for Redis connection failures, reordered steps so contract tests come before implementation.").
After the plan is written, ask the user if they'd like to proceed. Use AskUserQuestion with options like:
/para:review --plan for Staff+ review" -- independent subagent review before execution/para:execute" -- proceed directly to implementation/para:execute --phase=1 to start with the first phase.File: context/plans/YYYY-MM-DD-task-name.md
Simple plans use the template at plan-template.md.
Sections:
context/data/YYYY-MM-DD-task-name-spec.yaml or equivalent) and what it covers- [ ] ...) where each item is a commit message, with per-step Tests: annotationsFiles:
context/plans/YYYY-MM-DD-task-name.md — master plan using phased-plan-master-template.md (architecture-only reference document with core principles, architecture decisions, responsibility split, graceful degradation, progressive regression rule)context/plans/YYYY-MM-DD-task-name-phase-1.md — sub-plan using phased-plan-sub-template.md (self-contained implementation-ready sub-plan with TDD ordering)context/plans/YYYY-MM-DD-task-name-phase-2.mdThe master plan should be kept concise (1-3 pages) and never contain implementation steps. Each sub-plan should be independently executable -- someone should be able to work from a sub-plan without needing to read the master plan.
Each phase should be independently reviewable and mergeable.
After creating the plan, update context/context.md:
active_context arrayphased_execution metadata with phase status tracking. See ../init/context-schema.md for the full phased_execution field reference. Note: branch and worktree_path are set to null at plan time. They are populated by /para:execute when a phase begins execution.last_updated timestampUser: /para:plan add-caching-layer
Claude: I'd like to clarify a few things before creating the plan:
[Uses AskUserQuestion with 2-3 questions about:]
- Cache backend preference (Redis, Memcached, in-memory)
- Scope (which data to cache, TTL strategy)
- Invalidation strategy (time-based, event-based, manual)
[After receiving answers, explores codebase, then creates plan]
[Runs 2 rounds of self-review, fixes test ordering and adds missing degradation scenario]
Creates: context/plans/2025-12-18-add-caching-layer.md