catalyst-os 0.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 (75) hide show
  1. package/.catalyst/main/project-config.yaml +11 -0
  2. package/.catalyst/spec-structure.yaml +241 -0
  3. package/.catalyst/specs/spec-config.yaml +109 -0
  4. package/.catalyst/standards/coding.md +187 -0
  5. package/.catalyst/standards/git-workflow.md +181 -0
  6. package/.catalyst/standards/testing.md +185 -0
  7. package/.catalyst/workflows/approve-spec.md +413 -0
  8. package/.catalyst/workflows/build-spec.md +527 -0
  9. package/.catalyst/workflows/build-task.md +434 -0
  10. package/.catalyst/workflows/catalyze-project.md +212 -0
  11. package/.catalyst/workflows/catalyze-spec.md +265 -0
  12. package/.catalyst/workflows/validate-spec.md +388 -0
  13. package/.claude/agents/alchemist.md +84 -0
  14. package/.claude/agents/arbiter.md +142 -0
  15. package/.claude/agents/catalyst.md +102 -0
  16. package/.claude/agents/enforcer.md +62 -0
  17. package/.claude/agents/forge-master.md +318 -0
  18. package/.claude/agents/forger.md +216 -0
  19. package/.claude/agents/inquisitor.md +70 -0
  20. package/.claude/agents/necromancer.md +84 -0
  21. package/.claude/agents/oracle.md +67 -0
  22. package/.claude/agents/scout.md +74 -0
  23. package/.claude/agents/scribe.md +163 -0
  24. package/.claude/agents/seer.md +108 -0
  25. package/.claude/agents/sentinel.md +58 -0
  26. package/.claude/agents/shaper.md +85 -0
  27. package/.claude/agents/smith.md +85 -0
  28. package/.claude/agents/surveyor.md +52 -0
  29. package/.claude/agents/watcher.md +69 -0
  30. package/.claude/commands/approve-spec.md +383 -0
  31. package/.claude/commands/build-spec.md +381 -0
  32. package/.claude/commands/build-task.md +210 -0
  33. package/.claude/commands/catalyze-project.md +112 -0
  34. package/.claude/commands/catalyze-spec.md +197 -0
  35. package/.claude/commands/mission.md +48 -0
  36. package/.claude/commands/reject-spec.md +125 -0
  37. package/.claude/commands/roadmap.md +62 -0
  38. package/.claude/commands/status-spec.md +289 -0
  39. package/.claude/commands/tech-stack.md +75 -0
  40. package/.claude/commands/update-spec.md +265 -0
  41. package/.claude/commands/validate-spec.md +265 -0
  42. package/.claude/settings.local.json +13 -0
  43. package/.claude/skills/catalysts/build-orchestration/SKILL.md +54 -0
  44. package/.claude/skills/catalysts/spec-orchestration/SKILL.md +52 -0
  45. package/.claude/skills/catalysts/validation-orchestration/SKILL.md +50 -0
  46. package/.claude/skills/guardians/browser-automation/SKILL.md +58 -0
  47. package/.claude/skills/guardians/code-review/SKILL.md +60 -0
  48. package/.claude/skills/guardians/dependency-audit/SKILL.md +63 -0
  49. package/.claude/skills/guardians/e2e-test-execution/SKILL.md +52 -0
  50. package/.claude/skills/guardians/lint-checking/SKILL.md +46 -0
  51. package/.claude/skills/guardians/secret-scanning/SKILL.md +69 -0
  52. package/.claude/skills/guardians/test-fixture-creation/SKILL.md +54 -0
  53. package/.claude/skills/guardians/unit-test-writing/SKILL.md +57 -0
  54. package/.claude/skills/seekers/codebase-analysis/SKILL.md +67 -0
  55. package/.claude/skills/seekers/context7-lookup/SKILL.md +59 -0
  56. package/.claude/skills/seekers/documentation-management/SKILL.md +190 -0
  57. package/.claude/skills/seekers/figma-analysis/SKILL.md +57 -0
  58. package/.claude/skills/seekers/github-research/SKILL.md +57 -0
  59. package/.claude/skills/seekers/reddit-research/SKILL.md +55 -0
  60. package/.claude/skills/seekers/requirement-elicitation/SKILL.md +53 -0
  61. package/.claude/skills/seekers/ui-pattern-hunting/SKILL.md +62 -0
  62. package/.claude/skills/seekers/web-research/SKILL.md +61 -0
  63. package/.claude/skills/technologists/ai-integration/SKILL.md +53 -0
  64. package/.claude/skills/technologists/api-development/SKILL.md +51 -0
  65. package/.claude/skills/technologists/migration-creation/SKILL.md +58 -0
  66. package/.claude/skills/technologists/ml-pipeline/SKILL.md +54 -0
  67. package/.claude/skills/technologists/react-development/SKILL.md +61 -0
  68. package/.claude/skills/technologists/schema-design/SKILL.md +54 -0
  69. package/.claude/skills/technologists/service-implementation/SKILL.md +49 -0
  70. package/.claude/skills/technologists/task-breakdown/SKILL.md +60 -0
  71. package/.claude/skills/technologists/ui-component-building/SKILL.md +58 -0
  72. package/.claude-plugin/plugin.json +43 -0
  73. package/README.md +440 -0
  74. package/bin/install.js +174 -0
  75. package/package.json +40 -0
@@ -0,0 +1,434 @@
1
+ # /build-task Workflow
2
+
3
+ > Execute focused tasks on existing codebases. Brownfield compatible.
4
+
5
+ ---
6
+
7
+ ## Quick Reference
8
+
9
+ ```
10
+ Command: /build-task "description"
11
+ /build-task @optional-spec "description"
12
+ Orchestrator: Main Agent
13
+ Agents: Enforcer (assessment) → Builder (implementation)
14
+ Output: .catalyst/tasks/YYYY-MM-DD-{slug}.md
15
+ ```
16
+
17
+ ---
18
+
19
+ ## When to Use
20
+
21
+ ```
22
+ ┌─────────────────────────────────────────────────────────────────────────────┐
23
+ │ COMMAND SELECTION GUIDE │
24
+ └─────────────────────────────────────────────────────────────────────────────┘
25
+
26
+ /catalyze-spec /build-task /patch
27
+ ───────────────── ───────────────── ─────────
28
+ New features Modifications Quick fixes
29
+ Major additions Stakeholder requests Typos
30
+ Architectural changes Refactoring Config tweaks
31
+ Needs research Post-completion changes
32
+
33
+ Full lifecycle Test-first assessment Minimal
34
+ ~hours to days ~1-4 hours ~minutes
35
+
36
+ Greenfield Brownfield compatible Any project
37
+ ```
38
+
39
+ ---
40
+
41
+ ## Workflow Diagram
42
+
43
+ ```
44
+ ┌─────────────────────────────────────────────────────────────────────────────┐
45
+ │ /build-task "change session timeout to 30 days" │
46
+ │ /build-task @2026-01-11-supabase-auth "change session timeout" │
47
+ └─────────────────────────────────────────────────────────────────────────────┘
48
+
49
+
50
+ ┌─────────────────────────────────────────┐
51
+ │ PHASE 0: CONTEXT GATHERING │
52
+ │ ────────────────────────── │
53
+ │ │
54
+ │ 1. Check for @spec reference │
55
+ │ • Yes → Read spec for context │
56
+ │ • No → Analyze codebase directly │
57
+ │ │
58
+ │ 2. Auto-detect related specs │
59
+ │ • Search .catalyst/specs/ │
60
+ │ • Add reference if found │
61
+ │ │
62
+ │ 3. Create task file │
63
+ └─────────────────────────────────────────┘
64
+
65
+
66
+ ┌─────────────────────────────────────────┐
67
+ │ PHASE 1: TEST ASSESSMENT │
68
+ │ ──────────────────────── │
69
+ │ │
70
+ │ 🛡️ ENFORCER analyzes: │
71
+ │ │
72
+ │ • Find related test files │
73
+ │ • Assess coverage of change area │
74
+ │ • Determine test strategy │
75
+ └─────────────────────────────────────────┘
76
+
77
+ ┌──────────────────┼──────────────────┐
78
+ ▼ ▼ ▼
79
+ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
80
+ │ COVERED │ │ MODIFY │ │ NEW │
81
+ │ │ │ │ │ │
82
+ │ Tests exist │ │ Tests exist │ │ No tests │
83
+ │ and cover │ │ but need │ │ cover this │
84
+ │ this change │ │ updating │ │ area │
85
+ │ │ │ │ │ │
86
+ │ Skip to │ │ Update tests │ │ Write tests │
87
+ │ Phase 3 │ │ first │ │ first │
88
+ └──────────────┘ └──────────────┘ └──────────────┘
89
+ │ │ │
90
+ │ ┌───────┴───────┐ │
91
+ │ ▼ ▼ │
92
+ │ ┌─────────────────────────────┐ │
93
+ │ │ PHASE 2: TESTS (TDD) │ │
94
+ │ │ ──────────────────── │ │
95
+ │ │ │ │
96
+ │ │ Enforcer writes/updates │ │
97
+ │ │ tests that must FAIL │ │
98
+ │ │ before implementation │ │
99
+ │ └─────────────────────────────┘ │
100
+ │ │ │
101
+ └──────────────────┼──────────────────┘
102
+
103
+ ┌─────────────────────────────────────────┐
104
+ │ PHASE 3: IMPLEMENTATION │
105
+ │ ─────────────────────── │
106
+ │ │
107
+ │ Appropriate builder implements: │
108
+ │ │
109
+ │ • Smith → Backend changes │
110
+ │ • Shaper → Frontend changes │
111
+ │ • Alchemist → Database changes │
112
+ └─────────────────────────────────────────┘
113
+
114
+
115
+ ┌─────────────────────────────────────────┐
116
+ │ PHASE 4: VERIFY & COMMIT │
117
+ │ ──────────────────────── │
118
+ │ │
119
+ │ • Run tests (must pass) │
120
+ │ • Run lint (no errors) │
121
+ │ • Update task file → COMPLETE │
122
+ │ • Commit with task reference │
123
+ └─────────────────────────────────────────┘
124
+
125
+
126
+ ┌─────────────────────────────────────────┐
127
+ │ OUTPUT │
128
+ └─────────────────────────────────────────┘
129
+ ```
130
+
131
+ ---
132
+
133
+ ## Phase Details
134
+
135
+ ### Phase 0: Context Gathering
136
+
137
+ ```
138
+ ┌─────────────────────────────────────────────────────────────────┐
139
+ │ 📍 CONTEXT GATHERING │
140
+ │ ──────────────────── │
141
+ │ │
142
+ │ Works with OR without existing specs (brownfield compatible) │
143
+ │ │
144
+ │ ┌──────────────────────────────────────────────────────────┐ │
145
+ │ │ WITH @spec reference: │ │
146
+ │ │ │ │
147
+ │ │ /build-task @2026-01-11-supabase-auth "change timeout" │ │
148
+ │ │ │ │
149
+ │ │ 1. Read spec.md from referenced spec │ │
150
+ │ │ 2. Understand original requirements │ │
151
+ │ │ 3. Link task to parent spec │ │
152
+ │ └──────────────────────────────────────────────────────────┘ │
153
+ │ │
154
+ │ ┌──────────────────────────────────────────────────────────┐ │
155
+ │ │ WITHOUT @spec reference: │ │
156
+ │ │ │ │
157
+ │ │ /build-task "add loading spinner to dashboard" │ │
158
+ │ │ │ │
159
+ │ │ 1. Analyze codebase directly │ │
160
+ │ │ 2. Search .catalyst/specs/ for related specs │ │
161
+ │ │ 3. If found → add as "Related Spec" (optional) │ │
162
+ │ │ 4. If not found → continue without │ │
163
+ │ └──────────────────────────────────────────────────────────┘ │
164
+ │ │
165
+ │ Output: .catalyst/tasks/YYYY-MM-DD-{slug}.md │
166
+ │ │
167
+ └─────────────────────────────────────────────────────────────────┘
168
+ ```
169
+
170
+ ### Phase 1: Test Assessment
171
+
172
+ ```
173
+ ┌─────────────────────────────────────────────────────────────────┐
174
+ │ 📍 TEST ASSESSMENT │
175
+ │ ────────────────── │
176
+ │ │
177
+ │ ⚠️ CRITICAL: Assess BEFORE assuming TDD is needed │
178
+ │ │
179
+ │ ┌──────────────────────────────────────────────────────────┐ │
180
+ │ │ 🛡️ ENFORCER analyzes existing tests │ │
181
+ │ │ │ │
182
+ │ │ 1. Search for test files related to change area │ │
183
+ │ │ 2. Analyze test coverage │ │
184
+ │ │ 3. Determine strategy: │ │
185
+ │ │ │ │
186
+ │ │ ┌────────────────────────────────────────────────────┐ │ │
187
+ │ │ │ Strategy │ Condition │ Next Step │ │ │
188
+ │ │ ├──────────┼────────────────────────┼───────────────┤ │ │
189
+ │ │ │ COVERED │ Tests fully cover this │ Skip to impl │ │ │
190
+ │ │ │ MODIFY │ Tests exist, need │ Update tests │ │ │
191
+ │ │ │ │ assertion updates │ first │ │ │
192
+ │ │ │ NEW │ No tests cover this │ Write tests │ │ │
193
+ │ │ │ │ area │ first │ │ │
194
+ │ │ └────────────────────────────────────────────────────┘ │ │
195
+ │ │ │ │
196
+ │ │ 4. Write assessment to task file │ │
197
+ │ └──────────────────────────────────────────────────────────┘ │
198
+ │ │
199
+ └─────────────────────────────────────────────────────────────────┘
200
+ ```
201
+
202
+ ### Phase 2: Tests (if MODIFY or NEW)
203
+
204
+ ```
205
+ ┌─────────────────────────────────────────────────────────────────┐
206
+ │ 📍 TESTS (Conditional) │
207
+ │ ────────────────────── │
208
+ │ │
209
+ │ ┌──────────────────────────────────────────────────────────┐ │
210
+ │ │ IF COVERED: │ │
211
+ │ │ │ │
212
+ │ │ ✅ Skip this phase │ │
213
+ │ │ Existing tests will validate the implementation │ │
214
+ │ └──────────────────────────────────────────────────────────┘ │
215
+ │ │
216
+ │ ┌──────────────────────────────────────────────────────────┐ │
217
+ │ │ IF MODIFY: │ │
218
+ │ │ │ │
219
+ │ │ 🛡️ ENFORCER updates existing tests: │ │
220
+ │ │ │ │
221
+ │ │ • Update assertions for new behavior │ │
222
+ │ │ • Tests must FAIL with current code │ │
223
+ │ │ • Tests must PASS after implementation │ │
224
+ │ │ │ │
225
+ │ │ Example: │ │
226
+ │ │ - expect(session.timeout).toBe(7) → toBe(30) │ │
227
+ │ └──────────────────────────────────────────────────────────┘ │
228
+ │ │
229
+ │ ┌──────────────────────────────────────────────────────────┐ │
230
+ │ │ IF NEW: │ │
231
+ │ │ │ │
232
+ │ │ 🛡️ ENFORCER writes new tests: │ │
233
+ │ │ │ │
234
+ │ │ • Create test file if needed │ │
235
+ │ │ • Write tests that FAIL │ │
236
+ │ │ • Tests must PASS after implementation │ │
237
+ │ └──────────────────────────────────────────────────────────┘ │
238
+ │ │
239
+ └─────────────────────────────────────────────────────────────────┘
240
+ ```
241
+
242
+ ### Phase 3: Implementation
243
+
244
+ ```
245
+ ┌─────────────────────────────────────────────────────────────────┐
246
+ │ 📍 IMPLEMENTATION │
247
+ │ ───────────────── │
248
+ │ │
249
+ │ Select builder based on change scope: │
250
+ │ │
251
+ │ ┌──────────────────────────────────────────────────────────┐ │
252
+ │ │ Change Type │ Builder │ Example │ │
253
+ │ ├─────────────────────┼─────────────┼──────────────────────┤ │
254
+ │ │ Backend/API │ ⚔️ Smith │ API endpoint change │ │
255
+ │ │ Frontend/UI │ 🎨 Shaper │ Component update │ │
256
+ │ │ Database │ 🧪 Alchemist │ Schema migration │ │
257
+ │ │ Multiple areas │ Multiple │ Full-stack change │ │
258
+ │ └──────────────────────────────────────────────────────────┘ │
259
+ │ │
260
+ │ Builder responsibilities: │
261
+ │ │
262
+ │ 1. Implement the change │
263
+ │ 2. Stay within task scope │
264
+ │ 3. Run tests after each change │
265
+ │ 4. Report completion │
266
+ │ │
267
+ └─────────────────────────────────────────────────────────────────┘
268
+ ```
269
+
270
+ ### Phase 4: Verify & Commit
271
+
272
+ ```
273
+ ┌─────────────────────────────────────────────────────────────────┐
274
+ │ 📍 VERIFY & COMMIT │
275
+ │ ────────────────── │
276
+ │ │
277
+ │ 1. Run all tests │
278
+ │ $ npm test │
279
+ │ Expected: All passing │
280
+ │ │
281
+ │ 2. Run lint │
282
+ │ $ npm run lint │
283
+ │ Expected: No errors │
284
+ │ │
285
+ │ 3. Update task file │
286
+ │ Status: COMPLETE │
287
+ │ Commit hash: abc1234 │
288
+ │ │
289
+ │ 4. Commit with structured message: │
290
+ │ │
291
+ │ ┌──────────────────────────────────────────────────────────┐ │
292
+ │ │ task(auth): change session timeout to 30 days │ │
293
+ │ │ │ │
294
+ │ │ Task: 2026-01-25-session-timeout │ │
295
+ │ │ Related: @2026-01-11-supabase-auth │ │
296
+ │ │ │ │
297
+ │ │ Changes: │ │
298
+ │ │ - Updated session config │ │
299
+ │ │ - Modified timeout assertions │ │
300
+ │ │ │ │
301
+ │ │ Tests: 12 passing │ │
302
+ │ └──────────────────────────────────────────────────────────┘ │
303
+ │ │
304
+ └─────────────────────────────────────────────────────────────────┘
305
+ ```
306
+
307
+ ---
308
+
309
+ ## Task File Structure
310
+
311
+ ```
312
+ .catalyst/
313
+ ├── tasks/ ← Independent task folder
314
+ │ ├── 2026-01-25-session-timeout.md
315
+ │ ├── 2026-02-03-add-remember-me.md
316
+ │ └── 2026-02-10-fix-oauth-redirect.md
317
+ ├── specs/ ← May not exist (brownfield)
318
+ │ └── ...
319
+ └── main/
320
+ └── ...
321
+ ```
322
+
323
+ ---
324
+
325
+ ## Task File Format
326
+
327
+ ```markdown
328
+ # Task: Change session timeout to 30 days
329
+
330
+ > Status: IN_PROGRESS | COMPLETE
331
+ > Created: 2026-01-25
332
+ > Requested by: Sales (John)
333
+ > Related Spec: @2026-01-11-supabase-auth (optional)
334
+
335
+ ## Description
336
+ Users are being logged out too frequently.
337
+ Change session timeout from 7 to 30 days.
338
+
339
+ ## Test Assessment
340
+ | Strategy | Reason |
341
+ |----------|--------|
342
+ | MODIFY | Existing tests check 7-day timeout, need to update assertions |
343
+
344
+ ### Affected Tests
345
+ - tests/auth/session.test.ts → Update timeout assertions
346
+
347
+ ## Changes Required
348
+ - [ ] Update session config in supabase.ts
349
+ - [ ] Update test assertions
350
+
351
+ ## Files Modified
352
+ - src/lib/supabase.ts
353
+ - tests/auth/session.test.ts
354
+
355
+ ## Commit
356
+ - Hash: abc1234
357
+ - Branch: task/session-timeout
358
+ ```
359
+
360
+ ---
361
+
362
+ ## Output
363
+
364
+ ### Success
365
+
366
+ ```
367
+ ✅ Task complete!
368
+
369
+ Task: 2026-01-25-session-timeout
370
+ Status: COMPLETE
371
+
372
+ Test Assessment: MODIFY
373
+ ├── Updated 1 test file
374
+ └── tests/auth/session.test.ts
375
+
376
+ Changes:
377
+ ├── src/lib/supabase.ts (session config)
378
+ └── tests/auth/session.test.ts (assertions)
379
+
380
+ Tests: 12 passing
381
+ Commit: abc1234
382
+
383
+ Related: @2026-01-11-supabase-auth
384
+
385
+ Created: .catalyst/tasks/2026-01-25-session-timeout.md
386
+
387
+ ➡️ Next: git push origin task/session-timeout
388
+ ```
389
+
390
+ ### Assessment Only
391
+
392
+ ```
393
+ 📋 Task assessed!
394
+
395
+ Task: 2026-01-25-session-timeout
396
+ Test Strategy: COVERED
397
+
398
+ Existing tests fully cover this change:
399
+ └── tests/auth/session.test.ts (line 45-67)
400
+
401
+ No new tests needed. Ready to implement.
402
+ ```
403
+
404
+ ---
405
+
406
+ ## Comparison with /build-spec
407
+
408
+ | Aspect | /build-spec | /build-task |
409
+ |--------|-------------|-------------|
410
+ | **Purpose** | Implement new spec | Modify existing code |
411
+ | **Requires spec** | Yes | No (optional reference) |
412
+ | **Test approach** | Always TDD | Assess first, then decide |
413
+ | **Documentation** | Full tasks.md | Lightweight task file |
414
+ | **Validation** | Full Guardians | Tests + Lint only |
415
+ | **Commit** | With spec reference | With task reference |
416
+ | **Brownfield** | Needs spec first | Works immediately |
417
+
418
+ ---
419
+
420
+ ## Execution Flow
421
+
422
+ ```
423
+ Context ──▶ Assess ──▶ Tests? ──▶ Implement ──▶ Verify ──▶ Commit
424
+ │ │ │ │ │ │
425
+ │ │ │ │ │ │
426
+ gather determine COVERED: builder run tests structured
427
+ context strategy skip executes + lint commit msg
428
+ │ │
429
+ │ MODIFY/NEW:
430
+ │ write/update
431
+ │ tests first
432
+
433
+ └── ENFORCER
434
+ ```
@@ -0,0 +1,212 @@
1
+ # /catalyze-project Workflow
2
+
3
+ > Initialize project foundation with mission, roadmap, and tech stack.
4
+
5
+ ---
6
+
7
+ ## Quick Reference
8
+
9
+ ```
10
+ Command: /catalyze-project
11
+ Orchestrator: Catalyst (Opus)
12
+ Agents: Oracle, Seer, Scribe
13
+ Output: .catalyst/main/
14
+ ```
15
+
16
+ ---
17
+
18
+ ## Workflow Diagram
19
+
20
+ ```
21
+ ┌─────────────────────────────────────────────────────────────────────────────┐
22
+ │ /catalyze-project │
23
+ └─────────────────────────────────────────────────────────────────────────────┘
24
+
25
+
26
+ ┌─────────────────────────────────────────────────────────────────────────────┐
27
+ │ 🎯 CATALYST (Orchestrator) │
28
+ │ ───────────────────────── │
29
+ │ Coordinates all phases and delegates to specialized agents │
30
+ └─────────────────────────────────────────────────────────────────────────────┘
31
+
32
+ ┌─────────────────────────┼─────────────────────────┐
33
+ ▼ ▼ ▼
34
+ ┌───────────────────┐ ┌───────────────────┐ ┌───────────────────┐
35
+ │ PHASE 1 │ │ PHASE 2 │ │ PHASE 3 │
36
+ │ DISCOVERY │ │ MISSION │ │ ROADMAP │
37
+ └───────────────────┘ └───────────────────┘ └───────────────────┘
38
+ │ │ │
39
+ ▼ ▼ ▼
40
+ ┌───────────────────┐ ┌───────────────────┐ ┌───────────────────┐
41
+ │ PHASE 4 │ │ │ │ │
42
+ │ TECH STACK │──▶│ OUTPUT │──▶│ NEXT STEPS │
43
+ └───────────────────┘ └───────────────────┘ └───────────────────┘
44
+ ```
45
+
46
+ ---
47
+
48
+ ## Phase Details
49
+
50
+ ### Phase 1: Discovery
51
+
52
+ ```
53
+ ┌─────────────────────────────────────────────────────────────────┐
54
+ │ 📍 DISCOVERY │
55
+ │ ───────────── │
56
+ │ │
57
+ │ Catalyst scans the codebase to understand: │
58
+ │ │
59
+ │ ├── Project structure │
60
+ │ ├── Package files (package.json, requirements.txt, etc.) │
61
+ │ ├── Existing documentation │
62
+ │ ├── Git history │
63
+ │ └── Configuration files │
64
+ │ │
65
+ └─────────────────────────────────────────────────────────────────┘
66
+ ```
67
+
68
+ ### Phase 2: Mission Creation
69
+
70
+ ```
71
+ ┌─────────────────────────────────────────────────────────────────┐
72
+ │ 📍 MISSION CREATION │
73
+ │ ──────────────────── │
74
+ │ │
75
+ │ ┌──────────────────────────────────────────────────────────┐ │
76
+ │ │ 🔮 ORACLE (Requirement Elicitation) │ │
77
+ │ │ │ │
78
+ │ │ Asks 3-5 clarifying questions: │ │
79
+ │ │ │ │
80
+ │ │ ❓ What problem does this project solve? │ │
81
+ │ │ ❓ Who are the primary users? │ │
82
+ │ │ ❓ What makes this unique? │ │
83
+ │ │ ❓ What are the key success metrics? │ │
84
+ │ │ │ │
85
+ │ │ ⏳ Waits for user responses │ │
86
+ │ └──────────────────────────────────────────────────────────┘ │
87
+ │ │ │
88
+ │ ▼ │
89
+ │ ┌──────────────────────────────────────────────────────────┐ │
90
+ │ │ 📜 SCRIBE (Documentation) │ │
91
+ │ │ │ │
92
+ │ │ Creates: .catalyst/main/mission.md │ │
93
+ │ │ │ │
94
+ │ │ • Project vision │ │
95
+ │ │ • Core value proposition │ │
96
+ │ │ • Target users │ │
97
+ │ │ • Success criteria │ │
98
+ │ └──────────────────────────────────────────────────────────┘ │
99
+ │ │
100
+ └─────────────────────────────────────────────────────────────────┘
101
+ ```
102
+
103
+ ### Phase 3: Roadmap Creation
104
+
105
+ ```
106
+ ┌─────────────────────────────────────────────────────────────────┐
107
+ │ 📍 ROADMAP CREATION │
108
+ │ ──────────────────── │
109
+ │ │
110
+ │ ┌──────────────────────────────────────────────────────────┐ │
111
+ │ │ 🔮 ORACLE │ │
112
+ │ │ │ │
113
+ │ │ Asks about: │ │
114
+ │ │ ❓ Planned features? │ │
115
+ │ │ ❓ Priorities? │ │
116
+ │ │ │ │
117
+ │ │ ⏳ Waits for user responses │ │
118
+ │ └──────────────────────────────────────────────────────────┘ │
119
+ │ │ │
120
+ │ ▼ │
121
+ │ ┌──────────────────────────────────────────────────────────┐ │
122
+ │ │ 📜 SCRIBE │ │
123
+ │ │ │ │
124
+ │ │ Creates: .catalyst/main/roadmap.md │ │
125
+ │ │ │ │
126
+ │ │ • Current State (existing features) │ │
127
+ │ │ • Short-Term Goals (1-3 months) │ │
128
+ │ │ • Medium-Term Goals (3-6 months) │ │
129
+ │ │ • Long-Term Vision (6+ months) │ │
130
+ │ │ • Changelog │ │
131
+ │ └──────────────────────────────────────────────────────────┘ │
132
+ │ │
133
+ └─────────────────────────────────────────────────────────────────┘
134
+ ```
135
+
136
+ ### Phase 4: Tech Stack Documentation
137
+
138
+ ```
139
+ ┌─────────────────────────────────────────────────────────────────┐
140
+ │ 📍 TECH STACK DOCUMENTATION │
141
+ │ ──────────────────────────── │
142
+ │ │
143
+ │ ┌──────────────────────────────────────────────────────────┐ │
144
+ │ │ 👁️ SEER (Codebase Analysis) │ │
145
+ │ │ │ │
146
+ │ │ Analyzes existing code: │ │
147
+ │ │ │ │
148
+ │ │ • Frontend framework and libraries │ │
149
+ │ │ • Backend framework and services │ │
150
+ │ │ • Database and storage │ │
151
+ │ │ • Infrastructure and deployment │ │
152
+ │ │ • Development tools │ │
153
+ │ │ • Key architectural decisions │ │
154
+ │ └──────────────────────────────────────────────────────────┘ │
155
+ │ │ │
156
+ │ ▼ │
157
+ │ ┌──────────────────────────────────────────────────────────┐ │
158
+ │ │ 📜 SCRIBE │ │
159
+ │ │ │ │
160
+ │ │ Creates: .catalyst/main/tech-stack.md │ │
161
+ │ │ │ │
162
+ │ │ • Frontend technologies │ │
163
+ │ │ • Backend technologies │ │
164
+ │ │ • Database/storage │ │
165
+ │ │ • Infrastructure │ │
166
+ │ │ • Development tools │ │
167
+ │ │ • Key architectural decisions │ │
168
+ │ └──────────────────────────────────────────────────────────┘ │
169
+ │ │
170
+ └─────────────────────────────────────────────────────────────────┘
171
+ ```
172
+
173
+ ---
174
+
175
+ ## Output
176
+
177
+ ```
178
+ ✅ Project initialized!
179
+
180
+ Created:
181
+ ├── .catalyst/main/mission.md ← Project vision & success criteria
182
+ ├── .catalyst/main/roadmap.md ← Feature roadmap with priorities
183
+ └── .catalyst/main/tech-stack.md ← Technology documentation
184
+
185
+ ➡️ Next: Run /catalyze-spec "feature description"
186
+ ```
187
+
188
+ ---
189
+
190
+ ## Agents Involved
191
+
192
+ | Agent | Role | Model | What They Do |
193
+ |-------|------|-------|--------------|
194
+ | **Catalyst** | Orchestrator | Opus | Coordinates all phases |
195
+ | **Oracle** | Requirements | Sonnet | Asks clarifying questions |
196
+ | **Seer** | Analysis | Sonnet | Analyzes existing codebase |
197
+ | **Scribe** | Documentation | Sonnet | Creates all markdown files |
198
+
199
+ ---
200
+
201
+ ## Execution Flow
202
+
203
+ ```
204
+ SEQUENTIAL EXECUTION (each phase depends on previous)
205
+
206
+ Discovery ──▶ Mission ──▶ Roadmap ──▶ Tech Stack ──▶ Done!
207
+ │ │ │ │
208
+ │ │ │ └── Seer + Scribe
209
+ │ │ └── Oracle + Scribe
210
+ │ └── Oracle + Scribe
211
+ └── Catalyst scans
212
+ ```