@devobsessed/code-captain 0.0.8 → 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 (37) hide show
  1. package/README.md +35 -27
  2. package/bin/install.js +1165 -978
  3. package/claude-code/agents/code-captain.md +15 -3
  4. package/copilot/chatmodes/Code Captain.chatmode.md +30 -9
  5. package/copilot/prompts/create-adr.prompt.md +6 -4
  6. package/copilot/prompts/create-spec.prompt.md +60 -40
  7. package/copilot/prompts/explain-code.prompt.md +7 -20
  8. package/copilot/prompts/research.prompt.md +14 -27
  9. package/cursor/README.md +72 -68
  10. package/cursor/cc.mdc +13 -35
  11. package/cursor/commands/create-adr.md +6 -12
  12. package/cursor/commands/create-spec.md +66 -54
  13. package/cursor/commands/edit-spec.md +2 -15
  14. package/cursor/commands/execute-task.md +7 -15
  15. package/cursor/commands/explain-code.md +16 -32
  16. package/cursor/commands/initialize.md +18 -17
  17. package/cursor/commands/new-command.md +168 -77
  18. package/cursor/commands/plan-product.md +7 -13
  19. package/cursor/commands/research.md +4 -23
  20. package/cursor/commands/status.md +28 -28
  21. package/cursor/commands/swab.md +4 -12
  22. package/manifest.json +104 -207
  23. package/package.json +2 -3
  24. package/cursor/cc.md +0 -156
  25. package/windsurf/README.md +0 -254
  26. package/windsurf/rules/cc.md +0 -5
  27. package/windsurf/workflows/create-adr.md +0 -331
  28. package/windsurf/workflows/create-spec.md +0 -280
  29. package/windsurf/workflows/edit-spec.md +0 -273
  30. package/windsurf/workflows/execute-task.md +0 -276
  31. package/windsurf/workflows/explain-code.md +0 -288
  32. package/windsurf/workflows/initialize.md +0 -298
  33. package/windsurf/workflows/new-command.md +0 -321
  34. package/windsurf/workflows/plan-product.md +0 -330
  35. package/windsurf/workflows/research.md +0 -240
  36. package/windsurf/workflows/status.md +0 -213
  37. package/windsurf/workflows/swab.md +0 -212
@@ -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,16 +317,19 @@ 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
@@ -257,15 +343,18 @@ ls .code-captain/commands/ | grep "^command-name.md$"
257
343
  ### Documentation Update Locations
258
344
 
259
345
  **cc.md Update Points:**
346
+
260
347
  - Line ~15-50: Available Commands sections
261
348
  - Line ~95-110: Command documentation list
262
349
  - Line ~150-190: Usage examples
263
350
 
264
351
  **cc.mdc Update Points:**
352
+
265
353
  - Line ~25-35: Core Commands list
266
354
  - Line ~35-45: Enhanced workflows (if integration)
267
355
 
268
356
  **README.md Update Points:**
357
+
269
358
  - Line ~120-140: Feature sections
270
359
  - Line ~400-415: Command reference table
271
360
  - Line ~250-270: Source structure
@@ -273,12 +362,14 @@ ls .code-captain/commands/ | grep "^command-name.md$"
273
362
  ### Error Handling
274
363
 
275
364
  **Common Issues:**
365
+
276
366
  - **Duplicate command name**: Check existing commands, suggest alternatives
277
367
  - **Invalid command name format**: Provide format guidance and examples
278
368
  - **Documentation update conflicts**: Use safe merge strategies, manual review if needed
279
369
  - **Template generation errors**: Validate inputs, provide clear error messages
280
370
 
281
371
  **Error Messages:**
372
+
282
373
  ```
283
374
  ❌ Command creation failed: [specific reason]
284
375
 
@@ -287,7 +378,7 @@ Suggestions:
287
378
  - Ensure name doesn't conflict with existing commands
288
379
  - Verify all required inputs are provided
289
380
 
290
- Try: cc: new-command "valid-name" "clear description"
381
+ Try: /new-command "valid-name" "clear description"
291
382
  ```
292
383
 
293
384
  ## Integration Notes
@@ -310,4 +401,4 @@ Potential improvements (not in initial version):
310
401
  - **Version Control**: Track command changes and updates
311
402
  - **Command Dependencies**: Handle commands that depend on other commands
312
403
 
313
- 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
@@ -120,31 +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: System Clock
125
+ Get current date by running: `npx @devobsessed/code-captain date`
126
126
 
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`
130
-
131
- ### Fallback Method: User Confirmation
132
-
133
- If system clock access isn't available:
134
-
135
- 1. **STATE**: "I need to confirm today's date for the research folder"
136
- 2. **ASK**: "What is today's date? (YYYY-MM-DD format)"
137
- 3. **WAIT** for user response
138
- 4. **VALIDATE** format matches `^\d{4}-\d{2}-\d{2}$`
139
- - year: 2024-2030
140
- - month: 01-12
141
- - day: 01-31
142
- 5. **STORE** date for folder naming
143
-
144
- ### Error Handling
145
-
146
- - **IF** date_invalid: USE fallback_method
147
- - **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`
148
129
 
149
130
  ## Research Document Template
150
131
 
@@ -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 implementation with `cc: execute-task`
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
@@ -416,9 +416,9 @@ $ cc: status
416
416
 
417
417
  Based on project state analysis, suggest relevant next steps:
418
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`
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,17 +1,9 @@
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
8
-
9
- ```bash
10
- cc: swab
11
- ```
12
-
13
- **Note:** No options, no flags, no complexity. Just simple deck cleaning.
14
-
15
7
  ## Command Process
16
8
 
17
9
  ### Step 0: Initialize Progress Tracking
@@ -259,9 +251,9 @@ This command integrates with the existing Code Captain ecosystem by:
259
251
 
260
252
  Potential future improvements (not in initial version):
261
253
 
262
- - **Directory targeting**: `cc: swab src/components/`
263
- - **File type filtering**: `cc: swab --js-only`
264
- - **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)
265
257
  - **Learning**: Remember which types of cleanups user prefers
266
258
  - **Metrics**: Track improvements made over time
267
259