fix-issue

fix-issue is a skill for Claude Code, Codex from encoreshao/encore-skills. It costs 31 tokens per session (965 once invoked), scanned A, original, MIT.

A coding workflow for fixing a reported software problem by finding its underlying cause, making the smallest suitable change, and checking the result.

In plain words
What is it for?
Use it to turn a GitLab issue or prior analysis into a code change, create a suitable feature branch, and verify that the reported problem is actually gone.
Why use it?
It helps avoid patches that hide symptoms or pass tests while the original problem remains. It also keeps fixes off protected branches such as main.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to turn a GitLab issue or prior analysis into a code change, create a suitable feature branch, and verify that the reported problem is actually gone.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/encoreshao/encore-skills/fix-issue
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.

Any agent
npx skills add encoreshao/encore-skills --skill fix-issue
Clone the repo
git clone --depth 1 https://github.com/encoreshao/encore-skills

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/encoreshao/encore-skills/fix-issue"><img src="https://agentmods.dev/badge/skills/encoreshao/encore-skills/fix-issue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 965 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.00031 $0.00965
Opus 5 $0.00015 $0.00483
Sonnet 5 $0.00006 $0.00193
Haiku 4.5 $0.00003 $0.00097

Measured 9d ago against content hash 474f4dc89829, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

fix-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 9d 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.

skills/fix-issue/SKILL.md · 111 lines

How it starts

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

Fix Issue

Implements a fix following how a senior engineer actually thinks: understand first, code second, verify the problem is gone — not just the tests pass.

Input

  • Analysis from analyze-issue, or the issue itself
  • A feature branch (not main/master/develop/staging)

Branch check

Before touching any code, check the current branch:

git branch --show-current

If it's a protected branch (main, master, develop, staging), create a new one off it, named <type>/<issue-number>-<func-name><type> matches the commit convention below (feat, fix, refactor, test, chore, docs).

# Preferred — creates the branch and records the current branch as its base,
# so create-mr can later target the MR back to the right branch
RESOLVE="$HOME/.claude/skills/gitlab-config/scripts/auto_resolve_issue.py"
python $RESOLVE create-branch <issue_iid> "<func name>" <type>
# e.g. python $RESOLVE create-branch 123 "add login" feat  ->  feat/123-add-login

# Fallback (manual)
BASE=$(git branch --show-current)
git checkout -b <type>/<issue-number>-<func-name>
git config --local branch.<type>/<issue-number>-<func-name>.base "$BASE"

Already on a non-protected feature branch? Keep working on it — don't create a nested branch.

The loop

Phase 1: Understand before touching anything

Read the relevant code before writing a single line. You cannot fix what you don't understand.

  • Find the code involved: grep, file search, follow the call chain
  • Understand why the current behavior happens — confirm the root cause from the analysis
  • If the root cause turns out to be different from the analysis, stop and update the analysis

Phase 2: Plan the minimal change

Write a short plan (bullet points) before coding:

  • What exactly will you change and why
  • What you will NOT touch (scope boundary)
  • What could go wrong with your approach

The plan should describe the fix to the root cause — not a workaround or a patch over the symptom. If you're writing a workaround, say so explicitly and explain why.

Read the full file on GitHub · 111 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 111 lines · 31 tokens per session scan A 474f4dc89829

Subscribe to this mod's changes

fix-issue is a skill published in the GitHub repository encoreshao/encore-skills (2 stars, last pushed 20d ago), licensed MIT. It adds 31 tokens to every session and 965 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

performance-optimization

Optimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.

addyosmani/agent-skills · 59 tokens

doubt-driven-development

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high…

addyosmani/agent-skills · 96 tokens

debugging-and-error-recovery

Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than…

addyosmani/agent-skills · 67 tokens

systematic-debugging

A step-by-step method for finding the underlying cause of technical problems before changing code. It covers reading errors, reproducing failures, checking recent changes, and tracing data across system components.

jnMetaCode/superpowers-zh · 24 tokens

browser-trace

Capture a full DevTools-protocol trace of any browser automation — CDP firehose, screenshots, and DOM dumps — then bisect the stream into per-page searchable buckets. Use when the user wants to debug a failed run, audit network/console/DOM activity, attach a trace to an in-progress session, or feed structured per-page…

mxyhi/ok-skills · 88 tokens

ontoly-software-graph

Use Ontoly's deterministic Software Graph and MCP capabilities for repository architecture, request tracing, dependency analysis, configuration lookup, and impact analysis before falling back to source search.

mxyhi/ok-skills · 40 tokens