@devobsessed/code-captain 0.0.5 → 0.0.8

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 (34) hide show
  1. package/README.md +1 -10
  2. package/bin/install.js +186 -187
  3. package/claude-code/agents/code-captain.md +17 -20
  4. package/copilot/README.md +26 -16
  5. package/copilot/chatmodes/Code Captain.chatmode.md +11 -16
  6. package/copilot/prompts/create-spec.prompt.md +5 -8
  7. package/copilot/prompts/explain-code.prompt.md +5 -8
  8. package/copilot/prompts/new-command.prompt.md +60 -21
  9. package/copilot/prompts/research.prompt.md +5 -8
  10. package/copilot/prompts/status.prompt.md +13 -2
  11. package/copilot/prompts/swab.prompt.md +1 -0
  12. package/cursor/README.md +8 -23
  13. package/cursor/cc.md +2 -29
  14. package/cursor/cc.mdc +3 -10
  15. package/cursor/commands/create-adr.md +1 -1
  16. package/cursor/commands/create-spec.md +9 -12
  17. package/cursor/commands/explain-code.md +5 -8
  18. package/cursor/commands/initialize.md +1 -1
  19. package/cursor/commands/new-command.md +5 -4
  20. package/cursor/commands/research.md +6 -9
  21. package/cursor/commands/status.md +13 -2
  22. package/cursor/commands/swab.md +61 -2
  23. package/manifest.json +150 -166
  24. package/package.json +12 -2
  25. package/windsurf/workflows/explain-code.md +4 -8
  26. package/windsurf/workflows/plan-product.md +330 -0
  27. package/windsurf/workflows/research.md +240 -0
  28. package/windsurf/workflows/swab.md +212 -0
  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
@@ -43,7 +43,7 @@ cc: create-spec "rough feature description"
43
43
  #### Step 1.3: Structured Clarification Loop
44
44
  **Rules:**
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
@@ -92,8 +92,8 @@ When confident, present a contract proposal with any concerns surfaced:
92
92
  **Success Criteria:** [How we'll know it's working correctly]
93
93
 
94
94
  **Scope Boundaries:**
95
- - In Scope: [2-3 key features]
96
- - Out of Scope: [2-3 things we won't build]
95
+ - Included: [2-3 key features]
96
+ - Excluded: [2-3 things we won't build]
97
97
 
98
98
  **⚠️ Technical Concerns (if any):**
99
99
  - [Specific concern about feasibility, performance, or architecture]
@@ -133,14 +133,11 @@ Options:
133
133
 
134
134
  **Date Determination Process:**
135
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
136
+ 1. Read the current UTC date from the system clock and format as `YYYY-MM-DD`.
137
+ 2. Store it for naming:
138
+ `.code-captain/specs/[DATE]-[feature-name]/`
142
139
 
143
- **Fallback Method:** If file system method fails:
140
+ **Fallback Method:** If system clock access isn't available:
144
141
  1. **STATE**: "I need to confirm today's date for the specification folder"
145
142
  2. **ASK**: "What is today's date? (YYYY-MM-DD format)"
146
143
  3. **WAIT** for user response
@@ -414,8 +411,8 @@ Agent: [Continues with more informed questions about the hybrid architecture...]
414
411
  **Success Criteria:** Messages appear instantly, spam is prevented via crypto payments, blockchain verification happens within 5 minutes
415
412
 
416
413
  **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
414
+ - Included: Real-time chat, wallet integration, background blockchain settlement
415
+ - Excluded: Advanced chat features (file sharing, voice), custom token creation
419
416
 
420
417
  ---
421
418
  Options: [yes/edit/risks/blueprint]
@@ -143,18 +143,15 @@ All explanations are automatically saved to `.code-captain/explanations/` using
143
143
 
144
144
  ## Date Determination Process
145
145
 
146
- ### Primary Method: File System Timestamp
146
+ ### Primary Method: System Clock
147
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
148
+ 1. Read the current UTC date from the system clock and format as `YYYY-MM-DD`.
149
+ 2. Store it for naming:
150
+ `.code-captain/explanations/[DATE]-[target-name].md`
154
151
 
155
152
  ### Fallback Method: User Confirmation
156
153
 
157
- If file system method fails:
154
+ If system clock access isn't available:
158
155
 
159
156
  1. **STATE**: "I need to confirm today's date for the explanation file"
160
157
  2. **ASK**: "What is today's date? (YYYY-MM-DD format)"
@@ -1,6 +1,6 @@
1
1
  # Initialize Command Workflow
2
2
 
3
- ## Command: `cc: initialize`
3
+ ## Overview
4
4
 
5
5
  ### Purpose
6
6
 
@@ -248,10 +248,11 @@ ls .code-captain/commands/ | grep "^command-name.md$"
248
248
  - TDD patterns
249
249
  - Verification steps
250
250
 
251
- 4. **Integration** (`sync`, `create-github-issues`)
252
- - Platform API interactions
253
- - Sync and conflict handling
254
- - Status reporting
251
+ 4. **Quality** (`status`, `swab`)
252
+ 5. **Meta** (`new-command`, `explain-code`)
253
+ - Command scaffolding and template generation
254
+ - Documentation updates across the ecosystem
255
+ - Validation and consistency checks
255
256
 
256
257
  ### Documentation Update Locations
257
258
 
@@ -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
 
@@ -122,18 +122,15 @@ Conduct systematic research on a topic using structured phases that build upon e
122
122
 
123
123
  ## Date Determination Process
124
124
 
125
- ### Primary Method: File System Timestamp
125
+ ### Primary Method: System Clock
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
127
+ 1. Read the current UTC date from the system clock and format as `YYYY-MM-DD`.
128
+ 2. Store it for naming:
129
+ `.code-captain/research/[DATE]-[topic-name]-research.md`
133
130
 
134
131
  ### Fallback Method: User Confirmation
135
132
 
136
- If file system method fails:
133
+ If system clock access isn't available:
137
134
 
138
135
  1. **STATE**: "I need to confirm today's date for the research folder"
139
136
  2. **ASK**: "What is today's date? (YYYY-MM-DD format)"
@@ -54,7 +54,7 @@ Simple, no parameters needed. Works in any git repository with optional Code Cap
54
54
  **Based on Current State:**
55
55
  - If mid-task: Suggest `cc: execute-task`
56
56
  - If no active work: Suggest `cc: create-spec`
57
- - If specifications exist: Suggest `cc: create-github-issues`
57
+ - If specifications exist: Suggest implementation with `cc: execute-task`
58
58
  - Always suggest `cc: swab` for code cleanup
59
59
 
60
60
  ## Output Format
@@ -410,4 +410,15 @@ $ cc: status
410
410
 
411
411
  ---
412
412
 
413
- *⚓ Keep your bearings, maintain your heading, and always know where you stand in the code.*
413
+ *⚓ Keep your bearings, maintain your heading, and always know where you stand in the code.*
414
+
415
+ ## Suggested Next Actions
416
+
417
+ Based on project state analysis, suggest relevant next steps:
418
+
419
+ - **No specs**: Suggest `cc: create-spec` or `cc: plan-product`
420
+ - **Specs ready for implementation**: Suggest `cc: execute-task`
421
+ - **Tasks ready**: Suggest `cc: execute-task`
422
+ - **Code quality issues**: Suggest `cc: swab`
423
+ - **Missing architecture**: Suggest `cc: create-adr`
424
+ - **Research needed**: Suggest `cc: research`
@@ -14,6 +14,17 @@ cc: swab
14
14
 
15
15
  ## Command Process
16
16
 
17
+ ### Step 0: Initialize Progress Tracking
18
+
19
+ **Create todos for the swab process using `todo_write`:**
20
+
21
+ ```
22
+ - Scan codebase for improvement opportunities [in_progress]
23
+ - Prioritize and select best cleanup option [pending]
24
+ - Present cleanup suggestion to user [pending]
25
+ - Apply approved change [pending]
26
+ ```
27
+
17
28
  ### Step 1: Codebase Scanning
18
29
 
19
30
  **Scan for improvement opportunities:**
@@ -34,6 +45,8 @@ cc: swab
34
45
 
35
46
  ### Step 2: Opportunity Prioritization
36
47
 
48
+ **Update progress:** Mark "Scan codebase for improvement opportunities" as `[completed]` and "Prioritize and select best cleanup option" as `[in_progress]`
49
+
37
50
  **Selection Criteria:**
38
51
  1. **Clarity Impact** - How much clearer will the code be?
39
52
  2. **Risk Level** - How certain are we this won't break anything?
@@ -49,6 +62,8 @@ cc: swab
49
62
 
50
63
  ### Step 3: Present Single Best Option
51
64
 
65
+ **Update progress:** Mark "Prioritize and select best cleanup option" as `[completed]` and "Present cleanup suggestion to user" as `[in_progress]`
66
+
52
67
  **Display Format:**
53
68
  ```
54
69
  🧽 Swabbing the deck... found some mess in {filename}
@@ -66,12 +81,16 @@ Clean this up? [y/N]
66
81
 
67
82
  ### Step 4: Apply Change
68
83
 
84
+ **Update progress:** Mark "Present cleanup suggestion to user" as `[completed]` and "Apply approved change" as `[in_progress]`
85
+
69
86
  **If approved:**
70
- - Make the exact replacement using search/replace
87
+ - Make the exact replacement using search and replace
71
88
  - Verify the change was applied correctly
89
+ - Mark "Apply approved change" as `[completed]`
72
90
  - Show success message: "✅ Deck swabbed! One less mess aboard."
73
91
 
74
92
  **If declined:**
93
+ - Mark "Apply approved change" as `[completed]` (no change needed)
75
94
  - Exit gracefully with: "🧽 Deck inspection complete. No changes made."
76
95
 
77
96
  ## Core Rules
@@ -95,7 +114,7 @@ RULES:
95
114
  - Prioritize clarity and safety over cleverness
96
115
  - Preserve all existing functionality exactly
97
116
  - Be extremely conservative - if ANY uncertainty, do nothing
98
- - Provide exact search/replace strings
117
+ - Provide exact search and replace strings
99
118
  - Focus on high-impact, zero-risk improvements
100
119
 
101
120
  SCAN PRIORITIES:
@@ -187,6 +206,44 @@ This might happen if the file was modified since scanning.
187
206
  Try running the command again.
188
207
  ```
189
208
 
209
+ ## Example Todo Progression
210
+
211
+ **Initial:**
212
+
213
+ ```
214
+ - Scan codebase for improvement opportunities [in_progress]
215
+ - Prioritize and select best cleanup option [pending]
216
+ - Present cleanup suggestion to user [pending]
217
+ - Apply approved change [pending]
218
+ ```
219
+
220
+ **After scanning:**
221
+
222
+ ```
223
+ - Scan codebase for improvement opportunities [completed]
224
+ - Prioritize and select best cleanup option [in_progress]
225
+ - Present cleanup suggestion to user [pending]
226
+ - Apply approved change [pending]
227
+ ```
228
+
229
+ **After prioritization:**
230
+
231
+ ```
232
+ - Scan codebase for improvement opportunities [completed]
233
+ - Prioritize and select best cleanup option [completed]
234
+ - Present cleanup suggestion to user [in_progress]
235
+ - Apply approved change [pending]
236
+ ```
237
+
238
+ **Final:**
239
+
240
+ ```
241
+ - Scan codebase for improvement opportunities [completed]
242
+ - Prioritize and select best cleanup option [completed]
243
+ - Present cleanup suggestion to user [completed]
244
+ - Apply approved change [completed]
245
+ ```
246
+
190
247
  ## Integration Notes
191
248
 
192
249
  This command integrates with the existing Code Captain ecosystem by:
@@ -195,6 +252,8 @@ This command integrates with the existing Code Captain ecosystem by:
195
252
  2. **Leveraging existing tools** - Uses `codebase_search`, `read_file`, `search_replace`
196
253
  3. **Maintaining simplicity** - No complex configuration or state management
197
254
  4. **Respecting user control** - Always asks permission before making changes
255
+ 5. **Progress tracking** - Uses `todo_write` for visibility into command progress
256
+ 6. **Quality foundation** - Complements specification and implementation commands by maintaining code quality, supporting the overall project foundation alongside `.code-captain` documentation
198
257
 
199
258
  ## Future Enhancements
200
259