@devobsessed/code-captain 0.0.9 → 0.2.0
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 +1 -1
- package/bin/install.js +13 -13
- package/claude-code/commands/cc-create-spec.md +627 -0
- package/copilot/README.md +27 -27
- package/copilot/prompts/create-adr.prompt.md +1 -1
- package/copilot/prompts/create-spec.prompt.md +1 -1
- package/copilot/prompts/edit-spec.prompt.md +1 -1
- package/copilot/prompts/execute-task.prompt.md +1 -1
- package/copilot/prompts/explain-code.prompt.md +1 -1
- package/copilot/prompts/initialize.prompt.md +1 -1
- package/copilot/prompts/new-command.prompt.md +3 -3
- package/copilot/prompts/plan-product.prompt.md +1 -1
- package/copilot/prompts/research.prompt.md +1 -1
- package/copilot/prompts/status.prompt.md +1 -1
- package/copilot/prompts/swab.prompt.md +1 -1
- package/cursor/cc.mdc +45 -0
- package/manifest.json +101 -93
- package/package.json +1 -1
- /package/copilot/{chatmodes/Code Captain.chatmode.md → agents/Code Captain.agent.md} +0 -0
package/copilot/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Code Captain for GitHub Copilot + VS Code
|
|
2
2
|
|
|
3
|
-
> **Classic VS Code with AI-powered
|
|
3
|
+
> **Classic VS Code with AI-powered agents and prompts**
|
|
4
4
|
|
|
5
|
-
Transform GitHub Copilot Chat into a structured development workflow system with custom
|
|
5
|
+
Transform GitHub Copilot Chat into a structured development workflow system with custom agents, prompts, and organized documentation.
|
|
6
6
|
|
|
7
7
|
## 🚀 Installation
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ npx @devobsessed/code-captain
|
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
The installer will detect VS Code with Copilot and install to:
|
|
16
|
-
- `.github/
|
|
16
|
+
- `.github/agents/` - Code Captain agent
|
|
17
17
|
- `.github/prompts/` - Workflow prompt templates
|
|
18
18
|
- `.code-captain/` - Complete workflow system
|
|
19
19
|
|
|
@@ -21,16 +21,16 @@ The installer will detect VS Code with Copilot and install to:
|
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
# Clone or download the copilot/ directory contents to .github/
|
|
24
|
-
cp -r copilot/
|
|
24
|
+
cp -r copilot/agents/ .github/agents/
|
|
25
25
|
cp -r copilot/prompts/ .github/prompts/
|
|
26
26
|
cp -r .code-captain/ .
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
## 🎯 Command Syntax
|
|
30
30
|
|
|
31
|
-
Code Captain integrates with Copilot Chat through a custom
|
|
31
|
+
Code Captain integrates with Copilot Chat through a custom agent. After installation:
|
|
32
32
|
|
|
33
|
-
1. **Select Code Captain
|
|
33
|
+
1. **Select Code Captain agent** from the agent picker
|
|
34
34
|
2. **Use slash commands** directly:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
@@ -40,12 +40,12 @@ Code Captain integrates with Copilot Chat through a custom chat mode. After inst
|
|
|
40
40
|
/status
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
## 📁
|
|
43
|
+
## 📁 Agents & Prompts
|
|
44
44
|
|
|
45
|
-
###
|
|
46
|
-
Located in `.github/
|
|
45
|
+
### Agent
|
|
46
|
+
Located in `.github/agents/`:
|
|
47
47
|
|
|
48
|
-
- **Code Captain.
|
|
48
|
+
- **Code Captain.agent.md** - Automatically available in agent picker
|
|
49
49
|
|
|
50
50
|
### Available Prompts
|
|
51
51
|
Located in `.github/prompts/`:
|
|
@@ -66,7 +66,7 @@ Located in `.github/prompts/`:
|
|
|
66
66
|
|
|
67
67
|
### 📋 Analysis & Research
|
|
68
68
|
- **Research Topics**: AI/ML frameworks, database patterns, security approaches
|
|
69
|
-
- **Market Analysis**: Competitive landscapes, feature comparisons
|
|
69
|
+
- **Market Analysis**: Competitive landscapes, feature comparisons
|
|
70
70
|
- **Technical Evaluation**: Library assessments, architecture reviews
|
|
71
71
|
|
|
72
72
|
### ⚙️ Implementation
|
|
@@ -78,7 +78,7 @@ Located in `.github/prompts/`:
|
|
|
78
78
|
|
|
79
79
|
### Phase 1: Enhanced Core Features ✅
|
|
80
80
|
1. **Advanced Analysis** - Multi-language support, framework detection
|
|
81
|
-
2. **Rich Specifications** - Visual diagrams, interaction flows, API schemas
|
|
81
|
+
2. **Rich Specifications** - Visual diagrams, interaction flows, API schemas
|
|
82
82
|
3. **Smart Implementation** - Context-aware code generation, test automation
|
|
83
83
|
|
|
84
84
|
### Phase 2: Quality & Collaboration 🚧
|
|
@@ -93,10 +93,10 @@ Located in `.github/prompts/`:
|
|
|
93
93
|
|
|
94
94
|
## 🔄 Workflow Examples
|
|
95
95
|
|
|
96
|
-
### Using the
|
|
96
|
+
### Using the Agent
|
|
97
97
|
|
|
98
98
|
1. **Open Copilot Chat** in VS Code
|
|
99
|
-
2. **Select "Code Captain"** from the
|
|
99
|
+
2. **Select "Code Captain"** from the agent picker
|
|
100
100
|
3. **Type:** `/initialize`
|
|
101
101
|
4. **Follow the prompts** for project analysis
|
|
102
102
|
5. **Review generated files** in `.code-captain/docs/`
|
|
@@ -111,7 +111,7 @@ Located in `.github/prompts/`:
|
|
|
111
111
|
### Complete Feature Development
|
|
112
112
|
|
|
113
113
|
```bash
|
|
114
|
-
# Select "Code Captain"
|
|
114
|
+
# Select "Code Captain" agent, then:
|
|
115
115
|
|
|
116
116
|
# 1. Project setup
|
|
117
117
|
/initialize
|
|
@@ -138,8 +138,8 @@ Copilot integration creates this structure:
|
|
|
138
138
|
|
|
139
139
|
```
|
|
140
140
|
.github/
|
|
141
|
-
├──
|
|
142
|
-
│ └── Code Captain.
|
|
141
|
+
├── agents/
|
|
142
|
+
│ └── Code Captain.agent.md
|
|
143
143
|
└── prompts/
|
|
144
144
|
├── create-spec.prompt.md
|
|
145
145
|
├── create-adr.prompt.md
|
|
@@ -163,8 +163,8 @@ Copilot integration creates this structure:
|
|
|
163
163
|
|
|
164
164
|
## 🎯 Copilot-Specific Features
|
|
165
165
|
|
|
166
|
-
### Custom
|
|
167
|
-
- **Structured workflows** through
|
|
166
|
+
### Custom Agents
|
|
167
|
+
- **Structured workflows** through agent activation
|
|
168
168
|
- **Context-aware responses** based on project state
|
|
169
169
|
- **Guided interactions** with step-by-step processes
|
|
170
170
|
|
|
@@ -175,7 +175,7 @@ Copilot integration creates this structure:
|
|
|
175
175
|
|
|
176
176
|
### Repository Integration
|
|
177
177
|
- **Repository-based configuration** through `.github/` structure
|
|
178
|
-
- **Team collaboration** through shared
|
|
178
|
+
- **Team collaboration** through shared agents and prompts
|
|
179
179
|
- **Version-controlled workflows** alongside your codebase
|
|
180
180
|
|
|
181
181
|
|
|
@@ -190,23 +190,23 @@ Copilot integration creates this structure:
|
|
|
190
190
|
|
|
191
191
|
## 🛠️ Troubleshooting
|
|
192
192
|
|
|
193
|
-
###
|
|
194
|
-
**Problem**: Code Captain doesn't appear in
|
|
195
|
-
**Solution**: Ensure `.github/
|
|
193
|
+
### Agent Not Available
|
|
194
|
+
**Problem**: Code Captain doesn't appear in agent picker
|
|
195
|
+
**Solution**: Ensure `.github/agents/Code Captain.agent.md` exists and restart VS Code
|
|
196
196
|
|
|
197
197
|
### Prompts Don't Work as Expected
|
|
198
|
-
**Problem**: Prompts generate inconsistent results
|
|
198
|
+
**Problem**: Prompts generate inconsistent results
|
|
199
199
|
**Solution**: Copy the exact prompt text and include all context sections
|
|
200
200
|
|
|
201
201
|
### File Generation Issues
|
|
202
|
-
**Problem**: Files aren't created in expected locations
|
|
202
|
+
**Problem**: Files aren't created in expected locations
|
|
203
203
|
**Solution**: Check `.code-captain/` folder exists and has write permissions
|
|
204
204
|
|
|
205
205
|
## 🤝 Contributing
|
|
206
206
|
|
|
207
207
|
Copilot-specific contributions:
|
|
208
208
|
|
|
209
|
-
1. **
|
|
209
|
+
1. **Agent Enhancement** - Improve workflow integration
|
|
210
210
|
2. **Prompt Templates** - Add new workflow templates
|
|
211
211
|
3. **Documentation** - Add Copilot-specific examples
|
|
212
212
|
4. **Repository Integration** - Enhance repository templates
|
|
@@ -217,4 +217,4 @@ Copilot-specific contributions:
|
|
|
217
217
|
|
|
218
218
|
1. **Install:** `npx @devobsessed/code-captain`
|
|
219
219
|
2. **Open:** Copilot Chat in VS Code
|
|
220
|
-
3. **Start:** Select "Code Captain"
|
|
220
|
+
3. **Start:** Select "Code Captain" agent and type `/initialize`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
2
|
+
agent: Code Captain
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
# New Command Creator
|
|
@@ -47,7 +47,7 @@ Ask clarifying questions to build complete command specification:
|
|
|
47
47
|
|
|
48
48
|
```markdown
|
|
49
49
|
---
|
|
50
|
-
|
|
50
|
+
agent: Code Captain
|
|
51
51
|
---
|
|
52
52
|
|
|
53
53
|
# [Command Name] Command
|
|
@@ -183,7 +183,7 @@ COMMAND SPECIFICATION:
|
|
|
183
183
|
- Workflow Steps: {workflow_phases}
|
|
184
184
|
|
|
185
185
|
TEMPLATE STRUCTURE:
|
|
186
|
-
1. Frontmatter:
|
|
186
|
+
1. Frontmatter: agent: Code Captain
|
|
187
187
|
2. Title: # [Command Name] Command
|
|
188
188
|
3. Overview: Purpose and capabilities
|
|
189
189
|
4. Command Process: Detailed step-by-step workflow
|
package/cursor/cc.mdc
CHANGED
|
@@ -1,3 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
alwaysApply: true
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Code Captain - System Instructions
|
|
6
|
+
|
|
7
|
+
## Identity & Approach
|
|
8
|
+
|
|
9
|
+
You are **Code Captain** - a methodical AI development partner who executes comprehensive software workflows. You organize all work in `.code-captain/` folders and use `todo_write` for progress tracking.
|
|
10
|
+
|
|
11
|
+
**Personality:**
|
|
12
|
+
|
|
13
|
+
- **Methodical but efficient** - Break complex tasks into clear, manageable steps while leveraging parallel execution
|
|
14
|
+
- **Detail-oriented** - Provide context, rationale, and comprehensive documentation, not just code
|
|
15
|
+
- **Critically minded** - Question assumptions, challenge potentially problematic requests, provide evidence-based pushback when needed
|
|
16
|
+
- **Adaptable** - Adjust standards based on whether you need a quick prototype or production-ready code
|
|
17
|
+
|
|
18
|
+
## Command Execution Protocol
|
|
19
|
+
|
|
20
|
+
1. **Display welcome message**: Randomly select one of these greetings:
|
|
21
|
+
- "⚓ All aboard! Code Captain ready to steer your development ship."
|
|
22
|
+
- "🧭 Ahoy! Your Code Captain is charting the course to quality code."
|
|
23
|
+
- "⛵ Welcome aboard! Code Captain at your service, ready to navigate your codebase."
|
|
24
|
+
- "🚢 Greetings! Your Code Captain is here to guide you through smooth sailing."
|
|
25
|
+
- "⚓ Code Captain reporting for duty! Let's set sail toward exceptional software."
|
|
26
|
+
- "🧭 Ready to embark? Code Captain is here to navigate your development journey."
|
|
27
|
+
- "⛵ Permission to come aboard? Code Captain ready to chart your coding adventure."
|
|
28
|
+
- "🚢 Steady as she goes! Code Captain prepared to steer your project to success."
|
|
29
|
+
- "⚓ Anchors aweigh! Code Captain ready to lead your development expedition."
|
|
30
|
+
- "🧭 All hands on deck! Code Captain here to guide your coding voyage."
|
|
31
|
+
2. **Use parallel tool execution** when possible for efficiency
|
|
32
|
+
3. **Follow critical thinking guidelines** in `.code-captain/docs/best-practices.md` - disagree constructively rather than automatically agreeing
|
|
33
|
+
|
|
34
|
+
## File Organization
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
.code-captain/
|
|
38
|
+
├── specs/ # Requirements, specifications, and tasks
|
|
39
|
+
├── research/ # Technical research and analysis
|
|
40
|
+
├── decision-records/ # Architecture Decision Records
|
|
41
|
+
└── docs/ # Generated documentation, best practices
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**Core Principle:** Always organize work into the `.code-captain/` folder structure to keep everything clean and discoverable. Focus on what's right for the project over being agreeable.
|
|
45
|
+
|
|
1
46
|
# Code Captain - System Instructions
|
|
2
47
|
|
|
3
48
|
## Identity & Approach
|