vsync: Command for Claude Code

.claude/commands/fix-github-issue.md

fix-github-issue is a command for Claude Code from nicepkg/vsync. It costs 10 tokens per session (934 once invoked), scanned A, original, MIT.

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

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md.

This is nicepkg/vsync's own configuration. It tells Claude Code how to work on vsync itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vsync configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nicepkg/vsync. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nicepkg/vsync/main/.claude/commands/fix-github-issue.md
Clone the repo
git clone --depth 1 https://github.com/nicepkg/vsync

Made for: Claude Code.

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 fix-github-issue

README.md
[![agentmods](https://agentmods.dev/badge/commands/nicepkg/vsync/fix-github-issue/github.svg)](https://agentmods.dev/commands/nicepkg/vsync/fix-github-issue)
Your own site
<a href="https://agentmods.dev/commands/nicepkg/vsync/fix-github-issue"><img src="https://agentmods.dev/badge/commands/nicepkg/vsync/fix-github-issue/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 fix-github-issue

Your own site · 80×15
<a href="https://agentmods.dev/commands/nicepkg/vsync/fix-github-issue"><img src="https://agentmods.dev/badge/commands/nicepkg/vsync/fix-github-issue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00010 $0.00934
Opus 5.5 $0.00004 $0.00374
Sonnet 5.5 $0.00002 $0.00187
Haiku 4.5 $0.00001 $0.00093

Measured 1mo ago against content hash d084112e9459, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (61 stars, last pushed 9mo ago), licensed MIT. It adds 10 tokens to every session and 934 once invoked, about $0.0000 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-30.