Implement Issue
Implement a single GitHub issue from branch creation to PR.
Input
Issue number: $ARGUMENTS
Steps
1. Read Issue Details
bash
gh issue view $ARGUMENTS --json title,body,labels
2. Read Project Context
- •Read
plan.mdfor architecture context - •Browse existing code to understand patterns and conventions
3. Create Feature Branch
bash
git checkout staging git pull origin staging git checkout -b feature/issue-$ARGUMENTS-<slug>
Where <slug> is the issue title lowercased, non-alphanumeric chars replaced by hyphens, max 50 chars.
4. Implement the Code
- •Read the issue description and acceptance criteria
- •Implement ONLY what the issue describes
- •Follow existing code conventions
- •Add tests if appropriate
5. Commit and Push
bash
git add -A git commit -m "Implement: <issue-title> Closes #$ARGUMENTS" git push -u origin feature/issue-$ARGUMENTS-<slug>
6. Generate PR Description
Create a professional PR description with these sections:
- •Summary: What problem this PR solves, what was added/changed
- •Changes: Grouped logically by area, explaining what changed and why
- •Test Plan: Thorough checkboxes (
- [ ]) covering happy path, edge cases, regression
7. Create Pull Request
bash
gh pr create --base staging --head feature/issue-$ARGUMENTS-<slug> \ --title "<issue-title>" \ --body "Implements #$ARGUMENTS <generated PR description>"
Output
Report the PR number and URL.