--- name: view-plan description: "View a plan's tasks and progress, regardless of output format." disable-model-invocation: true hooks: PreToolUse: - hooks: - type: command command: "$CLAUDE_PROJECT_DIR/.claude/hooks/workflows/system-check.sh" once: true --- Display a readable summary of a plan's phases, tasks, and status. ## Step 1: Identify the Plan If no topic is specified, list available plans: ```bash ls docs/workflow/planning/ ``` Ask the user which plan to view. ## Step 2: Read the Plan Index Read the plan file from `docs/workflow/planning/{topic}/plan.md` and check the `format:` field in the frontmatter. ## Step 3: Load Format Reading Reference Load the format's reading reference: ``` ../technical-planning/references/output-formats/{format}/reading.md ``` This file contains instructions for reading plans in that format. ## Step 4: Read Plan Content Follow the reading reference to locate and read the actual plan content. ## Step 5: Present Summary Display a readable summary: > *Output the next fenced block as a code block:* ``` Plan: {topic} **Format:** {format} ### Phase 1: {phase name} - [ ] Task 1.1: {description} - [x] Task 1.2: {description} ### Phase 2: {phase name} - [ ] Task 2.1: {description} ... ``` Show: - Phase names and acceptance criteria - Task descriptions and status (if trackable) - Any blocked or dependent tasks Keep it scannable - this is for quick reference, not full detail. ## Notes - Some formats (like external issue trackers) may not be fully readable without API access - note this if applicable - If status tracking isn't available in the format, just show the task structure