// Automatically process open GitHub bug reports by spawning subagents that use the frontend-debug skill to fix each issue in isolated branches. This skill should be used when the user wants to systematically address multiple GitHub Issues without context pollution in the main session. Ideal for batch bug-fixing workflows.
| name | process-github-issues |
| description | Automatically process open GitHub bug reports by spawning subagents that use the frontend-debug skill to fix each issue in isolated branches. This skill should be used when the user wants to systematically address multiple GitHub Issues without context pollution in the main session. Ideal for batch bug-fixing workflows. |
This skill automates the processing of open GitHub bug reports by fetching all open issues labeled as "bug" from the current repository, creating a dedicated git branch for each issue, spawning a subagent to fix each issue using the frontend-debug skill, and committing the fixes automatically. This approach keeps the main Claude Code session context clean and focused, allowing efficient processing of multiple issues without context degradation.
Use this skill when:
Do NOT use this skill when:
Before using this skill, verify:
gh) is installed and authenticated (gh auth status)~/.claude/skills/frontend-debug/Execute scripts/get_github_issues.sh to retrieve all open bug reports:
bash scripts/get_github_issues.sh
The script outputs format: issue_number|title (one per line), sorted by issue number.
If no issues are found, report success and exit. Otherwise, proceed to Step 2.
For each issue returned from Step 1, perform the following sub-steps:
Execute the branch name generator:
bash scripts/generate_branch_name.sh <issue_number> <title>
This produces a sanitized branch name in format: bug-{number}-{sanitized-title}
Example: bug-42-fix-login-button-styling
Ensure the working directory is still clean, then create and checkout the branch:
git checkout -b <branch_name>
Confirm branch creation was successful before continuing.
Execute GitHub CLI to get the complete issue description:
gh issue view <issue_number>
Extract the issue body, comments, and any additional context needed for the fix.
Use the Task tool to spawn a subagent with the following configuration:
description: "Fix GitHub Issue #{number}: {title}"
prompt: "You are a specialized debugging agent tasked with fixing GitHub Issue #{number}.
Issue Title: {title}
Issue Details:
{full_issue_body_from_gh_issue_view}
Your task:
1. Invoke the frontend-debug skill to diagnose and fix this issue
2. You are currently on branch: {branch_name}
3. Make all necessary code changes to resolve the issue
4. Test your changes if applicable
5. When complete, stage all changes with: git add .
6. Commit your changes with: git commit -m \"Fix #{number}: {title}\"
7. Report back when done
Important: Stay focused on this single issue. The main session will handle moving to the next issue."
Monitor subagent progress through the Task tool response. The subagent should complete when it has committed changes.
After subagent completion:
git log -1 --onelinegit checkout main (or git checkout master)Repeat Step 2 for each remaining issue.
After all issues are processed, provide a summary:
Summary:
- Total issues processed: {count}
- Branches created: {list of branch names}
- All issues fixed and committed
Next steps:
- Review branches for quality: git branch --list 'bug-*'
- Push branches: git push origin <branch_name>
- Create pull requests: gh pr create --head <branch_name>
gh not found: Report error with installation instructions (https://cli.github.com/)gh auth logingit stash or commit changes firstAlways continue processing remaining issues unless a critical error occurs.
scripts/get_github_issues.shFetches open bug reports from GitHub Issues.
issue_number|title format (one per line), sorted by issue numberscripts/generate_branch_name.shGenerates standardized branch name from issue.
<issue_number> <issue_title>bug-{number}-{title}For detailed workflow information, troubleshooting, and best practices, refer to:
references/workflow_guide.md - Comprehensive workflow documentation with examplesLoad this reference when:
This skill is designed to work with: