@devobsessed/code-captain 0.1.0 → 0.2.1
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 +48 -18
- package/claude-code/commands/cc-create-spec.md +627 -0
- package/copilot/README.md +27 -27
- package/copilot/{chatmodes/Code Captain.chatmode.md → agents/Code Captain.agent.md } +16 -18
- package/copilot/copilot-instructions.md +64 -0
- package/copilot/prompts/create-adr.prompt.md +18 -106
- package/copilot/prompts/create-spec.prompt.md +26 -113
- package/copilot/prompts/edit-spec.prompt.md +11 -180
- package/copilot/prompts/execute-task.prompt.md +7 -22
- package/copilot/prompts/explain-code.prompt.md +14 -139
- package/copilot/prompts/initialize.prompt.md +9 -12
- package/copilot/prompts/new-command.prompt.md +25 -213
- package/copilot/prompts/plan-product.prompt.md +15 -306
- package/copilot/prompts/research.prompt.md +12 -139
- package/copilot/prompts/status.prompt.md +37 -365
- package/copilot/prompts/swab.prompt.md +9 -135
- package/manifest.json +123 -107
- package/package.json +1 -1
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
2
|
+
agent: agent
|
|
3
|
+
description: "Generate feature specifications using a contract-first approach"
|
|
3
4
|
---
|
|
4
5
|
|
|
5
|
-
# Create Spec
|
|
6
|
+
# You are executing the Create Spec command.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
You MUST follow these instructions exactly. Do NOT describe this process — execute it.
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## Command Process
|
|
10
|
+
Your mission: Turn the user's rough feature idea into a clear work specification using a contract-first approach. Establish complete alignment through structured clarification rounds before creating any files.
|
|
12
11
|
|
|
13
12
|
### Phase 1: Contract Establishment (No File Creation)
|
|
14
13
|
|
|
15
|
-
**Mission Statement:**
|
|
16
|
-
|
|
17
|
-
> Your goal is to turn my rough feature idea into a very clear work specification. You will deliver the complete spec package only after we both agree on the requirements contract. **Important: Challenge ideas that don't make technical or business sense - it's better to surface concerns early than build the wrong thing.**
|
|
18
|
-
|
|
19
14
|
#### Step 1.1: Initial Context Scan
|
|
20
15
|
|
|
21
16
|
- Scan existing `.code-captain/specs/` for related specifications
|
|
@@ -105,11 +100,11 @@ When confident, present a contract proposal with any concerns surfaced:
|
|
|
105
100
|
- In Scope: [2-3 key features]
|
|
106
101
|
- Out of Scope: [2-3 things we won't build]
|
|
107
102
|
|
|
108
|
-
|
|
103
|
+
**Technical Concerns (if any):**
|
|
109
104
|
- [Specific concern about feasibility, performance, or architecture]
|
|
110
105
|
- [Suggested alternative or mitigation approach]
|
|
111
106
|
|
|
112
|
-
|
|
107
|
+
**Recommendations:**
|
|
113
108
|
- [Suggestions for improving the approach based on codebase analysis]
|
|
114
109
|
- [Ways to reduce risk or complexity]
|
|
115
110
|
|
|
@@ -161,8 +156,8 @@ This returns the current date in `YYYY-MM-DD` format for folder naming:
|
|
|
161
156
|
# [Feature Name] Specification
|
|
162
157
|
|
|
163
158
|
> Created: [DATE from Step 2.1 determination process]
|
|
164
|
-
> Status: Planning
|
|
165
|
-
> Contract Locked:
|
|
159
|
+
> Status: Planning
|
|
160
|
+
> Contract Locked: Yes
|
|
166
161
|
|
|
167
162
|
## Contract Summary
|
|
168
163
|
|
|
@@ -220,7 +215,7 @@ This returns the current date in `YYYY-MM-DD` format for folder naming:
|
|
|
220
215
|
## User Story
|
|
221
216
|
|
|
222
217
|
**As a** [user type from clarification]
|
|
223
|
-
**I want to** [action from contract]
|
|
218
|
+
**I want to** [action from contract]
|
|
224
219
|
**So that** [value from contract must-include]
|
|
225
220
|
|
|
226
221
|
## Acceptance Criteria
|
|
@@ -264,32 +259,7 @@ This returns the current date in `YYYY-MM-DD` format for folder naming:
|
|
|
264
259
|
|
|
265
260
|
#### Step 2.5: Create User Stories Folder Structure
|
|
266
261
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
**Structure Philosophy:**
|
|
270
|
-
|
|
271
|
-
- Each user story gets its own file for better organization
|
|
272
|
-
- Implementation tasks are kept small and focused (max 5-7 per story)
|
|
273
|
-
- Complex stories are broken into multiple smaller stories
|
|
274
|
-
- README.md provides overview and progress tracking
|
|
275
|
-
- Acceptance criteria become verification checkpoints
|
|
276
|
-
- Each story follows TDD: test → implement → verify acceptance criteria
|
|
277
|
-
|
|
278
|
-
**Benefits of Folder Structure:**
|
|
279
|
-
|
|
280
|
-
- **Manageability**: Each file stays focused and readable
|
|
281
|
-
- **Navigation**: Easy to find and work on specific stories
|
|
282
|
-
- **Parallel Work**: Multiple developers can work on different stories
|
|
283
|
-
- **Version Control**: Smaller, focused diffs when stories change
|
|
284
|
-
- **Progress Tracking**: Clear visibility of completion status
|
|
285
|
-
- **Traceability**: Every technical task traces to user value
|
|
286
|
-
|
|
287
|
-
**File Organization:**
|
|
288
|
-
|
|
289
|
-
- **README.md**: Overview, progress summary, dependencies
|
|
290
|
-
- **story-N-{name}.md**: Individual stories with focused tasks (5-7 tasks max)
|
|
291
|
-
- **Story Naming**: Clear, descriptive names for easy identification
|
|
292
|
-
- **Task Numbering**: N.1, N.2, N.3... within each story file
|
|
262
|
+
Each user story gets its own file for better organization. Keep implementation tasks small and focused (max 5-7 per story). Complex stories should be broken into multiple smaller stories. Each story follows TDD: test, implement, verify acceptance criteria.
|
|
293
263
|
|
|
294
264
|
**Task Breakdown Strategy:**
|
|
295
265
|
|
|
@@ -304,23 +274,22 @@ This returns the current date in `YYYY-MM-DD` format for folder naming:
|
|
|
304
274
|
Present complete package with file references:
|
|
305
275
|
|
|
306
276
|
```
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
├──
|
|
311
|
-
├──
|
|
312
|
-
├──
|
|
313
|
-
│ ├──
|
|
314
|
-
│ ├──
|
|
315
|
-
│ ├──
|
|
316
|
-
│ └──
|
|
317
|
-
└──
|
|
318
|
-
├──
|
|
277
|
+
Specification package created successfully!
|
|
278
|
+
|
|
279
|
+
.code-captain/specs/[DATE]-feature-name/
|
|
280
|
+
├── spec.md - Main specification document
|
|
281
|
+
├── spec-lite.md - AI context summary
|
|
282
|
+
├── user-stories/ - Individual user story files
|
|
283
|
+
│ ├── README.md - Overview and progress tracking
|
|
284
|
+
│ ├── story-1-{name}.md - Focused story with 5-7 tasks
|
|
285
|
+
│ ├── story-2-{name}.md - Manageable task groups
|
|
286
|
+
│ └── story-N-{name}.md - Easy navigation and parallel work
|
|
287
|
+
└── sub-specs/
|
|
288
|
+
├── technical-spec.md - Technical requirements
|
|
319
289
|
[Additional specs as created]
|
|
320
290
|
|
|
321
291
|
**Stories Created:** [N] user stories with focused task groups (max 5-7 tasks each)
|
|
322
292
|
**Total Tasks:** [X] implementation tasks across all stories
|
|
323
|
-
**Organization:** Each story is self-contained for better workflow management
|
|
324
293
|
|
|
325
294
|
Please take a moment to review the specification documents. The spec captures everything we discussed, including:
|
|
326
295
|
- [Brief summary of key features/requirements]
|
|
@@ -333,12 +302,6 @@ Please read through the files and let me know:
|
|
|
333
302
|
- Are the user stories appropriately sized (5-7 tasks each)?
|
|
334
303
|
- Should any stories be split further or combined?
|
|
335
304
|
|
|
336
|
-
The user-stories folder structure allows you to:
|
|
337
|
-
- Work on one story at a time for focused development
|
|
338
|
-
- Track progress easily with the README overview
|
|
339
|
-
- Assign different stories to different team members
|
|
340
|
-
- Keep task lists manageable and actionable
|
|
341
|
-
|
|
342
305
|
Once you're satisfied with the specification, I can help you start implementation with the first story, or we can make any needed adjustments.
|
|
343
306
|
```
|
|
344
307
|
|
|
@@ -358,34 +321,7 @@ Once you're satisfied with the specification, I can help you start implementatio
|
|
|
358
321
|
- User stories organized in individual files for better management
|
|
359
322
|
- Technical sub-specs created only when relevant
|
|
360
323
|
|
|
361
|
-
##
|
|
362
|
-
|
|
363
|
-
### 1. Contract-First Approach
|
|
364
|
-
|
|
365
|
-
- **No presumptuous file creation** - Nothing gets built until contract is locked
|
|
366
|
-
- **Structured clarification** - One question at a time, building understanding
|
|
367
|
-
- **Echo check validation** - Clear contract summary before proceeding
|
|
368
|
-
|
|
369
|
-
### 2. Codebase-Aware Questioning
|
|
370
|
-
|
|
371
|
-
- **Context scanning between questions** - Each answer triggers fresh codebase analysis
|
|
372
|
-
- **Integration-focused queries** - Questions shaped by what exists in the codebase
|
|
373
|
-
- **Architecture consistency** - Recommendations align with existing patterns
|
|
374
|
-
|
|
375
|
-
### 3. User Control & Transparency
|
|
376
|
-
|
|
377
|
-
- **Clear decision points** - User explicitly approves before file creation
|
|
378
|
-
- **Risk assessment option** - Can explore implementation risks before committing
|
|
379
|
-
- **Blueprint preview** - Can see planned structure before creation
|
|
380
|
-
- **Edit capability** - Can modify contract before locking
|
|
381
|
-
|
|
382
|
-
### 4. Efficient Clarification Process
|
|
383
|
-
|
|
384
|
-
- **Gap enumeration** - Systematically identifies all unknowns
|
|
385
|
-
- **95% confidence threshold** - Stops asking when ready to deliver
|
|
386
|
-
- **Token efficiency** - Focused questions, no verbose explanations during clarification
|
|
387
|
-
|
|
388
|
-
## Example Usage Flow
|
|
324
|
+
## Example of expected interaction
|
|
389
325
|
|
|
390
326
|
```
|
|
391
327
|
Developer: /create-spec "real-time multiplayer chat with blockchain integration"
|
|
@@ -414,34 +350,11 @@ Agent: [Continues with more informed questions about the hybrid architecture...]
|
|
|
414
350
|
|
|
415
351
|
**Deliverable:** Hybrid real-time chat with immediate message delivery and background blockchain verification for anti-spam
|
|
416
352
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
**Hardest Constraint:** Balancing real-time UX with blockchain settlement delays and gas cost management
|
|
420
|
-
|
|
421
|
-
**⚠️ Technical Concerns:**
|
|
422
|
-
- Gas costs could make casual chat expensive ($1-5 per message during network congestion)
|
|
423
|
-
- Background settlement failures need graceful handling and user notification
|
|
424
|
-
- Wallet integration adds authentication complexity to existing simple auth system
|
|
425
|
-
|
|
426
|
-
**💡 Recommendations:**
|
|
427
|
-
- Consider Layer 2 solution (Polygon) to reduce gas costs to $0.01-0.10 per message
|
|
428
|
-
- Implement message batching to settle multiple messages in single transaction
|
|
429
|
-
- Add fallback mode for when blockchain settlement fails
|
|
430
|
-
|
|
431
|
-
**Success Criteria:** Messages appear instantly, spam is prevented via crypto payments, blockchain verification happens within 5 minutes
|
|
432
|
-
|
|
433
|
-
**Scope Boundaries:**
|
|
434
|
-
- In Scope: Real-time chat, wallet integration, background blockchain settlement
|
|
435
|
-
- Out of Scope: Advanced chat features (file sharing, voice), custom token creation
|
|
436
|
-
|
|
437
|
-
---
|
|
438
|
-
Options: [yes/edit/risks/blueprint]
|
|
353
|
+
...
|
|
439
354
|
|
|
440
355
|
Developer: yes
|
|
441
356
|
|
|
442
|
-
Agent:
|
|
357
|
+
Agent: Contract locked! Creating specification package...
|
|
443
358
|
|
|
444
359
|
[Creates files that account for the technical concerns and hybrid architecture discussed]
|
|
445
360
|
```
|
|
446
|
-
|
|
447
|
-
This approach ensures that every specification is built on solid understanding rather than assumptions, while respecting the developer's time and maintaining control over the process.
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
2
|
+
agent: agent
|
|
3
|
+
description: "Modify existing feature specifications with change tracking"
|
|
3
4
|
---
|
|
4
5
|
|
|
5
|
-
# Edit Spec
|
|
6
|
+
# You are executing the Edit Spec command.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
You MUST follow these instructions exactly. Do NOT describe this process — execute it.
|
|
8
9
|
|
|
9
|
-
Modify existing feature
|
|
10
|
-
|
|
11
|
-
## Command Process
|
|
10
|
+
Your mission: Modify an existing feature specification safely and precisely using a contract-first approach. Establish complete alignment on the modifications before updating any files.
|
|
12
11
|
|
|
13
12
|
### Phase 1: Specification Loading & Change Contract (No File Modifications)
|
|
14
13
|
|
|
15
|
-
**Mission Statement:**
|
|
16
|
-
> Your goal is to help me modify an existing specification safely and precisely. You will deliver the updated spec package only after we both agree on the modification contract. **Important: Challenge changes that could break existing functionality or create technical debt - it's better to surface concerns early than implement problematic modifications.**
|
|
17
|
-
|
|
18
14
|
#### Step 1.1: Specification Discovery & Loading
|
|
19
15
|
|
|
20
16
|
**Locate Target Specification:**
|
|
@@ -83,13 +79,6 @@ Modify existing feature specifications using a contract-first approach that ensu
|
|
|
83
79
|
- **Scope Creep**: Are we expanding beyond the original contract boundaries?
|
|
84
80
|
- **Business Value**: Do changes improve or compromise original user value?
|
|
85
81
|
|
|
86
|
-
**Question Categories (examples):**
|
|
87
|
-
- "This change would affect [existing user story]. Should we modify that story or create a new one?"
|
|
88
|
-
- "I see this conflicts with [existing implementation]. Should we plan a migration strategy?"
|
|
89
|
-
- "This modification increases complexity in [area]. Is the added value worth the technical cost?"
|
|
90
|
-
- "The original spec was focused on [goal]. How does this change serve that same goal?"
|
|
91
|
-
- "This would require changes to [dependent system]. Have you considered the downstream impact?"
|
|
92
|
-
|
|
93
82
|
#### Step 1.4: Modification Contract Proposal
|
|
94
83
|
|
|
95
84
|
When confident about changes, present a modification contract:
|
|
@@ -109,7 +98,7 @@ When confident about changes, present a modification contract:
|
|
|
109
98
|
- **New Stories Required:** [Any additional story files to be created]
|
|
110
99
|
- **Stories to Remove/Combine:** [Any story files that become obsolete]
|
|
111
100
|
- **Task Groups Affected:** [Which task groups within stories need modification]
|
|
112
|
-
- **Technical Components Affected:** [Code/architecture areas needing updates]
|
|
101
|
+
- **Technical Components Affected:** [Code/architecture areas needing updates]
|
|
113
102
|
- **Implementation Status:** [How much existing work across stories is affected]
|
|
114
103
|
|
|
115
104
|
**Migration Strategy:**
|
|
@@ -125,11 +114,11 @@ When confident about changes, present a modification contract:
|
|
|
125
114
|
- **Removed From Scope:** [What gets removed]
|
|
126
115
|
- **Still Out of Scope:** [Unchanged exclusions]
|
|
127
116
|
|
|
128
|
-
|
|
117
|
+
**Risks & Concerns:**
|
|
129
118
|
- [Specific technical or business risks from the changes]
|
|
130
119
|
- [Potential complications or dependencies]
|
|
131
120
|
|
|
132
|
-
|
|
121
|
+
**Recommendations:**
|
|
133
122
|
- [Suggestions for safer implementation approaches]
|
|
134
123
|
- [Ways to minimize disruption to existing work]
|
|
135
124
|
|
|
@@ -217,74 +206,11 @@ Options:
|
|
|
217
206
|
- **Combine stories** if task counts become too small
|
|
218
207
|
- **Reorder stories** if dependencies changed
|
|
219
208
|
|
|
220
|
-
**Story-Level Task Annotations:**
|
|
221
|
-
```markdown
|
|
222
|
-
# In story-1-user-auth.md:
|
|
223
|
-
- [x] 1.1 Write tests for user authentication ✅ (Still valid)
|
|
224
|
-
- [ ] 1.2 Implement OAuth provider ⚠️ (Needs modification)
|
|
225
|
-
- [ ] 1.3 Create social login UI 🆕 (New task from scope change)
|
|
226
|
-
- [~~] 1.4 Implement mobile-specific auth ❌ (Moved to new story-4-mobile-auth.md)
|
|
227
|
-
|
|
228
|
-
# New story-4-mobile-auth.md created if mobile auth becomes separate feature
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
**Story Management:**
|
|
232
|
-
- **Split large stories**: If modifications would create >7 tasks, create additional story files
|
|
233
|
-
- **Archive obsolete stories**: Move removed stories to archived/ subfolder with timestamp
|
|
234
|
-
- **Update story dependencies**: Modify README.md to reflect new story relationships
|
|
235
|
-
- **Maintain story cohesion**: Ensure each story delivers standalone user value
|
|
236
|
-
|
|
237
209
|
#### Step 2.5: Final Update Review & Validation
|
|
238
210
|
|
|
239
|
-
Present updated package with change summary
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
📁 .code-captain/specs/[DATE]-feature-name/
|
|
244
|
-
├── 📋 spec.md - ⭐ Updated specification
|
|
245
|
-
├── 📝 spec-lite.md - ⭐ Updated AI context summary
|
|
246
|
-
├── 👥 user-stories/ - ⭐ Updated story organization
|
|
247
|
-
│ ├── 📊 README.md - ⭐ Updated progress tracking and dependencies
|
|
248
|
-
│ ├── 📝 story-1-{name}.md - ⭐ Modified stories (5-7 tasks each)
|
|
249
|
-
│ ├── 📝 story-2-{name}.md - 🆕 New stories or combinations
|
|
250
|
-
│ ├── 📂 archived/ - 🗃️ Obsolete stories (if any)
|
|
251
|
-
│ └── 📝 story-N-{name}.md - ⭐ Focused task groups
|
|
252
|
-
├── 📂 sub-specs/
|
|
253
|
-
│ ├── 🔧 technical-spec.md - ⭐ Updated if affected
|
|
254
|
-
│ └── [other sub-specs...]
|
|
255
|
-
├── 💾 backups/[timestamp]/ - Original files and stories preserved
|
|
256
|
-
└── 📝 CHANGELOG.md - ⭐ Change documentation
|
|
257
|
-
|
|
258
|
-
## Summary of Changes:
|
|
259
|
-
- **Stories Modified:** [X] existing story files updated
|
|
260
|
-
- **Stories Added:** [Y] new story files created
|
|
261
|
-
- **Stories Removed/Archived:** [Z] story files no longer needed
|
|
262
|
-
- **Task Groups Affected:** [N] task groups reorganized
|
|
263
|
-
- **Modified Components:** [List of changed technical components]
|
|
264
|
-
|
|
265
|
-
## Impact on Implementation:
|
|
266
|
-
- **Stories Still Valid:** [X] out of [Y] stories remain unchanged
|
|
267
|
-
- **Stories Requiring Rework:** [N] stories need modification
|
|
268
|
-
- **New Stories Added:** [N] new stories created (with focused task groups)
|
|
269
|
-
- **Stories Archived:** [N] stories no longer needed
|
|
270
|
-
- **Total Tasks:** [N] tasks across all stories (max 5-7 per story)
|
|
271
|
-
|
|
272
|
-
Please review the updated specification:
|
|
273
|
-
- Does this accurately reflect the agreed modifications?
|
|
274
|
-
- Are the user stories appropriately organized (5-7 tasks per story)?
|
|
275
|
-
- Should any stories be further split or combined?
|
|
276
|
-
- Are story dependencies correctly updated in the README?
|
|
277
|
-
- Should any additional changes be made?
|
|
278
|
-
|
|
279
|
-
The updated user-stories folder structure provides:
|
|
280
|
-
- **Focused development**: Work on one story at a time
|
|
281
|
-
- **Better organization**: Each story file is manageable and self-contained
|
|
282
|
-
- **Team collaboration**: Different stories can be assigned to different developers
|
|
283
|
-
- **Clear progress tracking**: README overview shows status across all stories
|
|
284
|
-
- **Flexible workflow**: Stories can be completed independently where possible
|
|
285
|
-
|
|
286
|
-
The original version is safely backed up in the backups folder. If you need to rollback any changes, I can help restore from backup.
|
|
287
|
-
```
|
|
211
|
+
Present updated package with change summary showing files modified, stories added/removed/archived, task groups reorganized, and total task count.
|
|
212
|
+
|
|
213
|
+
The original version is safely backed up in the backups folder. If the user needs to rollback any changes, offer to help restore from backup.
|
|
288
214
|
|
|
289
215
|
## Tool Integration
|
|
290
216
|
|
|
@@ -299,98 +225,3 @@ The original version is safely backed up in the backups folder. If you need to r
|
|
|
299
225
|
- Backup system for safe modification tracking
|
|
300
226
|
- Change logs for audit trail and rollback capability
|
|
301
227
|
- User stories organized in individual files for better management
|
|
302
|
-
|
|
303
|
-
## Key Features
|
|
304
|
-
|
|
305
|
-
### 1. Safe Modification Process
|
|
306
|
-
- **Backup creation** before any changes
|
|
307
|
-
- **Change tracking** with detailed logs
|
|
308
|
-
- **Rollback capability** to restore previous versions
|
|
309
|
-
- **Impact assessment** before making changes
|
|
310
|
-
|
|
311
|
-
### 2. Precise Change Control
|
|
312
|
-
- **Focused clarification** about specific modifications
|
|
313
|
-
- **Risk assessment** for breaking changes
|
|
314
|
-
- **Migration strategy** for existing implementation
|
|
315
|
-
- **Selective updates** only to affected components
|
|
316
|
-
|
|
317
|
-
### 3. Implementation Continuity
|
|
318
|
-
- **Task status preservation** for completed work
|
|
319
|
-
- **Clear annotation** of what needs rework
|
|
320
|
-
- **Priority reassessment** based on changes
|
|
321
|
-
- **Timeline impact** analysis
|
|
322
|
-
|
|
323
|
-
### 4. Change Documentation
|
|
324
|
-
- **Detailed change logs** for audit trail
|
|
325
|
-
- **Before/after comparison** capability
|
|
326
|
-
- **Modification rationale** capture
|
|
327
|
-
- **Rollback instructions** for safety
|
|
328
|
-
|
|
329
|
-
## Example Usage Flow
|
|
330
|
-
|
|
331
|
-
```
|
|
332
|
-
Developer: /edit-spec "user-auth" "add biometric authentication"
|
|
333
|
-
|
|
334
|
-
Agent: I found your user authentication specification from 2024-01-15. Let me load the current state...
|
|
335
|
-
|
|
336
|
-
[Loads spec.md, tasks.md, and sub-specs]
|
|
337
|
-
|
|
338
|
-
Current specification includes email/password auth with OAuth social login. I see there are 8 user stories, with 3 already implemented in your codebase.
|
|
339
|
-
|
|
340
|
-
I have a concern about adding biometric authentication: your current implementation is web-focused, but biometric auth typically requires native mobile or desktop apps. I see no mobile components in your existing specification.
|
|
341
|
-
|
|
342
|
-
First question: Are you planning to add mobile app development to this specification, or do you want to use WebAuthn for browser-based biometric authentication?
|
|
343
|
-
|
|
344
|
-
Developer: WebAuthn for browser-based
|
|
345
|
-
|
|
346
|
-
Agent: That makes more sense with your existing web architecture. However, WebAuthn requires HTTPS and has limited browser support. I see your current implementation supports users who may be on older browsers.
|
|
347
|
-
|
|
348
|
-
Should we make biometric authentication an optional enhancement for supported browsers, or do you want to require it for all users (which might break compatibility)?
|
|
349
|
-
|
|
350
|
-
Developer: Optional enhancement for supported browsers
|
|
351
|
-
|
|
352
|
-
Agent: [Continues with more questions about UX, fallback behavior, etc.]
|
|
353
|
-
|
|
354
|
-
## Modification Contract
|
|
355
|
-
|
|
356
|
-
**Target Specification:** User Authentication System (2024-01-15)
|
|
357
|
-
|
|
358
|
-
**Proposed Changes:** Add WebAuthn biometric authentication as optional enhancement
|
|
359
|
-
|
|
360
|
-
**Change Type:** Addition (with graceful degradation)
|
|
361
|
-
|
|
362
|
-
**Impact Assessment:**
|
|
363
|
-
- **User Stories Affected:** Story 2 (Login flow) needs biometric option
|
|
364
|
-
- **Technical Components Affected:** Frontend auth component, browser capability detection
|
|
365
|
-
- **Implementation Status:** 3/8 stories completed, none affected by this change
|
|
366
|
-
|
|
367
|
-
**Migration Strategy:**
|
|
368
|
-
- Existing auth flows remain unchanged
|
|
369
|
-
- Add biometric as progressive enhancement
|
|
370
|
-
- No breaking changes to current implementation
|
|
371
|
-
|
|
372
|
-
**Updated Success Criteria:** Users can log in with biometrics on supported browsers, fallback to existing methods
|
|
373
|
-
|
|
374
|
-
**⚠️ Risks & Concerns:**
|
|
375
|
-
- Browser support varies (Chrome 67+, Firefox 60+, Safari 14+)
|
|
376
|
-
- Requires HTTPS in production
|
|
377
|
-
- UX complexity for unsupported browsers
|
|
378
|
-
|
|
379
|
-
**💡 Recommendations:**
|
|
380
|
-
- Feature detection before offering biometric option
|
|
381
|
-
- Clear messaging when biometric unavailable
|
|
382
|
-
- Analytics to track adoption rates
|
|
383
|
-
|
|
384
|
-
**Effort Estimate:** ~2-3 additional days (1 story addition, modest technical complexity)
|
|
385
|
-
|
|
386
|
-
---
|
|
387
|
-
Options: [yes/edit/compare/risks/rollback]
|
|
388
|
-
|
|
389
|
-
Developer: yes
|
|
390
|
-
|
|
391
|
-
Agent: ✅ Modification contract locked! Updating specification...
|
|
392
|
-
|
|
393
|
-
[Updates files, creates backups, documents changes]
|
|
394
|
-
```
|
|
395
|
-
|
|
396
|
-
This approach ensures that specification modifications are as careful and controlled as the original creation process, while preserving existing work and providing safety mechanisms for complex changes.
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
2
|
+
agent: agent
|
|
3
|
+
description: "Execute implementation tasks using TDD from specifications"
|
|
3
4
|
---
|
|
4
5
|
|
|
5
|
-
# Execute Task
|
|
6
|
+
# You are executing the Execute Task command.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
You MUST follow these instructions exactly. Do NOT describe this process — execute it.
|
|
8
9
|
|
|
9
|
-
Execute a specific task and its sub-tasks systematically following a Test-Driven Development (TDD) workflow.
|
|
10
|
-
|
|
11
|
-
**Note:** This command automatically detects and lists available task specifications for selection, or executes a specific task if context is clear.
|
|
10
|
+
Your mission: Execute a specific task and its sub-tasks systematically following a Test-Driven Development (TDD) workflow. Read task specifications from `.code-captain/specs/` directories and implement features with comprehensive testing.
|
|
12
11
|
|
|
13
12
|
## CRITICAL REQUIREMENT: 100% Test Pass Rate
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
**ZERO TOLERANCE FOR FAILING TESTS**
|
|
16
15
|
|
|
17
|
-
This command enforces strict test validation:
|
|
18
16
|
- **NO story can be marked "COMPLETED" with ANY failing tests**
|
|
19
17
|
- **100% test pass rate is MANDATORY before completion**
|
|
20
18
|
- **"Edge case" or "minor" test failures are NOT acceptable**
|
|
@@ -22,8 +20,6 @@ This command enforces strict test validation:
|
|
|
22
20
|
|
|
23
21
|
If tests fail, the story remains "IN PROGRESS" until all failures are resolved.
|
|
24
22
|
|
|
25
|
-
## Command Process
|
|
26
|
-
|
|
27
23
|
### Step 1: Task Discovery & Selection
|
|
28
24
|
|
|
29
25
|
**Scan for available specifications:**
|
|
@@ -110,7 +106,7 @@ For each implementation task within the story:
|
|
|
110
106
|
4. **Validate all acceptance criteria are met for the user story**
|
|
111
107
|
5. **Confirm story delivers the specified user value**
|
|
112
108
|
|
|
113
|
-
|
|
109
|
+
**STORY CANNOT BE MARKED COMPLETE WITH ANY FAILING TESTS**
|
|
114
110
|
|
|
115
111
|
### Step 5: Story Completion & Status Updates
|
|
116
112
|
|
|
@@ -131,14 +127,3 @@ Update story file status and progress tracking files with completion details, en
|
|
|
131
127
|
- File-based progress tracking in `.code-captain/current-task-progress.md`
|
|
132
128
|
- Story status updates in specification files
|
|
133
129
|
- Test execution results documentation
|
|
134
|
-
|
|
135
|
-
## Quality Standards
|
|
136
|
-
|
|
137
|
-
**Test-Driven Development:**
|
|
138
|
-
- Tests written before implementation
|
|
139
|
-
- **100% test pass rate MANDATORY before task completion**
|
|
140
|
-
- **ZERO TOLERANCE for failing tests - no story completion with any failures**
|
|
141
|
-
- Comprehensive coverage including edge cases
|
|
142
|
-
- Regression testing for existing functionality
|
|
143
|
-
|
|
144
|
-
This command ensures systematic, test-driven implementation with proper documentation and progress tracking using file-based systems compatible with GitHub Copilot.
|