Show hierarchy status with visual tree
Displays project hierarchy with visual tree showing all versions, tasks, and progress status.
/plugin marketplace add cowwoc/claude-code-dog/plugin install dog@claude-code-dogDisplay the complete DOG hierarchy status with a visual tree showing all major versions, minor versions, and tasks with their current status.
Provides situational awareness for project progress.
</objective> <process> <step name="verify">Verify planning structure exists:
[ ! -d .claude/dog ] && echo "No planning structure found. Run /dog:new-project to start." && exit 1
</step>
<step name="load">
Load project context:
.claude/dog/PROJECT.md for project name and overview.claude/dog/ROADMAP.md for version structure.claude/dog/dog-config.json for configurationScan all STATE.md files:
# Find all major versions
find .claude/dog/major -maxdepth 1 -type d -name "[0-9]*" 2>/dev/null | sort -V
# Find all minor versions under each major
find .claude/dog/major/*/minor -maxdepth 1 -type d -name "[0-9]*" 2>/dev/null | sort -V
# Find all tasks under each minor
find .claude/dog/major/*/minor/*/task -maxdepth 1 -type d 2>/dev/null | sort
For each STATE.md found, extract:
Calculate overall progress:
Render visual tree:
# [Project Name]
**Progress:** [=========> ] 75% (15/20 tasks)
**Mode:** [Interactive|YOLO]
## MAJOR 1: [Name from ROADMAP] (In Progress)
### MINOR 0: [Description]
- [x] parse-tokens (completed)
- [>] build-ast (in-progress, 60%)
- [ ] validate-ast (pending)
### MINOR 1: [Description]
- [ ] generate-ir (pending)
- [ ] optimize-ir (pending, depends: generate-ir)
## MAJOR 2: [Name from ROADMAP] (Pending)
### MINOR 0: [Description]
- [ ] emit-code (pending)
- [ ] format-output (pending)
---
**Current:** Major 1, Minor 0, Task: build-ast
**Next executable:** validate-ast (after build-ast completes)
---
Status symbols:
[x] - completed[>] - in-progress[ ] - pending[!] - blocked (dependencies not met)Color hints (if terminal supports):
Identify blockers:
List any tasks that are blocked:
## Blocked Tasks
- **Major 1.1/optimize-ir** - waiting on: generate-ir
- **Major 2.0/emit-code** - waiting on: Major 1 completion
</step>
<step name="next">
Suggest next action:
Based on current state, suggest the most appropriate next command:
| State | Suggestion |
|---|---|
| Has executable task | /dog:execute-task |
| All tasks complete for minor | /dog:add-task or /dog:add-minor-version |
| All minors complete for major | /dog:add-major-version |
| All complete | "Project complete!" |
---
## Next Action
`/dog:execute-task 1.0/build-ast`
Or use `/dog:add-task` to add more work.
---
</step>
</process>
<output_format>
The status output should be:
</output_format>
<success_criteria>
</success_criteria>