@devobsessed/code-captain 0.0.6 → 0.0.9

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 (44) hide show
  1. package/README.md +36 -37
  2. package/bin/install.js +1166 -983
  3. package/claude-code/agents/code-captain.md +31 -22
  4. package/copilot/README.md +26 -16
  5. package/copilot/chatmodes/Code Captain.chatmode.md +41 -25
  6. package/copilot/prompts/create-adr.prompt.md +6 -4
  7. package/copilot/prompts/create-spec.prompt.md +62 -45
  8. package/copilot/prompts/explain-code.prompt.md +7 -23
  9. package/copilot/prompts/new-command.prompt.md +60 -21
  10. package/copilot/prompts/research.prompt.md +14 -30
  11. package/copilot/prompts/status.prompt.md +13 -2
  12. package/copilot/prompts/swab.prompt.md +1 -0
  13. package/cursor/README.md +77 -88
  14. package/cursor/cc.mdc +13 -42
  15. package/cursor/commands/create-adr.md +7 -13
  16. package/cursor/commands/create-spec.md +73 -64
  17. package/cursor/commands/edit-spec.md +2 -15
  18. package/cursor/commands/execute-task.md +7 -15
  19. package/cursor/commands/explain-code.md +16 -35
  20. package/cursor/commands/initialize.md +19 -18
  21. package/cursor/commands/new-command.md +173 -81
  22. package/cursor/commands/plan-product.md +7 -13
  23. package/cursor/commands/research.md +5 -27
  24. package/cursor/commands/status.md +34 -23
  25. package/cursor/commands/swab.md +63 -12
  26. package/manifest.json +110 -229
  27. package/package.json +13 -4
  28. package/cursor/cc.md +0 -183
  29. package/cursor/integrations/azure-devops/create-azure-work-items.md +0 -403
  30. package/cursor/integrations/azure-devops/sync-azure-work-items.md +0 -486
  31. package/cursor/integrations/github/create-github-issues.md +0 -765
  32. package/cursor/integrations/github/scripts/create-issues-batch.sh +0 -272
  33. package/cursor/integrations/github/sync-github-issues.md +0 -237
  34. package/cursor/integrations/github/sync.md +0 -305
  35. package/windsurf/README.md +0 -254
  36. package/windsurf/rules/cc.md +0 -5
  37. package/windsurf/workflows/create-adr.md +0 -331
  38. package/windsurf/workflows/create-spec.md +0 -280
  39. package/windsurf/workflows/edit-spec.md +0 -273
  40. package/windsurf/workflows/execute-task.md +0 -276
  41. package/windsurf/workflows/explain-code.md +0 -292
  42. package/windsurf/workflows/initialize.md +0 -298
  43. package/windsurf/workflows/new-command.md +0 -321
  44. package/windsurf/workflows/status.md +0 -213
@@ -1,36 +1,34 @@
1
- # Enhanced Create Spec Command (cc: create-spec)
1
+ # Enhanced Create Spec Command (create-spec)
2
2
 
3
3
  ## Overview
4
4
 
5
5
  Generate comprehensive feature specifications using a contract-first approach that ensures complete alignment between developer and AI before creating any supporting files. This command eliminates presumptuous file creation by establishing a clear "contract" through structured clarification rounds.
6
6
 
7
- ## Usage
8
-
9
- ```bash
10
- cc: create-spec "rough feature description"
11
- ```
12
-
13
7
  ## Command Process
14
8
 
15
9
  ### Phase 1: Contract Establishment (No File Creation)
16
10
 
17
11
  **Mission Statement:**
12
+
18
13
  > Your goal is to turn my rough feature idea into a very clear work specification. You will deliver the complete spec package only after we both agree on the requirements contract. **Important: Challenge ideas that don't make technical or business sense - it's better to surface concerns early than build the wrong thing.**
19
14
 
20
15
  #### Step 1.1: Initial Context Scan
16
+
21
17
  - Scan existing `.code-captain/specs/` for related specifications
22
18
  - Analyze current codebase architecture and patterns using `codebase_search`
23
19
  - Load project context files (`tech-stack.md`, `code-style.md`, `objective.md`)
24
20
  - **Output:** Context summary (no files created yet)
25
21
 
26
22
  #### Step 1.2: Gap Analysis & Silent Enumeration
23
+
27
24
  **Internal Process (not shown to user):**
25
+
28
26
  - Silently list every missing fact, constraint, or requirement
29
27
  - Identify ambiguities in the initial description
30
28
  - Note potential integration points and dependencies
31
29
  - Catalog unknowns across these domains:
32
30
  - Purpose & business value
33
- - Target audience & user personas
31
+ - Target audience & user personas
34
32
  - Technical constraints & requirements
35
33
  - Success criteria & acceptance tests
36
34
  - Scope boundaries (in/out of scope)
@@ -41,9 +39,11 @@ cc: create-spec "rough feature description"
41
39
  - Risk tolerance & implementation approach
42
40
 
43
41
  #### Step 1.3: Structured Clarification Loop
42
+
44
43
  **Rules:**
44
+
45
45
  - Ask ONE focused question at a time
46
- - After each answer, re-scan codebase for new context if relevant
46
+ - After each answer, re-scan codebase for additional context if relevant
47
47
  - Continue until reaching 95% confidence on deliverable
48
48
  - Each question should target the highest-impact unknown
49
49
  - **Never declare "final question"** - let the conversation flow naturally
@@ -51,6 +51,7 @@ cc: create-spec "rough feature description"
51
51
  - **Challenge ideas that don't make technical or business sense** - better to surface concerns early than build the wrong thing
52
52
 
53
53
  **Critical Analysis Responsibility:**
54
+
54
55
  - If requirements seem technically infeasible with current architecture, explain why and suggest alternatives
55
56
  - If scope seems too large for a single feature, recommend breaking it down
56
57
  - If user requests conflict with existing patterns found in codebase, point out the inconsistency
@@ -58,42 +59,47 @@ cc: create-spec "rough feature description"
58
59
  - If performance/security/scalability concerns arise, surface them proactively
59
60
 
60
61
  **Pushback Phrasing Examples:**
62
+
61
63
  - "I see a potential issue with [requirement] because [technical reason]. Would [alternative approach] work better?"
62
64
  - "Based on your existing codebase, [proposed approach] might conflict with [existing pattern]. How should we handle this?"
63
65
  - "The scope you're describing sounds like it might be 3-4 separate features. Should we focus on [core piece] first?"
64
66
  - "I'm concerned that [requirement] could create [specific problem]. Have you considered [alternative]?"
65
67
 
66
68
  **Question Categories (examples):**
69
+
67
70
  - "What specific user problem does this solve, and who experiences it?"
68
- - "Should this integrate with [existing system found in codebase], or remain separate?"
71
+ - "Should this integrate with [existing system found in codebase], or remain separate?"
69
72
  - "What does 'success' look like - how will we measure if this works?"
70
73
  - "Are there performance requirements (response time, throughput, scale)?"
71
74
  - "What UI/UX constraints exist - web only, mobile responsive, accessibility needs?"
72
75
  - "What's your risk tolerance - prefer stable/proven approaches or cutting-edge solutions?"
73
76
 
74
77
  **Transition to Contract:**
78
+
75
79
  - When confidence is high, present contract without declaring it "final"
76
80
  - Use phrases like "I think I have enough to create a solid contract" or "Based on our discussion, here's what I understand"
77
81
  - Always leave room for more questions if needed
78
82
 
79
83
  #### Step 1.4: Echo Check (Contract Proposal)
84
+
80
85
  When confident, present a contract proposal with any concerns surfaced:
81
86
 
82
87
  **Format:**
88
+
83
89
  ```
84
90
  ## Specification Contract
85
91
 
86
92
  **Deliverable:** [One clear sentence describing what will be built]
87
93
 
88
- **Must Include:** [Critical requirement that makes this valuable]
94
+ **Must Include:** [Critical requirement that makes this valuable]
89
95
 
90
96
  **Hardest Constraint:** [Biggest technical/business limitation to navigate]
91
97
 
92
98
  **Success Criteria:** [How we'll know it's working correctly]
93
99
 
94
- **Scope Boundaries:**
95
- - In Scope: [2-3 key features]
96
- - Out of Scope: [2-3 things we won't build]
100
+ **Scope Boundaries:**
101
+ - Included: [2-3 key features]
102
+ - Excluded: [2-3 things we won't build]
97
103
 
98
104
  **⚠️ Technical Concerns (if any):**
99
105
  - [Specific concern about feasibility, performance, or architecture]
@@ -106,7 +112,7 @@ When confident, present a contract proposal with any concerns surfaced:
106
112
  ---
107
113
  Options:
108
114
  - Type 'yes' to lock this contract and create the spec package
109
- - Type 'edit: [your changes]' to modify the contract
115
+ - Type 'edit: [your changes]' to modify the contract
110
116
  - Type 'risks' to explore potential implementation risks in detail
111
117
  - Type 'blueprint' to see the planned folder structure and documents
112
118
  - Ask more questions if anything needs clarification
@@ -117,49 +123,32 @@ Options:
117
123
  **Triggered only after user confirms contract with 'yes'**
118
124
 
119
125
  #### Step 2.1: Initialize Tracking
126
+
120
127
  ```bash
121
128
  # Use todo_write to track creation process
122
- 1. Determine current date for folder naming
123
- 2. Create spec folder structure
124
- 3. Generate core specification document
125
- 4. Create user stories with acceptance criteria
126
- 5. Generate technical sub-specifications
127
- 6. Create implementation task breakdown
128
- 7. Present package for user review and validation
129
+ 1. Get current date and create spec folder structure
130
+ 2. Generate core specification document
131
+ 3. Create user stories with acceptance criteria
132
+ 4. Generate technical sub-specifications
133
+ 5. Create implementation task breakdown
134
+ 6. Present package for user review and validation
129
135
  ```
130
136
 
131
137
  #### Step 2.2: Determine Current Date
132
- **Objective:** Get current date for folder naming and document timestamps
133
-
134
- **Date Determination Process:**
135
-
136
- 1. **CREATE** directory if not exists: `.code-captain/specs/`
137
- 2. **CREATE** temporary file: `.code-captain/specs/.date-check`
138
- 3. **READ** file creation timestamp from filesystem
139
- 4. **EXTRACT** date in YYYY-MM-DD format
140
- 5. **DELETE** temporary file
141
- 6. **STORE** date in variable for folder naming
142
-
143
- **Fallback Method:** If file system method fails:
144
- 1. **STATE**: "I need to confirm today's date for the specification folder"
145
- 2. **ASK**: "What is today's date? (YYYY-MM-DD format)"
146
- 3. **WAIT** for user response
147
- 4. **VALIDATE** format matches `^\d{4}-\d{2}-\d{2}$`
148
- - year: 2024-2030
149
- - month: 01-12
150
- - day: 01-31
151
- 5. **STORE** date for folder naming
152
-
153
- **Error Handling:**
154
- - **IF** date_invalid: USE fallback_method
155
- - **IF** both_methods_fail: ERROR "Unable to determine current date"
138
+
139
+ Get current date by running: `npx @devobsessed/code-captain date`
140
+
141
+ This returns the current date in `YYYY-MM-DD` format for folder naming:
142
+ `.code-captain/specs/[DATE]-[feature-name]/`
156
143
 
157
144
  #### Step 2.3: Create Directory Structure
145
+
158
146
  **Generated folder (using determined date):**
147
+
159
148
  ```
160
149
  .code-captain/specs/[DATE]-{feature-name}/
161
150
  ├── spec.md # Main specification (from contract)
162
- ├── spec-lite.md # Condensed version for AI context
151
+ ├── spec-lite.md # Condensed version for AI context
163
152
  ├── user-stories/ # Individual user story files
164
153
  │ ├── README.md # Overview and progress tracking
165
154
  │ ├── story-1-{name}.md # Individual user story with focused tasks
@@ -169,12 +158,13 @@ Options:
169
158
  ├── technical-spec.md # Architecture & implementation details
170
159
  ├── database-schema.md # Database changes (if needed)
171
160
  ├── api-spec.md # API documentation (if needed)
172
- └── ui-wireframes.md # UI/UX specifications (if needed)
161
+ └── ui-wireframes.md # UI/UX specifications (if needed)
173
162
  ```
174
163
 
175
164
  #### Step 2.4: Generate Core Documents
176
165
 
177
166
  **spec.md** - Built directly from the locked contract:
167
+
178
168
  ```markdown
179
169
  # [Feature Name] Specification
180
170
 
@@ -183,46 +173,51 @@ Options:
183
173
  > Contract Locked: ✅
184
174
 
185
175
  ## Contract Summary
176
+
186
177
  [Echo check content verbatim]
187
178
 
188
179
  ## Detailed Requirements
180
+
189
181
  [Expanded from clarification responses]
190
182
 
191
183
  ## Implementation Approach
184
+
192
185
  [Technical strategy based on codebase analysis]
193
186
  ```
194
187
 
195
188
  **user-stories/ folder structure** - Individual user story files for better organization:
196
189
 
197
190
  **user-stories/README.md** - Overview and progress tracking:
191
+
198
192
  ```markdown
199
193
  # User Stories Overview
200
194
 
201
- > **Specification:** [Feature Name]
202
- > **Created:** [DATE]
203
- > **Status:** Planning
195
+ > **Specification:** [Feature Name] > **Created:** [DATE] > **Status:** Planning
204
196
 
205
197
  ## Stories Summary
206
198
 
207
- | Story | Title | Status | Tasks | Progress |
208
- |-------|-------|--------|-------|----------|
209
- | 1 | [Story title] | Not Started | 5 | 0/5 |
210
- | 2 | [Story title] | Not Started | 4 | 0/4 |
211
- | 3 | [Story title] | Not Started | 6 | 0/6 |
199
+ | Story | Title | Status | Tasks | Progress |
200
+ | ----- | ------------- | ----------- | ----- | -------- |
201
+ | 1 | [Story title] | Not Started | 5 | 0/5 |
202
+ | 2 | [Story title] | Not Started | 4 | 0/4 |
203
+ | 3 | [Story title] | Not Started | 6 | 0/6 |
212
204
 
213
205
  **Total Progress:** 0/15 tasks (0%)
214
206
 
215
207
  ## Story Dependencies
208
+
216
209
  - Story 2 depends on Story 1 completion
217
210
  - Story 3 can run parallel to Story 2
218
211
 
219
212
  ## Quick Links
213
+
220
214
  - [Story 1: User Login](./story-1-user-login.md)
221
215
  - [Story 2: Password Reset](./story-2-password-reset.md)
222
216
  - [Story 3: Profile Management](./story-3-profile-management.md)
223
217
  ```
224
218
 
225
219
  **user-stories/story-1-{name}.md** - Individual story files (max 5-7 tasks each):
220
+
226
221
  ```markdown
227
222
  # Story 1: [Title from contract deliverable]
228
223
 
@@ -231,27 +226,32 @@ Options:
231
226
  > **Dependencies:** None
232
227
 
233
228
  ## User Story
229
+
234
230
  **As a** [user type from clarification]
235
231
  **I want to** [action from contract]
236
232
  **So that** [value from contract must-include]
237
233
 
238
234
  ## Acceptance Criteria
235
+
239
236
  - [ ] Given [context], when [action], then [outcome]
240
237
  - [ ] Given [context], when [action], then [outcome]
241
238
  - [ ] Given [context], when [action], then [outcome]
242
239
 
243
240
  ## Implementation Tasks
241
+
244
242
  - [ ] 1.1 Write tests for [specific component]
245
243
  - [ ] 1.2 [Focused technical step]
246
- - [ ] 1.3 [Focused technical step]
244
+ - [ ] 1.3 [Focused technical step]
247
245
  - [ ] 1.4 [Focused technical step]
248
246
  - [ ] 1.5 Verify acceptance criteria are met
249
247
  - [ ] 1.6 Verify all tests pass
250
248
 
251
249
  ## Notes
250
+
252
251
  [Any specific technical considerations, risks, or dependencies for this story]
253
252
 
254
253
  ## Definition of Done
254
+
255
255
  - [ ] All tasks completed
256
256
  - [ ] All acceptance criteria met
257
257
  - [ ] Tests passing
@@ -275,6 +275,7 @@ Options:
275
275
  **user-stories/ folder** - Organized individual story files with focused task groups:
276
276
 
277
277
  **Structure Philosophy:**
278
+
278
279
  - Each user story gets its own file for better organization
279
280
  - Implementation tasks are kept small and focused (max 5-7 per story)
280
281
  - Complex stories are broken into multiple smaller stories
@@ -283,6 +284,7 @@ Options:
283
284
  - Each story follows TDD: test → implement → verify acceptance criteria
284
285
 
285
286
  **Benefits of Folder Structure:**
287
+
286
288
  - **Manageability**: Each file stays focused and readable
287
289
  - **Navigation**: Easy to find and work on specific stories
288
290
  - **Parallel Work**: Multiple developers can work on different stories
@@ -291,12 +293,14 @@ Options:
291
293
  - **Traceability**: Every technical task traces to user value
292
294
 
293
295
  **File Organization:**
296
+
294
297
  - **README.md**: Overview, progress summary, dependencies
295
298
  - **story-N-{name}.md**: Individual stories with focused tasks (5-7 tasks max)
296
299
  - **Story Naming**: Clear, descriptive names for easy identification
297
300
  - **Task Numbering**: N.1, N.2, N.3... within each story file
298
301
 
299
302
  **Task Breakdown Strategy:**
303
+
300
304
  - If a story would have >7 tasks, split into multiple stories
301
305
  - Each story should deliver standalone user value
302
306
  - Tasks within a story should be cohesive and related
@@ -306,12 +310,13 @@ Options:
306
310
  #### Step 2.7: Final Package Review & User Validation
307
311
 
308
312
  Present complete package with file references:
313
+
309
314
  ```
310
315
  ✅ Specification package created successfully!
311
316
 
312
317
  📁 .code-captain/specs/[DATE]-feature-name/
313
318
  ├── 📋 spec.md - Main specification document
314
- ├── 📝 spec-lite.md - AI context summary
319
+ ├── 📝 spec-lite.md - AI context summary
315
320
  ├── 👥 user-stories/ - Individual user story files
316
321
  │ ├── 📊 README.md - Overview and progress tracking
317
322
  │ ├── 📝 story-1-{name}.md - Focused story with 5-7 tasks
@@ -348,22 +353,26 @@ Once you're satisfied with the specification, I can help you start implementatio
348
353
  ## Key Improvements Over Original
349
354
 
350
355
  ### 1. Contract-First Approach
356
+
351
357
  - **No presumptuous file creation** - Nothing gets built until contract is locked
352
358
  - **Structured clarification** - One question at a time, building understanding
353
359
  - **Echo check validation** - Clear contract summary before proceeding
354
360
 
355
- ### 2. Codebase-Aware Questioning
361
+ ### 2. Codebase-Aware Questioning
362
+
356
363
  - **Context scanning between questions** - Each answer triggers fresh codebase analysis
357
364
  - **Integration-focused queries** - Questions shaped by what exists in the codebase
358
365
  - **Architecture consistency** - Recommendations align with existing patterns
359
366
 
360
367
  ### 3. User Control & Transparency
368
+
361
369
  - **Clear decision points** - User explicitly approves before file creation
362
- - **Risk assessment option** - Can explore implementation risks before committing
370
+ - **Risk assessment option** - Can explore implementation risks before committing
363
371
  - **Blueprint preview** - Can see planned structure before creation
364
372
  - **Edit capability** - Can modify contract before locking
365
373
 
366
374
  ### 4. Efficient Clarification Process
375
+
367
376
  - **Gap enumeration** - Systematically identifies all unknowns
368
377
  - **95% confidence threshold** - Stops asking when ready to deliver
369
378
  - **Token efficiency** - Focused questions, no verbose explanations during clarification
@@ -371,7 +380,7 @@ Once you're satisfied with the specification, I can help you start implementatio
371
380
  ## Example Usage Flow
372
381
 
373
382
  ```
374
- Developer: cc: create-spec "real-time multiplayer chat with blockchain integration"
383
+ Developer: /create-spec "real-time multiplayer chat with blockchain integration"
375
384
 
376
385
  Agent: I'm ready to help you create a comprehensive specification.
377
386
 
@@ -385,7 +394,7 @@ First question: You mentioned "real-time multiplayer chat with blockchain integr
385
394
 
386
395
  Developer: I want messages to be permanently stored and verifiable, plus users should pay crypto to send messages to prevent spam
387
396
 
388
- Agent: I understand the anti-spam goal, but I'm concerned about the user experience. If users have to wait 30+ seconds for transaction confirmation before each message appears, that breaks the "real-time" chat experience.
397
+ Agent: I understand the anti-spam goal, but I'm concerned about the user experience. If users have to wait 30+ seconds for transaction confirmation before each message appears, that breaks the "real-time" chat experience.
389
398
 
390
399
  Would a hybrid approach work better - immediate message delivery with blockchain settlement in the background? Or are you thinking of a different model where users pre-purchase message credits?
391
400
 
@@ -414,8 +423,8 @@ Agent: [Continues with more informed questions about the hybrid architecture...]
414
423
  **Success Criteria:** Messages appear instantly, spam is prevented via crypto payments, blockchain verification happens within 5 minutes
415
424
 
416
425
  **Scope Boundaries:**
417
- - In Scope: Real-time chat, wallet integration, background blockchain settlement
418
- - Out of Scope: Advanced chat features (file sharing, voice), custom token creation
426
+ - Included: Real-time chat, wallet integration, background blockchain settlement
427
+ - Excluded: Advanced chat features (file sharing, voice), custom token creation
419
428
 
420
429
  ---
421
430
  Options: [yes/edit/risks/blueprint]
@@ -1,22 +1,9 @@
1
- # Enhanced Edit Spec Command (cc: edit-spec)
1
+ # Enhanced Edit Spec Command (edit-spec)
2
2
 
3
3
  ## Overview
4
4
 
5
5
  Modify existing feature specifications using a contract-first approach that ensures complete alignment between developer and AI before updating any supporting files. This command prevents assumptions by establishing a clear "modification contract" through structured clarification rounds.
6
6
 
7
- ## Usage
8
-
9
- ```bash
10
- cc: edit-spec [spec-identifier] "proposed changes description"
11
- ```
12
-
13
- **Examples:**
14
- ```bash
15
- cc: edit-spec "user-authentication" "add social login options"
16
- cc: edit-spec "2024-01-15-payment-gateway" "change from Stripe to PayPal"
17
- cc: edit-spec "latest" "remove the mobile app requirement"
18
- ```
19
-
20
7
  ## Command Process
21
8
 
22
9
  ### Phase 1: Specification Loading & Change Contract (No File Modifications)
@@ -338,7 +325,7 @@ The original version is safely backed up in the backups folder. If you need to r
338
325
  ## Example Usage Flow
339
326
 
340
327
  ```
341
- Developer: cc: edit-spec "user-auth" "add biometric authentication"
328
+ Developer: /edit-spec "user-auth" "add biometric authentication"
342
329
 
343
330
  Agent: I found your user authentication specification from 2024-01-15. Let me load the current state...
344
331
 
@@ -1,17 +1,9 @@
1
- # Execute Task Command (cc: execute-task)
1
+ # Execute Task Command (execute-task)
2
2
 
3
3
  ## Overview
4
4
 
5
5
  Execute a specific task and its sub-tasks systematically following a Test-Driven Development (TDD) workflow. This command reads task specifications from `.code-captain/specs/` directories and implements features with comprehensive testing, following established code standards and best practices.
6
6
 
7
- ## Usage
8
-
9
- ```bash
10
- cc: execute-task
11
- ```
12
-
13
- **Note:** This command automatically detects and lists available task specifications for selection, or executes a specific task if context is clear.
14
-
15
7
  ## CRITICAL REQUIREMENT: 100% Test Pass Rate
16
8
 
17
9
  **⚠️ ZERO TOLERANCE FOR FAILING TESTS ⚠️**
@@ -77,7 +69,7 @@ Use `todo_write` to track the execution process:
77
69
  1. **If multiple specs exist**: Present selection menu with spec dates and story summaries
78
70
  2. **If single spec exists**: Show available stories and their tasks within that specification
79
71
  3. **If story/task specified**: Validate story exists and select specific task for execution
80
- 4. **If no specs exist**: Guide user to run `cc: create-spec` first
72
+ 4. **If no specs exist**: Guide user to run `/create-spec` first
81
73
 
82
74
  **Selection format:**
83
75
  ```
@@ -417,7 +409,7 @@ REQUIRED ACTIONS:
417
409
 
418
410
  **Specification dependency:**
419
411
 
420
- - Requires existing spec created by `cc: create-spec`
412
+ - Requires existing spec created by `/create-spec`
421
413
  - Uses story breakdown from `user-stories/` folder in spec directories
422
414
  - Loads individual story files: `user-stories/story-N-{name}.md`
423
415
  - Tracks progress in `user-stories/README.md`
@@ -431,8 +423,8 @@ REQUIRED ACTIONS:
431
423
 
432
424
  **Cross-command integration:**
433
425
 
434
- - Complements `cc: create-spec` for complete development workflow
435
- - Can trigger `cc: research` if unknown technologies encountered
426
+ - Complements `/create-spec` for complete development workflow
427
+ - Can trigger `/research` if unknown technologies encountered
436
428
  - Integrates with testing and validation workflows
437
429
 
438
430
  ## Quality Standards
@@ -464,7 +456,7 @@ REQUIRED ACTIONS:
464
456
 
465
457
  **Common failure scenarios:**
466
458
 
467
- - **No specifications found**: Guide to `cc: create-spec`
459
+ - **No specifications found**: Guide to `/create-spec`
468
460
  - **Test framework issues**: Provide setup guidance
469
461
  - **Implementation conflicts**: Suggest conflict resolution
470
462
  - **Performance issues**: Recommend optimization approaches
@@ -482,7 +474,7 @@ Update story status and notes section to document the blocking issue.
482
474
  **Resolution strategies:**
483
475
 
484
476
  1. Try alternative implementation approach
485
- 2. Research solution using `cc: research`
477
+ 2. Research solution using `/research`
486
478
  3. Break down task into smaller components
487
479
  4. Maximum 3 attempts before escalating or documenting as blocked
488
480
 
@@ -7,7 +7,7 @@ The `explain-code` command provides comprehensive, AI-powered explanations of co
7
7
  ## Command Syntax
8
8
 
9
9
  ```bash
10
- cc: explain-code [target]
10
+ /explain-code [target]
11
11
  ```
12
12
 
13
13
  ## Parameters
@@ -31,19 +31,19 @@ The command automatically:
31
31
 
32
32
  ```bash
33
33
  # Explain a specific function
34
- cc: explain-code calculateUserDiscount
34
+ /explain-code calculateUserDiscount
35
35
 
36
36
  # Explain a class
37
- cc: explain-code PaymentProcessor
37
+ /explain-code PaymentProcessor
38
38
 
39
39
  # Explain entire file
40
- cc: explain-code src/auth/AuthService.js
40
+ /explain-code src/auth/AuthService.js
41
41
 
42
42
  # Explain specific line range
43
- cc: explain-code "src/utils/helpers.js:45-78"
43
+ /explain-code "src/utils/helpers.js:45-78"
44
44
 
45
45
  # Explain currently selected code in IDE
46
- cc: explain-code current-selection
46
+ /explain-code current-selection
47
47
  ```
48
48
 
49
49
  ## Output Structure
@@ -139,39 +139,20 @@ Files are named using the format: `[DATE]-[target-name].md` where DATE is YYYY-M
139
139
 
140
140
  ## Auto-Save Behavior
141
141
 
142
- All explanations are automatically saved to `.code-captain/explanations/` using the format `[DATE]-[target-name].md`. The system uses the same date determination process as the research command to ensure consistent timestamps.
142
+ All explanations are automatically saved to `.code-captain/explanations/` using the format `[DATE]-[target-name].md`.
143
143
 
144
- ## Date Determination Process
144
+ Get current date by running: `npx @devobsessed/code-captain date`
145
145
 
146
- ### Primary Method: File System Timestamp
147
-
148
- 1. **CREATE** directory if not exists: `.code-captain/explanations/`
149
- 2. **CREATE** temporary file: `.code-captain/explanations/.date-check`
150
- 3. **READ** file creation timestamp from filesystem
151
- 4. **EXTRACT** date in YYYY-MM-DD format
152
- 5. **DELETE** temporary file
153
- 6. **STORE** date in variable for file naming
154
-
155
- ### Fallback Method: User Confirmation
156
-
157
- If file system method fails:
158
-
159
- 1. **STATE**: "I need to confirm today's date for the explanation file"
160
- 2. **ASK**: "What is today's date? (YYYY-MM-DD format)"
161
- 3. **WAIT** for user response
162
- 4. **VALIDATE** format matches `^\d{4}-\d{2}-\d{2}$`
163
- 5. **STORE** date for file naming
164
-
165
- **Example filename:** `.code-captain/explanations/2024-01-15-AuthenticationFlow.md`
146
+ **Example filename:** `.code-captain/explanations/2025-09-27-AuthenticationFlow.md`
166
147
 
167
148
  ## Integration Points
168
149
 
169
150
  ### With Other Commands
170
151
  ```bash
171
152
  # Saved explanations can be referenced by other commands
172
- cc: research authentication
173
- cc: create-spec payment-processing
174
- cc: execute-task "optimize the user search"
153
+ /research authentication
154
+ /create-spec payment-processing
155
+ /execute-task "optimize the user search"
175
156
 
176
157
  # AI can access saved explanations from .code-captain/explanations/
177
158
  # to provide better context for other commands
@@ -187,16 +168,16 @@ cc: execute-task "optimize the user search"
187
168
 
188
169
  ```bash
189
170
  # List all saved explanations
190
- cc: list-explanations
171
+ /list-explanations
191
172
 
192
173
  # Search explanations
193
- cc: search-explanations "authentication"
174
+ /search-explanations "authentication"
194
175
 
195
176
  # Show explanation history
196
- cc: explanation-history calculateDiscount
177
+ /explanation-history calculateDiscount
197
178
 
198
179
  # Update outdated explanations when code changes
199
- cc: refresh-explanations --check-code-changes
180
+ /refresh-explanations --check-code-changes
200
181
  ```
201
182
 
202
183
  ## Diagram Types Generated