Prompt file imported from Basio0916/spec-driven-planning (
.codex/prompts/sdp-show-plan.prompt.md). Fill in{{slug}}before use. Copyright stays with the author.
SDP Project Plan Generation
Transform a task breakdown into a human-readable project plan.
Input
- slug: An existing requirement folder at
.sdp/specs/<slug>/containingtasks.yml - Usage Example:
/sdp-show-plan add-user-authentication
Language Configuration
Read .sdp/config/language.yml to determine the output language:
- If
language: en, generate all content in English - If
language: ja, generate all content in Japanese
Context Files
Read these for context:
.sdp/specs/{{slug}}/tasks.yml- Task breakdown and estimates.sdp/specs/{{slug}}/requirement.md- Original requirement.sdp/product.md- Business context
Pre-Check
Before starting, verify that:
.sdp/specs/{{slug}}/directory exists.sdp/specs/{{slug}}/tasks.ymlfile exists
Report errors if files are missing.
Plan Structure
Generate a comprehensive project plan document with the following sections:
1. Overview
- Purpose: 1 paragraph summarizing the requirement and approach
- Scope: Key deliverables and boundaries
- Timeline Summary: Total estimated hours, confidence level
2. Task Breakdown
- Table format with columns:
- Task ID
- Title
- Estimate (hours)
- Dependencies
3. Project Timeline (Mermaid Gantt)
Generate a Gantt-like Mermaid diagram:
gantt
title <slug> Project Timeline
dateFormat YYYY-MM-DD
section Phase 1
T-001 Task Title :t001, 2024-01-01, 3d
T-002 Task Title :t002, after t001, 5d
...
Use task IDs and dependencies to show:
- Sequential vs. parallel work
- Critical path highlighted
- Milestone markers
4. Risk Register
List top 3 risks from task breakdown:
- Risk description
- Probability: Low/Medium/High
- Impact: Low/Medium/High
- Mitigation strategy
5. Critical Path Analysis
- Critical path: List of task IDs (e.g., T-001 → T-003 → T-007)
- Duration: Total hours on critical path
- Bottlenecks: Tasks with most dependencies or highest risk
6. Buffer Recommendation
Based on confidence level and stddev:
- Schedule buffer: Recommended % or hours
- Resource buffer: Key areas needing backup capacity
- Risk buffer: Contingency for high-risk tasks
Output Format
1. Write Plan File
Create .sdp/specs/{{slug}}/plan.md with sections 1-6 above in the configured language (.sdp/config/language.yml).
Note: Do NOT include "Next Steps" section in the plan.md file. Next steps are only shown in the console output below.
2. Console Output
Print a summary in the same language as the content:
【プロジェクト計画生成完了】
📋 要件: <slug>
📁 ファイル: .sdp/specs/<slug>/plan.md
📊 概要:
- タスク数: <数>
- 予想時間: <expected_hours>h
- クリティカルパス: <critical_path_duration>h
- 推奨バッファ: <buffer>%
⚠️ 主要リスク: <top_risk_summary>
💡 次のステップ:
1. .sdp/config/export.yml を確認・編集してください
- destination: github または local を選択
- GitHub使用時: repo を設定
- ローカル使用時: out_dir を設定
2. /sdp-export-issues でタスクをエクスポートしてください
Allowed Tools
Read, Write, Edit, File Search, Grep only
