investigate-before-fixing

investigate-before-fixing is a skill for Claude Code from abstractonion/cadence. It costs 38 tokens per session (526 once invoked), scanned A, original, MIT.

A debugging workflow that requires investigating a bug or failed test before changing code.

In plain words
What is it for?
Use it to search previous solutions, reproduce failures, test possible causes, and guide a fix based on the underlying cause.
Why use it?
It removes guesswork and discourages fixing only the visible symptom. It limits failed explanations before asking for a broader decision.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cadence plugin — 38 skills, 15 commands, 5 agents shipped together

Good fit Use it to search previous solutions, reproduce failures, test possible causes, and guide a fix based on the underlying cause.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abstractonion/cadence/investigate-before-fixing
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 abstractonion/cadence --skill investigate-before-fixing
Clone the repo
git clone --depth 1 https://github.com/abstractonion/cadence

Made for: Claude Code.

Or install cadence, the plugin that ships this one along with the rest of its 38 skills, 15 commands, 5 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 investigate-before-fixing

README.md
[![agentmods](https://agentmods.dev/badge/skills/abstractonion/cadence/investigate-before-fixing/github.svg)](https://agentmods.dev/skills/abstractonion/cadence/investigate-before-fixing)
Your own site
<a href="https://agentmods.dev/skills/abstractonion/cadence/investigate-before-fixing"><img src="https://agentmods.dev/badge/skills/abstractonion/cadence/investigate-before-fixing/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 investigate-before-fixing

Your own site · 80×15
<a href="https://agentmods.dev/skills/abstractonion/cadence/investigate-before-fixing"><img src="https://agentmods.dev/badge/skills/abstractonion/cadence/investigate-before-fixing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 526 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.00038 $0.00526
Opus 5 $0.00019 $0.00263
Sonnet 5 $0.00008 $0.00105
Haiku 4.5 $0.00004 $0.00053

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

Security

Grade A, and why

investigate-before-fixing 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 12d 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.

plugins/cadence/skills/investigate-before-fixing/SKILL.md · 30 lines

How it starts

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

No Fixes Without Investigation

When a bug, failing test, or unexpected behavior appears, do not patch the symptom. Find the root cause, then fix it. Symptom-patching creates whack-a-mole debugging, and every fix that doesn't address root cause makes the next bug harder to find.

Sequence

  1. Prior art. Before hypothesizing, search docs/solutions/ (filenames, Symptom, Tags), docs/learnings.md, and .cadence/learnings.md. Cite any match that fits the current symptoms.
  2. Reproduce. If you can't trigger it deterministically, gather more evidence before forming a hypothesis. Read the stack trace, the relevant code path, and recent diffs touching those files.
  3. One testable hypothesis at a time, in a single sentence: "X is wrong because Y." Confirm by reading the exact code that would prove it, or by adding a temporary log/assertion — never by guessing from the error string alone.
  4. 3-strike rule. If three hypotheses fail, stop. The bug is probably structural. Surface to the user: what was tried, what was ruled out, the next two reasonable directions — and add a solution doc per capture-learnings.
  5. Fix the cause, not the closest symptom. The smallest diff that eliminates the actual problem. Resist refactoring adjacent code in the same commit.
  6. Regression test that fails without the fix and passes with it. A test that always passes proves nothing. Package as the library evidence bundle per verify-with-runtime (test_name, red_output, green_output).

Red flags — slow down if you catch yourself doing these

  • Proposing a fix before tracing the data flow. You're guessing.
  • Each fix reveals a new problem one layer deeper. You're at the wrong layer.
  • "Quick fix for now." There is no "for now" — fix it right or hand it back with what you learned.

Lock the blast radius

If the fix would touch more than ~5 files, pause. Either the root cause genuinely spans them (say so), or scope is creeping. Offer to split: critical path now, the rest deferred.

Read the full file on GitHub · 30 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. 12d ago First seen · 30 lines · 38 tokens per session scan A 858ac8c9a65c

Subscribe to this mod's changes

investigate-before-fixing is a skill published in the GitHub repository abstractonion/cadence (4 stars, last pushed 3mo ago), licensed MIT. It adds 38 tokens to every session and 526 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

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

diagnose

Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.

emdash-cms/emdash · 43 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

byted-util-volcengine-detect-retry

An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.

bytedance/agentkit-samples · 101 tokens