recall-failure-lessons

recall-failure-lessons is a skill for Claude Code, Codex from CongBao/failure-memory. It costs 35 tokens per session (438 once invoked), scanned A, original, MIT.

A skill for looking up previously recorded failure lessons before risky, recurring, or similar work.

In plain words
What is it for?
Use it before tasks that resemble a documented failure, then apply any returned lessons as cautions after checking them against the current task.
Why use it?
It gives the agent a bounded, relevance-filtered check for earlier mistakes without forcing it to invent details or use irrelevant lessons.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the failure-memory plugin — 2 skills, 2 hooks shipped together

Good fit Use it before tasks that resemble a documented failure, then apply any returned lessons as cautions after checking them against the current task.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/congbao/failure-memory/recall-failure-lessons
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 CongBao/failure-memory --skill recall-failure-lessons
Clone the repo
git clone --depth 1 https://github.com/CongBao/failure-memory

Made for: Claude Code, Codex.

Or install failure-memory, the plugin that ships this one along with the rest of its 2 skills, 2 hooks.

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 recall-failure-lessons

README.md
[![agentmods](https://agentmods.dev/badge/skills/congbao/failure-memory/recall-failure-lessons/github.svg)](https://agentmods.dev/skills/congbao/failure-memory/recall-failure-lessons)
Your own site
<a href="https://agentmods.dev/skills/congbao/failure-memory/recall-failure-lessons"><img src="https://agentmods.dev/badge/skills/congbao/failure-memory/recall-failure-lessons/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 recall-failure-lessons

Your own site · 80×15
<a href="https://agentmods.dev/skills/congbao/failure-memory/recall-failure-lessons"><img src="https://agentmods.dev/badge/skills/congbao/failure-memory/recall-failure-lessons.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 438 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.00035 $0.00438
Opus 5.5 $0.00014 $0.00175
Sonnet 5.5 $0.00007 $0.00088
Haiku 4.5 $0.00003 $0.00044

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

Security

Grade A, and why

recall-failure-lessons 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 3mo 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/recall-failure-lessons/SKILL.md · 38 lines

What it actually says

Recall Failure Lessons

Call recall_failure_lessons once with compact task evidence in text. Add component only when it is already known. Do not invent an invariant, cause, or prevention action merely to make the query look complete.

Normally omit mode, top_k, and min_relevance; the tool applies its calibrated relevance threshold, authoritative lifecycle filter, pattern collapse, and dynamic zero-to-three result limit. Treat top_k only as a maximum and min_relevance as an optional stricter floor. Never lower the threshold, broaden, or retry to fill a result list.

Accept an empty result and continue. Apply returned lessons only as proposed cautions after validating them against the current task.

If later evidence in the same task clearly establishes whether the recall was applied, not applicable, contradicted, or prevented/failed to prevent recurrence, call report_memory_outcome once with the returned attempt_id, the affected returned lesson IDs, a compact evidence_code, the supported source and evidence_kind, and an observation window of 1, 7, or 30 days. Omitted optional outcome metadata uses the tool's documented defaults. Do not pause the task to manufacture an outcome or report one when it remains unknown.

Only when the tool capability is absent before invocation, pass the identical JSON on standard input to failure-memory recall once. Do not use the fallback after a timeout or ambiguous tool failure. After such a tool failure, continue without memory guidance and mention it once only when relevant. If the command is absent, continue without memory guidance and mention the installation issue once.

Do not inspect plugin files or SQLite, install anything, create temporary files, or include raw prompts, secrets, personal data, or unnecessary paths. Similarity is not proof, policy authority, or permission to merge lessons.

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. 3mo ago First seen · 38 lines · 35 tokens per session scan A ae172319fcf2

Subscribe to this mod's changes

recall-failure-lessons is a skill published in the GitHub repository CongBao/failure-memory (0 stars, last pushed 3mo ago), licensed MIT. It adds 35 tokens to every session and 438 once invoked, about $0.0001 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-09-01.

Related

recall-failure-lessons compared with skills from other repositories

recall-failure-lessons next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
recall-failure-lessonsCongBao/failure-memorySkill03mo agoMITA35Claude Code, Codex
claude-apiPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA193Claude Code, Codex
memoryPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA122Claude Code, Codex
council-creatorPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA142Claude Code, Codex
env-doctorPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA55Claude Code
observabilityPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA67Claude Code
release-ota-promotePrismer-AI/PrismerCloudSkill1.4k1mo agoMITA52Claude Code