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.
npx skills add sjarmak/coding-agent-workflows --skill failure-mode-capturegit clone --depth 1 https://github.com/sjarmak/coding-agent-workflowsWrote 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.
[](https://agentmods.dev/skills/sjarmak/coding-agent-workflows/failure-mode-capture)<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/failure-mode-capture"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/failure-mode-capture/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.
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/failure-mode-capture"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/failure-mode-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00092 | $0.00943 |
| Opus 5.5 | $0.00037 | $0.00377 |
| Sonnet 5.5 | $0.00018 | $0.00189 |
| Haiku 4.5 | $0.00009 | $0.00094 |
Grade A, and why
failure-mode-capture 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.
How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Failure-Mode Capture
Turn a real incident into a one-line prevention in AGENTS.md, so the next agent
doesn't repeat it. This is how the failure-mode layer accumulates — deliberately,
one verified lesson at a time, not by dumping everything that ever went wrong.
Read context-layering first: AGENTS.md owns project-wide preventions; area-only
lessons go in that area's COMPASS.md; host/session habits stay in memory.
When to use
- Right after a bug, regression, or near-miss whose cause generalizes
- The user says "capture this" / "don't let this happen again" / "add a guardrail"
- A code review surfaces a repeated mistake worth encoding once
ZFC boundary
- Mechanism: read AGENTS.md and the memory files, run the similarity scan, count lines against the budget, write the entry.
- Model: decide whether the lesson generalizes, which layer it belongs in, whether it duplicates an existing entry, and how to phrase the prevention.
How it works
1. Phrase the prevention (model)
One line: the action to avoid, then the consequence it prevents. Concrete and checkable.
Don't run migrations against the read replica — it has no write grant and fails silently mid-batch.
If you can't name a concrete consequence, it's not a failure-mode prevention — it's a style preference, and belongs in the bundle or a code review, not here.
2. Decide the layer (model)
- Generalizes across the repo → AGENTS.md failure-mode log.
- Specific to one area → that area's COMPASS.md "Failure modes seen here".
- A local command or personal habit → memory, not here.
3. Dedup guard against memory (mechanism + model)
First, if CLAUDE.md is a symlink to AGENTS.md (a single-source project per
context-layering), there is no separate memory layer — the dedup is moot and you
simply append to the one file. Otherwise, scan CLAUDE.md and any instinct store
for an overlapping fact (mechanical similarity flag over the candidate text). If a
match surfaces:
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.
- 3mo ago First seen · 85 lines · 92 tokens per session scan A c5dfd56938cf
failure-mode-capture is a skill published in the GitHub repository sjarmak/coding-agent-workflows (7 stars, last pushed 2d ago), licensed MIT. It adds 92 tokens to every session and 943 once invoked, about $0.0004 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.
failure-mode-capture compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| failure-mode-capturesjarmak/coding-agent-workflows | Skill | 7 | 2d ago | MIT | A | 92 | Claude Code, Codex |
| cloud-operator-share-contextgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 140 | Claude Code, Codex |
| bopomofo-rescuemxyhi/ok-skills | Skill | 518 | 9d ago | Apache-2.0 | A | 332 | Claude Code |
| braincoco-research/coco | Skill | 323 | yesterday | Apache-2.0 | A | 53 | Claude Code, Codex |
| context-window-engineerroedyrustam/vibes-plug | Skill | 129 | 3d ago | MIT | A | 38 | Cursor |
| route-lessonstobihagemann/turbo | Skill | 428 | yesterday | MIT | B | 41 | Claude Code |
| neural-memoryRune-kit/rune | Skill | 96 | yesterday | MIT | A | 54 | Claude Code |