Agent skill

Explain Then Fix

by jnsahaj in jnsahaj/skills

Work through bugs or reported issues one cause at a time — reproduce the reporter's own case, explain the root cause with annotated evidence and a diagram, lay out fix options, wait for "go", then…

No licenceAuto-check passedDevelopment

Install Explain Then Fix

skills CLI
$ npx skills add jnsahaj/skills --skill explain-then-fix -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jnsahaj/skills explain-then-fix --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jnsahaj/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/explain-then-fix .claude/skills/explain-then-fix && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
explain-then-fix
GitHub stars
105
Token cost
~527 tokens
SKILL.md length
301 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
None found

At a glance

Work through bugs or reported issues one cause at a time — reproduce the reporter's own case, explain the root cause with annotated evidence and a diagram, lay out fix options, wait for "go", then…

  • Works in 6 steps: Pick. One problem, or a few that look… → Reproduce. On the reporter's own case:… → Explain. In plain words, naming things… → …
  • Tasks that involve Root cause analysis
  • SKILL.md covers Steps and Rules
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Explain Then Fix is an agent skill from jnsahaj/skills. Work through bugs or reported issues one cause at a time — reproduce the reporter's own case, explain the root cause with annotated evidence and a diagram, lay out fix options, wait for "go", then fix and show before/after.

Its SKILL.md is about 530 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Root cause analysis. The repository describes itself as: Agent skills I use daily.

When your agent uses it

  • Tasks that involve Root cause analysis

Example prompts

  • “/explain-then-fix”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Pick. One problem, or a few that look like one cause. Say which, in one
  2. Reproduce. On the reporter's own case: their data, their environment,
  3. Explain. In plain words, naming things the way the reporter would,
  4. Discuss. Lay out the fix options, each with what it fixes, what it
  5. Fix, on "go". Implement it. Add the few tests that fail before and
  6. Next. Say what is left of the group, then propose the next group and

What it can do on your machine

Read from SKILL.md and the folder at commit 170b0b9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Explain Then Fix loads about 527 tokens when it runs. Until then it costs about 60 tokens; SKILL.md has 301 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~60
When it runs · the whole SKILL.md, loaded when a task matches
~527

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 301 words (~527 tokens).

“The user decides every fix. Nothing is changed, pushed, closed or published until they say so, and everything happens in this chat.”

— opening of SKILL.md by jnsahaj
name
explain-then-fix
disable-model-invocation
true

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/explain-then-fix of jnsahaj/skills.

Open the folder on GitHubat commit 170b0b9

Compare with similar skills

Explain Then Fix next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Explain Then Fix compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Explain Then Fix this skilljnsahaj/skills105—~527Automated safety check: PassNone
Code Design Rationale Investigatorcursor/plugins11k9 repos~2.6kAutomated safety check: PassNone
OpenLogi macOS Permissions TriageAprilNEA/OpenLogi23k—~2.5kAutomated safety check: NotesApache-2.0
Bug Finder for daisyUIsaadeghi/daisyui43k—~2.3kAutomated safety check: PassMIT
Root Cause Debugginggarrytan/gstack136k—~1.4kAutomated safety check: PassMIT
Review PRapache/shardingsphere21k—~6.4kAutomated safety check: PassApache-2.0

Similar skills

  • Official

    Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.

    11k GitHub starsUsed in 9 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Decides whether an OpenLogi device problem on macOS is a privacy-permission (TCC) problem, using agent log lines, and says which identity needs which grant.

    23k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check: notes
  • Bug Finder for daisyUI

    saadeghi/daisyui

    Investigates suspected bugs in the daisyUI monorepo through read-only analysis, then writes a decision-ready fix plan in tmp/bugs without changing any product code.

    43k GitHub stars~2.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Root Cause Debugging

    garrytan/gstack

    Investigates bugs, errors and stack traces in phases and requires a root-cause hypothesis to be confirmed before any fix is written.

    136k GitHub stars~1.4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Review PR

    apache/shardingsphere

    Review Apache ShardingSphere or user-authorized downstream pull requests and PR discussions from public or authorized repository evidence.

    21k GitHub stars~6.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Graph-Based Bug Tracing

    tirth8205/code-review-graph

    Traces a bug through a code knowledge graph, following callers, callees and execution flow before opening source files, within a small token budget.

    32k GitHub starsUsed in 1 repo~287 tokens
    DevelopmentAuto-check passed

More from jnsahaj/skills

All 8 skills in this repo
  • Ga PR

    jnsahaj/skills

    Kick off follow-up work on an existing PR in a parallel tmux/agent session.

    105 GitHub starsUsed in 1 repo~441 tokens
    Auto-check passed
  • Analyze the current branch's diff from main and related PR to build context for followup requests.

    105 GitHub starsUsed in 1 repo~552 tokens
    Auto-check passed
  • Create Draft PR

    jnsahaj/skills

    Commit, push, and create a draft PR using the pr-description format, with UX flow context when relevant.

    105 GitHub starsUsed in 1 repo~590 tokens
    Auto-check passed
  • Ga

    jnsahaj/skills

    Kick off a new feature or fix in a parallel clone with Pi working autonomously.

    105 GitHub starsUsed in 1 repo~756 tokens
    Auto-check passed
  • Pit Of Success

    jnsahaj/skills

    Review or refactor code so the correct behavior is the default path; use when APIs, setters, hooks, helpers, or component props have footguns where a natural call bypasses required semantics.

    105 GitHub starsUsed in 1 repo~500 tokens
    Auto-check passed
  • UX Flow Plan

    jnsahaj/skills

    Create UX-first plans as flow trees, then attach concrete function names, files, and implementation anchors after the high-level flow is clear.

    105 GitHub starsUsed in 1 repo~468 tokens
    Auto-check passed

Categories

Questions about Explain Then Fix

What does Explain Then Fix do?

Work through bugs or reported issues one cause at a time — reproduce the reporter's own case, explain the root cause with annotated evidence and a diagram, lay out fix options, wait for "go", then…. Explain Then Fix is an agent skill from jnsahaj/skills. Work through bugs or reported issues one cause at a time — reproduce the reporter's own case, explain the root cause with annotated evidence and a diagram, lay out fix options, wait for "go", then fix and show before/after.

When should I use Explain Then Fix?

Explain Then Fix fits situations like: tasks that involve Root cause analysis.

How do I install Explain Then Fix in Claude Code?

Run `npx skills add jnsahaj/skills --skill explain-then-fix -a claude-code`. Or copy the skill folder (skills/explain-then-fix in jnsahaj/skills) into .claude/skills/explain-then-fix in your project. Claude Code loads it when a task matches its description.

How do I install Explain Then Fix in Codex?

Run `npx skills add jnsahaj/skills --skill explain-then-fix -a codex`. Or copy the skill folder (skills/explain-then-fix in jnsahaj/skills) into .agents/skills/explain-then-fix in your project. Codex loads it when a task matches its description.

Can I use Explain Then Fix in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jnsahaj/skills --skill explain-then-fix -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/explain-then-fix, .gemini/skills/explain-then-fix, .github/skills/explain-then-fix and .opencode/skills/explain-then-fix in your project.

What does Explain Then Fix need to run?

SKILL.md names no scripts, command-line tools or credentials: Explain Then Fix is instructions for the agent only.

Does Explain Then Fix access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Explain Then Fix safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Explain Then Fix use?

No licence was found for Explain Then Fix or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Explain Then Fix use?

About 527 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Explain Then Fix?

Skills that share tags, products or a category with Explain Then Fix: Code Design Rationale Investigator (cursor/plugins, 11k stars), OpenLogi macOS Permissions Triage (AprilNEA/OpenLogi, 23k stars), Bug Finder for daisyUI (saadeghi/daisyui, 43k stars) and Root Cause Debugging (garrytan/gstack, 136k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Explain Then Fix?

jnsahaj (a GitHub user) maintains it in jnsahaj/skills, which has 105 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 5, 2026.

Source: jnsahaj/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.