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.

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.

agentmods
npx agentmods add skills/smicolon/ai-kit/failure-log-manager
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00030 $0.00458
Sonnet 5 $0.00012 $0.00183
Haiku 4.5 $0.00006 $0.00092

Measured 6d ago against content hash 72893d35e0ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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. 6d 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 (6 stars, last pushed 2d ago), licensed MIT. It adds 61 tokens to every session and 915 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

read-messages

Read back raw conversation messages from the abmind messages table (session list + message dump).

aksika/abtars · 22 tokens

diagnose

Check memory system health and troubleshoot connectivity issues. Use when memory commands aren't working, at session start if something seems wrong, or when user asks about memory status. See also: memory-health for the data-quality dashboard once connectivity is confirmed.

kbanc85/claudia · 52 tokens

context-degradation

This skill should be used for diagnosing and mitigating context degradation: lost-in-middle failures, context poisoning, context clash, context confusion, attention-pattern issues, and agent performance degradation caused by accumulated or conflicting context.

fabioc-aloha/Alex_Skill_Mall · 45 tokens

memory-management

Guide the agent to recall, remember, and route durable learning into Memory, Skills, Scheduled Tasks, or Tape.

ThinkInAIXYZ/deepchat · 26 tokens

ha-logs

Self-service diagnostics — query Hope Agent's local SQLite databases (logs / sessions / background jobs) directly via the exec tool to investigate problems, analyze usage, and locate root causes. Trigger on: user reports something broken / failing / slow / stuck / not responding ('X 不工作', 'X 报错', 'X 卡住', '为什么 X 失败'…

shiwenwen/hope-agent · 183 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens