@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,4 +1,4 @@
1
- # Code Captain Status Command (cc: status)
1
+ # Code Captain Status Command (status)
2
2
 
3
3
  ## Overview
4
4
  A command that provides developers with a comprehensive status report when starting work or switching context. Analyzes current git state, active work, and project health to orient developers and suggest next actions.
@@ -6,7 +6,7 @@ A command that provides developers with a comprehensive status report when start
6
6
  ## Command Structure
7
7
 
8
8
  ```bash
9
- cc: status
9
+ /status
10
10
  ```
11
11
 
12
12
  Simple, no parameters needed. Works in any git repository with optional Code Captain project structure.
@@ -52,10 +52,10 @@ Simple, no parameters needed. Works in any git repository with optional Code Cap
52
52
 
53
53
  ### 4. Contextual Command Suggestions
54
54
  **Based on Current State:**
55
- - If mid-task: Suggest `cc: execute-task`
56
- - If no active work: Suggest `cc: create-spec`
57
- - If specifications exist: Suggest `cc: create-github-issues`
58
- - Always suggest `cc: swab` for code cleanup
55
+ - If mid-task: Suggest `/execute-task`
56
+ - If no active work: Suggest `/create-spec`
57
+ - If specifications exist: Suggest implementation with `/execute-task`
58
+ - Always suggest `/swab` for code cleanup
59
59
 
60
60
  ## Output Format
61
61
 
@@ -84,10 +84,10 @@ Simple, no parameters needed. Works in any git repository with optional Code Cap
84
84
  • Review recent main branch changes (3 new commits)
85
85
 
86
86
  ⚡ QUICK COMMANDS
87
- cc: execute-task # Continue current task
88
- cc: commit-wip # Commit work in progress
89
- cc: sync-main # Pull latest from main
90
- cc: swab # Quick code cleanup
87
+ /execute-task # Continue current task
88
+ /commit-wip # Commit work in progress
89
+ /sync-main # Pull latest from main
90
+ /swab # Quick code cleanup
91
91
 
92
92
  ### Clean State Example
93
93
 
@@ -109,9 +109,9 @@ Simple, no parameters needed. Works in any git repository with optional Code Cap
109
109
  • Perform maintenance tasks
110
110
 
111
111
  ⚡ QUICK COMMANDS
112
- cc: create-spec # Plan new feature
113
- cc: swab # Clean up existing code
114
- cc: review-specs # Check previous specifications
112
+ /create-spec # Plan new feature
113
+ /swab # Clean up existing code
114
+ /review-specs # Check previous specifications
115
115
 
116
116
  ### Problem State Example
117
117
 
@@ -142,8 +142,8 @@ Simple, no parameters needed. Works in any git repository with optional Code Cap
142
142
  • Continue or restart task 1.4
143
143
 
144
144
  ⚡ QUICK COMMANDS
145
- cc: execute-task # Continue current task
146
- cc: swab # Code cleanup
145
+ /execute-task # Continue current task
146
+ /swab # Code cleanup
147
147
 
148
148
  ## Implementation Details
149
149
 
@@ -282,7 +282,7 @@ pip check
282
282
  ### Morning Routine
283
283
  ```bash
284
284
  # Developer starts their day
285
- $ cc: status
285
+ $ /status
286
286
 
287
287
  # Gets oriented on yesterday's work
288
288
  # Sees exactly what to do next
@@ -292,7 +292,7 @@ $ cc: status
292
292
  ### Context Switching
293
293
  ```bash
294
294
  # After meetings, interruptions, or breaks
295
- $ cc: status
295
+ $ /status
296
296
 
297
297
  # Quick reminder of current state
298
298
  # Understand what changed while away
@@ -302,7 +302,7 @@ $ cc: status
302
302
  ### Project Handoff
303
303
  ```bash
304
304
  # When picking up someone else's work
305
- $ cc: status
305
+ $ /status
306
306
 
307
307
  # Understand current project state
308
308
  # See what was being worked on
@@ -336,8 +336,8 @@ $ cc: status
336
336
  • Create first feature specification
337
337
 
338
338
  ⚡ QUICK COMMANDS
339
- cc: init # Initialize Code Captain
340
- cc: create-spec # Create first specification
339
+ /init # Initialize Code Captain
340
+ /create-spec # Create first specification
341
341
  ```
342
342
 
343
343
  ### Corrupted Project State
@@ -353,8 +353,8 @@ $ cc: status
353
353
  • Check build configuration
354
354
 
355
355
  ⚡ RECOVERY COMMANDS
356
- cc: doctor # Diagnose and fix common issues
357
- cc: reset-deps # Reinstall dependencies
356
+ /doctor # Diagnose and fix common issues
357
+ /reset-deps # Reinstall dependencies
358
358
  ```
359
359
 
360
360
  ## Security & Privacy
@@ -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 `/create-spec` or `/plan-product`
420
+ - **Specs ready for implementation**: Suggest `/execute-task`
421
+ - **Tasks ready**: Suggest `/execute-task`
422
+ - **Code quality issues**: Suggest `/swab`
423
+ - **Missing architecture**: Suggest `/create-adr`
424
+ - **Research needed**: Suggest `/research`
@@ -1,18 +1,21 @@
1
- # Code Captain Swab Command (cc: swab)
1
+ # Code Captain Swab Command (swab)
2
2
 
3
3
  ## Overview
4
4
 
5
5
  A deck-cleaning agent that makes one small, focused improvement to the codebase, following the "Boy Scout Rule" - leave the code cleaner than you found it. This command identifies the single best small cleanup opportunity and applies it with your approval.
6
6
 
7
- ## Usage
7
+ ## Command Process
8
8
 
9
- ```bash
10
- cc: swab
11
- ```
9
+ ### Step 0: Initialize Progress Tracking
12
10
 
13
- **Note:** No options, no flags, no complexity. Just simple deck cleaning.
11
+ **Create todos for the swab process using `todo_write`:**
14
12
 
15
- ## Command Process
13
+ ```
14
+ - Scan codebase for improvement opportunities [in_progress]
15
+ - Prioritize and select best cleanup option [pending]
16
+ - Present cleanup suggestion to user [pending]
17
+ - Apply approved change [pending]
18
+ ```
16
19
 
17
20
  ### Step 1: Codebase Scanning
18
21
 
@@ -34,6 +37,8 @@ cc: swab
34
37
 
35
38
  ### Step 2: Opportunity Prioritization
36
39
 
40
+ **Update progress:** Mark "Scan codebase for improvement opportunities" as `[completed]` and "Prioritize and select best cleanup option" as `[in_progress]`
41
+
37
42
  **Selection Criteria:**
38
43
  1. **Clarity Impact** - How much clearer will the code be?
39
44
  2. **Risk Level** - How certain are we this won't break anything?
@@ -49,6 +54,8 @@ cc: swab
49
54
 
50
55
  ### Step 3: Present Single Best Option
51
56
 
57
+ **Update progress:** Mark "Prioritize and select best cleanup option" as `[completed]` and "Present cleanup suggestion to user" as `[in_progress]`
58
+
52
59
  **Display Format:**
53
60
  ```
54
61
  🧽 Swabbing the deck... found some mess in {filename}
@@ -66,12 +73,16 @@ Clean this up? [y/N]
66
73
 
67
74
  ### Step 4: Apply Change
68
75
 
76
+ **Update progress:** Mark "Present cleanup suggestion to user" as `[completed]` and "Apply approved change" as `[in_progress]`
77
+
69
78
  **If approved:**
70
- - Make the exact replacement using search/replace
79
+ - Make the exact replacement using search and replace
71
80
  - Verify the change was applied correctly
81
+ - Mark "Apply approved change" as `[completed]`
72
82
  - Show success message: "✅ Deck swabbed! One less mess aboard."
73
83
 
74
84
  **If declined:**
85
+ - Mark "Apply approved change" as `[completed]` (no change needed)
75
86
  - Exit gracefully with: "🧽 Deck inspection complete. No changes made."
76
87
 
77
88
  ## Core Rules
@@ -95,7 +106,7 @@ RULES:
95
106
  - Prioritize clarity and safety over cleverness
96
107
  - Preserve all existing functionality exactly
97
108
  - Be extremely conservative - if ANY uncertainty, do nothing
98
- - Provide exact search/replace strings
109
+ - Provide exact search and replace strings
99
110
  - Focus on high-impact, zero-risk improvements
100
111
 
101
112
  SCAN PRIORITIES:
@@ -187,6 +198,44 @@ This might happen if the file was modified since scanning.
187
198
  Try running the command again.
188
199
  ```
189
200
 
201
+ ## Example Todo Progression
202
+
203
+ **Initial:**
204
+
205
+ ```
206
+ - Scan codebase for improvement opportunities [in_progress]
207
+ - Prioritize and select best cleanup option [pending]
208
+ - Present cleanup suggestion to user [pending]
209
+ - Apply approved change [pending]
210
+ ```
211
+
212
+ **After scanning:**
213
+
214
+ ```
215
+ - Scan codebase for improvement opportunities [completed]
216
+ - Prioritize and select best cleanup option [in_progress]
217
+ - Present cleanup suggestion to user [pending]
218
+ - Apply approved change [pending]
219
+ ```
220
+
221
+ **After prioritization:**
222
+
223
+ ```
224
+ - Scan codebase for improvement opportunities [completed]
225
+ - Prioritize and select best cleanup option [completed]
226
+ - Present cleanup suggestion to user [in_progress]
227
+ - Apply approved change [pending]
228
+ ```
229
+
230
+ **Final:**
231
+
232
+ ```
233
+ - Scan codebase for improvement opportunities [completed]
234
+ - Prioritize and select best cleanup option [completed]
235
+ - Present cleanup suggestion to user [completed]
236
+ - Apply approved change [completed]
237
+ ```
238
+
190
239
  ## Integration Notes
191
240
 
192
241
  This command integrates with the existing Code Captain ecosystem by:
@@ -195,14 +244,16 @@ This command integrates with the existing Code Captain ecosystem by:
195
244
  2. **Leveraging existing tools** - Uses `codebase_search`, `read_file`, `search_replace`
196
245
  3. **Maintaining simplicity** - No complex configuration or state management
197
246
  4. **Respecting user control** - Always asks permission before making changes
247
+ 5. **Progress tracking** - Uses `todo_write` for visibility into command progress
248
+ 6. **Quality foundation** - Complements specification and implementation commands by maintaining code quality, supporting the overall project foundation alongside `.code-captain` documentation
198
249
 
199
250
  ## Future Enhancements
200
251
 
201
252
  Potential future improvements (not in initial version):
202
253
 
203
- - **Directory targeting**: `cc: swab src/components/`
204
- - **File type filtering**: `cc: swab --js-only`
205
- - **Batch mode**: `cc: swab --batch` (apply multiple small changes)
254
+ - **Directory targeting**: `/swab src/components/`
255
+ - **File type filtering**: `/swab --js-only`
256
+ - **Batch mode**: `/swab --batch` (apply multiple small changes)
206
257
  - **Learning**: Remember which types of cleanups user prefers
207
258
  - **Metrics**: Track improvements made over time
208
259