failure-log-manager

failure-log-manager is a skill for Claude Code from smicolon/ai-kit. It costs 61 tokens per session (915 once invoked), scanned A, original, MIT.

A skill for keeping a persistent record of coding mistakes and failures.

In plain words
What is it for?
Use it to log a failure, review recorded mistakes, or retrieve advice about errors to avoid.
Why use it?
It helps the agent remember problems that should be avoided and review earlier failures when similar work comes up.

Skill for Claude Code

Written for Claude Code: UserPromptSubmit hook event.

Good fit Use it to log a failure, review recorded mistakes, or retrieve advice about errors to avoid.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/smicolon/ai-kit/failure-log-manager
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 smicolon/ai-kit --skill failure-log-manager
Clone the repo
git clone --depth 1 https://github.com/smicolon/ai-kit

Made for: Claude Code.

Its marketplace also offers this one on its own, as the plugin failure-log — /plugin install failure-log after adding the marketplace above.

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 failure-log-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/smicolon/ai-kit/failure-log-manager/github.svg)](https://agentmods.dev/skills/smicolon/ai-kit/failure-log-manager)
Your own site
<a href="https://agentmods.dev/skills/smicolon/ai-kit/failure-log-manager"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/failure-log-manager/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 failure-log-manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/smicolon/ai-kit/failure-log-manager"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/failure-log-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 915 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.00061 $0.00915
Opus 5.5 $0.00024 $0.00366
Sonnet 5.5 $0.00012 $0.00183
Haiku 4.5 $0.00006 $0.00092

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

Security

Grade A, and why

failure-log-manager 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.

packs/failure-log/skills/failure-log-manager/SKILL.md · 165 lines

How it starts

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

Failure Log Manager

Manages the persistent failure log at .claude/failure-log.local.md to prevent repeating mistakes across sessions.

Activation Triggers

This skill activates when:

  • User asks to log a mistake or failure
  • A pattern violation or error is detected
  • User wants to review known mistakes
  • Adding, viewing, or managing failure entries

File Location

.claude/failure-log.local.md

This file is project-specific and should be in .gitignore.

File Format

---
enabled: true
last_updated: 2026-01-01T10:30:00Z
---

# Failure Log

## Pattern Mistakes

### [YYYY-MM-DD] Brief title
**Context:** What was being done
**Mistake:** What went wrong
**Correct:** What should be done instead
**Category:** imports|security|testing|architecture|conventions

## Failed Approaches

### [YYYY-MM-DD] Brief title
**Context:** What was being attempted
**What failed:** Why the approach didn't work
**Better approach:** What works instead
**Category:** imports|security|testing|architecture|conventions

Categories

Category Description Examples
imports Wrong import patterns Relative imports, missing aliases
security Missing security checks No permission classes, exposed secrets
testing Wrong test approaches unittest vs pytest, missing fixtures
architecture Structural mistakes Wrong file locations, missing layers
conventions Code style violations Naming, formatting, patterns

Adding Failures

Pattern Mistake Entry

For recurring pattern violations:

### [2026-01-01] Wrong import pattern in Django
**Context:** Writing user service
**Mistake:** Used `from users.models import User` instead of alias pattern
**Correct:** Use `import users.models as _users_models`
**Category:** imports

Failed Approach Entry

For approaches that don't work:

### [2026-01-01] Tried unittest instead of pytest
**Context:** Writing tests for user service
**What failed:** unittest assertions don't integrate with Django fixtures
**Better approach:** Use pytest with factory_boy for test data
**Category:** testing

Read the full file on GitHub · 165 lines

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 · 165 lines · 61 tokens per session scan A 72893d35e0ed

Subscribe to this mod's changes

failure-log-manager is a skill published in the GitHub repository smicolon/ai-kit (7 stars, last pushed 2mo ago), licensed MIT. It adds 61 tokens to every session and 915 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-08-31.

Related

failure-log-manager compared with skills from other repositories

failure-log-manager next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
failure-log-managersmicolon/ai-kitSkill72mo agoMITA61Claude Code
read-messagesaksika/abtarsSkill11yesterdayApache-2.0A22Claude Code
diagnosekbanc85/claudiaSkill3041mo agononeB52Claude Code, Codex
context-degradationfabioc-aloha/Alex_Skill_MallSkill62d agoMITA45Claude Code, Codex
nightly-audit-engineer-opsmakecindy/cindySkill11ktodayApache-2.0A43Claude Code, Codex
browserwing-adminMemTensor/MemOSSkill13ktodayApache-2.0B47Claude Code, Codex
ha-logsshiwenwen/hope-agentSkill1.9ktodayMITA183Claude Code, Codex