pan-wizard 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +772 -0
- package/agents/pan-debugger.md +1246 -0
- package/agents/pan-document_code.md +965 -0
- package/agents/pan-executor.md +469 -0
- package/agents/pan-integration-checker.md +443 -0
- package/agents/pan-phase-researcher.md +572 -0
- package/agents/pan-plan-checker.md +763 -0
- package/agents/pan-planner.md +1297 -0
- package/agents/pan-project-researcher.md +647 -0
- package/agents/pan-research-synthesizer.md +239 -0
- package/agents/pan-reviewer.md +112 -0
- package/agents/pan-roadmapper.md +642 -0
- package/agents/pan-verifier.md +672 -0
- package/assets/pan-logo-2000-transparent.svg +30 -0
- package/assets/pan-logo-2000.svg +43 -0
- package/assets/terminal.svg +119 -0
- package/bin/install-lib.cjs +616 -0
- package/bin/install.js +1936 -0
- package/commands/pan/add-phase.md +44 -0
- package/commands/pan/assumptions.md +47 -0
- package/commands/pan/audit-deployment.md +378 -0
- package/commands/pan/debug.md +168 -0
- package/commands/pan/discord.md +19 -0
- package/commands/pan/discuss-phase.md +84 -0
- package/commands/pan/exec-phase.md +45 -0
- package/commands/pan/focus-auto.md +323 -0
- package/commands/pan/focus-design.md +816 -0
- package/commands/pan/focus-exec.md +316 -0
- package/commands/pan/focus-plan.md +101 -0
- package/commands/pan/focus-scan.md +272 -0
- package/commands/pan/focus-sync.md +104 -0
- package/commands/pan/health.md +23 -0
- package/commands/pan/help.md +23 -0
- package/commands/pan/insert-phase.md +33 -0
- package/commands/pan/map-codebase.md +72 -0
- package/commands/pan/milestone-audit.md +37 -0
- package/commands/pan/milestone-cleanup.md +19 -0
- package/commands/pan/milestone-done.md +137 -0
- package/commands/pan/milestone-gaps.md +35 -0
- package/commands/pan/milestone-new.md +45 -0
- package/commands/pan/new-project.md +43 -0
- package/commands/pan/patches.md +110 -0
- package/commands/pan/pause.md +39 -0
- package/commands/pan/phase-budget.md +23 -0
- package/commands/pan/phase-tests.md +42 -0
- package/commands/pan/plan-phase.md +46 -0
- package/commands/pan/profile.md +36 -0
- package/commands/pan/progress.md +25 -0
- package/commands/pan/quick.md +42 -0
- package/commands/pan/remove-phase.md +32 -0
- package/commands/pan/research-phase.md +190 -0
- package/commands/pan/resume.md +41 -0
- package/commands/pan/retro.md +33 -0
- package/commands/pan/settings.md +37 -0
- package/commands/pan/todo-add.md +48 -0
- package/commands/pan/todo-check.md +46 -0
- package/commands/pan/update.md +38 -0
- package/commands/pan/verify-phase.md +39 -0
- package/hooks/dist/pan-check-update.js +62 -0
- package/hooks/dist/pan-context-monitor.js +122 -0
- package/hooks/dist/pan-statusline.js +108 -0
- package/package.json +66 -0
- package/pan-wizard-core/bin/lib/codebase.cjs +746 -0
- package/pan-wizard-core/bin/lib/commands.cjs +1435 -0
- package/pan-wizard-core/bin/lib/config.cjs +611 -0
- package/pan-wizard-core/bin/lib/constants.cjs +696 -0
- package/pan-wizard-core/bin/lib/context-budget.cjs +150 -0
- package/pan-wizard-core/bin/lib/core.cjs +650 -0
- package/pan-wizard-core/bin/lib/focus.cjs +900 -0
- package/pan-wizard-core/bin/lib/frontmatter.cjs +442 -0
- package/pan-wizard-core/bin/lib/init.cjs +881 -0
- package/pan-wizard-core/bin/lib/milestone.cjs +276 -0
- package/pan-wizard-core/bin/lib/phase.cjs +1212 -0
- package/pan-wizard-core/bin/lib/roadmap.cjs +470 -0
- package/pan-wizard-core/bin/lib/state.cjs +1029 -0
- package/pan-wizard-core/bin/lib/template.cjs +314 -0
- package/pan-wizard-core/bin/lib/utils.cjs +171 -0
- package/pan-wizard-core/bin/lib/verify.cjs +1808 -0
- package/pan-wizard-core/bin/pan-tools.cjs +773 -0
- package/pan-wizard-core/references/checkpoints.md +776 -0
- package/pan-wizard-core/references/continuation-format.md +249 -0
- package/pan-wizard-core/references/decimal-phase-calculation.md +65 -0
- package/pan-wizard-core/references/git-integration.md +248 -0
- package/pan-wizard-core/references/git-planning-commit.md +38 -0
- package/pan-wizard-core/references/model-profile-resolution.md +34 -0
- package/pan-wizard-core/references/model-profiles.md +111 -0
- package/pan-wizard-core/references/phase-argument-parsing.md +61 -0
- package/pan-wizard-core/references/planning-config.md +196 -0
- package/pan-wizard-core/references/questioning.md +145 -0
- package/pan-wizard-core/references/tdd.md +263 -0
- package/pan-wizard-core/references/ui-brand.md +160 -0
- package/pan-wizard-core/references/verification-patterns.md +612 -0
- package/pan-wizard-core/templates/codebase/architecture.md +283 -0
- package/pan-wizard-core/templates/codebase/best-practices.md +133 -0
- package/pan-wizard-core/templates/codebase/concerns.md +325 -0
- package/pan-wizard-core/templates/codebase/conventions.md +307 -0
- package/pan-wizard-core/templates/codebase/integrations.md +305 -0
- package/pan-wizard-core/templates/codebase/relationships.md +124 -0
- package/pan-wizard-core/templates/codebase/stack.md +199 -0
- package/pan-wizard-core/templates/codebase/structure.md +298 -0
- package/pan-wizard-core/templates/codebase/testing.md +480 -0
- package/pan-wizard-core/templates/config.json +37 -0
- package/pan-wizard-core/templates/context.md +283 -0
- package/pan-wizard-core/templates/continue-here.md +78 -0
- package/pan-wizard-core/templates/debug-subagent-prompt.md +91 -0
- package/pan-wizard-core/templates/debug.md +164 -0
- package/pan-wizard-core/templates/discovery.md +146 -0
- package/pan-wizard-core/templates/milestone-archive.md +123 -0
- package/pan-wizard-core/templates/milestone.md +115 -0
- package/pan-wizard-core/templates/phase-prompt.md +593 -0
- package/pan-wizard-core/templates/planner-subagent-prompt.md +117 -0
- package/pan-wizard-core/templates/project.md +184 -0
- package/pan-wizard-core/templates/requirements.md +231 -0
- package/pan-wizard-core/templates/research-project/architecture.md +204 -0
- package/pan-wizard-core/templates/research-project/features.md +147 -0
- package/pan-wizard-core/templates/research-project/pitfalls.md +200 -0
- package/pan-wizard-core/templates/research-project/stack.md +120 -0
- package/pan-wizard-core/templates/research-project/summary.md +170 -0
- package/pan-wizard-core/templates/research.md +552 -0
- package/pan-wizard-core/templates/retrospective.md +54 -0
- package/pan-wizard-core/templates/roadmap.md +202 -0
- package/pan-wizard-core/templates/standards.md +24 -0
- package/pan-wizard-core/templates/state.md +176 -0
- package/pan-wizard-core/templates/summary-complex.md +59 -0
- package/pan-wizard-core/templates/summary-minimal.md +41 -0
- package/pan-wizard-core/templates/summary-standard.md +49 -0
- package/pan-wizard-core/templates/summary.md +249 -0
- package/pan-wizard-core/templates/uat.md +247 -0
- package/pan-wizard-core/templates/user-setup.md +311 -0
- package/pan-wizard-core/templates/validation.md +76 -0
- package/pan-wizard-core/templates/verification-report.md +322 -0
- package/pan-wizard-core/workflows/add-phase.md +111 -0
- package/pan-wizard-core/workflows/assumptions.md +178 -0
- package/pan-wizard-core/workflows/diagnose-issues.md +219 -0
- package/pan-wizard-core/workflows/discuss-phase.md +542 -0
- package/pan-wizard-core/workflows/exec-phase.md +572 -0
- package/pan-wizard-core/workflows/execute-plan.md +448 -0
- package/pan-wizard-core/workflows/health.md +156 -0
- package/pan-wizard-core/workflows/help.md +431 -0
- package/pan-wizard-core/workflows/insert-phase.md +129 -0
- package/pan-wizard-core/workflows/map-codebase.md +401 -0
- package/pan-wizard-core/workflows/milestone-audit.md +297 -0
- package/pan-wizard-core/workflows/milestone-cleanup.md +152 -0
- package/pan-wizard-core/workflows/milestone-gaps.md +274 -0
- package/pan-wizard-core/workflows/milestone-new.md +382 -0
- package/pan-wizard-core/workflows/new-project.md +1178 -0
- package/pan-wizard-core/workflows/pause.md +122 -0
- package/pan-wizard-core/workflows/phase-tests.md +388 -0
- package/pan-wizard-core/workflows/plan-phase.md +569 -0
- package/pan-wizard-core/workflows/profile.md +115 -0
- package/pan-wizard-core/workflows/progress.md +381 -0
- package/pan-wizard-core/workflows/quick.md +453 -0
- package/pan-wizard-core/workflows/remove-phase.md +154 -0
- package/pan-wizard-core/workflows/research-phase.md +73 -0
- package/pan-wizard-core/workflows/resume-project.md +306 -0
- package/pan-wizard-core/workflows/retro.md +121 -0
- package/pan-wizard-core/workflows/settings.md +213 -0
- package/pan-wizard-core/workflows/todo-add.md +157 -0
- package/pan-wizard-core/workflows/todo-check.md +176 -0
- package/pan-wizard-core/workflows/transition.md +544 -0
- package/pan-wizard-core/workflows/update.md +219 -0
- package/pan-wizard-core/workflows/verify-phase.md +301 -0
- package/scripts/build-hooks.js +43 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Capture an idea, task, or issue that surfaces during a PAN session as a structured todo for later work. Enables "thought → capture → continue" flow without losing context.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<required_reading>
|
|
6
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
+
</required_reading>
|
|
8
|
+
|
|
9
|
+
<process>
|
|
10
|
+
|
|
11
|
+
<step name="init_context">
|
|
12
|
+
Load todo context:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
INIT=$(node ~/.claude/pan-wizard-core/bin/pan-tools.cjs init todos)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Extract from init JSON: `commit_docs`, `date`, `timestamp`, `todo_count`, `todos`, `pending_dir`, `todos_dir_exists`.
|
|
19
|
+
|
|
20
|
+
Ensure directories exist:
|
|
21
|
+
```bash
|
|
22
|
+
mkdir -p .planning/todos/pending .planning/todos/done
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Note existing areas from the todos array for consistency in infer_area step.
|
|
26
|
+
</step>
|
|
27
|
+
|
|
28
|
+
<step name="extract_content">
|
|
29
|
+
**With arguments:** Use as the title/focus.
|
|
30
|
+
- `/pan:todo-add Add auth token refresh` → title = "Add auth token refresh"
|
|
31
|
+
|
|
32
|
+
**Without arguments:** Analyze recent conversation to extract:
|
|
33
|
+
- The specific problem, idea, or task discussed
|
|
34
|
+
- Relevant file paths mentioned
|
|
35
|
+
- Technical details (error messages, line numbers, constraints)
|
|
36
|
+
|
|
37
|
+
Formulate:
|
|
38
|
+
- `title`: 3-10 word descriptive title (action verb preferred)
|
|
39
|
+
- `problem`: What's wrong or why this is needed
|
|
40
|
+
- `solution`: Approach hints or "TBD" if just an idea
|
|
41
|
+
- `files`: Relevant paths with line numbers from conversation
|
|
42
|
+
</step>
|
|
43
|
+
|
|
44
|
+
<step name="infer_area">
|
|
45
|
+
Infer area from file paths:
|
|
46
|
+
|
|
47
|
+
| Path pattern | Area |
|
|
48
|
+
|--------------|------|
|
|
49
|
+
| `src/api/*`, `api/*` | `api` |
|
|
50
|
+
| `src/components/*`, `src/ui/*` | `ui` |
|
|
51
|
+
| `src/auth/*`, `auth/*` | `auth` |
|
|
52
|
+
| `src/db/*`, `database/*` | `database` |
|
|
53
|
+
| `tests/*`, `__tests__/*` | `testing` |
|
|
54
|
+
| `docs/*` | `docs` |
|
|
55
|
+
| `.planning/*` | `planning` |
|
|
56
|
+
| `scripts/*`, `bin/*` | `tooling` |
|
|
57
|
+
| No files or unclear | `general` |
|
|
58
|
+
|
|
59
|
+
Use existing area from step 2 if similar match exists.
|
|
60
|
+
</step>
|
|
61
|
+
|
|
62
|
+
<step name="check_duplicates">
|
|
63
|
+
```bash
|
|
64
|
+
# Search for key words from title in existing todos
|
|
65
|
+
grep -l -i "[key words from title]" .planning/todos/pending/*.md 2>/dev/null
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
If potential duplicate found:
|
|
69
|
+
1. Read the existing todo
|
|
70
|
+
2. Compare scope
|
|
71
|
+
|
|
72
|
+
If overlapping, use AskUserQuestion:
|
|
73
|
+
- header: "Duplicate?"
|
|
74
|
+
- question: "Similar todo exists: [title]. What would you like to do?"
|
|
75
|
+
- options:
|
|
76
|
+
- "Skip" — keep existing todo
|
|
77
|
+
- "Replace" — update existing with new context
|
|
78
|
+
- "Add anyway" — create as separate todo
|
|
79
|
+
</step>
|
|
80
|
+
|
|
81
|
+
<step name="create_file">
|
|
82
|
+
Use values from init context: `timestamp` and `date` are already available.
|
|
83
|
+
|
|
84
|
+
Generate slug for the title:
|
|
85
|
+
```bash
|
|
86
|
+
slug=$(node ~/.claude/pan-wizard-core/bin/pan-tools.cjs generate-slug "$title" --raw)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Write to `.planning/todos/pending/${date}-${slug}.md`:
|
|
90
|
+
|
|
91
|
+
```markdown
|
|
92
|
+
---
|
|
93
|
+
created: [timestamp]
|
|
94
|
+
title: [title]
|
|
95
|
+
area: [area]
|
|
96
|
+
files:
|
|
97
|
+
- [file:lines]
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Problem
|
|
101
|
+
|
|
102
|
+
[problem description - enough context for future Claude to understand weeks later]
|
|
103
|
+
|
|
104
|
+
## Solution
|
|
105
|
+
|
|
106
|
+
[approach hints or "TBD"]
|
|
107
|
+
```
|
|
108
|
+
</step>
|
|
109
|
+
|
|
110
|
+
<step name="update_state">
|
|
111
|
+
If `.planning/state.md` exists:
|
|
112
|
+
|
|
113
|
+
1. Use `todo_count` from init context (or re-run `init todos` if count changed)
|
|
114
|
+
2. Update "### Pending Todos" under "## Accumulated Context"
|
|
115
|
+
</step>
|
|
116
|
+
|
|
117
|
+
<step name="git_commit">
|
|
118
|
+
Commit the todo and any updated state:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
node ~/.claude/pan-wizard-core/bin/pan-tools.cjs commit "docs: capture todo - [title]" --files .planning/todos/pending/[filename] .planning/state.md
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Tool respects `commit_docs` config and gitignore automatically.
|
|
125
|
+
|
|
126
|
+
Confirm: "Committed: docs: capture todo - [title]"
|
|
127
|
+
</step>
|
|
128
|
+
|
|
129
|
+
<step name="confirm">
|
|
130
|
+
```
|
|
131
|
+
Todo saved: .planning/todos/pending/[filename]
|
|
132
|
+
|
|
133
|
+
[title]
|
|
134
|
+
Area: [area]
|
|
135
|
+
Files: [count] referenced
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
Would you like to:
|
|
140
|
+
|
|
141
|
+
1. Continue with current work
|
|
142
|
+
2. Add another todo
|
|
143
|
+
3. View all todos (/pan:todo-check)
|
|
144
|
+
```
|
|
145
|
+
</step>
|
|
146
|
+
|
|
147
|
+
</process>
|
|
148
|
+
|
|
149
|
+
<success_criteria>
|
|
150
|
+
- [ ] Directory structure exists
|
|
151
|
+
- [ ] Todo file created with valid frontmatter
|
|
152
|
+
- [ ] Problem section has enough context for future Claude
|
|
153
|
+
- [ ] No duplicates (checked and resolved)
|
|
154
|
+
- [ ] Area consistent with existing todos
|
|
155
|
+
- [ ] state.md updated if exists
|
|
156
|
+
- [ ] Todo and state committed to git
|
|
157
|
+
</success_criteria>
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
List all pending todos, allow selection, load full context for the selected todo, and route to appropriate action.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<required_reading>
|
|
6
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
+
</required_reading>
|
|
8
|
+
|
|
9
|
+
<process>
|
|
10
|
+
|
|
11
|
+
<step name="init_context">
|
|
12
|
+
Load todo context:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
INIT=$(node ~/.claude/pan-wizard-core/bin/pan-tools.cjs init todos)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Extract from init JSON: `todo_count`, `todos`, `pending_dir`.
|
|
19
|
+
|
|
20
|
+
If `todo_count` is 0:
|
|
21
|
+
```
|
|
22
|
+
No pending todos.
|
|
23
|
+
|
|
24
|
+
Todos are captured during work sessions with /pan:todo-add.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
Would you like to:
|
|
29
|
+
|
|
30
|
+
1. Continue with current phase (/pan:progress)
|
|
31
|
+
2. Add a todo now (/pan:todo-add)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Exit.
|
|
35
|
+
</step>
|
|
36
|
+
|
|
37
|
+
<step name="parse_filter">
|
|
38
|
+
Check for area filter in arguments:
|
|
39
|
+
- `/pan:todo-check` → show all
|
|
40
|
+
- `/pan:todo-check api` → filter to area:api only
|
|
41
|
+
</step>
|
|
42
|
+
|
|
43
|
+
<step name="list_todos">
|
|
44
|
+
Use the `todos` array from init context (already filtered by area if specified).
|
|
45
|
+
|
|
46
|
+
Parse and display as numbered list:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
Pending Todos:
|
|
50
|
+
|
|
51
|
+
1. Add auth token refresh (api, 2d ago)
|
|
52
|
+
2. Fix modal z-index issue (ui, 1d ago)
|
|
53
|
+
3. Refactor database connection pool (database, 5h ago)
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
Reply with a number to view details, or:
|
|
58
|
+
- `/pan:todo-check [area]` to filter by area
|
|
59
|
+
- `q` to exit
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Format age as relative time from created timestamp.
|
|
63
|
+
</step>
|
|
64
|
+
|
|
65
|
+
<step name="handle_selection">
|
|
66
|
+
Wait for user to reply with a number.
|
|
67
|
+
|
|
68
|
+
If valid: load selected todo, proceed.
|
|
69
|
+
If invalid: "Invalid selection. Reply with a number (1-[N]) or `q` to exit."
|
|
70
|
+
</step>
|
|
71
|
+
|
|
72
|
+
<step name="load_context">
|
|
73
|
+
Read the todo file completely. Display:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
## [title]
|
|
77
|
+
|
|
78
|
+
**Area:** [area]
|
|
79
|
+
**Created:** [date] ([relative time] ago)
|
|
80
|
+
**Files:** [list or "None"]
|
|
81
|
+
|
|
82
|
+
### Problem
|
|
83
|
+
[problem section content]
|
|
84
|
+
|
|
85
|
+
### Solution
|
|
86
|
+
[solution section content]
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
If `files` field has entries, read and briefly summarize each.
|
|
90
|
+
</step>
|
|
91
|
+
|
|
92
|
+
<step name="check_roadmap">
|
|
93
|
+
Check for roadmap (can use init progress or directly check file existence):
|
|
94
|
+
|
|
95
|
+
If `.planning/roadmap.md` exists:
|
|
96
|
+
1. Check if todo's area matches an upcoming phase
|
|
97
|
+
2. Check if todo's files overlap with a phase's scope
|
|
98
|
+
3. Note any match for action options
|
|
99
|
+
</step>
|
|
100
|
+
|
|
101
|
+
<step name="offer_actions">
|
|
102
|
+
**If todo maps to a roadmap phase:**
|
|
103
|
+
|
|
104
|
+
Use AskUserQuestion:
|
|
105
|
+
- header: "Action"
|
|
106
|
+
- question: "This todo relates to Phase [N]: [name]. What would you like to do?"
|
|
107
|
+
- options:
|
|
108
|
+
- "Work on it now" — move to done, start working
|
|
109
|
+
- "Add to phase plan" — include when planning Phase [N]
|
|
110
|
+
- "Brainstorm approach" — think through before deciding
|
|
111
|
+
- "Put it back" — return to list
|
|
112
|
+
|
|
113
|
+
**If no roadmap match:**
|
|
114
|
+
|
|
115
|
+
Use AskUserQuestion:
|
|
116
|
+
- header: "Action"
|
|
117
|
+
- question: "What would you like to do with this todo?"
|
|
118
|
+
- options:
|
|
119
|
+
- "Work on it now" — move to done, start working
|
|
120
|
+
- "Create a phase" — /pan:add-phase with this scope
|
|
121
|
+
- "Brainstorm approach" — think through before deciding
|
|
122
|
+
- "Put it back" — return to list
|
|
123
|
+
</step>
|
|
124
|
+
|
|
125
|
+
<step name="execute_action">
|
|
126
|
+
**Work on it now:**
|
|
127
|
+
```bash
|
|
128
|
+
mv ".planning/todos/pending/[filename]" ".planning/todos/done/"
|
|
129
|
+
```
|
|
130
|
+
Update state.md todo count. Present problem/solution context. Begin work or ask how to proceed.
|
|
131
|
+
|
|
132
|
+
**Add to phase plan:**
|
|
133
|
+
Note todo reference in phase planning notes. Keep in pending. Return to list or exit.
|
|
134
|
+
|
|
135
|
+
**Create a phase:**
|
|
136
|
+
Display: `/pan:add-phase [description from todo]`
|
|
137
|
+
Keep in pending. User runs command in fresh context.
|
|
138
|
+
|
|
139
|
+
**Brainstorm approach:**
|
|
140
|
+
Keep in pending. Start discussion about problem and approaches.
|
|
141
|
+
|
|
142
|
+
**Put it back:**
|
|
143
|
+
Return to list_todos step.
|
|
144
|
+
</step>
|
|
145
|
+
|
|
146
|
+
<step name="update_state">
|
|
147
|
+
After any action that changes todo count:
|
|
148
|
+
|
|
149
|
+
Re-run `init todos` to get updated count, then update state.md "### Pending Todos" section if exists.
|
|
150
|
+
</step>
|
|
151
|
+
|
|
152
|
+
<step name="git_commit">
|
|
153
|
+
If todo was moved to done/, commit the change:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
git rm --cached .planning/todos/pending/[filename] 2>/dev/null || true
|
|
157
|
+
node ~/.claude/pan-wizard-core/bin/pan-tools.cjs commit "docs: start work on todo - [title]" --files .planning/todos/done/[filename] .planning/state.md
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Tool respects `commit_docs` config and gitignore automatically.
|
|
161
|
+
|
|
162
|
+
Confirm: "Committed: docs: start work on todo - [title]"
|
|
163
|
+
</step>
|
|
164
|
+
|
|
165
|
+
</process>
|
|
166
|
+
|
|
167
|
+
<success_criteria>
|
|
168
|
+
- [ ] All pending todos listed with title, area, age
|
|
169
|
+
- [ ] Area filter applied if specified
|
|
170
|
+
- [ ] Selected todo's full context loaded
|
|
171
|
+
- [ ] Roadmap context checked for phase match
|
|
172
|
+
- [ ] Appropriate actions offered
|
|
173
|
+
- [ ] Selected action executed
|
|
174
|
+
- [ ] state.md updated if todo count changed
|
|
175
|
+
- [ ] Changes committed to git (if todo moved to done/)
|
|
176
|
+
</success_criteria>
|