repeated-failure-learning

repeated-failure-learning is a skill for Claude Code, Codex from sgaabdu4/hard-eng. It costs 0 tokens per session (34 once invoked), scanned A, original, MIT.

A workflow for local coding agents that records failed attempts and prevents retrying the same approach after repeated comparable failures.

In plain words
What is it for?
It is for learning from failed candidates, stopping duplicate retries, and deciding when another candidate should not be attempted.
Why use it?
It helps avoid wasting time repeating a method that already failed or violated the original requirement.

Skill for Claude CodeCodex

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

Good fit It is for learning from failed candidates, stopping duplicate retries, and deciding when another candidate should not be attempted.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sgaabdu4/hard-eng/repeated-failure-learning
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 sgaabdu4/hard-eng --skill repeated-failure-learning
Clone the repo
git clone --depth 1 https://github.com/sgaabdu4/hard-eng

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 repeated-failure-learning

README.md
[![agentmods](https://agentmods.dev/badge/skills/sgaabdu4/hard-eng/repeated-failure-learning/github.svg)](https://agentmods.dev/skills/sgaabdu4/hard-eng/repeated-failure-learning)
Your own site
<a href="https://agentmods.dev/skills/sgaabdu4/hard-eng/repeated-failure-learning"><img src="https://agentmods.dev/badge/skills/sgaabdu4/hard-eng/repeated-failure-learning/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 repeated-failure-learning

Your own site · 80×15
<a href="https://agentmods.dev/skills/sgaabdu4/hard-eng/repeated-failure-learning"><img src="https://agentmods.dev/badge/skills/sgaabdu4/hard-eng/repeated-failure-learning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 34 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.00000 $0.00034
Opus 5 $0.00000 $0.00017
Sonnet 5 $0.00000 $0.00007
Haiku 4.5 $0.00000 $0.00003

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

Security

Grade A, and why

repeated-failure-learning 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.

scripts/test_fixtures/operating-contracts/valid/skills/repeated-failure-learning/SKILL.md · 4 lines

What it actually says

  • Failed candidate + original violation remains.
  • same theory/variant mutation, retry, push, or publish = forbidden.
  • Comparable candidate fails twice → no third candidate.
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 · 4 lines · 0 tokens per session scan A bad364f6638c

Subscribe to this mod's changes

repeated-failure-learning is a skill published in the GitHub repository sgaabdu4/hard-eng (5 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 34 tokens. 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

vibe-debugging-journal

Records resolved bugs in a persistent journal — symptom, root cause, difficulty, fix, prevention. Organized by category for future reference.

mracal/vibe-engineering · 33 tokens

browserwing-admin

Manage and operate BrowserWing — an intelligent browser automation platform. Install dependencies, configure LLM, create/manage/execute automation scripts, use AI-driven exploration to generate scripts, browse the script marketplace, and troubleshoot issues.

MemTensor/MemOS · 47 tokens

langsmith-tracing

LangSmith tracing and debugging setup for LLM applications. Configure observability, capture traces, and enable debugging for LangChain/LangGraph agents.

a5c-ai/babysitter · 34 tokens

hns-lsel-curator

Local Self-Evolution Loop (LSEL) curator — the CLUSTER + drain engine for the GOOS-local PROPOSE→APPLY seam closure (SPEC-LSEL-LOCAL-EVOLUTION-001). Companion-offset drain of .moai/lessons-inbox.jsonl with a drain-side severity filter that drops the 65% Bash-timeout/sandbox noise, eventkey clustering with a frequency…

modu-ai/moai-adk · 135 tokens

quality-hooks

Language-specific auto-lint/format/typecheck pipeline. Supports Python (ruff+pyright), TypeScript (prettier+eslint+tsc), Go (gofmt+golangci-lint). Auto-fix and convergence loops.

a5c-ai/babysitter · 53 tokens

exploiting-format-string-vulnerabilities

Methodology for exploiting format string bugs where attacker-controlled data reaches the format argument of printf-family functions, enabling stack/memory disclosure (info leaks for ASLR/PIE/canary defeat) and arbitrary write primitives (%n) to hijack control flow via GOT/.finiarray overwrites.

xalgorix/xalgorix · 69 tokens