kiro-agent-team 1.0.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/.kiro/README.md +228 -0
- package/.kiro/agents/backend-engineer.json +6 -0
- package/.kiro/agents/backend-engineer.md +643 -0
- package/.kiro/agents/database-specialist.json +6 -0
- package/.kiro/agents/database-specialist.md +390 -0
- package/.kiro/agents/development-logger.json +6 -0
- package/.kiro/agents/development-logger.md +265 -0
- package/.kiro/agents/devops-engineer.json +6 -0
- package/.kiro/agents/devops-engineer.md +287 -0
- package/.kiro/agents/frontend-architect.json +6 -0
- package/.kiro/agents/frontend-architect.md +1032 -0
- package/.kiro/agents/hooks/backend-engineer-hooks.yaml +540 -0
- package/.kiro/agents/hooks/database-specialist-hooks.yaml +488 -0
- package/.kiro/agents/hooks/development-logger-hooks.yaml +361 -0
- package/.kiro/agents/hooks/devops-engineer-hooks.yaml +345 -0
- package/.kiro/agents/hooks/frontend-architect-hooks.yaml +521 -0
- package/.kiro/agents/hooks/project-manager-hooks.yaml +513 -0
- package/.kiro/agents/hooks/security-specialist-hooks.yaml +358 -0
- package/.kiro/agents/hooks/test-orchestrator-hooks.yaml +380 -0
- package/.kiro/agents/hooks/ui-ux-designer-hooks.yaml +353 -0
- package/.kiro/agents/project-manager.json +6 -0
- package/.kiro/agents/project-manager.md +344 -0
- package/.kiro/agents/prompts/backend-engineer-system.md +815 -0
- package/.kiro/agents/prompts/database-specialist-system.md +332 -0
- package/.kiro/agents/prompts/development-logger-system.md +232 -0
- package/.kiro/agents/prompts/devops-engineer-system.md +260 -0
- package/.kiro/agents/prompts/frontend-architect-system.md +305 -0
- package/.kiro/agents/prompts/project-manager-system.md +285 -0
- package/.kiro/agents/prompts/security-specialist-system.md +231 -0
- package/.kiro/agents/prompts/test-orchestrator-system.md +214 -0
- package/.kiro/agents/prompts/ui-ux-designer-system.md +270 -0
- package/.kiro/agents/security-specialist.json +6 -0
- package/.kiro/agents/security-specialist.md +277 -0
- package/.kiro/agents/test-orchestrator.json +6 -0
- package/.kiro/agents/test-orchestrator.md +266 -0
- package/.kiro/agents/ui-ux-designer.json +6 -0
- package/.kiro/agents/ui-ux-designer.md +284 -0
- package/.kiro/devlog/00-START-HERE.md +444 -0
- package/.kiro/devlog/COMPLETE-WORKFLOW.md +553 -0
- package/.kiro/devlog/DEVLOG-INTEGRATION.md +413 -0
- package/.kiro/devlog/DEVLOG-PROCESS-FLOWS.md +484 -0
- package/.kiro/devlog/DEVLOG-QUICK-REF.md +299 -0
- package/.kiro/devlog/DEVLOG.md +22 -0
- package/.kiro/devlog/IMPLEMENTATION-COMPLETE.txt +434 -0
- package/.kiro/devlog/IMPLEMENTATION-SUMMARY.md +358 -0
- package/.kiro/devlog/README.md +363 -0
- package/.kiro/devlog/devlog-update.bat +136 -0
- package/.kiro/devlog/devlog-update.sh +275 -0
- package/.kiro/devlog/feature-completion-hook.bat +78 -0
- package/.kiro/devlog/feature-completion-hook.sh +84 -0
- package/.kiro/documentation/cli.md +31 -0
- package/.kiro/documentation/docs_cli.md +41 -0
- package/.kiro/documentation/docs_cli_authentication.md +43 -0
- package/.kiro/documentation/docs_cli_autocomplete.md +132 -0
- package/.kiro/documentation/docs_cli_billing.md +31 -0
- package/.kiro/documentation/docs_cli_billing_contact-support.md +43 -0
- package/.kiro/documentation/docs_cli_billing_managing-taxes.md +67 -0
- package/.kiro/documentation/docs_cli_billing_related-questions.md +49 -0
- package/.kiro/documentation/docs_cli_billing_subscription-portal.md +31 -0
- package/.kiro/documentation/docs_cli_chat.md +84 -0
- package/.kiro/documentation/docs_cli_chat_configuration.md +40 -0
- package/.kiro/documentation/docs_cli_chat_context.md +258 -0
- package/.kiro/documentation/docs_cli_chat_git-aware-selection.md +41 -0
- package/.kiro/documentation/docs_cli_chat_images.md +53 -0
- package/.kiro/documentation/docs_cli_chat_manage-prompts.md +216 -0
- package/.kiro/documentation/docs_cli_chat_model-selection.md +153 -0
- package/.kiro/documentation/docs_cli_chat_permissions.md +68 -0
- package/.kiro/documentation/docs_cli_chat_planning-agent.md +230 -0
- package/.kiro/documentation/docs_cli_chat_responding.md +123 -0
- package/.kiro/documentation/docs_cli_chat_security.md +87 -0
- package/.kiro/documentation/docs_cli_chat_subagents.md +77 -0
- package/.kiro/documentation/docs_cli_code-intelligence.md +251 -0
- package/.kiro/documentation/docs_cli_custom-agents.md +37 -0
- package/.kiro/documentation/docs_cli_custom-agents_configuration-reference.md +941 -0
- package/.kiro/documentation/docs_cli_custom-agents_creating.md +93 -0
- package/.kiro/documentation/docs_cli_custom-agents_examples.md +360 -0
- package/.kiro/documentation/docs_cli_custom-agents_troubleshooting.md +180 -0
- package/.kiro/documentation/docs_cli_enterprise_billing.md +33 -0
- package/.kiro/documentation/docs_cli_enterprise_concepts.md +34 -0
- package/.kiro/documentation/docs_cli_enterprise_getting-started.md +19 -0
- package/.kiro/documentation/docs_cli_enterprise_iam.md +251 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track.md +15 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_dashboard.md +62 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_prompt-logging.md +165 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_user-activity.md +123 -0
- package/.kiro/documentation/docs_cli_enterprise_settings.md +15 -0
- package/.kiro/documentation/docs_cli_enterprise_subscribe.md +36 -0
- package/.kiro/documentation/docs_cli_enterprise_subscription-management.md +55 -0
- package/.kiro/documentation/docs_cli_enterprise_supported-regions.md +39 -0
- package/.kiro/documentation/docs_cli_experimental.md +282 -0
- package/.kiro/documentation/docs_cli_experimental_checkpointing.md +439 -0
- package/.kiro/documentation/docs_cli_experimental_delegate.md +422 -0
- package/.kiro/documentation/docs_cli_experimental_knowledge-management.md +449 -0
- package/.kiro/documentation/docs_cli_experimental_tangent-mode.md +357 -0
- package/.kiro/documentation/docs_cli_experimental_thinking.md +331 -0
- package/.kiro/documentation/docs_cli_experimental_todo-lists.md +385 -0
- package/.kiro/documentation/docs_cli_hooks.md +207 -0
- package/.kiro/documentation/docs_cli_installation.md +235 -0
- package/.kiro/documentation/docs_cli_mcp.md +106 -0
- package/.kiro/documentation/docs_cli_mcp_configuration.md +294 -0
- package/.kiro/documentation/docs_cli_mcp_examples.md +273 -0
- package/.kiro/documentation/docs_cli_mcp_governance.md +436 -0
- package/.kiro/documentation/docs_cli_mcp_security.md +77 -0
- package/.kiro/documentation/docs_cli_migrating-from-q.md +129 -0
- package/.kiro/documentation/docs_cli_privacy-and-security.md +83 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_compliance-validation.md +17 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_data-protection.md +104 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_firewalls.md +26 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_infrastructure-security.md +10 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_vpc-endpoints.md +41 -0
- package/.kiro/documentation/docs_cli_reference_built-in-tools.md +624 -0
- package/.kiro/documentation/docs_cli_reference_cli-commands.md +689 -0
- package/.kiro/documentation/docs_cli_reference_settings.md +294 -0
- package/.kiro/documentation/docs_cli_reference_slash-commands.md +559 -0
- package/.kiro/documentation/docs_cli_steering.md +84 -0
- package/.kiro/guides/AGENT_WORKFLOW_GUIDE.md +294 -0
- package/.kiro/guides/DEVLOG.md +882 -0
- package/.kiro/guides/IMPLEMENTATION_EXAMPLES.md +611 -0
- package/.kiro/guides/PIV Loop.md +122 -0
- package/.kiro/guides/PIV Loop.png +0 -0
- package/.kiro/guides/PIVLoop.png +0 -0
- package/.kiro/guides/QUICK_REFERENCE.md +202 -0
- package/.kiro/guides/README.md +149 -0
- package/.kiro/guides/advanced-patterns.md +514 -0
- package/.kiro/guides/agent-coordination.md +434 -0
- package/.kiro/guides/core-workflows.md +409 -0
- package/.kiro/guides/emergency-procedures.md +414 -0
- package/.kiro/guides/project-evaluation.md +534 -0
- package/.kiro/guides/quality-assurance.md +431 -0
- package/.kiro/guides/quick-start.md +235 -0
- package/.kiro/guides/troubleshooting.md +575 -0
- package/.kiro/guides/walkthroughs.md +711 -0
- package/.kiro/prompts/add-to-devlog.md +263 -0
- package/.kiro/prompts/code-review-fix.md +18 -0
- package/.kiro/prompts/code-review-hackathon.md +167 -0
- package/.kiro/prompts/code-review-security.md +454 -0
- package/.kiro/prompts/code-review.md +113 -0
- package/.kiro/prompts/create-prd.md +151 -0
- package/.kiro/prompts/execute-backend.md +257 -0
- package/.kiro/prompts/execute-frontend.md +438 -0
- package/.kiro/prompts/execute-logging.md +491 -0
- package/.kiro/prompts/execute-security.md +482 -0
- package/.kiro/prompts/execute-testing.md +528 -0
- package/.kiro/prompts/execute.md +101 -0
- package/.kiro/prompts/execution-report.md +72 -0
- package/.kiro/prompts/implement-fix.md +228 -0
- package/.kiro/prompts/plan-feature.md +433 -0
- package/.kiro/prompts/prime.md +73 -0
- package/.kiro/prompts/quality-metrics.md +622 -0
- package/.kiro/prompts/quickstart.md +318 -0
- package/.kiro/prompts/rca.md +220 -0
- package/.kiro/prompts/system-review.md +189 -0
- package/README.md +32 -0
- package/bin/cli.js +97 -0
- package/package.json +33 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Implement fix from RCA document for GitHub issue
|
|
3
|
+
argument-hint: [github-issue-id]
|
|
4
|
+
allowed-tools: Read, Write, Edit, Bash(ruff:*), Bash(mypy:*), Bash(pytest:*), Bash(npm:*), Bash(bun:*)
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Implement Fix: GitHub Issue #$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
## Prerequisites
|
|
10
|
+
|
|
11
|
+
**This command implements fixes for GitHub issues based on RCA documents:**
|
|
12
|
+
- Working in a local Git repository with GitHub origin
|
|
13
|
+
- RCA document exists at `docs/rca/issue-$ARGUMENTS.md`
|
|
14
|
+
- GitHub CLI installed and authenticated (optional, for status updates)
|
|
15
|
+
|
|
16
|
+
## RCA Document to Reference
|
|
17
|
+
|
|
18
|
+
Read RCA: `docs/rca/issue-$ARGUMENTS.md`
|
|
19
|
+
|
|
20
|
+
**Optional - View GitHub issue for context:**
|
|
21
|
+
```bash
|
|
22
|
+
gh issue view $ARGUMENTS
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Implementation Instructions
|
|
26
|
+
|
|
27
|
+
### 1. Read and Understand RCA
|
|
28
|
+
|
|
29
|
+
- Read the ENTIRE RCA document thoroughly
|
|
30
|
+
- Review the GitHub issue details (issue #$ARGUMENTS)
|
|
31
|
+
- Understand the root cause
|
|
32
|
+
- Review the proposed fix strategy
|
|
33
|
+
- Note all files to modify
|
|
34
|
+
- Review testing requirements
|
|
35
|
+
|
|
36
|
+
### 2. Verify Current State
|
|
37
|
+
|
|
38
|
+
Before making changes:
|
|
39
|
+
- Confirm the issue still exists
|
|
40
|
+
- Check current state of affected files
|
|
41
|
+
- Review any recent changes to those files
|
|
42
|
+
|
|
43
|
+
### 3. Implement the Fix
|
|
44
|
+
|
|
45
|
+
Following the "Proposed Fix" section of the RCA:
|
|
46
|
+
|
|
47
|
+
**For each file to modify:**
|
|
48
|
+
|
|
49
|
+
#### a. Read the existing file
|
|
50
|
+
- Understand current implementation
|
|
51
|
+
- Locate the specific code mentioned in RCA
|
|
52
|
+
|
|
53
|
+
#### b. Make the fix
|
|
54
|
+
- Implement the change as described in RCA
|
|
55
|
+
- Follow the fix strategy exactly
|
|
56
|
+
- Maintain code style and conventions
|
|
57
|
+
- Add comments if the fix is non-obvious
|
|
58
|
+
|
|
59
|
+
#### c. Handle related changes
|
|
60
|
+
- Update any related code affected by the fix
|
|
61
|
+
- Ensure consistency across the codebase
|
|
62
|
+
- Update imports if needed
|
|
63
|
+
|
|
64
|
+
### 4. Add/Update Tests
|
|
65
|
+
|
|
66
|
+
Following the "Testing Requirements" from RCA:
|
|
67
|
+
|
|
68
|
+
**Create test cases for:**
|
|
69
|
+
1. Verify the fix resolves the issue
|
|
70
|
+
2. Test edge cases related to the bug
|
|
71
|
+
3. Ensure no regression in related functionality
|
|
72
|
+
4. Test any new code paths introduced
|
|
73
|
+
|
|
74
|
+
**Test file location:**
|
|
75
|
+
- Follow project's test structure
|
|
76
|
+
- Mirror the source file location
|
|
77
|
+
- Use descriptive test names
|
|
78
|
+
|
|
79
|
+
**Test implementation:**
|
|
80
|
+
```python
|
|
81
|
+
def test_issue_$ARGUMENTS_fix():
|
|
82
|
+
"""Test that issue #$ARGUMENTS is fixed."""
|
|
83
|
+
# Arrange - set up the scenario that caused the bug
|
|
84
|
+
# Act - execute the code that previously failed
|
|
85
|
+
# Assert - verify it now works correctly
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 5. Run Validation
|
|
89
|
+
|
|
90
|
+
Execute validation commands from RCA:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
# Run linters
|
|
94
|
+
[from RCA validation commands]
|
|
95
|
+
|
|
96
|
+
# Run type checking
|
|
97
|
+
[from RCA validation commands]
|
|
98
|
+
|
|
99
|
+
# Run tests
|
|
100
|
+
[from RCA validation commands]
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**If validation fails:**
|
|
104
|
+
- Fix the issues
|
|
105
|
+
- Re-run validation
|
|
106
|
+
- Don't proceed until all pass
|
|
107
|
+
|
|
108
|
+
### 6. Verify Fix
|
|
109
|
+
|
|
110
|
+
**Manually verify:**
|
|
111
|
+
- Follow reproduction steps from RCA
|
|
112
|
+
- Confirm issue no longer occurs
|
|
113
|
+
- Test edge cases
|
|
114
|
+
- Check for unintended side effects
|
|
115
|
+
|
|
116
|
+
### 7. Update Documentation
|
|
117
|
+
|
|
118
|
+
If needed:
|
|
119
|
+
- Update code comments
|
|
120
|
+
- Update API documentation
|
|
121
|
+
- Update README if user-facing
|
|
122
|
+
- Add notes about the fix
|
|
123
|
+
|
|
124
|
+
## Output Report
|
|
125
|
+
|
|
126
|
+
### Fix Implementation Summary
|
|
127
|
+
|
|
128
|
+
**GitHub Issue #$ARGUMENTS**: [Brief title]
|
|
129
|
+
|
|
130
|
+
**Issue URL**: [GitHub issue URL]
|
|
131
|
+
|
|
132
|
+
**Root Cause** (from RCA):
|
|
133
|
+
[One-line summary of root cause]
|
|
134
|
+
|
|
135
|
+
### Changes Made
|
|
136
|
+
|
|
137
|
+
**Files Modified:**
|
|
138
|
+
1. **[file-path]**
|
|
139
|
+
- Change: [What was changed]
|
|
140
|
+
- Lines: [Line numbers]
|
|
141
|
+
|
|
142
|
+
2. **[file-path]**
|
|
143
|
+
- Change: [What was changed]
|
|
144
|
+
- Lines: [Line numbers]
|
|
145
|
+
|
|
146
|
+
### Tests Added
|
|
147
|
+
|
|
148
|
+
**Test Files Created/Modified:**
|
|
149
|
+
1. **[test-file-path]**
|
|
150
|
+
- Test cases: [List test functions added]
|
|
151
|
+
|
|
152
|
+
**Test Coverage:**
|
|
153
|
+
- ✅ Fix verification test
|
|
154
|
+
- ✅ Edge case tests
|
|
155
|
+
- ✅ Regression prevention tests
|
|
156
|
+
|
|
157
|
+
### Validation Results
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
# Linter output
|
|
161
|
+
[Show lint results]
|
|
162
|
+
|
|
163
|
+
# Type check output
|
|
164
|
+
[Show type check results]
|
|
165
|
+
|
|
166
|
+
# Test output
|
|
167
|
+
[Show test results - all passing]
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### Verification
|
|
171
|
+
|
|
172
|
+
**Manual Testing:**
|
|
173
|
+
- ✅ Followed reproduction steps - issue resolved
|
|
174
|
+
- ✅ Tested edge cases - all pass
|
|
175
|
+
- ✅ No new issues introduced
|
|
176
|
+
- ✅ Original functionality preserved
|
|
177
|
+
|
|
178
|
+
### Files Summary
|
|
179
|
+
|
|
180
|
+
**Total Changes:**
|
|
181
|
+
- X files modified
|
|
182
|
+
- Y files created (tests)
|
|
183
|
+
- Z lines added
|
|
184
|
+
- W lines removed
|
|
185
|
+
|
|
186
|
+
### Ready for Commit
|
|
187
|
+
|
|
188
|
+
All changes complete and validated. Ready for:
|
|
189
|
+
```bash
|
|
190
|
+
/commit
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**Suggested commit message:**
|
|
194
|
+
```
|
|
195
|
+
fix(scope): resolve GitHub issue #$ARGUMENTS - [brief description]
|
|
196
|
+
|
|
197
|
+
[Summary of what was fixed and how]
|
|
198
|
+
|
|
199
|
+
Fixes #$ARGUMENTS
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
**Note:** Using `Fixes #$ARGUMENTS` in the commit message will automatically close the GitHub issue when merged to the default branch.
|
|
203
|
+
|
|
204
|
+
### Optional: Update GitHub Issue
|
|
205
|
+
|
|
206
|
+
**Add implementation comment to issue:**
|
|
207
|
+
```bash
|
|
208
|
+
gh issue comment $ARGUMENTS --body "Fix implemented in commit [commit-hash]. Ready for review."
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
**Update issue labels (if needed):**
|
|
212
|
+
```bash
|
|
213
|
+
gh issue edit $ARGUMENTS --add-label "fixed" --remove-label "bug"
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
**Close the issue (if not using auto-close via commit message):**
|
|
217
|
+
```bash
|
|
218
|
+
gh issue close $ARGUMENTS --comment "Fixed and merged."
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## Notes
|
|
222
|
+
|
|
223
|
+
- If the RCA document is missing or incomplete, request it be created first with `/rca $ARGUMENTS`
|
|
224
|
+
- If you discover the RCA analysis was incorrect, document findings and update the RCA
|
|
225
|
+
- If additional issues are found during implementation, note them for separate GitHub issues and RCAs
|
|
226
|
+
- Follow project coding standards exactly
|
|
227
|
+
- Ensure all validation passes before declaring complete
|
|
228
|
+
- The commit message `Fixes #$ARGUMENTS` will link the commit to the GitHub issue
|
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Create comprehensive feature plan with deep codebase analysis and research"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Plan a new task
|
|
6
|
+
|
|
7
|
+
## Feature: $ARGUMENTS
|
|
8
|
+
|
|
9
|
+
## Mission
|
|
10
|
+
|
|
11
|
+
Transform a feature request into a **comprehensive implementation plan** through systematic codebase analysis, external research, and strategic planning.
|
|
12
|
+
|
|
13
|
+
**Core Principle**: We do NOT write code in this phase. Our goal is to create a context-rich implementation plan that enables one-pass implementation success for ai agents.
|
|
14
|
+
|
|
15
|
+
**Key Philosophy**: Context is King. The plan must contain ALL information needed for implementation - patterns, mandatory reading, documentation, validation commands - so the execution agent succeeds on the first attempt.
|
|
16
|
+
|
|
17
|
+
## Planning Process
|
|
18
|
+
|
|
19
|
+
### Phase 1: Feature Understanding
|
|
20
|
+
|
|
21
|
+
**Deep Feature Analysis:**
|
|
22
|
+
|
|
23
|
+
- Extract the core problem being solved
|
|
24
|
+
- Identify user value and business impact
|
|
25
|
+
- Determine feature type: New Capability/Enhancement/Refactor/Bug Fix
|
|
26
|
+
- Assess complexity: Low/Medium/High
|
|
27
|
+
- Map affected systems and components
|
|
28
|
+
|
|
29
|
+
**Create User Story Format Or Refine If Story Was Provided By The User:**
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
As a <type of user>
|
|
33
|
+
I want to <action/goal>
|
|
34
|
+
So that <benefit/value>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Phase 2: Codebase Intelligence Gathering
|
|
38
|
+
|
|
39
|
+
**Use specialized agents and parallel analysis:**
|
|
40
|
+
|
|
41
|
+
**1. Project Structure Analysis**
|
|
42
|
+
|
|
43
|
+
- Detect primary language(s), frameworks, and runtime versions
|
|
44
|
+
- Map directory structure and architectural patterns
|
|
45
|
+
- Identify service/component boundaries and integration points
|
|
46
|
+
- Locate configuration files (pyproject.toml, package.json, etc.)
|
|
47
|
+
- Find environment setup and build processes
|
|
48
|
+
|
|
49
|
+
**2. Pattern Recognition** (Use specialized subagents when beneficial)
|
|
50
|
+
|
|
51
|
+
- Search for similar implementations in codebase
|
|
52
|
+
- Identify coding conventions:
|
|
53
|
+
- Naming patterns (CamelCase, snake_case, kebab-case)
|
|
54
|
+
- File organization and module structure
|
|
55
|
+
- Error handling approaches
|
|
56
|
+
- Logging patterns and standards
|
|
57
|
+
- Extract common patterns for the feature's domain
|
|
58
|
+
- Document anti-patterns to avoid
|
|
59
|
+
- Check project-specific rules and conventions in steering documents
|
|
60
|
+
|
|
61
|
+
**3. Dependency Analysis**
|
|
62
|
+
|
|
63
|
+
- Catalog external libraries relevant to feature
|
|
64
|
+
- Understand how libraries are integrated (check imports, configs)
|
|
65
|
+
- Find relevant documentation in docs/, ai_docs/, .agents/reference or ai-wiki if available
|
|
66
|
+
- Note library versions and compatibility requirements
|
|
67
|
+
|
|
68
|
+
**4. Testing Patterns**
|
|
69
|
+
|
|
70
|
+
- Identify test framework and structure (pytest, jest, etc.)
|
|
71
|
+
- Find similar test examples for reference
|
|
72
|
+
- Understand test organization (unit vs integration)
|
|
73
|
+
- Note coverage requirements and testing standards
|
|
74
|
+
|
|
75
|
+
**5. Integration Points**
|
|
76
|
+
|
|
77
|
+
- Identify existing files that need updates
|
|
78
|
+
- Determine new files that need creation and their locations
|
|
79
|
+
- Map router/API registration patterns
|
|
80
|
+
- Understand database/model patterns if applicable
|
|
81
|
+
- Identify authentication/authorization patterns if relevant
|
|
82
|
+
|
|
83
|
+
**Clarify Ambiguities:**
|
|
84
|
+
|
|
85
|
+
- If requirements are unclear at this point, ask the user to clarify before you continue
|
|
86
|
+
- Get specific implementation preferences (libraries, approaches, patterns)
|
|
87
|
+
- Resolve architectural decisions before proceeding
|
|
88
|
+
|
|
89
|
+
### Phase 3: External Research & Documentation
|
|
90
|
+
|
|
91
|
+
**Use specialized subagents when beneficial for external research:**
|
|
92
|
+
|
|
93
|
+
**Documentation Gathering:**
|
|
94
|
+
|
|
95
|
+
- Research latest library versions and best practices
|
|
96
|
+
- Find official documentation with specific section anchors
|
|
97
|
+
- Locate implementation examples and tutorials
|
|
98
|
+
- Identify common gotchas and known issues
|
|
99
|
+
- Check for breaking changes and migration guides
|
|
100
|
+
|
|
101
|
+
**Technology Trends:**
|
|
102
|
+
|
|
103
|
+
- Research current best practices for the technology stack
|
|
104
|
+
- Find relevant blog posts, guides, or case studies
|
|
105
|
+
- Identify performance optimization patterns
|
|
106
|
+
- Document security considerations
|
|
107
|
+
|
|
108
|
+
**Compile Research References:**
|
|
109
|
+
|
|
110
|
+
```markdown
|
|
111
|
+
## Relevant Documentation
|
|
112
|
+
|
|
113
|
+
- [Library Official Docs](https://example.com/docs#section)
|
|
114
|
+
- Specific feature implementation guide
|
|
115
|
+
- Why: Needed for X functionality
|
|
116
|
+
- [Framework Guide](https://example.com/guide#integration)
|
|
117
|
+
- Integration patterns section
|
|
118
|
+
- Why: Shows how to connect components
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Phase 4: Deep Strategic Thinking
|
|
122
|
+
|
|
123
|
+
**Think Harder About:**
|
|
124
|
+
|
|
125
|
+
- How does this feature fit into the existing architecture?
|
|
126
|
+
- What are the critical dependencies and order of operations?
|
|
127
|
+
- What could go wrong? (Edge cases, race conditions, errors)
|
|
128
|
+
- How will this be tested comprehensively?
|
|
129
|
+
- What performance implications exist?
|
|
130
|
+
- Are there security considerations?
|
|
131
|
+
- How maintainable is this approach?
|
|
132
|
+
|
|
133
|
+
**Design Decisions:**
|
|
134
|
+
|
|
135
|
+
- Choose between alternative approaches with clear rationale
|
|
136
|
+
- Design for extensibility and future modifications
|
|
137
|
+
- Plan for backward compatibility if needed
|
|
138
|
+
- Consider scalability implications
|
|
139
|
+
|
|
140
|
+
### Phase 5: Plan Structure Generation
|
|
141
|
+
|
|
142
|
+
**Create comprehensive plan with the following structure:**
|
|
143
|
+
|
|
144
|
+
Whats below here is a template for you to fill for the implementation agent:
|
|
145
|
+
|
|
146
|
+
```markdown
|
|
147
|
+
# Feature: <feature-name>
|
|
148
|
+
|
|
149
|
+
The following plan should be complete, but its important that you validate documentation and codebase patterns and task sanity before you start implementing.
|
|
150
|
+
|
|
151
|
+
Pay special attention to naming of existing utils types and models. Import from the right files etc.
|
|
152
|
+
|
|
153
|
+
## Feature Description
|
|
154
|
+
|
|
155
|
+
<Detailed description of the feature, its purpose, and value to users>
|
|
156
|
+
|
|
157
|
+
## User Story
|
|
158
|
+
|
|
159
|
+
As a <type of user>
|
|
160
|
+
I want to <action/goal>
|
|
161
|
+
So that <benefit/value>
|
|
162
|
+
|
|
163
|
+
## Problem Statement
|
|
164
|
+
|
|
165
|
+
<Clearly define the specific problem or opportunity this feature addresses>
|
|
166
|
+
|
|
167
|
+
## Solution Statement
|
|
168
|
+
|
|
169
|
+
<Describe the proposed solution approach and how it solves the problem>
|
|
170
|
+
|
|
171
|
+
## Feature Metadata
|
|
172
|
+
|
|
173
|
+
**Feature Type**: [New Capability/Enhancement/Refactor/Bug Fix]
|
|
174
|
+
**Estimated Complexity**: [Low/Medium/High]
|
|
175
|
+
**Primary Systems Affected**: [List of main components/services]
|
|
176
|
+
**Dependencies**: [External libraries or services required]
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## CONTEXT REFERENCES
|
|
181
|
+
|
|
182
|
+
### Relevant Codebase Files IMPORTANT: YOU MUST READ THESE FILES BEFORE IMPLEMENTING!
|
|
183
|
+
|
|
184
|
+
<List files with line numbers and relevance>
|
|
185
|
+
|
|
186
|
+
- `path/to/file.py` (lines 15-45) - Why: Contains pattern for X that we'll mirror
|
|
187
|
+
- `path/to/model.py` (lines 100-120) - Why: Database model structure to follow
|
|
188
|
+
- `path/to/test.py` - Why: Test pattern example
|
|
189
|
+
|
|
190
|
+
### New Files to Create
|
|
191
|
+
|
|
192
|
+
- `path/to/new_service.py` - Service implementation for X functionality
|
|
193
|
+
- `path/to/new_model.py` - Data model for Y resource
|
|
194
|
+
- `tests/path/to/test_new_service.py` - Unit tests for new service
|
|
195
|
+
|
|
196
|
+
### Relevant Documentation YOU SHOULD READ THESE BEFORE IMPLEMENTING!
|
|
197
|
+
|
|
198
|
+
- [Documentation Link 1](https://example.com/doc1#section)
|
|
199
|
+
- Specific section: Authentication setup
|
|
200
|
+
- Why: Required for implementing secure endpoints
|
|
201
|
+
- [Documentation Link 2](https://example.com/doc2#integration)
|
|
202
|
+
- Specific section: Database integration
|
|
203
|
+
- Why: Shows proper async database patterns
|
|
204
|
+
|
|
205
|
+
### Patterns to Follow
|
|
206
|
+
|
|
207
|
+
<Specific patterns extracted from codebase - include actual code examples from the project>
|
|
208
|
+
|
|
209
|
+
**Naming Conventions:** (for example)
|
|
210
|
+
|
|
211
|
+
**Error Handling:** (for example)
|
|
212
|
+
|
|
213
|
+
**Logging Pattern:** (for example)
|
|
214
|
+
|
|
215
|
+
**Other Relevant Patterns:** (for example)
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## IMPLEMENTATION PLAN
|
|
220
|
+
|
|
221
|
+
### Phase 1: Foundation
|
|
222
|
+
|
|
223
|
+
<Describe foundational work needed before main implementation>
|
|
224
|
+
|
|
225
|
+
**Tasks:**
|
|
226
|
+
|
|
227
|
+
- Set up base structures (schemas, types, interfaces)
|
|
228
|
+
- Configure necessary dependencies
|
|
229
|
+
- Create foundational utilities or helpers
|
|
230
|
+
|
|
231
|
+
### Phase 2: Core Implementation
|
|
232
|
+
|
|
233
|
+
<Describe the main implementation work>
|
|
234
|
+
|
|
235
|
+
**Tasks:**
|
|
236
|
+
|
|
237
|
+
- Implement core business logic
|
|
238
|
+
- Create service layer components
|
|
239
|
+
- Add API endpoints or interfaces
|
|
240
|
+
- Implement data models
|
|
241
|
+
|
|
242
|
+
### Phase 3: Integration
|
|
243
|
+
|
|
244
|
+
<Describe how feature integrates with existing functionality>
|
|
245
|
+
|
|
246
|
+
**Tasks:**
|
|
247
|
+
|
|
248
|
+
- Connect to existing routers/handlers
|
|
249
|
+
- Register new components
|
|
250
|
+
- Update configuration files
|
|
251
|
+
- Add middleware or interceptors if needed
|
|
252
|
+
|
|
253
|
+
### Phase 4: Testing & Validation
|
|
254
|
+
|
|
255
|
+
<Describe testing approach>
|
|
256
|
+
|
|
257
|
+
**Tasks:**
|
|
258
|
+
|
|
259
|
+
- Implement unit tests for each component
|
|
260
|
+
- Create integration tests for feature workflow
|
|
261
|
+
- Add edge case tests
|
|
262
|
+
- Validate against acceptance criteria
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## STEP-BY-STEP TASKS
|
|
267
|
+
|
|
268
|
+
IMPORTANT: Execute every task in order, top to bottom. Each task is atomic and independently testable.
|
|
269
|
+
|
|
270
|
+
### Task Format Guidelines
|
|
271
|
+
|
|
272
|
+
Use information-dense keywords for clarity:
|
|
273
|
+
|
|
274
|
+
- **CREATE**: New files or components
|
|
275
|
+
- **UPDATE**: Modify existing files
|
|
276
|
+
- **ADD**: Insert new functionality into existing code
|
|
277
|
+
- **REMOVE**: Delete deprecated code
|
|
278
|
+
- **REFACTOR**: Restructure without changing behavior
|
|
279
|
+
- **MIRROR**: Copy pattern from elsewhere in codebase
|
|
280
|
+
|
|
281
|
+
### {ACTION} {target_file}
|
|
282
|
+
|
|
283
|
+
- **IMPLEMENT**: {Specific implementation detail}
|
|
284
|
+
- **PATTERN**: {Reference to existing pattern - file:line}
|
|
285
|
+
- **IMPORTS**: {Required imports and dependencies}
|
|
286
|
+
- **GOTCHA**: {Known issues or constraints to avoid}
|
|
287
|
+
- **VALIDATE**: `{executable validation command}`
|
|
288
|
+
|
|
289
|
+
<Continue with all tasks in dependency order...>
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## TESTING STRATEGY
|
|
294
|
+
|
|
295
|
+
<Define testing approach based on project's test framework and patterns discovered in during research>
|
|
296
|
+
|
|
297
|
+
### Unit Tests
|
|
298
|
+
|
|
299
|
+
<Scope and requirements based on project standards>
|
|
300
|
+
|
|
301
|
+
Design unit tests with fixtures and assertions following existing testing approaches
|
|
302
|
+
|
|
303
|
+
### Integration Tests
|
|
304
|
+
|
|
305
|
+
<Scope and requirements based on project standards>
|
|
306
|
+
|
|
307
|
+
### Edge Cases
|
|
308
|
+
|
|
309
|
+
<List specific edge cases that must be tested for this feature>
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## VALIDATION COMMANDS
|
|
314
|
+
|
|
315
|
+
<Define validation commands based on project's tools discovered in Phase 2>
|
|
316
|
+
|
|
317
|
+
Execute every command to ensure zero regressions and 100% feature correctness.
|
|
318
|
+
|
|
319
|
+
### Level 1: Syntax & Style
|
|
320
|
+
|
|
321
|
+
<Project-specific linting and formatting commands>
|
|
322
|
+
|
|
323
|
+
### Level 2: Unit Tests
|
|
324
|
+
|
|
325
|
+
<Project-specific unit test commands>
|
|
326
|
+
|
|
327
|
+
### Level 3: Integration Tests
|
|
328
|
+
|
|
329
|
+
<Project-specific integration test commands>
|
|
330
|
+
|
|
331
|
+
### Level 4: Manual Validation
|
|
332
|
+
|
|
333
|
+
<Feature-specific manual testing steps - API calls, UI testing, etc.>
|
|
334
|
+
|
|
335
|
+
### Level 5: Additional Validation (Optional)
|
|
336
|
+
|
|
337
|
+
<MCP servers or additional CLI tools if available>
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
## ACCEPTANCE CRITERIA
|
|
342
|
+
|
|
343
|
+
<List specific, measurable criteria that must be met for completion>
|
|
344
|
+
|
|
345
|
+
- [ ] Feature implements all specified functionality
|
|
346
|
+
- [ ] All validation commands pass with zero errors
|
|
347
|
+
- [ ] Unit test coverage meets requirements (80%+)
|
|
348
|
+
- [ ] Integration tests verify end-to-end workflows
|
|
349
|
+
- [ ] Code follows project conventions and patterns
|
|
350
|
+
- [ ] No regressions in existing functionality
|
|
351
|
+
- [ ] Documentation is updated (if applicable)
|
|
352
|
+
- [ ] Performance meets requirements (if applicable)
|
|
353
|
+
- [ ] Security considerations addressed (if applicable)
|
|
354
|
+
|
|
355
|
+
---
|
|
356
|
+
|
|
357
|
+
## COMPLETION CHECKLIST
|
|
358
|
+
|
|
359
|
+
- [ ] All tasks completed in order
|
|
360
|
+
- [ ] Each task validation passed immediately
|
|
361
|
+
- [ ] All validation commands executed successfully
|
|
362
|
+
- [ ] Full test suite passes (unit + integration)
|
|
363
|
+
- [ ] No linting or type checking errors
|
|
364
|
+
- [ ] Manual testing confirms feature works
|
|
365
|
+
- [ ] Acceptance criteria all met
|
|
366
|
+
- [ ] Code reviewed for quality and maintainability
|
|
367
|
+
|
|
368
|
+
---
|
|
369
|
+
|
|
370
|
+
## NOTES
|
|
371
|
+
|
|
372
|
+
<Additional context, design decisions, trade-offs>
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
## Output Format
|
|
376
|
+
|
|
377
|
+
**Filename**: `.kiro/features/{kebab-case-descriptive-name}.md`
|
|
378
|
+
|
|
379
|
+
- Replace `{kebab-case-descriptive-name}` with short, descriptive feature name
|
|
380
|
+
- Examples: `add-user-authentication.md`, `implement-search-api.md`, `refactor-database-layer.md`
|
|
381
|
+
|
|
382
|
+
**Directory**: Create `.kiro/features/` if it doesn't exist
|
|
383
|
+
|
|
384
|
+
## Quality Criteria
|
|
385
|
+
|
|
386
|
+
### Context Completeness ✓
|
|
387
|
+
|
|
388
|
+
- [ ] All necessary patterns identified and documented
|
|
389
|
+
- [ ] External library usage documented with links
|
|
390
|
+
- [ ] Integration points clearly mapped
|
|
391
|
+
- [ ] Gotchas and anti-patterns captured
|
|
392
|
+
- [ ] Every task has executable validation command
|
|
393
|
+
|
|
394
|
+
### Implementation Ready ✓
|
|
395
|
+
|
|
396
|
+
- [ ] Another developer could execute without additional context
|
|
397
|
+
- [ ] Tasks ordered by dependency (can execute top-to-bottom)
|
|
398
|
+
- [ ] Each task is atomic and independently testable
|
|
399
|
+
- [ ] Pattern references include specific file:line numbers
|
|
400
|
+
|
|
401
|
+
### Pattern Consistency ✓
|
|
402
|
+
|
|
403
|
+
- [ ] Tasks follow existing codebase conventions
|
|
404
|
+
- [ ] New patterns justified with clear rationale
|
|
405
|
+
- [ ] No reinvention of existing patterns or utils
|
|
406
|
+
- [ ] Testing approach matches project standards
|
|
407
|
+
|
|
408
|
+
### Information Density ✓
|
|
409
|
+
|
|
410
|
+
- [ ] No generic references (all specific and actionable)
|
|
411
|
+
- [ ] URLs include section anchors when applicable
|
|
412
|
+
- [ ] Task descriptions use codebase keywords
|
|
413
|
+
- [ ] Validation commands are non interactive executable
|
|
414
|
+
|
|
415
|
+
## Success Metrics
|
|
416
|
+
|
|
417
|
+
**One-Pass Implementation**: Execution agent can complete feature without additional research or clarification
|
|
418
|
+
|
|
419
|
+
**Validation Complete**: Every task has at least one working validation command
|
|
420
|
+
|
|
421
|
+
**Context Rich**: The Plan passes "No Prior Knowledge Test" - someone unfamiliar with codebase can implement using only Plan content
|
|
422
|
+
|
|
423
|
+
**Confidence Score**: #/10 that execution will succeed on first attempt
|
|
424
|
+
|
|
425
|
+
## Report
|
|
426
|
+
|
|
427
|
+
After creating the Plan, provide:
|
|
428
|
+
|
|
429
|
+
- Summary of feature and approach
|
|
430
|
+
- Full path to created Plan file
|
|
431
|
+
- Complexity assessment
|
|
432
|
+
- Key implementation risks or considerations
|
|
433
|
+
- Estimated confidence score for one-pass success. If confidence score is not 10/10, explain why and what it would take to make it a 10/10
|