agentleFS
viknesh20-20viknesh20-20/claude-code-tool-kit/.claude/skills/fix-issue/SKILL.md

fix-issue

Skill7 starsChanged 7 months agoMITView on GitHub

Fetches a GitHub issue by number, analyzes the requirements, finds the relevant code, implements a fix, and optionally creates a PR. Use when working through your issue backlog.

  • Commits and pushes

53 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use prepare-release, document and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ShopifySkill

    prepare-release

    Prepare the changeset-release/main branch for release by syncing version.ts files and running pnpm install

    Also in 4 projects that use this

  • nicolasestremSkill

    document

    Create focused documentation for specific components or features

    Also in 4 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    build

    Build the TypeSpec Rust emitter from source. Run this after cloning the repo, after pulling changes, or when TypeScript source files have been modified.

    Also in 4 projects that use this

  • MicrosoftSkill

    adversarial-review

    Adversarial review of a system design from 6 critical perspectives -- SRE, security, staff engineer, finance, operator, and developer advocate. Produces a unified risk assessment. Use for INTERACTIVE on-demand reviews during a design conversation (/adversarial-review). For RECIPE-DRIVEN reviews (where prior step context is needed), use the systems-design-critic agent instead.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    test

    Also in 4 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 13 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 51 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the issue title, description, labels, and comments

    line 18
  2. Distinctive:

    Search the codebase for files/functions mentioned in the issue

    line 24
  3. Distinctive:

    If it's a bug: try to reproduce the conditions mentally by reading the code

    line 26
  4. Distinctive:

    Follow existing code patterns and conventions

    line 36
  5. Distinctive:

    Add or update tests to cover the fix

    line 37
  6. Distinctive:

    Ensure no regressions in adjacent functionality

    line 38
  7. Distinctive:

    Run existing tests for the affected area

    line 41
  8. Distinctive:

    Run the new tests

    line 42
  9. Distinctive:

    Check for unintended changes

    line 44
  10. Very specific:

    Commit with reference: git commit -m "fix: <description> (#<issue-number>)"

    line 48
  11. Distinctive:

    Always reference the issue number in commits and PR

    line 55
  12. Distinctive:

    Don't scope-creep — fix only what the issue describes

    line 56
  13. Distinctive:

    If the issue is unclear, list your assumptions before implementing

    line 57
  14. Distinctive:

    If the fix requires architectural changes, flag it and discuss before proceeding

    line 58

“Common” is measured: kept by at least 6 in 10 of the 51 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Fix GitHub Issue

Fetch Issue Details

!gh issue view $1 2>/dev/null || echo "Usage: /fix-issue <issue-number> — requires gh CLI authenticated"


Workflow

Step 1: Understand the Issue

  1. Read the issue title, description, labels, and comments
  2. Identify: Is this a bug fix, feature request, or enhancement?
  3. Determine acceptance criteria — what does "done" look like?
  4. Note any linked issues, PRs, or referenced files

Step 2: Find Relevant Code

  1. Search the codebase for files/functions mentioned in the issue
  2. Trace the code path related to the reported behavior
  3. If it's a bug: try to reproduce the conditions mentally by reading the code
  4. Identify the minimal set of files that need to change

Step 3: Create a Branch

git checkout -b fix/issue-<number>-<short-description>

Step 4: Implement the Fix

  1. Make the smallest change that addresses the issue
  2. Follow existing code patterns and conventions
  3. Add or update tests to cover the fix
  4. Ensure no regressions in adjacent functionality

Step 5: Verify

  1. Run existing tests for the affected area
  2. Run the new tests
  3. Review your own diff: git diff
  4. Check for unintended changes

Step 6: Commit and PR

  1. Stage changes: git add <files>
  2. Commit with reference: git commit -m "fix: <description> (#<issue-number>)"
  3. Push: git push -u origin <branch>
  4. Create PR: gh pr create --title "Fix #<number>: <title>" --body "Closes #<number>"

Rules

  • Always reference the issue number in commits and PR
  • Don't scope-creep — fix only what the issue describes
  • If the issue is unclear, list your assumptions before implementing
  • If the fix requires architectural changes, flag it and discuss before proceeding

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.