Analyze a GitHub issue and create detailed analysis in .ai/
Perform detailed analysis of a GitHub issue and write the analysis to the .ai directory.
Fetch Issue Details
Create Workflow Directory
.ai/issue-<number>-<slug>/.ai/issue-42-squash-merge/Explore the Codebase
Write Analysis Document
analysis.md in the workflow folderPropose TODO Comments
// TODO(#<issue>): <description>Write to .ai/issue-<number>-<slug>/analysis.md:
# Issue #<number>: <title>
## Summary
<1-2 sentence summary of the issue>
## Issue Details
- **Type**: <bug/enhancement/feature>
- **Labels**: <labels from GitHub>
- **Link**: <GitHub issue URL>
## Analysis
### Understanding
<What is being requested/reported? Clarify any ambiguity>
### Root Cause (for bugs)
<What's causing this behavior? Include file:line references>
### Affected Components
List all files/packages that will need changes:
- `cmd/<file>.go` - <why this file is affected>
- `internal/<package>/<file>.go` - <why>
### Current Behavior
<How does the system currently work in this area?>
### Proposed Solution
<High-level approach to solving this>
### Implementation Approach
<More detailed technical approach>
1. <Step 1>
2. <Step 2>
3. <Step 3>
### Edge Cases
- <Edge case 1 and how to handle it>
- <Edge case 2 and how to handle it>
### Testing Considerations
Based on TESTING_GUIDELINES.md:
- <Test case 1>
- <Test case 2>
### Documentation Impact
- [ ] Manpage updates needed?
- [ ] CONFIGURATION.md updates?
- [ ] README changes?
### Related Code References
<Key code snippets or file:line references that are relevant>
## Open Questions
- [ ] <Any clarifications needed from issue author>
## Next Steps
1. Create feature branch: `git flow feature start <number>-<slug>`
2. Create implementation plan: `/create-plan`
/create-plan