@mobiman/vector 1.1.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 (225) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +117 -0
  3. package/agents/vector-codebase-mapper.md +770 -0
  4. package/agents/vector-debugger.md +1338 -0
  5. package/agents/vector-executor.md +487 -0
  6. package/agents/vector-integration-checker.md +443 -0
  7. package/agents/vector-nyquist-auditor.md +176 -0
  8. package/agents/vector-phase-researcher.md +553 -0
  9. package/agents/vector-plan-checker.md +706 -0
  10. package/agents/vector-planner.md +1307 -0
  11. package/agents/vector-project-researcher.md +629 -0
  12. package/agents/vector-research-synthesizer.md +247 -0
  13. package/agents/vector-roadmapper.md +650 -0
  14. package/agents/vector-ui-auditor.md +439 -0
  15. package/agents/vector-ui-checker.md +300 -0
  16. package/agents/vector-ui-researcher.md +353 -0
  17. package/agents/vector-verifier.md +579 -0
  18. package/bin/install.cjs +2907 -0
  19. package/bin/install.cjs.map +1 -0
  20. package/bin/install.cts +3103 -0
  21. package/bin/install.d.cts +3 -0
  22. package/bin/install.d.cts.map +1 -0
  23. package/commands/vector/add-phase.md +43 -0
  24. package/commands/vector/add-tests.md +41 -0
  25. package/commands/vector/add-todo.md +47 -0
  26. package/commands/vector/audit-milestone.md +36 -0
  27. package/commands/vector/autonomous.md +41 -0
  28. package/commands/vector/check-todos.md +45 -0
  29. package/commands/vector/cleanup.md +18 -0
  30. package/commands/vector/complete-milestone.md +136 -0
  31. package/commands/vector/debug.md +168 -0
  32. package/commands/vector/discuss-phase.md +90 -0
  33. package/commands/vector/do.md +30 -0
  34. package/commands/vector/execute-phase.md +41 -0
  35. package/commands/vector/health.md +22 -0
  36. package/commands/vector/help.md +22 -0
  37. package/commands/vector/insert-phase.md +32 -0
  38. package/commands/vector/join-discord.md +18 -0
  39. package/commands/vector/list-phase-assumptions.md +46 -0
  40. package/commands/vector/map-codebase.md +71 -0
  41. package/commands/vector/new-milestone.md +44 -0
  42. package/commands/vector/new-project.md +42 -0
  43. package/commands/vector/pause-work.md +38 -0
  44. package/commands/vector/plan-milestone-gaps.md +34 -0
  45. package/commands/vector/plan-phase.md +45 -0
  46. package/commands/vector/progress.md +24 -0
  47. package/commands/vector/quick.md +47 -0
  48. package/commands/vector/reapply-patches.md +123 -0
  49. package/commands/vector/remove-phase.md +31 -0
  50. package/commands/vector/research-phase.md +190 -0
  51. package/commands/vector/resume-work.md +40 -0
  52. package/commands/vector/set-profile.md +12 -0
  53. package/commands/vector/settings.md +36 -0
  54. package/commands/vector/stats.md +18 -0
  55. package/commands/vector/ui-phase.md +34 -0
  56. package/commands/vector/ui-review.md +32 -0
  57. package/commands/vector/update.md +37 -0
  58. package/commands/vector/validate-phase.md +35 -0
  59. package/commands/vector/verify-work.md +38 -0
  60. package/core/bin/lib/commands.cjs +641 -0
  61. package/core/bin/lib/commands.cjs.map +1 -0
  62. package/core/bin/lib/commands.cts +712 -0
  63. package/core/bin/lib/commands.d.cts +23 -0
  64. package/core/bin/lib/commands.d.cts.map +1 -0
  65. package/core/bin/lib/config.cjs +281 -0
  66. package/core/bin/lib/config.cjs.map +1 -0
  67. package/core/bin/lib/config.cts +301 -0
  68. package/core/bin/lib/config.d.cts +50 -0
  69. package/core/bin/lib/config.d.cts.map +1 -0
  70. package/core/bin/lib/core.cjs +483 -0
  71. package/core/bin/lib/core.cjs.map +1 -0
  72. package/core/bin/lib/core.cts +544 -0
  73. package/core/bin/lib/core.d.cts +96 -0
  74. package/core/bin/lib/core.d.cts.map +1 -0
  75. package/core/bin/lib/frontmatter.cjs +341 -0
  76. package/core/bin/lib/frontmatter.cjs.map +1 -0
  77. package/core/bin/lib/frontmatter.cts +295 -0
  78. package/core/bin/lib/frontmatter.d.cts +18 -0
  79. package/core/bin/lib/frontmatter.d.cts.map +1 -0
  80. package/core/bin/lib/init.cjs +674 -0
  81. package/core/bin/lib/init.cjs.map +1 -0
  82. package/core/bin/lib/init.cts +775 -0
  83. package/core/bin/lib/init.d.cts +16 -0
  84. package/core/bin/lib/init.d.cts.map +1 -0
  85. package/core/bin/lib/milestone.cjs +210 -0
  86. package/core/bin/lib/milestone.cjs.map +1 -0
  87. package/core/bin/lib/milestone.cts +241 -0
  88. package/core/bin/lib/milestone.d.cts +11 -0
  89. package/core/bin/lib/milestone.d.cts.map +1 -0
  90. package/core/bin/lib/model-profiles.cjs +62 -0
  91. package/core/bin/lib/model-profiles.cjs.map +1 -0
  92. package/core/bin/lib/model-profiles.cts +66 -0
  93. package/core/bin/lib/model-profiles.d.cts +33 -0
  94. package/core/bin/lib/model-profiles.d.cts.map +1 -0
  95. package/core/bin/lib/phase.cjs +713 -0
  96. package/core/bin/lib/phase.cjs.map +1 -0
  97. package/core/bin/lib/phase.cts +914 -0
  98. package/core/bin/lib/phase.d.cts +21 -0
  99. package/core/bin/lib/phase.d.cts.map +1 -0
  100. package/core/bin/lib/roadmap.cjs +246 -0
  101. package/core/bin/lib/roadmap.cjs.map +1 -0
  102. package/core/bin/lib/roadmap.cts +311 -0
  103. package/core/bin/lib/roadmap.d.cts +7 -0
  104. package/core/bin/lib/roadmap.d.cts.map +1 -0
  105. package/core/bin/lib/state.cjs +709 -0
  106. package/core/bin/lib/state.cjs.map +1 -0
  107. package/core/bin/lib/state.cts +718 -0
  108. package/core/bin/lib/state.d.cts +47 -0
  109. package/core/bin/lib/state.d.cts.map +1 -0
  110. package/core/bin/lib/template.cjs +220 -0
  111. package/core/bin/lib/template.cjs.map +1 -0
  112. package/core/bin/lib/template.cts +229 -0
  113. package/core/bin/lib/template.d.cts +15 -0
  114. package/core/bin/lib/template.d.cts.map +1 -0
  115. package/core/bin/lib/verify.cjs +824 -0
  116. package/core/bin/lib/verify.cjs.map +1 -0
  117. package/core/bin/lib/verify.cts +829 -0
  118. package/core/bin/lib/verify.d.cts +17 -0
  119. package/core/bin/lib/verify.d.cts.map +1 -0
  120. package/core/bin/vector-tools.cjs +641 -0
  121. package/core/bin/vector-tools.cjs.map +1 -0
  122. package/core/bin/vector-tools.cts +603 -0
  123. package/core/bin/vector-tools.d.cts +128 -0
  124. package/core/bin/vector-tools.d.cts.map +1 -0
  125. package/core/references/checkpoints.md +776 -0
  126. package/core/references/continuation-format.md +249 -0
  127. package/core/references/decimal-phase-calculation.md +65 -0
  128. package/core/references/git-integration.md +248 -0
  129. package/core/references/git-planning-commit.md +38 -0
  130. package/core/references/model-profile-resolution.md +36 -0
  131. package/core/references/model-profiles.md +101 -0
  132. package/core/references/phase-argument-parsing.md +61 -0
  133. package/core/references/planning-config.md +200 -0
  134. package/core/references/questioning.md +162 -0
  135. package/core/references/tdd.md +263 -0
  136. package/core/references/ui-brand.md +160 -0
  137. package/core/references/verification-patterns.md +612 -0
  138. package/core/templates/DEBUG.md +164 -0
  139. package/core/templates/UAT.md +247 -0
  140. package/core/templates/UI-SPEC.md +100 -0
  141. package/core/templates/VALIDATION.md +76 -0
  142. package/core/templates/codebase/architecture.md +255 -0
  143. package/core/templates/codebase/concerns.md +310 -0
  144. package/core/templates/codebase/conventions.md +307 -0
  145. package/core/templates/codebase/integrations.md +280 -0
  146. package/core/templates/codebase/stack.md +186 -0
  147. package/core/templates/codebase/structure.md +285 -0
  148. package/core/templates/codebase/testing.md +480 -0
  149. package/core/templates/config.json +37 -0
  150. package/core/templates/context.md +352 -0
  151. package/core/templates/continue-here.md +78 -0
  152. package/core/templates/copilot-instructions.md +7 -0
  153. package/core/templates/debug-subagent-prompt.md +91 -0
  154. package/core/templates/discovery.md +146 -0
  155. package/core/templates/milestone-archive.md +123 -0
  156. package/core/templates/milestone.md +115 -0
  157. package/core/templates/phase-prompt.md +610 -0
  158. package/core/templates/planner-subagent-prompt.md +117 -0
  159. package/core/templates/project.md +184 -0
  160. package/core/templates/requirements.md +231 -0
  161. package/core/templates/research-project/ARCHITECTURE.md +204 -0
  162. package/core/templates/research-project/FEATURES.md +147 -0
  163. package/core/templates/research-project/PITFALLS.md +200 -0
  164. package/core/templates/research-project/STACK.md +120 -0
  165. package/core/templates/research-project/SUMMARY.md +170 -0
  166. package/core/templates/research.md +552 -0
  167. package/core/templates/retrospective.md +54 -0
  168. package/core/templates/roadmap.md +202 -0
  169. package/core/templates/state.md +176 -0
  170. package/core/templates/summary-complex.md +59 -0
  171. package/core/templates/summary-minimal.md +41 -0
  172. package/core/templates/summary-standard.md +48 -0
  173. package/core/templates/summary.md +248 -0
  174. package/core/templates/user-setup.md +311 -0
  175. package/core/templates/verification-report.md +322 -0
  176. package/core/workflows/add-phase.md +112 -0
  177. package/core/workflows/add-tests.md +351 -0
  178. package/core/workflows/add-todo.md +158 -0
  179. package/core/workflows/audit-milestone.md +332 -0
  180. package/core/workflows/autonomous.md +743 -0
  181. package/core/workflows/check-todos.md +177 -0
  182. package/core/workflows/cleanup.md +152 -0
  183. package/core/workflows/complete-milestone.md +766 -0
  184. package/core/workflows/diagnose-issues.md +219 -0
  185. package/core/workflows/discovery-phase.md +289 -0
  186. package/core/workflows/discuss-phase.md +762 -0
  187. package/core/workflows/do.md +104 -0
  188. package/core/workflows/execute-phase.md +468 -0
  189. package/core/workflows/execute-plan.md +483 -0
  190. package/core/workflows/health.md +159 -0
  191. package/core/workflows/help.md +513 -0
  192. package/core/workflows/insert-phase.md +130 -0
  193. package/core/workflows/list-phase-assumptions.md +178 -0
  194. package/core/workflows/map-codebase.md +316 -0
  195. package/core/workflows/new-milestone.md +386 -0
  196. package/core/workflows/new-project.md +1113 -0
  197. package/core/workflows/node-repair.md +92 -0
  198. package/core/workflows/pause-work.md +122 -0
  199. package/core/workflows/plan-milestone-gaps.md +274 -0
  200. package/core/workflows/plan-phase.md +666 -0
  201. package/core/workflows/progress.md +382 -0
  202. package/core/workflows/quick.md +717 -0
  203. package/core/workflows/remove-phase.md +155 -0
  204. package/core/workflows/research-phase.md +74 -0
  205. package/core/workflows/resume-project.md +307 -0
  206. package/core/workflows/settings.md +243 -0
  207. package/core/workflows/stats.md +60 -0
  208. package/core/workflows/transition.md +544 -0
  209. package/core/workflows/ui-phase.md +290 -0
  210. package/core/workflows/ui-review.md +157 -0
  211. package/core/workflows/update.md +320 -0
  212. package/core/workflows/validate-phase.md +167 -0
  213. package/core/workflows/verify-phase.md +243 -0
  214. package/core/workflows/verify-work.md +584 -0
  215. package/package.json +55 -0
  216. package/scripts/build-hooks.cjs +38 -0
  217. package/scripts/build-hooks.cjs.map +1 -0
  218. package/scripts/build-hooks.cts +41 -0
  219. package/scripts/build-hooks.d.cts +6 -0
  220. package/scripts/build-hooks.d.cts.map +1 -0
  221. package/scripts/run-tests.cjs +28 -0
  222. package/scripts/run-tests.cjs.map +1 -0
  223. package/scripts/run-tests.cts +28 -0
  224. package/scripts/run-tests.d.cts +3 -0
  225. package/scripts/run-tests.d.cts.map +1 -0
@@ -0,0 +1,513 @@
1
+ <purpose>
2
+ Display the complete Vector command reference. Output ONLY the reference content. Do NOT add project-specific analysis, git status, next-step suggestions, or any commentary beyond the reference.
3
+ </purpose>
4
+
5
+ <reference>
6
+ # Vector Command Reference
7
+
8
+ **Vector** (Vector) creates hierarchical project plans optimized for solo agentic development with Claude Code.
9
+
10
+ ## Quick Start
11
+
12
+ 1. `/vector:new-project` - Initialize project (includes research, requirements, roadmap)
13
+ 2. `/vector:plan-phase 1` - Create detailed plan for first phase
14
+ 3. `/vector:execute-phase 1` - Execute the phase
15
+
16
+ ## Staying Updated
17
+
18
+ Vector evolves fast. Update periodically:
19
+
20
+ ```bash
21
+ npx vector@latest
22
+ ```
23
+
24
+ ## Core Workflow
25
+
26
+ ```
27
+ /vector:new-project → /vector:plan-phase → /vector:execute-phase → repeat
28
+ ```
29
+
30
+ ### Project Initialization
31
+
32
+ **`/vector:new-project`**
33
+ Initialize new project through unified flow.
34
+
35
+ One command takes you from idea to ready-for-planning:
36
+ - Deep questioning to understand what you're building
37
+ - Optional domain research (spawns 4 parallel researcher agents)
38
+ - Requirements definition with v1/v2/out-of-scope scoping
39
+ - Roadmap creation with phase breakdown and success criteria
40
+
41
+ Creates all `.planning/` artifacts:
42
+ - `PROJECT.md` — vision and requirements
43
+ - `config.json` — workflow mode (interactive/yolo)
44
+ - `research/` — domain research (if selected)
45
+ - `REQUIREMENTS.md` — scoped requirements with REQ-IDs
46
+ - `ROADMAP.md` — phases mapped to requirements
47
+ - `STATE.md` — project memory
48
+
49
+ Usage: `/vector:new-project`
50
+
51
+ **`/vector:map-codebase`**
52
+ Map an existing codebase for brownfield projects.
53
+
54
+ - Analyzes codebase with parallel Explore agents
55
+ - Creates `.planning/codebase/` with 7 focused documents
56
+ - Covers stack, architecture, structure, conventions, testing, integrations, concerns
57
+ - Use before `/vector:new-project` on existing codebases
58
+
59
+ Usage: `/vector:map-codebase`
60
+
61
+ ### Phase Planning
62
+
63
+ **`/vector:discuss-phase <number>`**
64
+ Help articulate your vision for a phase before planning.
65
+
66
+ - Captures how you imagine this phase working
67
+ - Creates CONTEXT.md with your vision, essentials, and boundaries
68
+ - Use when you have ideas about how something should look/feel
69
+ - Optional `--batch` asks 2-5 related questions at a time instead of one-by-one
70
+
71
+ Usage: `/vector:discuss-phase 2`
72
+ Usage: `/vector:discuss-phase 2 --batch`
73
+ Usage: `/vector:discuss-phase 2 --batch=3`
74
+
75
+ **`/vector:research-phase <number>`**
76
+ Comprehensive ecosystem research for niche/complex domains.
77
+
78
+ - Discovers standard stack, architecture patterns, pitfalls
79
+ - Creates RESEARCH.md with "how experts build this" knowledge
80
+ - Use for 3D, games, audio, shaders, ML, and other specialized domains
81
+ - Goes beyond "which library" to ecosystem knowledge
82
+
83
+ Usage: `/vector:research-phase 3`
84
+
85
+ **`/vector:list-phase-assumptions <number>`**
86
+ See what Claude is planning to do before it starts.
87
+
88
+ - Shows Claude's intended approach for a phase
89
+ - Lets you course-correct if Claude misunderstood your vision
90
+ - No files created - conversational output only
91
+
92
+ Usage: `/vector:list-phase-assumptions 3`
93
+
94
+ **`/vector:plan-phase <number>`**
95
+ Create detailed execution plan for a specific phase.
96
+
97
+ - Generates `.planning/phases/XX-phase-name/XX-YY-PLAN.md`
98
+ - Breaks phase into concrete, actionable tasks
99
+ - Includes verification criteria and success measures
100
+ - Multiple plans per phase supported (XX-01, XX-02, etc.)
101
+
102
+ Usage: `/vector:plan-phase 1`
103
+ Result: Creates `.planning/phases/01-foundation/01-01-PLAN.md`
104
+
105
+ **PRD Express Path:** Pass `--prd path/to/requirements.md` to skip discuss-phase entirely. Your PRD becomes locked decisions in CONTEXT.md. Useful when you already have clear acceptance criteria.
106
+
107
+ ### Execution
108
+
109
+ **`/vector:execute-phase <phase-number>`**
110
+ Execute all plans in a phase.
111
+
112
+ - Groups plans by wave (from frontmatter), executes waves sequentially
113
+ - Plans within each wave run in parallel via Task tool
114
+ - Verifies phase goal after all plans complete
115
+ - Updates REQUIREMENTS.md, ROADMAP.md, STATE.md
116
+
117
+ Usage: `/vector:execute-phase 5`
118
+
119
+ ### Smart Router
120
+
121
+ **`/vector:do <description>`**
122
+ Route freeform text to the right Vector command automatically.
123
+
124
+ - Analyzes natural language input to find the best matching Vector command
125
+ - Acts as a dispatcher — never does the work itself
126
+ - Resolves ambiguity by asking you to pick between top matches
127
+ - Use when you know what you want but don't know which `/vector:*` command to run
128
+
129
+ Usage: `/vector:do fix the login button`
130
+ Usage: `/vector:do refactor the auth system`
131
+ Usage: `/vector:do I want to start a new milestone`
132
+
133
+ ### Quick Mode
134
+
135
+ **`/vector:quick [--full] [--discuss] [--research]`**
136
+ Execute small, ad-hoc tasks with Vector guarantees but skip optional agents.
137
+
138
+ Quick mode uses the same system with a shorter path:
139
+ - Spawns planner + executor (skips researcher, checker, verifier by default)
140
+ - Quick tasks live in `.planning/quick/` separate from planned phases
141
+ - Updates STATE.md tracking (not ROADMAP.md)
142
+
143
+ Flags enable additional quality steps:
144
+ - `--discuss` — Lightweight discussion to surface gray areas before planning
145
+ - `--research` — Focused research agent investigates approaches before planning
146
+ - `--full` — Adds plan-checking (max 2 iterations) and post-execution verification
147
+
148
+ Flags are composable: `--discuss --research --full` gives the complete quality pipeline for a single task.
149
+
150
+ Usage: `/vector:quick`
151
+ Usage: `/vector:quick --research --full`
152
+ Result: Creates `.planning/quick/NNN-slug/PLAN.md`, `.planning/quick/NNN-slug/SUMMARY.md`
153
+
154
+ ### Roadmap Management
155
+
156
+ **`/vector:add-phase <description>`**
157
+ Add new phase to end of current milestone.
158
+
159
+ - Appends to ROADMAP.md
160
+ - Uses next sequential number
161
+ - Updates phase directory structure
162
+
163
+ Usage: `/vector:add-phase "Add admin dashboard"`
164
+
165
+ **`/vector:insert-phase <after> <description>`**
166
+ Insert urgent work as decimal phase between existing phases.
167
+
168
+ - Creates intermediate phase (e.g., 7.1 between 7 and 8)
169
+ - Useful for discovered work that must happen mid-milestone
170
+ - Maintains phase ordering
171
+
172
+ Usage: `/vector:insert-phase 7 "Fix critical auth bug"`
173
+ Result: Creates Phase 7.1
174
+
175
+ **`/vector:remove-phase <number>`**
176
+ Remove a future phase and renumber subsequent phases.
177
+
178
+ - Deletes phase directory and all references
179
+ - Renumbers all subsequent phases to close the gap
180
+ - Only works on future (unstarted) phases
181
+ - Git commit preserves historical record
182
+
183
+ Usage: `/vector:remove-phase 17`
184
+ Result: Phase 17 deleted, phases 18-20 become 17-19
185
+
186
+ ### Milestone Management
187
+
188
+ **`/vector:new-milestone <name>`**
189
+ Start a new milestone through unified flow.
190
+
191
+ - Deep questioning to understand what you're building next
192
+ - Optional domain research (spawns 4 parallel researcher agents)
193
+ - Requirements definition with scoping
194
+ - Roadmap creation with phase breakdown
195
+
196
+ Mirrors `/vector:new-project` flow for brownfield projects (existing PROJECT.md).
197
+
198
+ Usage: `/vector:new-milestone "v2.0 Features"`
199
+
200
+ **`/vector:complete-milestone <version>`**
201
+ Archive completed milestone and prepare for next version.
202
+
203
+ - Creates MILESTONES.md entry with stats
204
+ - Archives full details to milestones/ directory
205
+ - Creates git tag for the release
206
+ - Prepares workspace for next version
207
+
208
+ Usage: `/vector:complete-milestone 1.0.0`
209
+
210
+ ### Progress Tracking
211
+
212
+ **`/vector:progress`**
213
+ Check project status and intelligently route to next action.
214
+
215
+ - Shows visual progress bar and completion percentage
216
+ - Summarizes recent work from SUMMARY files
217
+ - Displays current position and what's next
218
+ - Lists key decisions and open issues
219
+ - Offers to execute next plan or create it if missing
220
+ - Detects 100% milestone completion
221
+
222
+ Usage: `/vector:progress`
223
+
224
+ ### Session Management
225
+
226
+ **`/vector:resume-work`**
227
+ Resume work from previous session with full context restoration.
228
+
229
+ - Reads STATE.md for project context
230
+ - Shows current position and recent progress
231
+ - Offers next actions based on project state
232
+
233
+ Usage: `/vector:resume-work`
234
+
235
+ **`/vector:pause-work`**
236
+ Create context handoff when pausing work mid-phase.
237
+
238
+ - Creates .continue-here file with current state
239
+ - Updates STATE.md session continuity section
240
+ - Captures in-progress work context
241
+
242
+ Usage: `/vector:pause-work`
243
+
244
+ ### Debugging
245
+
246
+ **`/vector:debug [issue description]`**
247
+ Systematic debugging with persistent state across context resets.
248
+
249
+ - Gathers symptoms through adaptive questioning
250
+ - Creates `.planning/debug/[slug].md` to track investigation
251
+ - Investigates using scientific method (evidence → hypothesis → test)
252
+ - Survives `/clear` — run `/vector:debug` with no args to resume
253
+ - Archives resolved issues to `.planning/debug/resolved/`
254
+
255
+ Usage: `/vector:debug "login button doesn't work"`
256
+ Usage: `/vector:debug` (resume active session)
257
+
258
+ ### Todo Management
259
+
260
+ **`/vector:add-todo [description]`**
261
+ Capture idea or task as todo from current conversation.
262
+
263
+ - Extracts context from conversation (or uses provided description)
264
+ - Creates structured todo file in `.planning/todos/pending/`
265
+ - Infers area from file paths for grouping
266
+ - Checks for duplicates before creating
267
+ - Updates STATE.md todo count
268
+
269
+ Usage: `/vector:add-todo` (infers from conversation)
270
+ Usage: `/vector:add-todo Add auth token refresh`
271
+
272
+ **`/vector:check-todos [area]`**
273
+ List pending todos and select one to work on.
274
+
275
+ - Lists all pending todos with title, area, age
276
+ - Optional area filter (e.g., `/vector:check-todos api`)
277
+ - Loads full context for selected todo
278
+ - Routes to appropriate action (work now, add to phase, brainstorm)
279
+ - Moves todo to done/ when work begins
280
+
281
+ Usage: `/vector:check-todos`
282
+ Usage: `/vector:check-todos api`
283
+
284
+ ### User Acceptance Testing
285
+
286
+ **`/vector:verify-work [phase]`**
287
+ Validate built features through conversational UAT.
288
+
289
+ - Extracts testable deliverables from SUMMARY.md files
290
+ - Presents tests one at a time (yes/no responses)
291
+ - Automatically diagnoses failures and creates fix plans
292
+ - Ready for re-execution if issues found
293
+
294
+ Usage: `/vector:verify-work 3`
295
+
296
+ ### Milestone Auditing
297
+
298
+ **`/vector:audit-milestone [version]`**
299
+ Audit milestone completion against original intent.
300
+
301
+ - Reads all phase VERIFICATION.md files
302
+ - Checks requirements coverage
303
+ - Spawns integration checker for cross-phase wiring
304
+ - Creates MILESTONE-AUDIT.md with gaps and tech debt
305
+
306
+ Usage: `/vector:audit-milestone`
307
+
308
+ **`/vector:plan-milestone-gaps`**
309
+ Create phases to close gaps identified by audit.
310
+
311
+ - Reads MILESTONE-AUDIT.md and groups gaps into phases
312
+ - Prioritizes by requirement priority (must/should/nice)
313
+ - Adds gap closure phases to ROADMAP.md
314
+ - Ready for `/vector:plan-phase` on new phases
315
+
316
+ Usage: `/vector:plan-milestone-gaps`
317
+
318
+ ### Configuration
319
+
320
+ **`/vector:settings`**
321
+ Configure workflow toggles and model profile interactively.
322
+
323
+ - Toggle researcher, plan checker, verifier agents
324
+ - Select model profile (quality/balanced/budget/inherit)
325
+ - Updates `.planning/config.json`
326
+
327
+ Usage: `/vector:settings`
328
+
329
+ **`/vector:set-profile <profile>`**
330
+ Quick switch model profile for Vector agents.
331
+
332
+ - `quality` — Opus everywhere except verification
333
+ - `balanced` — Opus for planning, Sonnet for execution (default)
334
+ - `budget` — Sonnet for writing, Haiku for research/verification
335
+ - `inherit` — Use current session model for all agents (OpenCode `/model`)
336
+
337
+ Usage: `/vector:set-profile budget`
338
+
339
+ ### Utility Commands
340
+
341
+ **`/vector:cleanup`**
342
+ Archive accumulated phase directories from completed milestones.
343
+
344
+ - Identifies phases from completed milestones still in `.planning/phases/`
345
+ - Shows dry-run summary before moving anything
346
+ - Moves phase dirs to `.planning/milestones/v{X.Y}-phases/`
347
+ - Use after multiple milestones to reduce `.planning/phases/` clutter
348
+
349
+ Usage: `/vector:cleanup`
350
+
351
+ **`/vector:help`**
352
+ Show this command reference.
353
+
354
+ **`/vector:update`**
355
+ Update Vector to latest version with changelog preview.
356
+
357
+ - Shows installed vs latest version comparison
358
+ - Displays changelog entries for versions you've missed
359
+ - Highlights breaking changes
360
+ - Confirms before running install
361
+ - Better than raw `npx vector`
362
+
363
+ Usage: `/vector:update`
364
+
365
+ **`/vector:join-discord`**
366
+ Join the Vector Discord community.
367
+
368
+ - Get help, share what you're building, stay updated
369
+ - Connect with other Vector users
370
+
371
+ Usage: `/vector:join-discord`
372
+
373
+ ## Files & Structure
374
+
375
+ ```
376
+ .planning/
377
+ ├── PROJECT.md # Project vision
378
+ ├── ROADMAP.md # Current phase breakdown
379
+ ├── STATE.md # Project memory & context
380
+ ├── RETROSPECTIVE.md # Living retrospective (updated per milestone)
381
+ ├── config.json # Workflow mode & gates
382
+ ├── todos/ # Captured ideas and tasks
383
+ │ ├── pending/ # Todos waiting to be worked on
384
+ │ └── done/ # Completed todos
385
+ ├── debug/ # Active debug sessions
386
+ │ └── resolved/ # Archived resolved issues
387
+ ├── milestones/
388
+ │ ├── v1.0-ROADMAP.md # Archived roadmap snapshot
389
+ │ ├── v1.0-REQUIREMENTS.md # Archived requirements
390
+ │ └── v1.0-phases/ # Archived phase dirs (via /vector:cleanup or --archive-phases)
391
+ │ ├── 01-foundation/
392
+ │ └── 02-core-features/
393
+ ├── codebase/ # Codebase map (brownfield projects)
394
+ │ ├── STACK.md # Languages, frameworks, dependencies
395
+ │ ├── ARCHITECTURE.md # Patterns, layers, data flow
396
+ │ ├── STRUCTURE.md # Directory layout, key files
397
+ │ ├── CONVENTIONS.md # Coding standards, naming
398
+ │ ├── TESTING.md # Test setup, patterns
399
+ │ ├── INTEGRATIONS.md # External services, APIs
400
+ │ └── CONCERNS.md # Tech debt, known issues
401
+ └── phases/
402
+ ├── 01-foundation/
403
+ │ ├── 01-01-PLAN.md
404
+ │ └── 01-01-SUMMARY.md
405
+ └── 02-core-features/
406
+ ├── 02-01-PLAN.md
407
+ └── 02-01-SUMMARY.md
408
+ ```
409
+
410
+ ## Workflow Modes
411
+
412
+ Set during `/vector:new-project`:
413
+
414
+ **Interactive Mode**
415
+
416
+ - Confirms each major decision
417
+ - Pauses at checkpoints for approval
418
+ - More guidance throughout
419
+
420
+ **YOLO Mode**
421
+
422
+ - Auto-approves most decisions
423
+ - Executes plans without confirmation
424
+ - Only stops for critical checkpoints
425
+
426
+ Change anytime by editing `.planning/config.json`
427
+
428
+ ## Planning Configuration
429
+
430
+ Configure how planning artifacts are managed in `.planning/config.json`:
431
+
432
+ **`planning.commit_docs`** (default: `true`)
433
+ - `true`: Planning artifacts committed to git (standard workflow)
434
+ - `false`: Planning artifacts kept local-only, not committed
435
+
436
+ When `commit_docs: false`:
437
+ - Add `.planning/` to your `.gitignore`
438
+ - Useful for OSS contributions, client projects, or keeping planning private
439
+ - All planning files still work normally, just not tracked in git
440
+
441
+ **`planning.search_gitignored`** (default: `false`)
442
+ - `true`: Add `--no-ignore` to broad ripgrep searches
443
+ - Only needed when `.planning/` is gitignored and you want project-wide searches to include it
444
+
445
+ Example config:
446
+ ```json
447
+ {
448
+ "planning": {
449
+ "commit_docs": false,
450
+ "search_gitignored": true
451
+ }
452
+ }
453
+ ```
454
+
455
+ ## Common Workflows
456
+
457
+ **Starting a new project:**
458
+
459
+ ```
460
+ /vector:new-project # Unified flow: questioning → research → requirements → roadmap
461
+ /clear
462
+ /vector:plan-phase 1 # Create plans for first phase
463
+ /clear
464
+ /vector:execute-phase 1 # Execute all plans in phase
465
+ ```
466
+
467
+ **Resuming work after a break:**
468
+
469
+ ```
470
+ /vector:progress # See where you left off and continue
471
+ ```
472
+
473
+ **Adding urgent mid-milestone work:**
474
+
475
+ ```
476
+ /vector:insert-phase 5 "Critical security fix"
477
+ /vector:plan-phase 5.1
478
+ /vector:execute-phase 5.1
479
+ ```
480
+
481
+ **Completing a milestone:**
482
+
483
+ ```
484
+ /vector:complete-milestone 1.0.0
485
+ /clear
486
+ /vector:new-milestone # Start next milestone (questioning → research → requirements → roadmap)
487
+ ```
488
+
489
+ **Capturing ideas during work:**
490
+
491
+ ```
492
+ /vector:add-todo # Capture from conversation context
493
+ /vector:add-todo Fix modal z-index # Capture with explicit description
494
+ /vector:check-todos # Review and work on todos
495
+ /vector:check-todos api # Filter by area
496
+ ```
497
+
498
+ **Debugging an issue:**
499
+
500
+ ```
501
+ /vector:debug "form submission fails silently" # Start debug session
502
+ # ... investigation happens, context fills up ...
503
+ /clear
504
+ /vector:debug # Resume from where you left off
505
+ ```
506
+
507
+ ## Getting Help
508
+
509
+ - Read `.planning/PROJECT.md` for project vision
510
+ - Read `.planning/STATE.md` for current context
511
+ - Check `.planning/ROADMAP.md` for phase status
512
+ - Run `/vector:progress` to check where you're up to
513
+ </reference>
@@ -0,0 +1,130 @@
1
+ <purpose>
2
+ Insert a decimal phase for urgent work discovered mid-milestone between existing integer phases. Uses decimal numbering (72.1, 72.2, etc.) to preserve the logical sequence of planned phases while accommodating urgent insertions without renumbering the entire roadmap.
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="parse_arguments">
12
+ Parse the command arguments:
13
+ - First argument: integer phase number to insert after
14
+ - Remaining arguments: phase description
15
+
16
+ Example: `/vector:insert-phase 72 Fix critical auth bug`
17
+ -> after = 72
18
+ -> description = "Fix critical auth bug"
19
+
20
+ If arguments missing:
21
+
22
+ ```
23
+ ERROR: Both phase number and description required
24
+ Usage: /vector:insert-phase <after> <description>
25
+ Example: /vector:insert-phase 72 Fix critical auth bug
26
+ ```
27
+
28
+ Exit.
29
+
30
+ Validate first argument is an integer.
31
+ </step>
32
+
33
+ <step name="init_context">
34
+ Load phase operation context:
35
+
36
+ ```bash
37
+ INIT=$(node "$HOME/.claude/core/bin/vector-tools.cjs" init phase-op "${after_phase}")
38
+ if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
39
+ ```
40
+
41
+ Check `roadmap_exists` from init JSON. If false:
42
+ ```
43
+ ERROR: No roadmap found (.planning/ROADMAP.md)
44
+ ```
45
+ Exit.
46
+ </step>
47
+
48
+ <step name="insert_phase">
49
+ **Delegate the phase insertion to vector-tools:**
50
+
51
+ ```bash
52
+ RESULT=$(node "$HOME/.claude/core/bin/vector-tools.cjs" phase insert "${after_phase}" "${description}")
53
+ ```
54
+
55
+ The CLI handles:
56
+ - Verifying target phase exists in ROADMAP.md
57
+ - Calculating next decimal phase number (checking existing decimals on disk)
58
+ - Generating slug from description
59
+ - Creating the phase directory (`.planning/phases/{N.M}-{slug}/`)
60
+ - Inserting the phase entry into ROADMAP.md after the target phase with (INSERTED) marker
61
+
62
+ Extract from result: `phase_number`, `after_phase`, `name`, `slug`, `directory`.
63
+ </step>
64
+
65
+ <step name="update_project_state">
66
+ Update STATE.md to reflect the inserted phase:
67
+
68
+ 1. Read `.planning/STATE.md`
69
+ 2. Under "## Accumulated Context" → "### Roadmap Evolution" add entry:
70
+ ```
71
+ - Phase {decimal_phase} inserted after Phase {after_phase}: {description} (URGENT)
72
+ ```
73
+
74
+ If "Roadmap Evolution" section doesn't exist, create it.
75
+ </step>
76
+
77
+ <step name="completion">
78
+ Present completion summary:
79
+
80
+ ```
81
+ Phase {decimal_phase} inserted after Phase {after_phase}:
82
+ - Description: {description}
83
+ - Directory: .planning/phases/{decimal-phase}-{slug}/
84
+ - Status: Not planned yet
85
+ - Marker: (INSERTED) - indicates urgent work
86
+
87
+ Roadmap updated: .planning/ROADMAP.md
88
+ Project state updated: .planning/STATE.md
89
+
90
+ ---
91
+
92
+ ## Next Up
93
+
94
+ **Phase {decimal_phase}: {description}** -- urgent insertion
95
+
96
+ `/vector:plan-phase {decimal_phase}`
97
+
98
+ <sub>`/clear` first -> fresh context window</sub>
99
+
100
+ ---
101
+
102
+ **Also available:**
103
+ - Review insertion impact: Check if Phase {next_integer} dependencies still make sense
104
+ - Review roadmap
105
+
106
+ ---
107
+ ```
108
+ </step>
109
+
110
+ </process>
111
+
112
+ <anti_patterns>
113
+
114
+ - Don't use this for planned work at end of milestone (use /vector:add-phase)
115
+ - Don't insert before Phase 1 (decimal 0.1 makes no sense)
116
+ - Don't renumber existing phases
117
+ - Don't modify the target phase content
118
+ - Don't create plans yet (that's /vector:plan-phase)
119
+ - Don't commit changes (user decides when to commit)
120
+ </anti_patterns>
121
+
122
+ <success_criteria>
123
+ Phase insertion is complete when:
124
+
125
+ - [ ] `vector-tools phase insert` executed successfully
126
+ - [ ] Phase directory created
127
+ - [ ] Roadmap updated with new phase entry (includes "(INSERTED)" marker)
128
+ - [ ] STATE.md updated with roadmap evolution note
129
+ - [ ] User informed of next steps and dependency implications
130
+ </success_criteria>