bugfix

bugfix is a skill for Claude Code, Codex from kangig94/coral. It costs 20 tokens per session (793 once invoked), scanned A, original, MIT.

A bug-debugging workflow for diagnosing unexpected behavior, planning a fix, and carrying it through to completion.

In plain words
What is it for?
Use it to investigate bugs, run deep debugging, delegate diagnosis, and classify the returned result.
Why use it?
It provides a defined path from an error report to a diagnosis and fix, including optional delegation to another coding host.

Skill for Claude CodeCodex

Part of the coral plugin — 12 skills, 10 agents shipped together

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.

agentmods
npx agentmods add skills/kangig94/coral/bugfix
Any agent
npx skills add kangig94/coral --skill bugfix
Clone the repo
git clone --depth 1 https://github.com/kangig94/coral

Made for: Claude Code, Codex.

Or install coral, the plugin that ships this one along with the rest of its 12 skills, 10 agents.

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 bugfix

README.md
[![agentmods](https://agentmods.dev/badge/skills/kangig94/coral/bugfix.svg)](https://agentmods.dev/skills/kangig94/coral/bugfix)
Your own site
<a href="https://agentmods.dev/skills/kangig94/coral/bugfix"><img src="https://agentmods.dev/badge/skills/kangig94/coral/bugfix.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 793 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00020 $0.00793
Opus 5 $0.00010 $0.00396
Sonnet 5 $0.00004 $0.00159
Haiku 4.5 $0.00002 $0.00079

Measured 4d ago against content hash fde7936870c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bugfix 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 4d 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.

clients/skills/bugfix/SKILL.md · 46 lines

How it starts

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

Bug Debugging

Diagnose bugs, plan fixes, and execute - end-to-end.

Argument Routing

Argument Mode
<prompt> Self-execute on current host (default)
--delegate Delegate to the other host (Claude → Codex, Codex → Claude, Copilot → Codex; current host comes from SessionStart Current host:)
--delegate <prompt> Same with prompt

Strip the --delegate flag before passing the prompt to the execution path.

Execution

  1. Diagnose:
    • Self-execute (default): Spawn Agent({ subagent_type: "coral:debugger", prompt: "--deep " + prompt }). Wait for the agent to return its diagnosis in <Output_Format> structure.
    • Delegate (--delegate): Run coral-cli <other-host> debugger -i "<--deep prompt>" --work-dir "<work_dir>" -d (<other-host> = the delegation target for the current host: Claude → Codex, Codex → Claude, Copilot → Codex). Capture job from Job <job> <launchState> (session <session>), then run cd "<work_dir>" && coral-cli wait jobs <job> --embed. Classify the result from its rendered output, not exit code 75 alone: Result path: <path> marks a terminal result, so read that artifact and stop waiting even when a terminal provider_exit propagated code 75; a status beginning Still waiting with (cursor: <cursor>) means the job is still live, so resume with cd "<work_dir>" && coral-cli wait jobs <job> --cursor <cursor> --embed. If a transient error instead prints remediation:, run that exact command from the same directory — cd "<work_dir>" && <the printed coral-cli wait jobs command> — since wait scopes from the shell's cwd. A non-zero provider_exit code is terminal and is passed through unchanged (0–255). On error, stop with the error message. Verify cited file:line references. Drop findings with incorrect references.

Read the full file on GitHub · 46 lines

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. 4d ago First seen · 46 lines · 20 tokens per session scan A fde7936870c8

Subscribe to this mod's changes

bugfix is a skill published in the GitHub repository kangig94/coral (11 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 793 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

deployment

This skill should be used when shipping an app to production — setting up CI/CD, deploys, preview environments, error monitoring, environment separation, or rollback. Trigger phrases include "deploy this", "set up CI/CD", "GitHub Actions", "add error tracking", "set up Sentry", "monitor production", "staging…

MartinOlivero/saas-builder · 132 tokens

api-design

This skill should be used when designing or building an API — endpoints, routes, request/response shapes, error formats, pagination, versioning, or deciding REST vs GraphQL. Trigger phrases include "design the API", "build an endpoint", "REST or GraphQL", "how should I structure my routes", "API error format"…

MartinOlivero/saas-builder · 118 tokens

architecture-primer

This skill should be used when the user wants to design, plan, or decide the architecture of a system, app, or platform from scratch. Trigger phrases include "how do I structure this", "what architecture should I use", "how does this scale", "monolith or microservices", "what database", "what stack", "design the…

MartinOlivero/saas-builder · 111 tokens

saas-router

This skill should be used FIRST whenever the user wants to create, build, design, ship, or prototype any digital product — a SaaS, web app, platform, MVP, landing page, sales page, dashboard, admin panel, backoffice, internal tool, API, database, auth, payments, or any user interface. Trigger phrases (English) include…

MartinOlivero/saas-builder · 189 tokens

secure-coding

This skill should be used while WRITING any backend, API, auth, or data-handling code for a web app or SaaS — to prevent vulnerabilities before they ship, not to audit them after. Trigger phrases include "add an endpoint", "handle user input", "store user data", "is this secure", "build the API", "save to the…

MartinOlivero/saas-builder · 128 tokens

ui-design

This skill should be used when making visual design decisions, creating components, defining styles, colors, typography, spacing, or building any interface — including dashboards, admin panels, and web apps. Trigger phrases include "design the UI", "build a component", "pick colors", "create a design system", "make it…

MartinOlivero/saas-builder · 98 tokens