@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,6 +1,6 @@
1
1
  # Initialize Command Workflow
2
2
 
3
- ## Command: `cc: initialize`
3
+ ## Overview
4
4
 
5
5
  ### Purpose
6
6
 
@@ -109,21 +109,21 @@ After technical foundation is complete, provide clear next steps:
109
109
 
110
110
  Your development environment is now set up and documented:
111
111
  - Technology stack documented and configured
112
- - Development tools and standards established
112
+ - Development tools and standards established
113
113
  - Project structure and configuration ready
114
114
 
115
115
  ## Recommended Next Steps:
116
116
 
117
117
  ### For New Products:
118
- cc: plan-product "your product idea" - Define product vision, strategy, and roadmap
118
+ /plan-product "your product idea" - Define product vision, strategy, and roadmap
119
119
 
120
120
  ### For Existing Products:
121
- cc: create-spec "feature description" - Create detailed feature specifications
122
- cc: execute-task - Implement features with TDD workflow
121
+ /create-spec "feature description" - Create detailed feature specifications
122
+ /execute-task - Implement features with TDD workflow
123
123
 
124
124
  ### For Research:
125
- cc: research "topic" - Conduct systematic technical research
126
- cc: create-adr "decision" - Document architectural decisions
125
+ /research "topic" - Conduct systematic technical research
126
+ /create-adr "decision" - Document architectural decisions
127
127
 
128
128
  Ready to define your product strategy and start building!
129
129
  ```
@@ -262,15 +262,15 @@ Your existing project has been analyzed and documented:
262
262
  ## Recommended Next Steps:
263
263
 
264
264
  ### For Product Strategy (Recommended First):
265
- cc: plan-product "enhanced product vision" - Define product strategy and roadmap
265
+ /plan-product "enhanced product vision" - Define product strategy and roadmap
266
266
 
267
267
  ### For Feature Development:
268
- cc: create-spec "feature description" - Create detailed feature specifications
269
- cc: execute-task - Implement features following established patterns
268
+ /create-spec "feature description" - Create detailed feature specifications
269
+ /execute-task - Implement features following established patterns
270
270
 
271
271
  ### For Technical Improvements:
272
- cc: research "technical topic" - Research solutions for identified gaps
273
- cc: create-adr "technical decision" - Document architectural improvements
272
+ /research "technical topic" - Research solutions for identified gaps
273
+ /create-adr "technical decision" - Document architectural improvements
274
274
 
275
275
  Ready to define your product strategy and enhance your codebase!
276
276
  ```
@@ -284,26 +284,27 @@ Ready to define your product strategy and enhance your codebase!
284
284
  **MANDATORY**: The initialize command MUST end with a message that prominently recommends `plan-product` as the next logical step for both greenfield and brownfield projects. This is required because:
285
285
 
286
286
  1. Initialize handles ONLY technical foundation
287
- 2. plan-product handles product strategy and vision
287
+ 2. plan-product handles product strategy and vision
288
288
  3. Users need both for complete project setup
289
289
  4. plan-product should be the next step before feature development
290
290
 
291
291
  **Required message format**:
292
+
292
293
  ```
293
294
  🚀 Technical Foundation Complete! / 🔍 Technical Foundation Analysis Complete!
294
295
 
295
296
  ## Recommended Next Steps:
296
297
 
297
298
  ### For Product Strategy (Recommended First):
298
- cc: plan-product "your product idea/vision" - Define product strategy and roadmap
299
+ /plan-product "your product idea/vision" - Define product strategy and roadmap
299
300
 
300
301
  ### For Feature Development:
301
- cc: create-spec "feature description" - Create detailed feature specifications
302
- cc: execute-task - Implement features
302
+ /create-spec "feature description" - Create detailed feature specifications
303
+ /execute-task - Implement features
303
304
 
304
305
  ### For Technical Improvements:
305
- cc: research "topic" - Research solutions for gaps
306
- cc: create-adr "decision" - Document architectural decisions
306
+ /research "topic" - Research solutions for gaps
307
+ /create-adr "decision" - Document architectural decisions
307
308
  ```
308
309
 
309
310
  ---
@@ -1,78 +1,178 @@
1
- # New Command Creator (cc: new-command)
1
+ # New Command Creator (/new-command)
2
2
 
3
3
  ## Overview
4
4
 
5
5
  A meta command that creates new Code Captain commands following established patterns and conventions. This command generates properly structured command files, updates documentation, and ensures consistency across the Code Captain ecosystem.
6
6
 
7
- ## Usage
7
+ ## Command Process
8
8
 
9
- ```bash
10
- cc: new-command "command-name" "brief description"
11
- ```
9
+ ### Phase 1: Command Contract Establishment (No File Creation)
10
+
11
+ **Mission Statement:**
12
+
13
+ > Your goal is to turn my rough command idea into a comprehensive command specification. You will deliver the complete command package only after we both agree on the command contract. **Important: Challenge command ideas that don't fit the Code Captain ecosystem or would create maintenance burden - it's better to surface concerns early than build the wrong command.**
14
+
15
+ #### Step 1.1: Initial Context Scan
16
+
17
+ - Scan existing commands in `.cursor/commands/` to understand patterns
18
+ - Analyze existing Code Captain ecosystem using `codebase_search`
19
+ - Load command patterns from successful commands (`create-spec`, `execute-task`, etc.)
20
+ - **Output:** Context summary (no files created yet)
21
+
22
+ #### Step 1.2: Gap Analysis & Silent Enumeration
23
+
24
+ **Internal Process (not shown to user):**
25
+
26
+ - Silently list every missing detail about the command's purpose and implementation
27
+ - Identify ambiguities in the initial command description
28
+ - Note potential conflicts with existing commands
29
+ - Catalog unknowns across these domains:
30
+ - Command purpose & unique value proposition
31
+ - Target workflow & user scenarios
32
+ - Execution complexity & style requirements
33
+ - Input/output specifications
34
+ - Tool integration requirements
35
+ - File organization & output locations
36
+ - Error handling & edge cases
37
+ - Integration with existing commands
38
+ - Documentation & help text needs
39
+
40
+ #### Step 1.3: Structured Clarification Loop
41
+
42
+ **Rules:**
43
+
44
+ - Ask ONE focused question at a time
45
+ - After each answer, re-scan existing commands for additional context if relevant
46
+ - Continue until reaching 95% confidence on command specification
47
+ - Each question should target the highest-impact unknown
48
+ - **Never declare "final question"** - let the conversation flow naturally
49
+ - Let the user signal when they're ready to lock the contract
50
+ - **Challenge command ideas that create complexity or don't fit** - better to surface concerns early than build problematic commands
51
+
52
+ **Critical Analysis Responsibility:**
53
+
54
+ - If command seems to duplicate existing functionality, explain the overlap and suggest alternatives
55
+ - If complexity seems too high for the proposed value, recommend simplification
56
+ - If the command doesn't fit Code Captain patterns, point out the inconsistency
57
+ - If implementation would create maintenance burden, suggest alternative approaches
58
+ - If command scope is unclear or too broad, ask for focus and boundaries
59
+
60
+ **Pushback Phrasing Examples:**
61
+
62
+ - "I see potential overlap with [existing command]. How would [your command] be different from [existing]?"
63
+ - "The complexity you're describing sounds like it might need 3-4 separate commands. Should we focus on [core piece] first?"
64
+ - "I'm concerned that [proposed approach] would break Code Captain's [established pattern]. Have you considered [alternative]?"
65
+ - "This command would need significant ongoing maintenance. Could we achieve the same goal with [simpler approach]?"
66
+
67
+ **Question Categories (examples):**
68
+
69
+ - "What specific developer workflow does this solve that existing commands don't cover?"
70
+ - "Should this integrate with [existing command found in scan], or remain separate?"
71
+ - "What does 'success' look like - how will developers know the command worked correctly?"
72
+ - "Should this be a contract-style command (extensive clarification like create-spec) or direct execution (immediate action like swab)?"
73
+ - "Where should outputs be stored - new folder or existing (.code-captain/[folder])?"
74
+ - "What Cursor tools will it need - codebase_search, file_search, edit_file, web_search?"
75
+
76
+ **Transition to Contract:**
77
+
78
+ - When confidence is high, present contract without declaring it "final"
79
+ - Use phrases like "I think I understand the command you need" or "Based on our discussion, here's the command specification"
80
+ - Always leave room for more questions if needed
81
+
82
+ #### Step 1.4: Echo Check (Command Contract Proposal)
83
+
84
+ When confident, present a command contract proposal with any concerns surfaced:
85
+
86
+ **Format:**
12
87
 
13
- **Examples:**
14
- ```bash
15
- cc: new-command "optimize" "Performance optimization for slow code sections"
16
- cc: new-command "deploy" "Deploy applications to various cloud platforms"
17
- cc: new-command "test-gen" "Generate comprehensive test suites from existing code"
18
88
  ```
89
+ ## Command Contract
19
90
 
20
- ## Command Process
91
+ **Command Name:** [validated-command-name]
92
+
93
+ **Purpose:** [One clear sentence describing what this command does]
21
94
 
22
- ### Step 1: Command Specification Gathering
95
+ **Unique Value:** [How this differs from existing commands and why it's needed]
23
96
 
24
- **Initial Input Processing:**
25
- - Parse command name (validate format: lowercase, hyphens allowed)
26
- - Extract brief description from user input
27
- - Validate command name doesn't conflict with existing commands
97
+ **Execution Style:** [Contract-style with clarification OR Direct execution]
28
98
 
29
- **Interactive Specification Building:**
30
- Ask clarifying questions to build complete command specification:
99
+ **Workflow Pattern:** [Step-by-step process the command follows]
31
100
 
32
- 1. **Command Category**: "Is this a [Setup/Analysis/Implementation/Integration] command?"
33
- 2. **Execution Style**: "Should this use contract style (extensive clarification rounds like create-spec) or direct execution (immediate action like swab)?"
34
- 3. **Usage Pattern**: "Does it take arguments, flags, or is it standalone?"
35
- 4. **AI Coordination**: "Does it need AI prompts for complex decision-making?"
36
- 5. **Output Location**: "Where should outputs be stored? (.code-captain/[folder])"
37
- 6. **Tool Integration**: "Which Cursor tools will it use? (codebase_search, read_file, etc.)"
38
- 7. **Workflow Steps**: "What are the main phases/steps the command follows?"
101
+ **Inputs Required:** [Arguments, flags, or interactive inputs needed]
39
102
 
40
- ### Step 2: Command Structure Generation
103
+ **Outputs Created:** [Files, directories, or modifications made]
104
+
105
+ **Tool Integration:** [Cursor tools required: codebase_search, file_search, etc.]
106
+
107
+ **⚠️ Implementation Concerns (if any):**
108
+ - [Specific concern about complexity, maintenance, or ecosystem fit]
109
+ - [Suggested alternative or mitigation approach]
110
+
111
+ **💡 Recommendations:**
112
+ - [Suggestions for improving the command based on ecosystem analysis]
113
+ - [Ways to reduce complexity or improve consistency]
114
+
115
+ ---
116
+ Options:
117
+ - Type 'yes' to lock this contract and create the command
118
+ - Type 'edit: [your changes]' to modify the contract
119
+ - Type 'examples' to see similar commands for reference
120
+ - Type 'blueprint' to see the planned file structure and documentation
121
+ - Ask more questions if anything needs clarification
122
+ ```
123
+
124
+ ### Phase 2: Command Package Creation (Post-Agreement Only)
125
+
126
+ **Triggered only after user confirms contract with 'yes'**
127
+
128
+ #### Step 2.1: Initialize Tracking
129
+
130
+ ```bash
131
+ # Use todo_write to track creation process
132
+ 1. Generate command documentation with proper structure
133
+ 2. Update ecosystem documentation and references
134
+ 3. Validate command integration and consistency
135
+ 4. Present completed command for user review
136
+ ```
137
+
138
+ #### Step 2.2: Generate Command File Structure
41
139
 
42
140
  **Generate Standard Command File Structure:**
43
141
 
44
142
  ```markdown
45
- # [Command Name] Command (cc: [command-name])
143
+ # [Command Name] Command ([command-name])
46
144
 
47
145
  ## Overview
48
- [Generated from description and clarifying questions]
49
146
 
50
- ## Usage
51
- ```bash
52
- cc: [command-name] [arguments]
53
- ```
147
+ [Generated from description and clarifying questions]
54
148
 
55
149
  ## Command Process
56
150
 
57
151
  ### Step 1: [Phase Name]
58
- [Generated workflow steps]
152
+
153
+ [Generated workflow steps based on contract]
59
154
 
60
155
  ### Step 2: [Phase Name]
61
- [Generated workflow steps]
156
+
157
+ [Generated workflow steps based on contract]
62
158
 
63
159
  ## Core Rules
64
- [Generated based on command type]
65
160
 
66
- ## AI Implementation Prompt
67
- [Generated if AI coordination needed]
161
+ [Generated based on command type and execution style from contract]
162
+
163
+ ## Tool Integration
164
+
165
+ [Generated tool usage based on contract requirements]
68
166
 
69
167
  ## Integration Notes
70
- [Generated integration details]
168
+
169
+ [Generated integration details with existing commands]
71
170
  ```
72
171
 
73
172
  **Template Sections Based on Command Type and Execution Style:**
74
173
 
75
174
  **Contract Style Commands** (like `create-spec`, `create-adr`):
175
+
76
176
  - Phase 1: Contract Establishment (No File Creation)
77
177
  - Interactive clarification rounds with structured questions
78
178
  - Critical analysis and assumption challenging
@@ -80,65 +180,50 @@ cc: [command-name] [arguments]
80
180
  - Explicit user agreement before proceeding
81
181
 
82
182
  **Direct Execution Commands** (like `swab`, `execute-task`):
183
+
83
184
  - Immediate action workflows
84
185
  - Minimal clarification if needed
85
186
  - Clear step-by-step execution
86
187
  - Progress feedback and completion confirmation
87
188
 
88
189
  **Setup/Analysis Commands:**
190
+
89
191
  - Context scanning steps
90
192
  - File generation workflows
91
193
  - Progress tracking with `todo_write`
92
194
 
93
195
  **Implementation Commands:**
196
+
94
197
  - TDD workflows if applicable
95
198
  - Code modification steps
96
199
  - Verification procedures
97
200
 
98
201
  **Integration Commands:**
202
+
99
203
  - Platform-specific API interactions
100
204
  - Sync and conflict resolution
101
205
  - Error handling patterns
102
206
 
103
- ### Step 3: Documentation Updates
104
-
105
- **Automatically update main documentation files:**
106
-
107
- 1. **cc.md Updates:**
108
- - Add to appropriate category section
109
- - Add to command documentation reading list
110
- - Add to usage examples
111
-
112
- 2. **cc.mdc Updates:**
113
- - Add to Core Commands or Platform Integration section
114
- - Include brief description
115
-
116
- 3. **README.md Updates:**
117
- - Add to appropriate feature section
118
- - Add to command reference table
119
- - Include in workflow examples if relevant
120
-
121
- ### Step 4: Validation and Integration
207
+ ### Step 3: Validation and Integration
122
208
 
123
209
  **Verify Command Integration:**
210
+
124
211
  - Check command file syntax and structure
125
- - Validate documentation updates
126
212
  - Ensure no conflicts with existing commands
127
- - Run basic structure validation
213
+ - Validate command follows established patterns
214
+ - Test command can be discovered by Cursor
128
215
 
129
216
  **Present Summary:**
217
+
130
218
  ```
131
219
  ✅ New command created successfully!
132
220
 
133
- 📁 Files Created/Updated:
134
- - .code-captain/commands/[command-name].md
135
- - cc.md (updated)
136
- - cc.mdc (updated)
137
- - README.md (updated)
221
+ 📁 Files Created:
222
+ - .cursor/commands/[command-name].md
138
223
 
139
224
  🚀 Command Ready:
140
- Usage: cc: [command-name] [args]
141
- Documentation: .code-captain/commands/[command-name].md
225
+ Usage: /[command-name] [args]
226
+ Documentation: .cursor/commands/[command-name].md
142
227
  ```
143
228
 
144
229
  ## Core Rules
@@ -169,7 +254,7 @@ COMMAND SPECIFICATION:
169
254
  - Workflow Steps: {workflow_phases}
170
255
 
171
256
  TEMPLATE STRUCTURE:
172
- 1. Title: # [Command Name] Command (cc: [command-name])
257
+ 1. Title: # [Command Name] Command ([command-name])
173
258
  2. Overview: Purpose and capabilities
174
259
  3. Usage: Command syntax with examples
175
260
  4. Command Process: Detailed step-by-step workflow
@@ -187,17 +272,13 @@ TEMPLATE ADAPTATION RULES:
187
272
  - CRITICAL: Be language and shell agnostic - use codebase_search, list_dir, file_search instead of language-specific find commands or hardcoded file extensions
188
273
 
189
274
  DOCUMENTATION UPDATES:
190
- Update these files with the new command:
191
- - cc.md: Add to appropriate category, command list, examples
192
- - cc.mdc: Add to Core Commands with brief description
193
- - README.md: Add to features, command table, workflow examples
275
+ Commands are automatically discovered by Cursor from `.cursor/commands/` - no manual documentation updates needed.
194
276
 
195
277
  OUTPUT REQUIREMENTS:
196
278
  1. Generate complete command file following the template
197
- 2. Identify exact locations in documentation files to update
198
- 3. Provide specific text additions for each documentation file
199
- 4. Ensure consistency with existing command patterns
200
- 5. Validate no conflicts with existing commands
279
+ 2. Ensure consistency with existing command patterns
280
+ 3. Validate no conflicts with existing commands
281
+ 4. Create command in `.cursor/commands/[command-name].md`
201
282
 
202
283
  QUALITY CHECKS:
203
284
  - Command name follows naming conventions (lowercase, hyphens)
@@ -214,6 +295,7 @@ QUALITY CHECKS:
214
295
  ### Command Name Validation
215
296
 
216
297
  **Validation Rules:**
298
+
217
299
  - Lowercase letters, numbers, hyphens only
218
300
  - No spaces or special characters
219
301
  - Maximum 20 characters
@@ -221,6 +303,7 @@ QUALITY CHECKS:
221
303
  - Must not conflict with existing commands
222
304
 
223
305
  **Validation Process:**
306
+
224
307
  ```bash
225
308
  # Check format
226
309
  echo "command-name" | grep -E '^[a-z][a-z0-9-]*[a-z0-9]$'
@@ -234,37 +317,44 @@ ls .code-captain/commands/ | grep "^command-name.md$"
234
317
  **Command Categories and Templates:**
235
318
 
236
319
  1. **Setup/Analysis** (`initialize`, `research`, `explain-code`)
320
+
237
321
  - Context scanning workflows
238
322
  - Documentation generation
239
323
  - Progress tracking emphasis
240
324
 
241
325
  2. **Planning/Specification** (`create-spec`, `create-adr`, `plan-product`)
326
+
242
327
  - Interactive clarification phases
243
328
  - Structured output formats
244
329
  - Contract-based workflows
245
330
 
246
331
  3. **Implementation** (`execute-task`, `swab`)
332
+
247
333
  - Code modification workflows
248
334
  - TDD patterns
249
335
  - Verification steps
250
336
 
251
- 4. **Integration** (`sync`, `create-github-issues`)
252
- - Platform API interactions
253
- - Sync and conflict handling
254
- - Status reporting
337
+ 4. **Quality** (`status`, `swab`)
338
+ 5. **Meta** (`new-command`, `explain-code`)
339
+ - Command scaffolding and template generation
340
+ - Documentation updates across the ecosystem
341
+ - Validation and consistency checks
255
342
 
256
343
  ### Documentation Update Locations
257
344
 
258
345
  **cc.md Update Points:**
346
+
259
347
  - Line ~15-50: Available Commands sections
260
348
  - Line ~95-110: Command documentation list
261
349
  - Line ~150-190: Usage examples
262
350
 
263
351
  **cc.mdc Update Points:**
352
+
264
353
  - Line ~25-35: Core Commands list
265
354
  - Line ~35-45: Enhanced workflows (if integration)
266
355
 
267
356
  **README.md Update Points:**
357
+
268
358
  - Line ~120-140: Feature sections
269
359
  - Line ~400-415: Command reference table
270
360
  - Line ~250-270: Source structure
@@ -272,12 +362,14 @@ ls .code-captain/commands/ | grep "^command-name.md$"
272
362
  ### Error Handling
273
363
 
274
364
  **Common Issues:**
365
+
275
366
  - **Duplicate command name**: Check existing commands, suggest alternatives
276
367
  - **Invalid command name format**: Provide format guidance and examples
277
368
  - **Documentation update conflicts**: Use safe merge strategies, manual review if needed
278
369
  - **Template generation errors**: Validate inputs, provide clear error messages
279
370
 
280
371
  **Error Messages:**
372
+
281
373
  ```
282
374
  ❌ Command creation failed: [specific reason]
283
375
 
@@ -286,7 +378,7 @@ Suggestions:
286
378
  - Ensure name doesn't conflict with existing commands
287
379
  - Verify all required inputs are provided
288
380
 
289
- Try: cc: new-command "valid-name" "clear description"
381
+ Try: /new-command "valid-name" "clear description"
290
382
  ```
291
383
 
292
384
  ## Integration Notes
@@ -309,4 +401,4 @@ Potential improvements (not in initial version):
309
401
  - **Version Control**: Track command changes and updates
310
402
  - **Command Dependencies**: Handle commands that depend on other commands
311
403
 
312
- But for now: Focus on core functionality - create well-structured commands that integrate seamlessly with the existing Code Captain ecosystem.
404
+ But for now: Focus on core functionality - create well-structured commands that integrate seamlessly with the existing Code Captain ecosystem.
@@ -1,15 +1,9 @@
1
- # Plan Product Command (cc: plan-product)
1
+ # Plan Product Command (plan-product)
2
2
 
3
3
  ## Overview
4
4
 
5
5
  Generate comprehensive product planning documentation using a contract-first approach that establishes clear product vision, mission, and roadmap before creating any supporting files. This command eliminates assumptions by gathering complete product context through structured discovery, then creates a complete product planning package for AI-assisted development.
6
6
 
7
- ## Usage
8
-
9
- ```bash
10
- cc: plan-product "product idea description"
11
- ```
12
-
13
7
  ## Command Process
14
8
 
15
9
  ### Phase 1: Product Discovery & Contract Establishment (No File Creation)
@@ -386,9 +380,9 @@ Please review the planning documents and let me know:
386
380
  - Does the roadmap timeline align with your expectations?
387
381
 
388
382
  Once you're satisfied with the product plan, you can use:
389
- - `cc: create-spec` to detail specific features from the roadmap
390
- - `cc: execute-task` to begin implementing planned features
391
- - `cc: research` to investigate any market or product unknowns
383
+ - `/create-spec` to detail specific features from the roadmap
384
+ - `/execute-task` to begin implementing planned features
385
+ - `/research` to investigate any market or product unknowns
392
386
  ```
393
387
 
394
388
  ## Key Improvements Over Basic Product Planning
@@ -436,9 +430,9 @@ Once you're satisfied with the product plan, you can use:
436
430
  - Integrates with established project patterns if present
437
431
 
438
432
  **Cross-command integration:**
439
- - Feeds into `cc: create-spec` for detailed feature planning
440
- - Supports `cc: execute-task` with clear product context
441
- - Can trigger `cc: research` for market or technical investigation
433
+ - Feeds into `/create-spec` for detailed feature planning
434
+ - Supports `/execute-task` with clear product context
435
+ - Can trigger `/research` for market or technical investigation
442
436
 
443
437
  **Output integration:**
444
438
  - Product documents provide context for all future development
@@ -1,6 +1,6 @@
1
1
  # Research Command
2
2
 
3
- ## Purpose
3
+ ## Overview
4
4
 
5
5
  Conduct systematic research on a topic using structured phases that build upon each other, creating actionable todos and leveraging web search capabilities.
6
6
 
@@ -120,34 +120,12 @@ Conduct systematic research on a topic using structured phases that build upon e
120
120
  - **Further Research:** [What questions remain]
121
121
  - **Decision Points:** [Key choices that need to be made]
122
122
 
123
- ## Date Determination Process
123
+ ## Date Determination
124
124
 
125
- ### Primary Method: File System Timestamp
125
+ Get current date by running: `npx @devobsessed/code-captain date`
126
126
 
127
- 1. **CREATE** directory if not exists: `.code-captain/research/`
128
- 2. **CREATE** temporary file: `.code-captain/research/.date-check`
129
- 3. **READ** file creation timestamp from filesystem
130
- 4. **EXTRACT** date in YYYY-MM-DD format
131
- 5. **DELETE** temporary file
132
- 6. **STORE** date in variable for folder naming
133
-
134
- ### Fallback Method: User Confirmation
135
-
136
- If file system method fails:
137
-
138
- 1. **STATE**: "I need to confirm today's date for the research folder"
139
- 2. **ASK**: "What is today's date? (YYYY-MM-DD format)"
140
- 3. **WAIT** for user response
141
- 4. **VALIDATE** format matches `^\d{4}-\d{2}-\d{2}$`
142
- - year: 2024-2030
143
- - month: 01-12
144
- - day: 01-31
145
- 5. **STORE** date for folder naming
146
-
147
- ### Error Handling
148
-
149
- - **IF** date_invalid: USE fallback_method
150
- - **IF** both_methods_fail: ERROR "Unable to determine current date"
127
+ This returns the current date in `YYYY-MM-DD` format for folder naming:
128
+ `.code-captain/research/[DATE]-[topic-name]-research.md`
151
129
 
152
130
  ## Research Document Template
153
131