gh-issue-fix

gh-issue-fix is a skill for Claude Code, Codex from mir-am/skills-agents-ai-coding. It costs 28 tokens per session (1,686 once invoked), scanned A, original, MIT.

A plan-first workflow for fixing or implementing a GitHub issue. GitHub is a service where teams track code problems and feature requests.

In plain words
What is it for?
Fetching an issue, checking the codebase, identifying affected files and causes, writing an implementation plan, creating a branch, making changes, running tests, and summarising the result.
Why use it?
It makes the proposed work clear and gets the user's approval before code changes begin.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Fetching an issue, checking the codebase, identifying affected files and causes, writing an implementation plan, creating a branch, making changes, running tests, and summarising the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mir-am/skills-agents-ai-coding/gh-issue-fix
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mir-am/skills-agents-ai-coding --skill gh-issue-fix
Clone the repo
git clone --depth 1 https://github.com/mir-am/skills-agents-ai-coding

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gh-issue-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/mir-am/skills-agents-ai-coding/gh-issue-fix/github.svg)](https://agentmods.dev/skills/mir-am/skills-agents-ai-coding/gh-issue-fix)
Your own site
<a href="https://agentmods.dev/skills/mir-am/skills-agents-ai-coding/gh-issue-fix"><img src="https://agentmods.dev/badge/skills/mir-am/skills-agents-ai-coding/gh-issue-fix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gh-issue-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/mir-am/skills-agents-ai-coding/gh-issue-fix"><img src="https://agentmods.dev/badge/skills/mir-am/skills-agents-ai-coding/gh-issue-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,686 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.01686
Opus 5.5 $0.00011 $0.00674
Sonnet 5.5 $0.00006 $0.00337
Haiku 4.5 $0.00003 $0.00169

Measured 22d ago against content hash 071671d8d140, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gh-issue-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/gh-issue-fix/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

What I do

  • Fetch an issue and investigate the relevant code
  • Present a concise implementation plan and continue without waiting for approval
  • Create or resume a dedicated issue branch
  • Implement, test, and review the changes
  • Use git-commit and gh-pr to commit, push, and open a linked PR
  • Verify the PR targets the default branch and closes the issue when merged

When to use me

Use when the user asks to fix or implement a GitHub issue by number or URL. The default outcome is a tested change published as a PR, with merging left as a separate action.

Honor a narrower user request, such as planning only or leaving changes uncommitted. Otherwise, invocation authorizes the issue-to-PR workflow without additional plan, commit, push, or PR confirmation prompts. Continue to respect tool permissions, branch protections, and execution-mode restrictions.

Phase 1: Issue Intake

  1. Use the supplied issue number or URL; ask for it only if missing.
  2. Check GitHub CLI access and identify the issue repository and its default branch. Resolve <owner/repo> from the supplied URL, or from the current checkout for a bare issue number:
    gh auth status
    git remote -v
    gh repo view <owner/repo> --json nameWithOwner,defaultBranchRef
    gh issue view <number-or-url> --repo <owner/repo> --json number,url,title,body,labels,comments,assignees,state
    
    For an issue URL, resolve its repository explicitly and use --repo <owner/repo> for subsequent GitHub commands. Confirm the working checkout belongs to that repository or its fork; do not apply the issue to an unrelated checkout.
  3. Keep the issue number, URL, repository, and detected default branch available throughout the workflow. Do not assume the default branch is named main or master.
  4. Investigate unclear requirements in the code before asking questions. Ask only for missing information that prevents a correct implementation; choose reasonable defaults for routine decisions.

Phase 2: Exploration and Plan

Read the full file on GitHub · 102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 22d ago Changed · -59 lines · +5 tokens per session 071671d8d140
  2. 1mo ago First seen · 161 lines · 23 tokens per session scan A b5382add9d72

Subscribe to this mod's changes

gh-issue-fix is a skill published in the GitHub repository mir-am/skills-agents-ai-coding (2 stars, last pushed 23d ago), licensed MIT. It adds 28 tokens to every session and 1,686 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.