principle-fix-root-causes

principle-fix-root-causes is a skill for Claude Code from jasonm4130/claude-skills. It costs 43 tokens per session (237 once invoked), scanned A, original, MIT.

A debugging method for finding the first point where software made a wrong decision, rather than only hiding the visible symptom. It recommends reproducing the problem, tracing the state that caused it, and fixing the broader pattern.

In plain words
What is it for?
Use it to investigate bugs, trace symptoms back through the code, decide whether an invalid state should be prevented or handled, and add an early signal when a problem is hard to detect.
Why use it?
It prevents temporary checks, retries, or ignored errors from masking the real bug. It also helps avoid fixing one example while leaving the same fault elsewhere.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the pstack plugin — 8 skills, 1 agent shipped together

Good fit Use it to investigate bugs, trace symptoms back through the code, decide whether an invalid state should be prevented or handled, and add an early signal when a problem is hard to detect.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jasonm4130/claude-skills/principle-fix-root-causes
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 jasonm4130/claude-skills --skill principle-fix-root-causes
Clone the repo
git clone --depth 1 https://github.com/jasonm4130/claude-skills

Made for: Claude Code.

Or install pstack, the plugin that ships this one along with the rest of its 8 skills, 1 agent.

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 principle-fix-root-causes

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jasonm4130/claude-skills/principle-fix-root-causes"><img src="https://agentmods.dev/badge/skills/jasonm4130/claude-skills/principle-fix-root-causes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 237 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.00043 $0.00237
Opus 5.5 $0.00017 $0.00095
Sonnet 5.5 $0.00009 $0.00047
Haiku 4.5 $0.00004 $0.00024

Measured 9d ago against content hash 79afd7e67d89, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

principle-fix-root-causes 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.

plugins/pstack/skills/principle-fix-root-causes/SKILL.md · 15 lines

What it actually says

Fix Root Causes

Fix the fault, not the place where it surfaced. The root cause is the first place the system did something it should not do, or failed to handle a state it should handle.

  • Reproduce first. Ask "why" until the answer is a wrong decision in the code. When stuck, instrument and read the actual state.
  • Ask whether the state that triggered the symptom is legitimate. If it is, handle it where the code broke. If it should never exist, a check there hides the bug, so find what produced it. Guards, retries, swallowed errors, clamped values, and discarded state are the usual ways to hide a bug.
  • Fix the pattern, not the instance. Find every place with the same fault.
  • If the deciding fact took a deep dig, propose the cheap, always-on signal that would have shown it at first look.
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 · 15 lines · 43 tokens per session scan A 79afd7e67d89

Subscribe to this mod's changes

principle-fix-root-causes is a skill published in the GitHub repository jasonm4130/claude-skills (5 stars, last pushed 10d ago), licensed MIT. It adds 43 tokens to every session and 237 once invoked, about $0.0002 per session on Opus 5.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-11-21.

Related

principle-fix-root-causes compared with skills from other repositories

principle-fix-root-causes next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
principle-fix-root-causesjasonm4130/claude-skillsSkill510d agoMITA43Claude Code
operating-cadencecbrock84/headcountSkill2.6ktodayMITA95Claude Code
auditoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA35Claude Code
investigateoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA51Claude Code
narrow-bare-rescueoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA40Claude Code
perfoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA50Claude Code
tidewave-integrationoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA38Claude Code