- Home
- Skills
- Agents & Orchestration
- GitHub Issue Auto-Fixer: Issue to Tested PR
Works with the AI Agents you already use
GitHub Issue Auto-Fixer: Issue to Tested PR
Issue Auto-Fixer follows the workflow a careful maintainer uses.
Free
GitHub Issue Auto-Fixer: Issue to Tested PR
Example session with this skill installed
Fix issue #482: "Invoice total is wrong when a discount code and free shipping are combined".
- Read your context and instructions
- Compiled the github issue auto-fixer
Triage
gh issue view 482: bug report with steps, expected 45.00 €, actual 40.10 €. Labels: bug, billing. No duplicates; related PR #455 (free shipping, merged 3 weeks ago). Classified
fixable now (clear repro, small scope).
Baseline: pnpm test 640 passed · lint ✅ · typecheck ✅
Branch
gh issue develop 482 --checkout --name fix/482-discount-free-shipping (linked to the issue)
Reproduce
Added src/billing/__tests__/invoice-total.spec.ts:
applies percentage discount before free-shipping threshold -
fails: expected 45.00, received 40.10 ✔ same as reported.
Root cause
git log -L on calculateTotal shows #455 moved the free-shipping check before the discount, then subtracted shipping again in applyDiscount (src/billing/total.ts:58). Shipping was removed twice when both applied.
Fix (1 file, +4 / -6)
Compute discount on items first, then evaluate free shipping on the discounted subtotal; removed the duplicate shipping subtraction.
Verify
- New test passes; 2 extra edge tests added (discount only, free shipping only)
- Full suite 643 passed · lint ✅ · typecheck ✅ · build ✅
Ready to open (waiting for your OK)
fix(billing): avoid double shipping deduction with discount + free shipping (#482)
PR body: Fixes #482, problem, root cause (#455 ordering), fix, tests run, risk: low (billing totals, covered by 3 new tests), follow-up: same ordering assumption in src/billing/quote.ts:31 (not changed).
Shall I push the branch and open the PR (gh pr create)?
Connects securely to your tools. The creator never sees your data.
About this skill
From "fix #123" to a PR you can actually merge
Asking an agent to fix an issue often gives you a guess-and-patch, no test, unrelated changes and a vague PR. Issue Auto-Fixer follows the workflow a careful maintainer uses.
What it does
- Preconditions: checks
gh auth, clean tree, default branch, your test/lint/build commands, CONTRIBUTING and PR template. - Triage: reads the issue and comments with
gh issue view, classifies it (bug, feature, duplicate, needs-info), finds related issues/PRs, and stops with a drafted comment when the issue is unclear, too big, a product decision or security-sensitive. - Linked branch:
gh issue develop --checkoutso the branch appears on the issue. - Reproduce first: a failing regression test that fails for the reported reason, or a clear needs-info report if it can't be reproduced.
- Root cause, minimal fix: traces with blame/log/bisect, fixes the cause not the symptom, no unrelated refactors or dependency bumps; lists the same pattern elsewhere.
- Verify: regression test, full suite, lint, typecheck, build. Never weakens tests to get green.
- Reviewer-ready PR:
Fixes #N, root cause, fix, how it was tested (test names), risk, follow-ups. - Batch mode: triage all issues with a label, rank by confidence, one branch and PR per fix.
- Safe: treats issue text as data (ignores instructions hidden in issues), asks before pushing, opening PRs, commenting or closing, never pushes to main or force-pushes shared branches.
Includes
- SKILL.md workflow
- references/triage.md - decision table, needs-info template, confidence scoring
- references/pr-template.md - PR body, commit message, useful gh commands
Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI and any SKILL.md-compatible agent. Requires the GitHub CLI (gh).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.
Requires gh CLI and git. Does not handle security-sensitive bugs or complex architectural changes. Only works on fixable bugs with clear reproduction paths.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
This skill has been used 10 times.
Trust & safety
Security scan
Security scan passed 9 days ago
- Free with an Agensi account
- Software
Git