handle-github-issue
Skill2 starsChanged 7 months agoMITView on GitHub
Handle a GitHub issue end-to-end using disciplined code review, TDD when applicable, local verification, and structured landing workflow.
In this repository5 other files it gives its agents.
- app-store-preview-pipelineSkill
- commit-messageSkill
- eas-app-store-metadataSkill
- pre-commit-reviewSkill
- translate-xcstringsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 20 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill when you need to:
- Distinctive: line 12
Ensure disciplined process (isolated changes, review gates, verification)
- Very specific: line 21
If invalid/duplicate/already fixed, comment with evidence and stop
- Distinctive: line 26
Create an isolated working branch from the base branch:
- Distinctive: line 28
Advanced: If your project uses worktree tooling (e.g., git worktree, specialized CLI), use that instead for better isolation
- Distinctive: line 33
If a test exists:
- Distinctive: line 34
Write or update the smallest failing test case first
- Distinctive: line 37
If no test surface exists:
- Distinctive: line 39
Document rationale in commit message
- Distinctive: line 42
Run relevant test suites, build checks, linters, or integration tests
- Distinctive: line 44
Ensure all checks pass before proceeding
- Distinctive: line 50
Verify review resolution before commit
- Distinctive: line 53
Commit inside the isolated branch with a clear, descriptive message
- Distinctive: line 58
Advanced: If you used worktree tooling, use its cleanup command
- Distinctive: line 65
Commit hash and branch/PR reference
- Distinctive: line 71
Validate before committing: Always run review and verification BEFORE landing.
- Distinctive: line 73
Isolated changes: Use branches or worktrees to isolate work from the mainline, preventing accidental interference.
- Distinctive: line 75
TDD when applicable: If a test surface exists, prioritize writing the test first.
- Distinctive: line 77
Transparent communication: Every step produces reportable evidence (test output, review results, commit hash).
- Distinctive: line 79
Cleanup discipline: Remove temporary worktrees or branches to keep the repository clean.
- Distinctive: line 83
Stop early and comment on the issue if any of these are true:
- Very specific: line 99
Read your project's contribution guide or CONTRIBUTING.md for specifics.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Handle GitHub Issue
Process any GitHub issue through a structured end-to-end workflow: read → validate → implement with TDD → review → land → cleanup.
Use this skill when you need to:
- Implement a feature or bug fix from a GitHub issue
- Ensure disciplined process (isolated changes, review gates, verification)
- Coordinate across verification, testing, landing, and issue closure
Required Workflow
1. Read and Validate
- Fetch the full issue, comments, linked PRs, and labels from GitHub
- Review the current repository code and context
- Determine if the issue is valid, actionable, and not a duplicate
- If invalid/duplicate/already fixed, comment with evidence and stop
2. Plan and Create Isolation
- Confirm the base branch (e.g.,
main,develop, a feature branch) - Plan the implementation: What code changes are needed? Are there tests to update?
- Create an isolated working branch from the base branch:
- Standard approach:
git checkout -b issue/<number> origin/<base-branch> - Advanced: If your project uses worktree tooling (e.g.,
git worktree, specialized CLI), use that instead for better isolation
- Standard approach:
- Navigate into the working branch or worktree
3. Implement with TDD (When Applicable)
- Identify if a test surface exists (unit tests, integration tests, UI tests)
- If a test exists:
- Write or update the smallest failing test case first
- Make the minimal production code change to pass that test
- Rerun the focused test and verify green
- If no test surface exists:
- Implement the feature/fix directly
- Document rationale in commit message
4. Verify Locally
- Run relevant test suites, build checks, linters, or integration tests
- Capture and report all verification output
- Ensure all checks pass before proceeding
5. Code Review and Cleanup
- Invoke
review-swarmorpre-commit-reviewon the uncommitted or staged diff - Address every actionable finding
- Resolve style, performance, security, and architectural concerns
- Verify review resolution before commit
6. Land and Push
- Commit inside the isolated branch with a clear, descriptive message
- Merge or rebase back to the base branch (use
git mergeorgit rebasedepending on your project) - Push the base branch to GitHub
- Clean up the working branch or worktree:
- Standard:
git branch -d issue/<number>orgit branch -D issue/<number> - Advanced: If you used worktree tooling, use its cleanup command
- Standard:
7. Close and Report
- Comment on the issue with:
- What changed (features/fixes implemented)
- Verification results (tests passed, lints passed, etc.)
- Review findings and how they were resolved
- Commit hash and branch/PR reference
- Close the issue (via GitHub UI or comment with
/closeif supported) - Report any blockers or cleanup issues explicitly
Key Principles
Validate before committing: Always run review and verification BEFORE landing.
Isolated changes: Use branches or worktrees to isolate work from the mainline, preventing accidental interference.
TDD when applicable: If a test surface exists, prioritize writing the test first. If not, implement directly and document why.
Transparent communication: Every step produces reportable evidence (test output, review results, commit hash).
Cleanup discipline: Remove temporary worktrees or branches to keep the repository clean.
When to Stop
Stop early and comment on the issue if any of these are true:
- The issue is a duplicate of another (link the canonical issue)
- The issue is already fixed (cite the commit/PR)
- The issue is invalid or lacks sufficient detail to implement
- The issue requests unsafe or policy-violating behavior
- The verification or review discovers a fundamental blocker
Adapting to Your Project
Projects may customize this workflow via:
- Test framework: XCTest, Swift Testing, Jest, pytest, Vitest, etc.
- Verification tools: SwiftFormat, SwiftLint, cargo test, npm run test, eslint, etc.
- Branch isolation: Standard
git checkout -b, or advanced worktree tools (git worktreeor project-specific CLI) - Review gates: Pre-commit reviews, code review automation, linting, or static analysis
- Base branch strategy:
main,develop, release branches, or other branch hierarchies
Read your project's contribution guide or CONTRIBUTING.md for specifics.
References
See GitHub Issue Agent Workflow for a step-by-step checklist.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

