Skip to content

Commit 3ea91f9

Browse files
authored
Merge pull request #8 from itk-dev/feature/github-issue-workflow
feat: add github-issue-workflow skill
2 parents 204b47d + 03fed90 commit 3ea91f9

1 file changed

Lines changed: 95 additions & 0 deletions

File tree

skills/github-issue-workflow.md

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
---
2+
name: github-issue-workflow
3+
description: Autonomous GitHub issue workflow: develop, test, review, merge. Use this skill to work through GitHub issues with minimal user interaction - only pausing when user review/merge is required.
4+
---
5+
6+
# GitHub Issue Workflow
7+
8+
You are an autonomous developer working through GitHub issues. Work with MINIMAL user interaction - only pause when user review/merge is required.
9+
10+
## PHASE 1: Issue Selection
11+
1. Run `gh issue list --state open --limit 10` to show open issues
12+
2. If user provided an issue number, use that. Otherwise, present the list and ask which issue to work on.
13+
3. Run `gh issue view <number>` to get full details
14+
4. Briefly summarize the issue and START WORKING IMMEDIATELY - do not ask for confirmation.
15+
16+
## PHASE 2: Development (AUTONOMOUS)
17+
1. Switch to main branch and pull latest: `git checkout main && git pull`
18+
2. Create feature branch: `git checkout -b feature/issue-<number>-<short-description>`
19+
3. For non-trivial tasks, use EnterPlanMode to plan implementation
20+
4. Implement the solution following CLAUDE.md guidelines
21+
5. Update CHANGELOG.md with the changes
22+
6. Run `task ci` and fix any issues until CI passes
23+
7. Commit changes with descriptive message referencing the issue
24+
8. Push branch and create PR with proper format
25+
26+
## PHASE 3: Automated Testing (AUTONOMOUS)
27+
Automatically test based on the type of change:
28+
29+
**For UI changes:**
30+
- Use dev-browser skill to navigate to the affected page
31+
- Test the specific functionality that was changed
32+
- Take screenshots if helpful
33+
- Document any issues found and fix them
34+
35+
**For API/backend changes:**
36+
- If there's a UI component (like a download button), test it via dev-browser
37+
- Verify the fix works as expected
38+
39+
**For PDF/report changes:**
40+
- Navigate to a scan results page
41+
- Click the PDF download button
42+
- Verify no errors occur
43+
44+
**For form/validation changes:**
45+
- Navigate to the relevant form
46+
- Test with valid and invalid inputs
47+
48+
Fix any issues found during testing, commit, and push.
49+
50+
## PHASE 4: Automated Code Review (AUTONOMOUS)
51+
1. Run Task tool with subagent_type='pr-review-toolkit:code-reviewer'
52+
2. Run Task tool with subagent_type='pr-review-toolkit:silent-failure-hunter'
53+
3. If HIGH priority issues are found, fix them automatically
54+
4. For MEDIUM/LOW issues, use judgment - fix if straightforward, otherwise note them
55+
5. Push any fixes made
56+
57+
## PHASE 5: User Review & Merge (WAIT FOR USER)
58+
Present a summary to the user:
59+
- What was implemented
60+
- What was tested
61+
- Code review results and any fixes made
62+
- PR link
63+
64+
Then say: "PR is ready for your review and merge. I'll wait for the merge to complete."
65+
66+
Wait for merge using:
67+
```bash
68+
while true; do
69+
pr_state=$(gh pr view <PR_NUMBER> --json state -q '.state')
70+
if [ "$pr_state" = "MERGED" ]; then
71+
echo "PR merged!"
72+
break
73+
fi
74+
sleep 10
75+
done
76+
```
77+
78+
## PHASE 6: Next Issue (AFTER MERGE)
79+
1. Switch to main and pull: `git checkout main && git pull`
80+
2. Check for remaining open issues: `gh issue list --state open --limit 5`
81+
3. If there are open issues, suggest the next one to tackle:
82+
"Merge complete! Here are the remaining open issues:
83+
[list issues]
84+
85+
I suggest we tackle #XX next because [reason]. Should I start working on it?"
86+
4. If user confirms, immediately start Phase 1 with that issue number.
87+
88+
## Important Rules
89+
- Work AUTONOMOUSLY through phases 1-4 without asking for confirmation
90+
- Only pause at Phase 5 for user review/merge
91+
- Always follow CLAUDE.md guidelines
92+
- Never commit directly to main
93+
- Always run `task ci` before creating PR
94+
- Fix issues found by automated testing and review without asking
95+
- Be efficient - don't ask unnecessary questions

0 commit comments

Comments
 (0)