@howlil/ez-agents 2.0.0

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.
Files changed (183) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +845 -0
  3. package/README.zh-CN.md +702 -0
  4. package/agents/ez-codebase-mapper.md +770 -0
  5. package/agents/ez-debugger.md +1255 -0
  6. package/agents/ez-executor.md +487 -0
  7. package/agents/ez-integration-checker.md +443 -0
  8. package/agents/ez-nyquist-auditor.md +176 -0
  9. package/agents/ez-phase-researcher.md +553 -0
  10. package/agents/ez-plan-checker.md +706 -0
  11. package/agents/ez-planner.md +1307 -0
  12. package/agents/ez-project-researcher.md +629 -0
  13. package/agents/ez-research-synthesizer.md +247 -0
  14. package/agents/ez-roadmapper.md +650 -0
  15. package/agents/ez-ui-auditor.md +441 -0
  16. package/agents/ez-ui-checker.md +302 -0
  17. package/agents/ez-ui-researcher.md +355 -0
  18. package/agents/ez-verifier.md +579 -0
  19. package/bin/install.js +2862 -0
  20. package/bin/update.js +214 -0
  21. package/commands/ez/add-phase.md +43 -0
  22. package/commands/ez/add-tests.md +41 -0
  23. package/commands/ez/add-todo.md +47 -0
  24. package/commands/ez/audit-milestone.md +36 -0
  25. package/commands/ez/autonomous.md +41 -0
  26. package/commands/ez/check-todos.md +45 -0
  27. package/commands/ez/cleanup.md +18 -0
  28. package/commands/ez/complete-milestone.md +136 -0
  29. package/commands/ez/debug.md +168 -0
  30. package/commands/ez/discuss-phase.md +90 -0
  31. package/commands/ez/execute-phase.md +41 -0
  32. package/commands/ez/health.md +22 -0
  33. package/commands/ez/help.md +22 -0
  34. package/commands/ez/insert-phase.md +32 -0
  35. package/commands/ez/join-discord.md +18 -0
  36. package/commands/ez/list-phase-assumptions.md +46 -0
  37. package/commands/ez/map-codebase.md +71 -0
  38. package/commands/ez/new-milestone.md +44 -0
  39. package/commands/ez/new-project.md +42 -0
  40. package/commands/ez/pause-work.md +38 -0
  41. package/commands/ez/plan-milestone-gaps.md +34 -0
  42. package/commands/ez/plan-phase.md +45 -0
  43. package/commands/ez/progress.md +24 -0
  44. package/commands/ez/quick.md +45 -0
  45. package/commands/ez/reapply-patches.md +124 -0
  46. package/commands/ez/remove-phase.md +31 -0
  47. package/commands/ez/research-phase.md +190 -0
  48. package/commands/ez/resume-work.md +40 -0
  49. package/commands/ez/set-profile.md +34 -0
  50. package/commands/ez/settings.md +36 -0
  51. package/commands/ez/stats.md +18 -0
  52. package/commands/ez/ui-phase.md +34 -0
  53. package/commands/ez/ui-review.md +32 -0
  54. package/commands/ez/update.md +37 -0
  55. package/commands/ez/validate-phase.md +35 -0
  56. package/commands/ez/verify-work.md +38 -0
  57. package/get-shit-done/bin/ez-tools.cjs +598 -0
  58. package/get-shit-done/bin/lib/assistant-adapter.cjs +205 -0
  59. package/get-shit-done/bin/lib/audit-exec.cjs +150 -0
  60. package/get-shit-done/bin/lib/auth.cjs +175 -0
  61. package/get-shit-done/bin/lib/circuit-breaker.cjs +118 -0
  62. package/get-shit-done/bin/lib/commands.cjs +666 -0
  63. package/get-shit-done/bin/lib/config.cjs +183 -0
  64. package/get-shit-done/bin/lib/core.cjs +495 -0
  65. package/get-shit-done/bin/lib/file-lock.cjs +236 -0
  66. package/get-shit-done/bin/lib/frontmatter.cjs +299 -0
  67. package/get-shit-done/bin/lib/fs-utils.cjs +153 -0
  68. package/get-shit-done/bin/lib/git-utils.cjs +203 -0
  69. package/get-shit-done/bin/lib/health-check.cjs +163 -0
  70. package/get-shit-done/bin/lib/index.cjs +113 -0
  71. package/get-shit-done/bin/lib/init.cjs +710 -0
  72. package/get-shit-done/bin/lib/logger.cjs +117 -0
  73. package/get-shit-done/bin/lib/milestone.cjs +241 -0
  74. package/get-shit-done/bin/lib/model-provider.cjs +146 -0
  75. package/get-shit-done/bin/lib/phase.cjs +908 -0
  76. package/get-shit-done/bin/lib/retry.cjs +119 -0
  77. package/get-shit-done/bin/lib/roadmap.cjs +305 -0
  78. package/get-shit-done/bin/lib/safe-exec.cjs +128 -0
  79. package/get-shit-done/bin/lib/safe-path.cjs +130 -0
  80. package/get-shit-done/bin/lib/state.cjs +721 -0
  81. package/get-shit-done/bin/lib/temp-file.cjs +239 -0
  82. package/get-shit-done/bin/lib/template.cjs +222 -0
  83. package/get-shit-done/bin/lib/test-file-lock.cjs +112 -0
  84. package/get-shit-done/bin/lib/test-graceful.cjs +93 -0
  85. package/get-shit-done/bin/lib/test-logger.cjs +60 -0
  86. package/get-shit-done/bin/lib/test-safe-exec.cjs +38 -0
  87. package/get-shit-done/bin/lib/test-safe-path.cjs +33 -0
  88. package/get-shit-done/bin/lib/test-temp-file.cjs +125 -0
  89. package/get-shit-done/bin/lib/timeout-exec.cjs +62 -0
  90. package/get-shit-done/bin/lib/verify.cjs +820 -0
  91. package/get-shit-done/references/checkpoints.md +776 -0
  92. package/get-shit-done/references/continuation-format.md +249 -0
  93. package/get-shit-done/references/decimal-phase-calculation.md +65 -0
  94. package/get-shit-done/references/git-integration.md +248 -0
  95. package/get-shit-done/references/git-planning-commit.md +38 -0
  96. package/get-shit-done/references/model-profile-resolution.md +34 -0
  97. package/get-shit-done/references/model-profiles.md +93 -0
  98. package/get-shit-done/references/phase-argument-parsing.md +61 -0
  99. package/get-shit-done/references/planning-config.md +200 -0
  100. package/get-shit-done/references/questioning.md +162 -0
  101. package/get-shit-done/references/tdd.md +263 -0
  102. package/get-shit-done/references/ui-brand.md +160 -0
  103. package/get-shit-done/references/verification-patterns.md +612 -0
  104. package/get-shit-done/templates/DEBUG.md +164 -0
  105. package/get-shit-done/templates/UAT.md +247 -0
  106. package/get-shit-done/templates/UI-SPEC.md +100 -0
  107. package/get-shit-done/templates/VALIDATION.md +76 -0
  108. package/get-shit-done/templates/codebase/architecture.md +255 -0
  109. package/get-shit-done/templates/codebase/concerns.md +310 -0
  110. package/get-shit-done/templates/codebase/conventions.md +307 -0
  111. package/get-shit-done/templates/codebase/integrations.md +280 -0
  112. package/get-shit-done/templates/codebase/stack.md +186 -0
  113. package/get-shit-done/templates/codebase/structure.md +285 -0
  114. package/get-shit-done/templates/codebase/testing.md +480 -0
  115. package/get-shit-done/templates/config.json +37 -0
  116. package/get-shit-done/templates/context.md +352 -0
  117. package/get-shit-done/templates/continue-here.md +78 -0
  118. package/get-shit-done/templates/copilot-instructions.md +7 -0
  119. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  120. package/get-shit-done/templates/discovery.md +146 -0
  121. package/get-shit-done/templates/milestone-archive.md +123 -0
  122. package/get-shit-done/templates/milestone.md +115 -0
  123. package/get-shit-done/templates/phase-prompt.md +610 -0
  124. package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  125. package/get-shit-done/templates/project.md +184 -0
  126. package/get-shit-done/templates/requirements.md +231 -0
  127. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  128. package/get-shit-done/templates/research-project/FEATURES.md +147 -0
  129. package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  130. package/get-shit-done/templates/research-project/STACK.md +120 -0
  131. package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  132. package/get-shit-done/templates/research.md +552 -0
  133. package/get-shit-done/templates/retrospective.md +54 -0
  134. package/get-shit-done/templates/roadmap.md +202 -0
  135. package/get-shit-done/templates/state.md +176 -0
  136. package/get-shit-done/templates/summary-complex.md +59 -0
  137. package/get-shit-done/templates/summary-minimal.md +41 -0
  138. package/get-shit-done/templates/summary-standard.md +48 -0
  139. package/get-shit-done/templates/summary.md +248 -0
  140. package/get-shit-done/templates/user-setup.md +311 -0
  141. package/get-shit-done/templates/verification-report.md +322 -0
  142. package/get-shit-done/workflows/add-phase.md +112 -0
  143. package/get-shit-done/workflows/add-tests.md +351 -0
  144. package/get-shit-done/workflows/add-todo.md +158 -0
  145. package/get-shit-done/workflows/audit-milestone.md +332 -0
  146. package/get-shit-done/workflows/autonomous.md +743 -0
  147. package/get-shit-done/workflows/check-todos.md +177 -0
  148. package/get-shit-done/workflows/cleanup.md +152 -0
  149. package/get-shit-done/workflows/complete-milestone.md +766 -0
  150. package/get-shit-done/workflows/diagnose-issues.md +219 -0
  151. package/get-shit-done/workflows/discovery-phase.md +289 -0
  152. package/get-shit-done/workflows/discuss-phase.md +762 -0
  153. package/get-shit-done/workflows/execute-phase.md +468 -0
  154. package/get-shit-done/workflows/execute-plan.md +483 -0
  155. package/get-shit-done/workflows/health.md +159 -0
  156. package/get-shit-done/workflows/help.md +492 -0
  157. package/get-shit-done/workflows/insert-phase.md +130 -0
  158. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  159. package/get-shit-done/workflows/map-codebase.md +316 -0
  160. package/get-shit-done/workflows/new-milestone.md +384 -0
  161. package/get-shit-done/workflows/new-project.md +1111 -0
  162. package/get-shit-done/workflows/node-repair.md +92 -0
  163. package/get-shit-done/workflows/pause-work.md +122 -0
  164. package/get-shit-done/workflows/plan-milestone-gaps.md +274 -0
  165. package/get-shit-done/workflows/plan-phase.md +651 -0
  166. package/get-shit-done/workflows/progress.md +382 -0
  167. package/get-shit-done/workflows/quick.md +610 -0
  168. package/get-shit-done/workflows/remove-phase.md +155 -0
  169. package/get-shit-done/workflows/research-phase.md +74 -0
  170. package/get-shit-done/workflows/resume-project.md +307 -0
  171. package/get-shit-done/workflows/set-profile.md +81 -0
  172. package/get-shit-done/workflows/settings.md +242 -0
  173. package/get-shit-done/workflows/stats.md +57 -0
  174. package/get-shit-done/workflows/transition.md +544 -0
  175. package/get-shit-done/workflows/ui-phase.md +290 -0
  176. package/get-shit-done/workflows/ui-review.md +157 -0
  177. package/get-shit-done/workflows/update.md +320 -0
  178. package/get-shit-done/workflows/validate-phase.md +167 -0
  179. package/get-shit-done/workflows/verify-phase.md +243 -0
  180. package/get-shit-done/workflows/verify-work.md +584 -0
  181. package/package.json +55 -0
  182. package/scripts/build-hooks.js +43 -0
  183. package/scripts/run-tests.cjs +29 -0
@@ -0,0 +1,177 @@
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 "$HOME/.claude/ez-agents/bin/ez-tools.cjs" init todos)
16
+ if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
17
+ ```
18
+
19
+ Extract from init JSON: `todo_count`, `todos`, `pending_dir`.
20
+
21
+ If `todo_count` is 0:
22
+ ```
23
+ No pending todos.
24
+
25
+ Todos are captured during work sessions with /ez:add-todo.
26
+
27
+ ---
28
+
29
+ Would you like to:
30
+
31
+ 1. Continue with current phase (/ez:progress)
32
+ 2. Add a todo now (/ez:add-todo)
33
+ ```
34
+
35
+ Exit.
36
+ </step>
37
+
38
+ <step name="parse_filter">
39
+ Check for area filter in arguments:
40
+ - `/ez:check-todos` → show all
41
+ - `/ez:check-todos api` → filter to area:api only
42
+ </step>
43
+
44
+ <step name="list_todos">
45
+ Use the `todos` array from init context (already filtered by area if specified).
46
+
47
+ Parse and display as numbered list:
48
+
49
+ ```
50
+ Pending Todos:
51
+
52
+ 1. Add auth token refresh (api, 2d ago)
53
+ 2. Fix modal z-index issue (ui, 1d ago)
54
+ 3. Refactor database connection pool (database, 5h ago)
55
+
56
+ ---
57
+
58
+ Reply with a number to view details, or:
59
+ - `/ez:check-todos [area]` to filter by area
60
+ - `q` to exit
61
+ ```
62
+
63
+ Format age as relative time from created timestamp.
64
+ </step>
65
+
66
+ <step name="handle_selection">
67
+ Wait for user to reply with a number.
68
+
69
+ If valid: load selected todo, proceed.
70
+ If invalid: "Invalid selection. Reply with a number (1-[N]) or `q` to exit."
71
+ </step>
72
+
73
+ <step name="load_context">
74
+ Read the todo file completely. Display:
75
+
76
+ ```
77
+ ## [title]
78
+
79
+ **Area:** [area]
80
+ **Created:** [date] ([relative time] ago)
81
+ **Files:** [list or "None"]
82
+
83
+ ### Problem
84
+ [problem section content]
85
+
86
+ ### Solution
87
+ [solution section content]
88
+ ```
89
+
90
+ If `files` field has entries, read and briefly summarize each.
91
+ </step>
92
+
93
+ <step name="check_roadmap">
94
+ Check for roadmap (can use init progress or directly check file existence):
95
+
96
+ If `.planning/ROADMAP.md` exists:
97
+ 1. Check if todo's area matches an upcoming phase
98
+ 2. Check if todo's files overlap with a phase's scope
99
+ 3. Note any match for action options
100
+ </step>
101
+
102
+ <step name="offer_actions">
103
+ **If todo maps to a roadmap phase:**
104
+
105
+ Use AskUserQuestion:
106
+ - header: "Action"
107
+ - question: "This todo relates to Phase [N]: [name]. What would you like to do?"
108
+ - options:
109
+ - "Work on it now" — move to done, start working
110
+ - "Add to phase plan" — include when planning Phase [N]
111
+ - "Brainstorm approach" — think through before deciding
112
+ - "Put it back" — return to list
113
+
114
+ **If no roadmap match:**
115
+
116
+ Use AskUserQuestion:
117
+ - header: "Action"
118
+ - question: "What would you like to do with this todo?"
119
+ - options:
120
+ - "Work on it now" — move to done, start working
121
+ - "Create a phase" — /ez:add-phase with this scope
122
+ - "Brainstorm approach" — think through before deciding
123
+ - "Put it back" — return to list
124
+ </step>
125
+
126
+ <step name="execute_action">
127
+ **Work on it now:**
128
+ ```bash
129
+ mv ".planning/todos/pending/[filename]" ".planning/todos/done/"
130
+ ```
131
+ Update STATE.md todo count. Present problem/solution context. Begin work or ask how to proceed.
132
+
133
+ **Add to phase plan:**
134
+ Note todo reference in phase planning notes. Keep in pending. Return to list or exit.
135
+
136
+ **Create a phase:**
137
+ Display: `/ez:add-phase [description from todo]`
138
+ Keep in pending. User runs command in fresh context.
139
+
140
+ **Brainstorm approach:**
141
+ Keep in pending. Start discussion about problem and approaches.
142
+
143
+ **Put it back:**
144
+ Return to list_todos step.
145
+ </step>
146
+
147
+ <step name="update_state">
148
+ After any action that changes todo count:
149
+
150
+ Re-run `init todos` to get updated count, then update STATE.md "### Pending Todos" section if exists.
151
+ </step>
152
+
153
+ <step name="git_commit">
154
+ If todo was moved to done/, commit the change:
155
+
156
+ ```bash
157
+ git rm --cached .planning/todos/pending/[filename] 2>/dev/null || true
158
+ node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" commit "docs: start work on todo - [title]" --files .planning/todos/done/[filename] .planning/STATE.md
159
+ ```
160
+
161
+ Tool respects `commit_docs` config and gitignore automatically.
162
+
163
+ Confirm: "Committed: docs: start work on todo - [title]"
164
+ </step>
165
+
166
+ </process>
167
+
168
+ <success_criteria>
169
+ - [ ] All pending todos listed with title, area, age
170
+ - [ ] Area filter applied if specified
171
+ - [ ] Selected todo's full context loaded
172
+ - [ ] Roadmap context checked for phase match
173
+ - [ ] Appropriate actions offered
174
+ - [ ] Selected action executed
175
+ - [ ] STATE.md updated if todo count changed
176
+ - [ ] Changes committed to git (if todo moved to done/)
177
+ </success_criteria>
@@ -0,0 +1,152 @@
1
+ <purpose>
2
+
3
+ Archive accumulated phase directories from completed milestones into `.planning/milestones/v{X.Y}-phases/`. Identifies which phases belong to each completed milestone, shows a dry-run summary, and moves directories on confirmation.
4
+
5
+ </purpose>
6
+
7
+ <required_reading>
8
+
9
+ 1. `.planning/MILESTONES.md`
10
+ 2. `.planning/milestones/` directory listing
11
+ 3. `.planning/phases/` directory listing
12
+
13
+ </required_reading>
14
+
15
+ <process>
16
+
17
+ <step name="identify_completed_milestones">
18
+
19
+ Read `.planning/MILESTONES.md` to identify completed milestones and their versions.
20
+
21
+ ```bash
22
+ cat .planning/MILESTONES.md
23
+ ```
24
+
25
+ Extract each milestone version (e.g., v1.0, v1.1, v2.0).
26
+
27
+ Check which milestone archive dirs already exist:
28
+
29
+ ```bash
30
+ ls -d .planning/milestones/v*-phases 2>/dev/null
31
+ ```
32
+
33
+ Filter to milestones that do NOT already have a `-phases` archive directory.
34
+
35
+ If all milestones already have phase archives:
36
+
37
+ ```
38
+ All completed milestones already have phase directories archived. Nothing to clean up.
39
+ ```
40
+
41
+ Stop here.
42
+
43
+ </step>
44
+
45
+ <step name="determine_phase_membership">
46
+
47
+ For each completed milestone without a `-phases` archive, read the archived ROADMAP snapshot to determine which phases belong to it:
48
+
49
+ ```bash
50
+ cat .planning/milestones/v{X.Y}-ROADMAP.md
51
+ ```
52
+
53
+ Extract phase numbers and names from the archived roadmap (e.g., Phase 1: Foundation, Phase 2: Auth).
54
+
55
+ Check which of those phase directories still exist in `.planning/phases/`:
56
+
57
+ ```bash
58
+ ls -d .planning/phases/*/ 2>/dev/null
59
+ ```
60
+
61
+ Match phase directories to milestone membership. Only include directories that still exist in `.planning/phases/`.
62
+
63
+ </step>
64
+
65
+ <step name="show_dry_run">
66
+
67
+ Present a dry-run summary for each milestone:
68
+
69
+ ```
70
+ ## Cleanup Summary
71
+
72
+ ### v{X.Y} — {Milestone Name}
73
+ These phase directories will be archived:
74
+ - 01-foundation/
75
+ - 02-auth/
76
+ - 03-core-features/
77
+
78
+ Destination: .planning/milestones/v{X.Y}-phases/
79
+
80
+ ### v{X.Z} — {Milestone Name}
81
+ These phase directories will be archived:
82
+ - 04-security/
83
+ - 05-hardening/
84
+
85
+ Destination: .planning/milestones/v{X.Z}-phases/
86
+ ```
87
+
88
+ If no phase directories remain to archive (all already moved or deleted):
89
+
90
+ ```
91
+ No phase directories found to archive. Phases may have been removed or archived previously.
92
+ ```
93
+
94
+ Stop here.
95
+
96
+ AskUserQuestion: "Proceed with archiving?" with options: "Yes — archive listed phases" | "Cancel"
97
+
98
+ If "Cancel": Stop.
99
+
100
+ </step>
101
+
102
+ <step name="archive_phases">
103
+
104
+ For each milestone, move phase directories:
105
+
106
+ ```bash
107
+ mkdir -p .planning/milestones/v{X.Y}-phases
108
+ ```
109
+
110
+ For each phase directory belonging to this milestone:
111
+
112
+ ```bash
113
+ mv .planning/phases/{dir} .planning/milestones/v{X.Y}-phases/
114
+ ```
115
+
116
+ Repeat for all milestones in the cleanup set.
117
+
118
+ </step>
119
+
120
+ <step name="commit">
121
+
122
+ Commit the changes:
123
+
124
+ ```bash
125
+ node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" commit "chore: archive phase directories from completed milestones" --files .planning/milestones/ .planning/phases/
126
+ ```
127
+
128
+ </step>
129
+
130
+ <step name="report">
131
+
132
+ ```
133
+ Archived:
134
+ {For each milestone}
135
+ - v{X.Y}: {N} phase directories → .planning/milestones/v{X.Y}-phases/
136
+
137
+ .planning/phases/ cleaned up.
138
+ ```
139
+
140
+ </step>
141
+
142
+ </process>
143
+
144
+ <success_criteria>
145
+
146
+ - [ ] All completed milestones without existing phase archives identified
147
+ - [ ] Phase membership determined from archived ROADMAP snapshots
148
+ - [ ] Dry-run summary shown and user confirmed
149
+ - [ ] Phase directories moved to `.planning/milestones/v{X.Y}-phases/`
150
+ - [ ] Changes committed
151
+
152
+ </success_criteria>