prevent-repeat-mistakes

prevent-repeat-mistakes is a skill for Claude Code, Codex from EzraApple/skills-init. It costs 40 tokens per session (303 once invoked), scanned A, original, MIT.

A method for stopping a repeated, evidenced repository mistake from happening again. It finds concrete examples, identifies the failing rule, and adds the narrowest suitable guard, such as validation, a test, or guidance.

In plain words
What is it for?
Use it to investigate recurring review corrections or repository errors and add a focused test, type or schema check, lint rule, or instruction.
Why use it?
Fixing one occurrence does not prevent the same error from returning. This approach puts the prevention at the boundary where the mistake can be rejected and checks that valid cases still work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate recurring review corrections or repository errors and add a focused test, type or schema check, lint rule, or instruction.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ezraapple/skills-init/prevent-repeat-mistakes
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 EzraApple/skills-init --skill prevent-repeat-mistakes
Clone the repo
git clone --depth 1 https://github.com/EzraApple/skills-init

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 prevent-repeat-mistakes

README.md
[![agentmods](https://agentmods.dev/badge/skills/ezraapple/skills-init/prevent-repeat-mistakes/github.svg)](https://agentmods.dev/skills/ezraapple/skills-init/prevent-repeat-mistakes)
Your own site
<a href="https://agentmods.dev/skills/ezraapple/skills-init/prevent-repeat-mistakes"><img src="https://agentmods.dev/badge/skills/ezraapple/skills-init/prevent-repeat-mistakes/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 prevent-repeat-mistakes

Your own site · 80×15
<a href="https://agentmods.dev/skills/ezraapple/skills-init/prevent-repeat-mistakes"><img src="https://agentmods.dev/badge/skills/ezraapple/skills-init/prevent-repeat-mistakes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 303 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.00040 $0.00303
Opus 5.5 $0.00016 $0.00121
Sonnet 5.5 $0.00008 $0.00061
Haiku 4.5 $0.00004 $0.00030

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

Security

Grade A, and why

prevent-repeat-mistakes 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 18d 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.

skills/prevent-repeat-mistakes/SKILL.md · 19 lines

What it actually says

Prevent repeat mistakes

Find concrete instances of the repeated mistake within the repo and task scope the user supplied. Compare the correction with the current code and guidance to identify the invariant that keeps failing. If the examples do not establish a pattern, say so and address only the authorized instance.

Choose the owning boundary that prevents recurrence:

  1. Remove duplicate ownership or ambiguous interfaces when they cause the drift.
  2. Encode the invariant in types, schema validation, lint, or a focused test when it can be checked mechanically.
  3. Update existing agent guidance only when the decision needs judgment that code cannot enforce. Prefer a narrow edit over another rule or skill.

Prove the guard works: show that it rejects a representative former mistake and accepts the valid case. For a test, reproduce the failure before the fix when practical. Run the relevant checks after the change. Do not add a check that merely restates the implementation or blocks legitimate uses.

Diagnosis alone does not authorize code or instruction changes. If the user requested an audit, report the cause, the proposed owning boundary, and evidence without editing. If the user requested prevention or a fix, make the scoped change and verify it. Do not expand into an architecture sweep, search unrelated personal history, or write to memory without a separate request.

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. 18d ago First seen · 19 lines · 40 tokens per session scan A c834975496ff

Subscribe to this mod's changes

prevent-repeat-mistakes is a skill published in the GitHub repository EzraApple/skills-init (2 stars, last pushed 19d ago), licensed MIT. It adds 40 tokens to every session and 303 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-10-16.

Related

Other skills, from other repositories

workflow-patterns

Use this skill when implementing tasks according to Conductor's TDD workflow, handling phase checkpoints, managing git commits for tasks, or understanding the verification protocol.

wshobson/agents · 35 tokens

go-testing

Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.

Gentleman-Programming/gentle-ai · 26 tokens

writing-livekit-scenarios

Creates and maintains the scenarios a LiveKit agent simulation runs, and wires the agent to consume them. Use when the user asks "what should I test", "generate simulation scenarios", "write scenarios for my agent", "add a scenario for X", "organize my scenario files", "my simulations are flaky", "the scenario hits my…

fcakyon/claude-codex-settings · 178 tokens

running-livekit-simulations

Runs LiveKit agent simulations and acts on the results. Use when the user says "run my simulations", "regression test my agent before deploying", "run the scenarios", "use lk agent simulate", "did my agent pass", "why did this scenario fail", "run simulations in CI", "test the audio pipeline", "check turn-taking and…

fcakyon/claude-codex-settings · 183 tokens

dsh-error-handling

A workflow for designing and reviewing how software reports errors, partial success, unknown results, recovery, retries, cancellation, and failure feedback.

qufei1993/skills-hub · 39 tokens

dsh-pre-push-checks

A delivery-readiness check for software changes before they are pushed or released. It compares required checks with the actual source, build output, tests, and user-facing behavior.

qufei1993/skills-hub · 51 tokens