fix-github-issue

A command for investigating and fixing an issue recorded in GitHub, a service for hosting code and tracking bugs and tasks. It fetches the issue, creates a branch, investigates the repository, and applies a focused change following project conventions.

In plain words
What is it for?
Use it with a GitHub issue number to read the report, understand expected and actual behavior, reproduce the problem, create an appropriate branch, and implement the fix.
Why use it?
It organizes the path from a reported problem to a reproducible diagnosis and a contained fix. This helps preserve the existing work while making the change easier to review.

Command for Claude Code

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.

agentmods
npx agentmods add commands/nicepkg/vsync/fix-github-issue
Clone the repo
git clone --depth 1 https://github.com/nicepkg/vsync

Made for: Claude Code.

Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 934 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00010 $0.00934
Opus 5 $0.00005 $0.00467
Sonnet 5 $0.00002 $0.00187
Haiku 4.5 $0.00001 $0.00093

Measured 2d ago against content hash d084112e9459, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fix-github-issue 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 2d 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.

.claude/commands/fix-github-issue.md · 165 lines

How it starts

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

Fix GitHub Issue

Analyze and fix the GitHub issue: $ARGUMENTS

Context

  • Current branch: !git branch --show-current
  • Git status: !git status --short
  • Repository: !gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo "unknown"

Step 1: Fetch Issue Details

gh issue view $ARGUMENTS

Extract and understand:

  • Title: What is the issue about?
  • Description: What is the expected vs actual behavior?
  • Labels: Is it a bug, feature, or documentation issue?
  • Reproduction steps: How to reproduce the problem?

Step 2: Create a Feature Branch

Branch naming convention:

# For bugs
git checkout -b fix/<issue-number>-brief-description

# For features
git checkout -b feat/<issue-number>-brief-description

# For docs
git checkout -b docs/<issue-number>-brief-description

Example:

git checkout -b fix/123-hydration-mismatch

Step 3: Investigate the Codebase

  1. Search for relevant files based on issue description
  2. Understand the existing code structure
  3. Identify the root cause (for bugs) or implementation location (for features)

Step 4: Implement the Fix

  1. Make minimal, focused changes
  2. Follow existing code patterns and style
  3. Add comments only where logic isn't self-evident
  4. Don't introduce unrelated changes

Step 5: Verify Changes

Run these commands to ensure quality:

# Type checking
pnpm typecheck

# Linting
pnpm lint

# Fix lint issues if any
pnpm lint:fix

# Preview the site (for website changes)
pnpm dev:website

Step 6: Commit with Angular Convention

IMPORTANT: All commits must follow Angular commit convention.

Format

<type>(<scope>): <subject>

<body>

Fixes #<issue-number>

Types

Type When to use
fix Bug fixes
feat New features
docs Documentation changes
style Code style changes (formatting)
refactor Code changes that neither fix bugs nor add features
perf Performance improvements
test Adding or updating tests
chore Maintenance tasks

Read the full file on GitHub · 165 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. 2d ago First seen · 165 lines · 10 tokens per session scan A d084112e9459

Subscribe to this mod's changes

fix-github-issue is a command published in the GitHub repository nicepkg/vsync (57 stars, last pushed 7mo ago), licensed MIT. It adds 10 tokens to every session and 934 once invoked, about $0.0001 per session on Opus 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-30.

Related

Other commands, from other repositories