@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.
- package/README.md +36 -37
- package/bin/install.js +1166 -983
- package/claude-code/agents/code-captain.md +31 -22
- package/copilot/README.md +26 -16
- package/copilot/chatmodes/Code Captain.chatmode.md +41 -25
- package/copilot/prompts/create-adr.prompt.md +6 -4
- package/copilot/prompts/create-spec.prompt.md +62 -45
- package/copilot/prompts/explain-code.prompt.md +7 -23
- package/copilot/prompts/new-command.prompt.md +60 -21
- package/copilot/prompts/research.prompt.md +14 -30
- package/copilot/prompts/status.prompt.md +13 -2
- package/copilot/prompts/swab.prompt.md +1 -0
- package/cursor/README.md +77 -88
- package/cursor/cc.mdc +13 -42
- package/cursor/commands/create-adr.md +7 -13
- package/cursor/commands/create-spec.md +73 -64
- package/cursor/commands/edit-spec.md +2 -15
- package/cursor/commands/execute-task.md +7 -15
- package/cursor/commands/explain-code.md +16 -35
- package/cursor/commands/initialize.md +19 -18
- package/cursor/commands/new-command.md +173 -81
- package/cursor/commands/plan-product.md +7 -13
- package/cursor/commands/research.md +5 -27
- package/cursor/commands/status.md +34 -23
- package/cursor/commands/swab.md +63 -12
- package/manifest.json +110 -229
- package/package.json +13 -4
- package/cursor/cc.md +0 -183
- package/cursor/integrations/azure-devops/create-azure-work-items.md +0 -403
- package/cursor/integrations/azure-devops/sync-azure-work-items.md +0 -486
- package/cursor/integrations/github/create-github-issues.md +0 -765
- package/cursor/integrations/github/scripts/create-issues-batch.sh +0 -272
- package/cursor/integrations/github/sync-github-issues.md +0 -237
- package/cursor/integrations/github/sync.md +0 -305
- package/windsurf/README.md +0 -254
- package/windsurf/rules/cc.md +0 -5
- package/windsurf/workflows/create-adr.md +0 -331
- package/windsurf/workflows/create-spec.md +0 -280
- package/windsurf/workflows/edit-spec.md +0 -273
- package/windsurf/workflows/execute-task.md +0 -276
- package/windsurf/workflows/explain-code.md +0 -292
- package/windsurf/workflows/initialize.md +0 -298
- package/windsurf/workflows/new-command.md +0 -321
- package/windsurf/workflows/status.md +0 -213
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Code Captain Status Command (
|
|
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
|
-
|
|
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
|
|
56
|
-
- If no active work: Suggest
|
|
57
|
-
- If specifications exist: Suggest
|
|
58
|
-
- Always suggest
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
|
|
146
|
-
|
|
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
|
-
$
|
|
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
|
-
$
|
|
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
|
-
$
|
|
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
|
-
|
|
340
|
-
|
|
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
|
-
|
|
357
|
-
|
|
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`
|
package/cursor/commands/swab.md
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
# Code Captain Swab Command (
|
|
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
|
-
##
|
|
7
|
+
## Command Process
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
cc: swab
|
|
11
|
-
```
|
|
9
|
+
### Step 0: Initialize Progress Tracking
|
|
12
10
|
|
|
13
|
-
**
|
|
11
|
+
**Create todos for the swab process using `todo_write`:**
|
|
14
12
|
|
|
15
|
-
|
|
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
|
|
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
|
|
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**:
|
|
204
|
-
- **File type filtering**:
|
|
205
|
-
- **Batch mode**:
|
|
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
|
|