skill-hardener

skill-hardener is a skill for Claude Code, Codex from eristoddle/agent-skills. It costs 98 tokens per session (1,924 once invoked), scanned A, original, MIT.

A process for studying coding-agent session transcripts to find recurring mistakes, then proposing safeguards and tests for the responsible instructions or skills.

In plain words
What is it for?
It is for analyzing repeated agent failures, hardening skills or CLAUDE.md, and creating regression tests; it does not automatically apply edits.
Why use it?
It helps prevent the same failure from recurring while requiring evidence from multiple sessions before suggesting a change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code.

Good fit It is for analyzing repeated agent failures, hardening skills or CLAUDE.md, and creating regression tests; it does not automatically apply edits.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/eristoddle/agent-skills/skill-hardener"><img src="https://agentmods.dev/badge/skills/eristoddle/agent-skills/skill-hardener.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,924 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.00098 $0.01924
Opus 5 $0.00049 $0.00962
Sonnet 5 $0.00020 $0.00385
Haiku 4.5 $0.00010 $0.00192

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

Security

Grade A, and why

skill-hardener 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 10d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/mine_friction.py, scripts/report.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/skill-hardener/SKILL.md · 140 lines

How it starts

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

Skill Hardener

Turn frustrating sessions into permanent fixes. This skill reads your own Claude Code transcripts, finds the patterns that keep biting you, and proposes concrete guardrails — each paired with a regression test that proves the fix and catches the regression.

It is the diagnostic complement to skill-creator (which authors and evals skills). skill-hardener decides what to harden and why; it hands the actual edit + eval to skill-creator's machinery when that's the right tool.

The prime directive: this skill edits other skills, so it is dangerous

A tool that rewrites your skills can quietly degrade them. Every safeguard below is load-bearing — do not skip them to move faster:

  1. Never auto-apply. Always show a diff and get explicit approval before writing to any skill or CLAUDE.md. No exceptions.
  2. Recurrence gate. Only propose a guardrail for a pattern seen ≥3 times across ≥2 distinct sessions (default; user may lower). One bad session is an anecdote, not a pattern. Hardening against an anecdote is how skills rot into brittle patch-piles.
  3. Prefer general over specific. A guardrail should express a principle, not patch one transcript. If you can only describe the fix by referencing one session, it's not ready.
  4. Cap the blast radius. Max 3 guardrail edits per run. More than that means the diagnosis is too shallow — go narrower.
  5. Git is the undo button. Refuse to apply edits in a dirty/untracked skill dir without warning; every change must be a reviewable, revertible diff. Note the rollback command in the changelog.
  6. Don't harden what you can't attribute. If you can't tie a failure to a specific skill or to base/CLAUDE.md behavior, report it — don't guess at a target.

Workflow

Phase 1 — MINE & SHOW

Always lead with the plain-language, skill-first report. This is what the user reads: which skills gave them the most grief, ranked, with bars. Do NOT open with raw signature counts.

Read the full file on GitHub · 140 lines

Files

What ships with it

4 files 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. 10d ago First seen · 140 lines · 98 tokens per session scan A bc049aeca7d1

Subscribe to this mod's changes

skill-hardener is a skill published in the GitHub repository eristoddle/agent-skills (2 stars, last pushed 15d ago), licensed MIT. It adds 98 tokens to every session and 1,924 once invoked, about $0.0005 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.