ワンクリックで
taskwing-plan
Use when you need to clarify a goal and build an approved execution plan.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when you need to clarify a goal and build an approved execution plan.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Use when you need project knowledge for architectural context. Returns a compact summary by default.
Use when implementation is verified and you are ready to complete the current task.
Use when you are ready to start the next approved TaskWing task with full context.
SOC 職業分類に基づく
| name | taskwing-plan |
| description | Use when you need to clarify a goal and build an approved execution plan. |
| argument-hint | [goal description] or [--batch goal description] |
Usage: /taskwing:plan <your goal> or /taskwing:plan --batch <your goal>
Example: /taskwing:plan Add Stripe billing integration
The Workflow Contract lives in CLAUDE.md (single source of truth). Obey it always.
| Impulse | Do Instead |
|---|---|
| Auto-answer clarifying questions yourself | Present them to the user and WAIT |
| Skip the clarification checkpoint | STOP with refusal text |
| Plan without clarifying first | Always run clarify before generate |
| Assume the user approved | Require explicit "approve", "yes", or equivalent |
is_ready_to_plan is true.taskwing task next --auto-start to begin work. Do not wait for the user to say /taskwing:next.Hard gate for this command:
taskwing plan worksAll plan actions go through a single CLI verb:
taskwing plan tool --params '<JSON params>'
# or
echo '<JSON params>' | taskwing plan tool --params -
The output is always JSON (a PlanToolResult). Parse the response and extract the
fields you need (clarify_session_id, is_ready_to_plan, plan_id, phases, tasks, …).
The plan tool supports two modes:
Check if $ARGUMENTS contains --batch:
If $ARGUMENTS is empty or not provided:
Ask the user: "What do you want to build? Please describe your goal."
Wait for user response, then use that as the goal.
If $ARGUMENTS is provided:
Use $ARGUMENTS as the goal and proceed to Step 1.
taskwing plan tool --params '{"action":"clarify","goal":"<goal from Step 0>"}'
Extract from the JSON result: clarify_session_id, questions, goal_summary,
enriched_goal, is_ready_to_plan, context_used.
CRITICAL: Do NOT answer questions yourself. Present them to the user and WAIT.
If is_ready_to_plan is false:
Present each question to the user exactly as returned. Wait for the user to respond.
If user says "auto" or "skip":
taskwing plan tool --params '{"action":"clarify","clarify_session_id":"<id>","auto_answer":true}'
If user provides answers: Pipe a JSON params blob to stdin to keep multi-line answers safe:
cat <<'EOF' | taskwing plan tool --params -
{
"action": "clarify",
"clarify_session_id": "<id from previous clarify step>",
"answers": [
{"question": "...", "answer": "..."}
]
}
EOF
Repeat until is_ready_to_plan is true.
Before generating:
enriched_goal and assumptionsIf approval is not explicit, STOP and use the refusal text above.
cat <<'EOF' | taskwing plan tool --params -
{
"action": "generate",
"goal": "<original goal>",
"clarify_session_id": "<id>",
"enriched_goal": "<enriched_goal>",
"save": true
}
EOF
Display the generated plan:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PLAN CREATED: [plan_id]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**Goal:** [goal]
## Generated Tasks
| # | Title | Priority |
|---|-------|----------|
| 1 | [Task 1 title] | [priority] |
| 2 | [Task 2 title] | [priority] |
...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Plan saved and set as active.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
After presenting the plan summary, immediately start working on the first task.
taskwing task next --auto-start
Do NOT wait for the user to say /taskwing:next - the plan was just approved, start executing.
If $ARGUMENTS is empty or not provided:
Ask the user: "What do you want to build? Please describe your goal."
Wait for user response, then use that as the goal.
taskwing plan tool --params '{"action":"clarify","goal":"<goal from Step 1>","mode":"interactive"}'
CRITICAL: Present all clarifying questions to the user. Do NOT answer them yourself. Wait for the user to respond before proceeding.
If the user says "auto" or "skip", run clarify again with "auto_answer": true.
Loop until is_ready_to_plan is true.
Save the clarify_session_id and enriched_goal for subsequent steps.
CHECKPOINT 1: User approves the enriched goal before proceeding. If approval is not explicit, STOP and use the refusal text above.
cat <<'EOF' | taskwing plan tool --params -
{
"action": "decompose",
"clarify_session_id": "<id from Step 2>",
"enriched_goal": "<enriched_goal from Step 2>"
}
EOF
This returns 3-5 high-level phases. Present them to the user:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PROPOSED PHASES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
## Phase 1: [Title]
[Description]
Rationale: [Why this phase is needed]
Expected tasks: [N]
## Phase 2: [Title]
...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CHECKPOINT 2: Ask user to:
For each approved phase:
taskwing plan tool --params '{"action":"expand","plan_id":"<plan_id>","phase_id":"<phase_id>"}'
This returns 2-4 detailed tasks for the phase. Present them:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TASKS FOR PHASE: [Phase Title]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
## Task 1: [Title]
Priority: [priority]
Description: [description]
Acceptance Criteria:
- [criterion 1]
- [criterion 2]
## Task 2: [Title]
...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Remaining phases: [N]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CHECKPOINT 3 (per phase): Ask user to:
Repeat for each phase until all are expanded.
After all phases are expanded:
taskwing plan tool --params '{"action":"finalize","plan_id":"<plan_id>"}'
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PLAN FINALIZED: [plan_id]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**Goal:** [goal]
## Phases & Tasks
### Phase 1: [Title]
1. [Task 1 title] (Priority: [P])
2. [Task 2 title] (Priority: [P])
### Phase 2: [Title]
3. [Task 3 title] (Priority: [P])
4. [Task 4 title] (Priority: [P])
...
**Total:** [N] phases, [M] tasks
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Plan saved and set as active.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
After presenting the plan summary, immediately start working on the first task.
taskwing task next --auto-start
Do NOT wait for the user to say /taskwing:next - the plan was just approved, start executing.