agentleFS
CodeWithBehnamCodeWithBehnam/cc-docs/skills/fix-issue/SKILL.md

fix-issue

Skill2 starsChanged 9 months agoMITView on GitHub

Fix a GitHub issue by number. Reads the issue, implements the fix, writes tests, and commits the result. Use when the user says "fix issue #123", "work on issue", or "implement the bug fix for #N".

56 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use prepare-release, document and 6 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

  • Microsoft AzureSkill

    test

    Also in 5 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 5 projects that use this

  • SentrySkill

    write-tests

    Write tests following project conventions. Use when adding new tests or modifying existing ones.

    Also in 3 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

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 54 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the issue details:

    line 14
  2. Distinctive:

    Search for symbols, file names, or keywords mentioned in the issue

    line 21
  3. Distinctive:

    Read the relevant source files to understand the current implementation

    line 22
  4. Distinctive:

    Check existing tests for the affected area

    line 23
  5. Distinctive:

    Write a failing test first (TDD approach):

    line 29
  6. Distinctive:

    Add a test that reproduces the reported bug or missing behavior

    line 30
  7. Distinctive:

    Keep the diff minimal - avoid unrelated refactors in the same commit

    line 35
  8. Distinctive:

    Run the test suite to verify:

    line 37
  9. Distinctive:

    No existing tests were broken

    line 39
  10. Distinctive:

    Commit with a message referencing the issue:

    line 41
  11. Distinctive:

    If the issue is not found: report the error and stop

    line 56
  12. Distinctive:

    If the issue is already closed: confirm with the user before proceeding

    line 57
  13. Distinctive:

    If tests fail after the fix: report failures and do not commit

    line 58
  14. Distinctive:

    If the fix requires a design decision: outline the options and ask the user to choose

    line 59

“Common” is measured: kept by at least 6 in 10 of the 54 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 #$ARGUMENTS:

  1. Read the issue details:
    gh issue view $ARGUMENTS
    Understand the reported problem, reproduction steps, and acceptance criteria.
  2. Explore the codebase to find relevant files:
    • Search for symbols, file names, or keywords mentioned in the issue
    • Read the relevant source files to understand the current implementation
    • Check existing tests for the affected area
  3. Plan the fix:
    • Identify the root cause (not just the symptom)
    • Outline the minimal change needed to fix the issue without breaking existing behavior
  4. Write a failing test first (TDD approach):
    • Add a test that reproduces the reported bug or missing behavior
    • Confirm it fails before the fix
  5. Implement the fix:
    • Make the targeted change to source code
    • Keep the diff minimal - avoid unrelated refactors in the same commit
  6. Run the test suite to verify:
    • The new test passes
    • No existing tests were broken
  7. Commit with a message referencing the issue:
    fix(<scope>): <description>
    
    Fixes #$ARGUMENTS

Requirements

  • gh CLI must be installed and authenticated
  • The issue number must exist in the current repository
  • Tests must pass before committing

Error Handling

  • If the issue is not found: report the error and stop
  • If the issue is already closed: confirm with the user before proceeding
  • If tests fail after the fix: report failures and do not commit
  • If the fix requires a design decision: outline the options and ask the user to choose

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.