@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,123 @@
1
+ ---
2
+ description: Reapply local modifications after a Vector update
3
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
4
+ ---
5
+
6
+ <purpose>
7
+ After a Vector update wipes and reinstalls files, this command merges user's previously saved local modifications back into the new version. Uses intelligent comparison to handle cases where the upstream file also changed.
8
+ </purpose>
9
+
10
+ <process>
11
+
12
+ ## Step 1: Detect backed-up patches
13
+
14
+ Check for local patches directory:
15
+
16
+ ```bash
17
+ # Global install — detect runtime config directory
18
+ if [ -d "$HOME/.config/opencode/vector-local-patches" ]; then
19
+ PATCHES_DIR="$HOME/.config/opencode/vector-local-patches"
20
+ elif [ -d "$HOME/.opencode/vector-local-patches" ]; then
21
+ PATCHES_DIR="$HOME/.opencode/vector-local-patches"
22
+ elif [ -d "$HOME/.gemini/vector-local-patches" ]; then
23
+ PATCHES_DIR="$HOME/.gemini/vector-local-patches"
24
+ else
25
+ PATCHES_DIR="$HOME/.claude/vector-local-patches"
26
+ fi
27
+ # Local install fallback — check all runtime directories
28
+ if [ ! -d "$PATCHES_DIR" ]; then
29
+ for dir in .config/opencode .opencode .gemini .claude; do
30
+ if [ -d "./$dir/vector-local-patches" ]; then
31
+ PATCHES_DIR="./$dir/vector-local-patches"
32
+ break
33
+ fi
34
+ done
35
+ fi
36
+ ```
37
+
38
+ Read `backup-meta.json` from the patches directory.
39
+
40
+ **If no patches found:**
41
+ ```
42
+ No local patches found. Nothing to reapply.
43
+
44
+ Local patches are automatically saved when you run /vector:update
45
+ after modifying any Vector workflow, command, or agent files.
46
+ ```
47
+ Exit.
48
+
49
+ ## Step 2: Show patch summary
50
+
51
+ ```
52
+ ## Local Patches to Reapply
53
+
54
+ **Backed up from:** v{from_version}
55
+ **Current version:** {read VERSION file}
56
+ **Files modified:** {count}
57
+
58
+ | # | File | Status |
59
+ |---|------|--------|
60
+ | 1 | {file_path} | Pending |
61
+ | 2 | {file_path} | Pending |
62
+ ```
63
+
64
+ ## Step 3: Merge each file
65
+
66
+ For each file in `backup-meta.json`:
67
+
68
+ 1. **Read the backed-up version** (user's modified copy from `vector-local-patches/`)
69
+ 2. **Read the newly installed version** (current file after update)
70
+ 3. **Compare and merge:**
71
+
72
+ - If the new file is identical to the backed-up file: skip (modification was incorporated upstream)
73
+ - If the new file differs: identify the user's modifications and apply them to the new version
74
+
75
+ **Merge strategy:**
76
+ - Read both versions fully
77
+ - Identify sections the user added or modified (look for additions, not just differences from path replacement)
78
+ - Apply user's additions/modifications to the new version
79
+ - If a section the user modified was also changed upstream: flag as conflict, show both versions, ask user which to keep
80
+
81
+ 4. **Write merged result** to the installed location
82
+ 5. **Report status:**
83
+ - `Merged` — user modifications applied cleanly
84
+ - `Skipped` — modification already in upstream
85
+ - `Conflict` — user chose resolution
86
+
87
+ ## Step 4: Update manifest
88
+
89
+ After reapplying, regenerate the file manifest so future updates correctly detect these as user modifications:
90
+
91
+ ```bash
92
+ # The manifest will be regenerated on next /vector:update
93
+ # For now, just note which files were modified
94
+ ```
95
+
96
+ ## Step 5: Cleanup option
97
+
98
+ Ask user:
99
+ - "Keep patch backups for reference?" → preserve `vector-local-patches/`
100
+ - "Clean up patch backups?" → remove `vector-local-patches/` directory
101
+
102
+ ## Step 6: Report
103
+
104
+ ```
105
+ ## Patches Reapplied
106
+
107
+ | # | File | Status |
108
+ |---|------|--------|
109
+ | 1 | {file_path} | ✓ Merged |
110
+ | 2 | {file_path} | ○ Skipped (already upstream) |
111
+ | 3 | {file_path} | ⚠ Conflict resolved |
112
+
113
+ {count} file(s) updated. Your local modifications are active again.
114
+ ```
115
+
116
+ </process>
117
+
118
+ <success_criteria>
119
+ - [ ] All backed-up patches processed
120
+ - [ ] User modifications merged into new version
121
+ - [ ] Conflicts resolved with user input
122
+ - [ ] Status reported for each file
123
+ </success_criteria>
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: vector:remove-phase
3
+ description: Remove a future phase from roadmap and renumber subsequent phases
4
+ argument-hint: <phase-number>
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ ---
11
+ <objective>
12
+ Remove an unstarted future phase from the roadmap and renumber all subsequent phases to maintain a clean, linear sequence.
13
+
14
+ Purpose: Clean removal of work you've decided not to do, without polluting context with cancelled/deferred markers.
15
+ Output: Phase deleted, all subsequent phases renumbered, git commit as historical record.
16
+ </objective>
17
+
18
+ <execution_context>
19
+ @~/.claude/core/workflows/remove-phase.md
20
+ </execution_context>
21
+
22
+ <context>
23
+ Phase: $ARGUMENTS
24
+
25
+ Roadmap and state are resolved in-workflow via `init phase-op` and targeted reads.
26
+ </context>
27
+
28
+ <process>
29
+ Execute the remove-phase workflow from @~/.claude/core/workflows/remove-phase.md end-to-end.
30
+ Preserve all validation gates (future phase check, work check), renumbering logic, and commit.
31
+ </process>
@@ -0,0 +1,190 @@
1
+ ---
2
+ name: vector:research-phase
3
+ description: Research how to implement a phase (standalone - usually use /vector:plan-phase instead)
4
+ argument-hint: "[phase]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Task
9
+ ---
10
+
11
+ <objective>
12
+ Research how to implement a phase. Spawns vector-phase-researcher agent with phase context.
13
+
14
+ **Note:** This is a standalone research command. For most workflows, use `/vector:plan-phase` which integrates research automatically.
15
+
16
+ **Use this command when:**
17
+ - You want to research without planning yet
18
+ - You want to re-research after planning is complete
19
+ - You need to investigate before deciding if a phase is feasible
20
+
21
+ **Orchestrator role:** Parse phase, validate against roadmap, check existing research, gather context, spawn researcher agent, present results.
22
+
23
+ **Why subagent:** Research burns context fast (WebSearch, Context7 queries, source verification). Fresh 200k context for investigation. Main context stays lean for user interaction.
24
+ </objective>
25
+
26
+ <context>
27
+ Phase number: $ARGUMENTS (required)
28
+
29
+ Normalize phase input in step 1 before any directory lookups.
30
+ </context>
31
+
32
+ <process>
33
+
34
+ ## 0. Initialize Context
35
+
36
+ ```bash
37
+ INIT=$(node "$HOME/.claude/core/bin/vector-tools.cjs" init phase-op "$ARGUMENTS")
38
+ if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
39
+ ```
40
+
41
+ Extract from init JSON: `phase_dir`, `phase_number`, `phase_name`, `phase_found`, `commit_docs`, `has_research`, `state_path`, `requirements_path`, `context_path`, `research_path`.
42
+
43
+ Resolve researcher model:
44
+ ```bash
45
+ RESEARCHER_MODEL=$(node "$HOME/.claude/core/bin/vector-tools.cjs" resolve-model vector-phase-researcher --raw)
46
+ ```
47
+
48
+ ## 1. Validate Phase
49
+
50
+ ```bash
51
+ PHASE_INFO=$(node "$HOME/.claude/core/bin/vector-tools.cjs" roadmap get-phase "${phase_number}")
52
+ ```
53
+
54
+ **If `found` is false:** Error and exit. **If `found` is true:** Extract `phase_number`, `phase_name`, `goal` from JSON.
55
+
56
+ ## 2. Check Existing Research
57
+
58
+ ```bash
59
+ ls .planning/phases/${PHASE}-*/RESEARCH.md 2>/dev/null
60
+ ```
61
+
62
+ **If exists:** Offer: 1) Update research, 2) View existing, 3) Skip. Wait for response.
63
+
64
+ **If doesn't exist:** Continue.
65
+
66
+ ## 3. Gather Phase Context
67
+
68
+ Use paths from INIT (do not inline file contents in orchestrator context):
69
+ - `requirements_path`
70
+ - `context_path`
71
+ - `state_path`
72
+
73
+ Present summary with phase description and what files the researcher will load.
74
+
75
+ ## 4. Spawn vector-phase-researcher Agent
76
+
77
+ Research modes: ecosystem (default), feasibility, implementation, comparison.
78
+
79
+ ```markdown
80
+ <research_type>
81
+ Phase Research — investigating HOW to implement a specific phase well.
82
+ </research_type>
83
+
84
+ <key_insight>
85
+ The question is NOT "which library should I use?"
86
+
87
+ The question is: "What do I not know that I don't know?"
88
+
89
+ For this phase, discover:
90
+ - What's the established architecture pattern?
91
+ - What libraries form the standard stack?
92
+ - What problems do people commonly hit?
93
+ - What's SOTA vs what Claude's training thinks is SOTA?
94
+ - What should NOT be hand-rolled?
95
+ </key_insight>
96
+
97
+ <objective>
98
+ Research implementation approach for Phase {phase_number}: {phase_name}
99
+ Mode: ecosystem
100
+ </objective>
101
+
102
+ <files_to_read>
103
+ - {requirements_path} (Requirements)
104
+ - {context_path} (Phase context from discuss-phase, if exists)
105
+ - {state_path} (Prior project decisions and blockers)
106
+ </files_to_read>
107
+
108
+ <additional_context>
109
+ **Phase description:** {phase_description}
110
+ </additional_context>
111
+
112
+ <downstream_consumer>
113
+ Your RESEARCH.md will be loaded by `/vector:plan-phase` which uses specific sections:
114
+ - `## Standard Stack` → Plans use these libraries
115
+ - `## Architecture Patterns` → Task structure follows these
116
+ - `## Don't Hand-Roll` → Tasks NEVER build custom solutions for listed problems
117
+ - `## Common Pitfalls` → Verification steps check for these
118
+ - `## Code Examples` → Task actions reference these patterns
119
+
120
+ Be prescriptive, not exploratory. "Use X" not "Consider X or Y."
121
+ </downstream_consumer>
122
+
123
+ <quality_gate>
124
+ Before declaring complete, verify:
125
+ - [ ] All domains investigated (not just some)
126
+ - [ ] Negative claims verified with official docs
127
+ - [ ] Multiple sources for critical claims
128
+ - [ ] Confidence levels assigned honestly
129
+ - [ ] Section names match what plan-phase expects
130
+ </quality_gate>
131
+
132
+ <output>
133
+ Write to: .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md
134
+ </output>
135
+ ```
136
+
137
+ ```
138
+ Task(
139
+ prompt=filled_prompt,
140
+ subagent_type="vector-phase-researcher",
141
+ model="{researcher_model}",
142
+ description="Research Phase {phase}"
143
+ )
144
+ ```
145
+
146
+ ## 5. Handle Agent Return
147
+
148
+ **`## RESEARCH COMPLETE`:** Display summary, offer: Plan phase, Dig deeper, Review full, Done.
149
+
150
+ **`## CHECKPOINT REACHED`:** Present to user, get response, spawn continuation.
151
+
152
+ **`## RESEARCH INCONCLUSIVE`:** Show what was attempted, offer: Add context, Try different mode, Manual.
153
+
154
+ ## 6. Spawn Continuation Agent
155
+
156
+ ```markdown
157
+ <objective>
158
+ Continue research for Phase {phase_number}: {phase_name}
159
+ </objective>
160
+
161
+ <prior_state>
162
+ <files_to_read>
163
+ - .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md (Existing research)
164
+ </files_to_read>
165
+ </prior_state>
166
+
167
+ <checkpoint_response>
168
+ **Type:** {checkpoint_type}
169
+ **Response:** {user_response}
170
+ </checkpoint_response>
171
+ ```
172
+
173
+ ```
174
+ Task(
175
+ prompt=continuation_prompt,
176
+ subagent_type="vector-phase-researcher",
177
+ model="{researcher_model}",
178
+ description="Continue research Phase {phase}"
179
+ )
180
+ ```
181
+
182
+ </process>
183
+
184
+ <success_criteria>
185
+ - [ ] Phase validated against roadmap
186
+ - [ ] Existing research checked
187
+ - [ ] vector-phase-researcher spawned with context
188
+ - [ ] Checkpoints handled correctly
189
+ - [ ] User knows next steps
190
+ </success_criteria>
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: vector:resume-work
3
+ description: Resume work from previous session with full context restoration
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ - Write
8
+ - AskUserQuestion
9
+ - SlashCommand
10
+ ---
11
+
12
+ <objective>
13
+ Restore complete project context and resume work seamlessly from previous session.
14
+
15
+ Routes to the resume-project workflow which handles:
16
+
17
+ - STATE.md loading (or reconstruction if missing)
18
+ - Checkpoint detection (.continue-here files)
19
+ - Incomplete work detection (PLAN without SUMMARY)
20
+ - Status presentation
21
+ - Context-aware next action routing
22
+ </objective>
23
+
24
+ <execution_context>
25
+ @~/.claude/core/workflows/resume-project.md
26
+ </execution_context>
27
+
28
+ <process>
29
+ **Follow the resume-project workflow** from `@~/.claude/core/workflows/resume-project.md`.
30
+
31
+ The workflow handles all resumption logic including:
32
+
33
+ 1. Project existence verification
34
+ 2. STATE.md loading or reconstruction
35
+ 3. Checkpoint and incomplete work detection
36
+ 4. Visual status presentation
37
+ 5. Context-aware option offering (checks CONTEXT.md before suggesting plan vs discuss)
38
+ 6. Routing to appropriate next command
39
+ 7. Session continuity updates
40
+ </process>
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: vector:set-profile
3
+ description: Switch model profile for Vector agents (quality/balanced/budget/inherit)
4
+ argument-hint: <profile (quality|balanced|budget|inherit)>
5
+ model: haiku
6
+ allowed-tools:
7
+ - Bash
8
+ ---
9
+
10
+ Show the following output to the user verbatim, with no extra commentary:
11
+
12
+ !`node "$HOME/.claude/core/bin/vector-tools.cjs" config-set-model-profile $ARGUMENTS --raw`
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: vector:settings
3
+ description: Configure Vector workflow toggles and model profile
4
+ allowed-tools:
5
+ - Read
6
+ - Write
7
+ - Bash
8
+ - AskUserQuestion
9
+ ---
10
+
11
+ <objective>
12
+ Interactive configuration of Vector workflow agents and model profile via multi-question prompt.
13
+
14
+ Routes to the settings workflow which handles:
15
+ - Config existence ensuring
16
+ - Current settings reading and parsing
17
+ - Interactive 5-question prompt (model, research, plan_check, verifier, branching)
18
+ - Config merging and writing
19
+ - Confirmation display with quick command references
20
+ </objective>
21
+
22
+ <execution_context>
23
+ @~/.claude/core/workflows/settings.md
24
+ </execution_context>
25
+
26
+ <process>
27
+ **Follow the settings workflow** from `@~/.claude/core/workflows/settings.md`.
28
+
29
+ The workflow handles all logic including:
30
+ 1. Config file creation with defaults if missing
31
+ 2. Current config reading
32
+ 3. Interactive settings presentation with pre-selection
33
+ 4. Answer parsing and config merging
34
+ 5. File writing
35
+ 6. Confirmation display
36
+ </process>
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: vector:stats
3
+ description: Display project statistics — phases, plans, requirements, git metrics, and timeline
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ ---
8
+ <objective>
9
+ Display comprehensive project statistics including phase progress, plan execution metrics, requirements completion, git history stats, and project timeline.
10
+ </objective>
11
+
12
+ <execution_context>
13
+ @~/.claude/core/workflows/stats.md
14
+ </execution_context>
15
+
16
+ <process>
17
+ Execute the stats workflow from @~/.claude/core/workflows/stats.md end-to-end.
18
+ </process>
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: vector:ui-phase
3
+ description: Generate UI design contract (UI-SPEC.md) for frontend phases
4
+ argument-hint: "[phase]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - Task
12
+ - WebFetch
13
+ - AskUserQuestion
14
+ - mcp__context7__*
15
+ ---
16
+ <objective>
17
+ Create a UI design contract (UI-SPEC.md) for a frontend phase.
18
+ Orchestrates vector-ui-researcher and vector-ui-checker.
19
+ Flow: Validate → Research UI → Verify UI-SPEC → Done
20
+ </objective>
21
+
22
+ <execution_context>
23
+ @~/.claude/core/workflows/ui-phase.md
24
+ @~/.claude/core/references/ui-brand.md
25
+ </execution_context>
26
+
27
+ <context>
28
+ Phase number: $ARGUMENTS — optional, auto-detects next unplanned phase if omitted.
29
+ </context>
30
+
31
+ <process>
32
+ Execute @~/.claude/core/workflows/ui-phase.md end-to-end.
33
+ Preserve all workflow gates.
34
+ </process>
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: vector:ui-review
3
+ description: Retroactive 6-pillar visual audit of implemented frontend code
4
+ argument-hint: "[phase]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - Task
12
+ - AskUserQuestion
13
+ ---
14
+ <objective>
15
+ Conduct a retroactive 6-pillar visual audit. Produces UI-REVIEW.md with
16
+ graded assessment (1-4 per pillar). Works on any project.
17
+ Output: {phase_num}-UI-REVIEW.md
18
+ </objective>
19
+
20
+ <execution_context>
21
+ @~/.claude/core/workflows/ui-review.md
22
+ @~/.claude/core/references/ui-brand.md
23
+ </execution_context>
24
+
25
+ <context>
26
+ Phase: $ARGUMENTS — optional, defaults to last completed phase.
27
+ </context>
28
+
29
+ <process>
30
+ Execute @~/.claude/core/workflows/ui-review.md end-to-end.
31
+ Preserve all workflow gates.
32
+ </process>
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: vector:update
3
+ description: Update Vector to latest version with changelog display
4
+ allowed-tools:
5
+ - Bash
6
+ - AskUserQuestion
7
+ ---
8
+
9
+ <objective>
10
+ Check for Vector updates, install if available, and display what changed.
11
+
12
+ Routes to the update workflow which handles:
13
+ - Version detection (local vs global installation)
14
+ - npm version checking
15
+ - Changelog fetching and display
16
+ - User confirmation with clean install warning
17
+ - Update execution and cache clearing
18
+ - Restart reminder
19
+ </objective>
20
+
21
+ <execution_context>
22
+ @~/.claude/core/workflows/update.md
23
+ </execution_context>
24
+
25
+ <process>
26
+ **Follow the update workflow** from `@~/.claude/core/workflows/update.md`.
27
+
28
+ The workflow handles all logic including:
29
+ 1. Installed version detection (local/global)
30
+ 2. Latest version checking via npm
31
+ 3. Version comparison
32
+ 4. Changelog fetching and extraction
33
+ 5. Clean install warning display
34
+ 6. User confirmation
35
+ 7. Update execution
36
+ 8. Cache clearing
37
+ </process>
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: vector:validate-phase
3
+ description: Retroactively audit and fill Nyquist validation gaps for a completed phase
4
+ argument-hint: "[phase number]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Task
13
+ - AskUserQuestion
14
+ ---
15
+ <objective>
16
+ Audit Nyquist validation coverage for a completed phase. Three states:
17
+ - (A) VALIDATION.md exists — audit and fill gaps
18
+ - (B) No VALIDATION.md, SUMMARY.md exists — reconstruct from artifacts
19
+ - (C) Phase not executed — exit with guidance
20
+
21
+ Output: updated VALIDATION.md + generated test files.
22
+ </objective>
23
+
24
+ <execution_context>
25
+ @~/.claude/core/workflows/validate-phase.md
26
+ </execution_context>
27
+
28
+ <context>
29
+ Phase: $ARGUMENTS — optional, defaults to last completed phase.
30
+ </context>
31
+
32
+ <process>
33
+ Execute @~/.claude/core/workflows/validate-phase.md.
34
+ Preserve all workflow gates.
35
+ </process>
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: vector:verify-work
3
+ description: Validate built features through conversational UAT
4
+ argument-hint: "[phase number, e.g., '4']"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Glob
9
+ - Grep
10
+ - Edit
11
+ - Write
12
+ - Task
13
+ ---
14
+ <objective>
15
+ Validate built features through conversational testing with persistent state.
16
+
17
+ Purpose: Confirm what Claude built actually works from user's perspective. One test at a time, plain text responses, no interrogation. When issues are found, automatically diagnose, plan fixes, and prepare for execution.
18
+
19
+ Output: {phase_num}-UAT.md tracking all test results. If issues found: diagnosed gaps, verified fix plans ready for /vector:execute-phase
20
+ </objective>
21
+
22
+ <execution_context>
23
+ @~/.claude/core/workflows/verify-work.md
24
+ @~/.claude/core/templates/UAT.md
25
+ </execution_context>
26
+
27
+ <context>
28
+ Phase: $ARGUMENTS (optional)
29
+ - If provided: Test specific phase (e.g., "4")
30
+ - If not provided: Check for active sessions or prompt for phase
31
+
32
+ Context files are resolved inside the workflow (`init verify-work`) and delegated via `<files_to_read>` blocks.
33
+ </context>
34
+
35
+ <process>
36
+ Execute the verify-work workflow from @~/.claude/core/workflows/verify-work.md end-to-end.
37
+ Preserve all workflow gates (session management, test presentation, diagnosis, fix planning, routing).
38
+ </process>