@devobsessed/code-captain 0.0.3

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 (55) hide show
  1. package/README.md +214 -0
  2. package/bin/install.js +1048 -0
  3. package/claude-code/README.md +276 -0
  4. package/claude-code/agents/code-captain.md +121 -0
  5. package/claude-code/agents/spec-generator.md +271 -0
  6. package/claude-code/agents/story-creator.md +309 -0
  7. package/claude-code/agents/tech-spec.md +440 -0
  8. package/claude-code/commands/cc-initialize.md +520 -0
  9. package/copilot/README.md +210 -0
  10. package/copilot/chatmodes/Code Captain.chatmode.md +60 -0
  11. package/copilot/docs/best-practices.md +74 -0
  12. package/copilot/prompts/create-adr.prompt.md +468 -0
  13. package/copilot/prompts/create-spec.prompt.md +430 -0
  14. package/copilot/prompts/edit-spec.prompt.md +396 -0
  15. package/copilot/prompts/execute-task.prompt.md +144 -0
  16. package/copilot/prompts/explain-code.prompt.md +292 -0
  17. package/copilot/prompts/initialize.prompt.md +65 -0
  18. package/copilot/prompts/new-command.prompt.md +310 -0
  19. package/copilot/prompts/plan-product.prompt.md +450 -0
  20. package/copilot/prompts/research.prompt.md +329 -0
  21. package/copilot/prompts/status.prompt.md +424 -0
  22. package/copilot/prompts/swab.prompt.md +217 -0
  23. package/cursor/README.md +224 -0
  24. package/cursor/cc.md +183 -0
  25. package/cursor/cc.mdc +69 -0
  26. package/cursor/commands/create-adr.md +504 -0
  27. package/cursor/commands/create-spec.md +430 -0
  28. package/cursor/commands/edit-spec.md +405 -0
  29. package/cursor/commands/execute-task.md +514 -0
  30. package/cursor/commands/explain-code.md +289 -0
  31. package/cursor/commands/initialize.md +397 -0
  32. package/cursor/commands/new-command.md +312 -0
  33. package/cursor/commands/plan-product.md +466 -0
  34. package/cursor/commands/research.md +317 -0
  35. package/cursor/commands/status.md +413 -0
  36. package/cursor/commands/swab.md +209 -0
  37. package/cursor/docs/best-practices.md +74 -0
  38. package/cursor/integrations/azure-devops/create-azure-work-items.md +403 -0
  39. package/cursor/integrations/azure-devops/sync-azure-work-items.md +486 -0
  40. package/cursor/integrations/github/create-github-issues.md +765 -0
  41. package/cursor/integrations/github/scripts/create-issues-batch.sh +272 -0
  42. package/cursor/integrations/github/sync-github-issues.md +237 -0
  43. package/cursor/integrations/github/sync.md +305 -0
  44. package/manifest.json +381 -0
  45. package/package.json +58 -0
  46. package/windsurf/README.md +254 -0
  47. package/windsurf/rules/cc.md +5 -0
  48. package/windsurf/workflows/create-adr.md +331 -0
  49. package/windsurf/workflows/create-spec.md +280 -0
  50. package/windsurf/workflows/edit-spec.md +273 -0
  51. package/windsurf/workflows/execute-task.md +276 -0
  52. package/windsurf/workflows/explain-code.md +292 -0
  53. package/windsurf/workflows/initialize.md +298 -0
  54. package/windsurf/workflows/new-command.md +321 -0
  55. package/windsurf/workflows/status.md +213 -0
@@ -0,0 +1,329 @@
1
+ ---
2
+ mode: agent
3
+ ---
4
+
5
+ # Research Command
6
+
7
+ ## Overview
8
+
9
+ Conduct systematic research on a topic using structured phases that build upon each other, creating actionable insights and leveraging web research capabilities.
10
+
11
+ ## When to Use
12
+
13
+ - Investigating new technologies, frameworks, or tools
14
+ - Understanding problem domains before solution design
15
+ - Competitive analysis and market research
16
+ - Technical feasibility studies
17
+ - Learning about best practices in unfamiliar areas
18
+
19
+ ## Command Process
20
+
21
+ ### Phase 1: Define Research Scope
22
+
23
+ **Objective:** Establish clear research boundaries and questions
24
+
25
+ **Actions:**
26
+
27
+ 1. Define primary research question(s)
28
+ 2. Identify key stakeholders and their information needs
29
+ 3. Set success criteria for the research
30
+ 4. Plan research phases and approach
31
+
32
+ **Research Structure:**
33
+ - Phase 1: Define scope and questions [in_progress]
34
+ - Phase 2: Initial discovery [pending]
35
+ - Phase 3: Deep dive analysis [pending]
36
+ - Phase 4: Synthesis and recommendations [pending]
37
+
38
+ ### Phase 2: Initial Discovery
39
+
40
+ **Objective:** Gather broad understanding of the topic landscape
41
+
42
+ **Actions:**
43
+
44
+ 1. Use `fetch` with broad search terms related to your topic
45
+ 2. Search for:
46
+ - Overview articles and introductory content
47
+ - Current trends and recent developments
48
+ - Key players and thought leaders
49
+ - Common terminology and concepts
50
+ 3. Document initial findings and emerging themes
51
+ 4. Identify knowledge gaps that need deeper investigation
52
+
53
+ **Search Strategy:**
54
+
55
+ - Start with general terms: "[topic] overview", "[topic] 2024", "[topic] trends"
56
+ - Look for authoritative sources: documentation, whitepapers, industry reports
57
+ - Note recurring themes and terminology for Phase 3
58
+
59
+ ### Phase 3: Deep Dive Analysis
60
+
61
+ **Objective:** Investigate specific aspects identified in Phase 2
62
+
63
+ **Actions:**
64
+
65
+ 1. Use `fetch` with specific, targeted queries based on Phase 2 findings
66
+ 2. Research specific sub-topics:
67
+ - Technical implementation details
68
+ - Pros and cons of different approaches
69
+ - Real-world case studies and examples
70
+ - Performance metrics and benchmarks
71
+ 3. Compare alternatives and trade-offs
72
+ 4. Validate claims from multiple sources
73
+
74
+ **Search Strategy:**
75
+
76
+ - Use specific terminology discovered in Phase 2
77
+ - Search for: "[specific approach] vs [alternative]", "[topic] case study", "[topic] performance"
78
+ - Look for criticism and limitations, not just benefits
79
+
80
+ ### Phase 4: Synthesis and Recommendations
81
+
82
+ **Objective:** Transform research into actionable insights and document findings
83
+
84
+ **Actions:**
85
+
86
+ 1. Synthesize findings into key insights
87
+ 2. Create recommendations based on research
88
+ 3. Identify next steps or areas requiring further investigation
89
+ 4. Document sources and evidence for claims
90
+ 5. Determine current date using robust file system method (see Date Determination Process below)
91
+ 6. Create research document in `.code-captain/research/` folder using the standardized format below
92
+ 7. Present findings in appropriate format (summary document, recommendations)
93
+
94
+ **Deliverables:**
95
+
96
+ - Executive summary of key findings
97
+ - Pros/cons analysis of options
98
+ - Specific recommendations with rationale
99
+ - Risk assessment and mitigation strategies
100
+ - Further research needs
101
+ - **Research document:** `.code-captain/research/[DATE]-[topic-name]-research.md` (get DATE using file system method below)
102
+
103
+ ## Output Structure
104
+
105
+ ### Research Summary
106
+
107
+ - **Research Question(s):** [What you set out to learn]
108
+ - **Key Findings:** [3-5 bullet points of most important discoveries]
109
+ - **Recommendations:** [Actionable next steps based on research]
110
+
111
+ ### Detailed Findings
112
+
113
+ - **Background/Context:** [Setting the stage]
114
+ - **Current State:** [What exists today]
115
+ - **Options Analysis:** [Comparison of alternatives]
116
+ - **Evidence:** [Supporting data, quotes, sources]
117
+
118
+ ### Next Steps
119
+
120
+ - **Immediate Actions:** [What to do next]
121
+ - **Further Research:** [What questions remain]
122
+ - **Decision Points:** [Key choices that need to be made]
123
+
124
+ ## Date Determination Process
125
+
126
+ ### Primary Method: File System Timestamp
127
+
128
+ 1. **CREATE** directory if not exists: `.code-captain/research/`
129
+ 2. **CREATE** temporary file: `.code-captain/research/.date-check`
130
+ 3. **READ** file creation timestamp from filesystem
131
+ 4. **EXTRACT** date in YYYY-MM-DD format
132
+ 5. **DELETE** temporary file
133
+ 6. **STORE** date in variable for folder naming
134
+
135
+ ### Fallback Method: User Confirmation
136
+
137
+ If file system method fails:
138
+
139
+ 1. **STATE**: "I need to confirm today's date for the research folder"
140
+ 2. **ASK**: "What is today's date? (YYYY-MM-DD format)"
141
+ 3. **WAIT** for user response
142
+ 4. **VALIDATE** format matches `^\d{4}-\d{2}-\d{2}$`
143
+ - year: 2024-2030
144
+ - month: 01-12
145
+ - day: 01-31
146
+ 5. **STORE** date for folder naming
147
+
148
+ ### Error Handling
149
+
150
+ - **IF** date_invalid: USE fallback_method
151
+ - **IF** both_methods_fail: ERROR "Unable to determine current date"
152
+
153
+ ## Research Document Template
154
+
155
+ **First, determine the current date using the process above.**
156
+
157
+ Create a markdown file in `.code-captain/research/[DATE]-[topic-name]-research.md` where `[DATE]` is determined using the robust date process.
158
+
159
+ **Example:** `.code-captain/research/2024-01-15-blockchain-supply-chain-research.md`
160
+
161
+ Use the following structure:
162
+
163
+ ```markdown
164
+ # [Topic Name] Research
165
+
166
+ **Date:** [Use date from file system determination process]
167
+ **Researcher:** [Name]
168
+ **Status:** [In Progress/Complete]
169
+
170
+ ## Research Question(s)
171
+
172
+ [Primary questions this research aimed to answer]
173
+
174
+ ## Executive Summary
175
+
176
+ [2-3 paragraph overview of key findings and recommendations]
177
+
178
+ ## Background & Context
179
+
180
+ [Why this research was needed, current situation, stakeholders involved]
181
+
182
+ ## Methodology
183
+
184
+ [How the research was conducted, sources used, timeframe]
185
+
186
+ ## Key Findings
187
+
188
+ ### Finding 1: [Title]
189
+
190
+ - **Evidence:** [Supporting data/sources]
191
+ - **Implications:** [What this means for the project/decision]
192
+
193
+ ### Finding 2: [Title]
194
+
195
+ - **Evidence:** [Supporting data/sources]
196
+ - **Implications:** [What this means for the project/decision]
197
+
198
+ [Continue for each major finding...]
199
+
200
+ ## Options Analysis
201
+
202
+ ### Option 1: [Name]
203
+
204
+ - **Pros:** [Benefits and advantages]
205
+ - **Cons:** [Drawbacks and limitations]
206
+ - **Cost/Effort:** [Implementation requirements]
207
+ - **Risk Level:** [High/Medium/Low with explanation]
208
+
209
+ ### Option 2: [Name]
210
+
211
+ - **Pros:** [Benefits and advantages]
212
+ - **Cons:** [Drawbacks and limitations]
213
+ - **Cost/Effort:** [Implementation requirements]
214
+ - **Risk Level:** [High/Medium/Low with explanation]
215
+
216
+ [Continue for each option...]
217
+
218
+ ## Recommendations
219
+
220
+ ### Primary Recommendation
221
+
222
+ [Specific recommended course of action with rationale]
223
+
224
+ ### Alternative Approaches
225
+
226
+ [Secondary options if primary recommendation isn't feasible]
227
+
228
+ ### Implementation Considerations
229
+
230
+ [Key factors to consider when moving forward]
231
+
232
+ ## Risks & Mitigation
233
+
234
+ - **Risk 1:** [Description] → **Mitigation:** [How to address]
235
+ - **Risk 2:** [Description] → **Mitigation:** [How to address]
236
+
237
+ ## Further Research Needed
238
+
239
+ - [Question/area that needs additional investigation]
240
+ - [Question/area that needs additional investigation]
241
+
242
+ ## Sources
243
+
244
+ - [Source 1 with URL and access date]
245
+ - [Source 2 with URL and access date]
246
+ - [Continue listing all sources used...]
247
+
248
+ ## Appendix
249
+
250
+ [Additional detailed information, raw data, extended quotes, etc.]
251
+ ```
252
+
253
+ ## Tool Integration
254
+
255
+ **Primary tools:**
256
+ - `fetch` - Web research and external information gathering
257
+ - `search` - Finding existing research and related documentation
258
+ - `editFiles` - Creating research documents and reports
259
+ - `runCommands` - Date determination and directory operations
260
+ - `codebase` - Understanding project context and existing knowledge
261
+
262
+ **Documentation organization:**
263
+ - Research documents stored in `.code-captain/research/`
264
+ - Date-prefixed filenames for chronological organization
265
+ - Cross-references to related project documentation
266
+
267
+ ## Best Practices
268
+
269
+ ### Search Strategy
270
+
271
+ - Start broad, then narrow down
272
+ - Use multiple search terms and phrasings
273
+ - Look for recent content (last 1-2 years) for rapidly evolving topics
274
+ - Cross-reference information from multiple sources
275
+ - Search for both benefits AND criticisms
276
+
277
+ ### Critical Thinking
278
+
279
+ - Question assumptions and biases in sources
280
+ - Look for evidence, not just opinions
281
+ - Consider the source's credibility and potential conflicts of interest
282
+ - Distinguish between correlation and causation
283
+ - Identify what information is missing
284
+
285
+ ### Documentation
286
+
287
+ - Keep track of sources for all claims
288
+ - Note the date of information (especially for fast-moving topics)
289
+ - Document your search process for reproducibility
290
+ - Save important quotes with proper attribution
291
+
292
+ ## Common Pitfalls to Avoid
293
+
294
+ - Confirmation bias (only seeking information that supports preconceived notions)
295
+ - Stopping research too early when findings seem obvious
296
+ - Not considering implementation challenges
297
+ - Ignoring edge cases or limitations
298
+ - Failing to consider stakeholder perspectives beyond your own
299
+
300
+ ## Example Research Progression
301
+
302
+ **Initial Phase:**
303
+ ```
304
+ - Research blockchain solutions for supply chain [in_progress]
305
+ - Analyze implementation approaches [pending]
306
+ - Evaluate vendor options [pending]
307
+ - Create research document in .code-captain/research/ [pending]
308
+ - Create recommendation report [pending]
309
+ ```
310
+
311
+ **After Phase 2:**
312
+ ```
313
+ - Research blockchain solutions for supply chain [completed]
314
+ - Analyze implementation approaches [in_progress]
315
+ - Evaluate vendor options [pending]
316
+ - Determine date using file system method [pending]
317
+ - Create research document in .code-captain/research/ [pending]
318
+ - Create recommendation report [pending]
319
+ ```
320
+
321
+ **Final:**
322
+ ```
323
+ - Research blockchain solutions for supply chain [completed]
324
+ - Analyze implementation approaches [completed]
325
+ - Evaluate vendor options [completed]
326
+ - Determine date using file system method [completed]
327
+ - Create research document in .code-captain/research/ [completed]
328
+ - Create recommendation report [completed]
329
+ ```