agentleFS
smartwhale8smartwhale8/claude-playbook/.claude/skills/fix-issue/SKILL.md

fix-issue

Skill41 starsChanged 2 months agoMITView on GitHub

Resolve a GitHub issue end to end, from reading the issue through to opening a pull request. Use when the user names an issue number to fix.

  • Commits and pushes

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use refactor, ship and 2 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.
  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 3 projects that use this

  • AWSSkill

    ship

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

    Also in 3 projects that use this

  • AWSSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 3 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 5

    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:

    Understand: Read the issue above. If the expected behaviour is ambiguous, ask before writing code.

    line 17
  2. Distinctive:

    Test first: Write a test that fails because of this bug.

    line 25
  3. Distinctive:

    Verify: Run the new test, then the full suite, then lint and type checks.

    line 29
  4. Distinctive:

    Do not change anything the issue did not ask for.

    line 36
  5. Distinctive:

    If the fix turns out to need a decision that is not yours to make, stop and report what you found.

    line 37

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

The issue

!gh issue view $ARGUMENTS 2>&1 || echo "Could not read issue $ARGUMENTS. Check the number and that gh is authenticated."

Workflow

  1. Understand. Read the issue above. If the expected behaviour is ambiguous, ask before writing code. A wrong fix costs more than a question.
  2. Reproduce. Find the failing behaviour in the code. Do not proceed on a theory you have not confirmed.
  3. Plan. State the root cause and the change you intend, before editing. If the cause is unclear, say so instead of guessing.
  4. Branch. git switch -c fix/<short-description>. Never commit to the default branch.
  5. Test first. Write a test that fails because of this bug. Run it and watch it fail. A regression test that never failed proves nothing.
  6. Fix. Address the cause. If the fix spans several files, explain why in the pull request.
  7. Verify. Run the new test, then the full suite, then lint and type checks. Paste what the commands returned. Never assert success without the output.
  8. Commit and open the pull request. Reference the issue. The description covers what changed, why, how it was verified, and any risk.

Rules

  • The root cause, never the symptom. If the first idea is a workaround, keep looking.
  • Do not change anything the issue did not ask for.
  • If the fix turns out to need a decision that is not yours to make, stop and report what you found.

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.