failure-pattern-process

failure-pattern-process is a skill for Claude Code from ivegamsft/basecoat. It costs 71 tokens per session (638 once invoked), scanned A, original, MIT.

A structured process for collecting and analysing recurring failures, from evidence gathering through an enhancement plan. It keeps raw findings, separates broadly applicable problems from repository-specific ones, and records early-detection checks.

In plain words
What is it for?
Use it to mine failure evidence, log findings without removing duplicates, classify them, rank enhancements, and define gates that can catch problems earlier.
Why use it?
Failure investigations often lose evidence or jump to fixes before the pattern is understood. This process preserves the source findings and provides a consistent route from discovery to planned improvements.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to mine failure evidence, log findings without removing duplicates, classify them, rank enhancements, and define gates that can catch problems earlier.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ivegamsft/basecoat/failure-pattern-process
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 ivegamsft/basecoat --skill failure-pattern-process
Clone the repo
git clone --depth 1 https://github.com/ivegamsft/basecoat

Made for: Claude Code.

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-pattern-process

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ivegamsft/basecoat/failure-pattern-process"><img src="https://agentmods.dev/badge/skills/ivegamsft/basecoat/failure-pattern-process.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 638 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.00071 $0.00638
Opus 5 $0.00036 $0.00319
Sonnet 5 $0.00014 $0.00128
Haiku 4.5 $0.00007 $0.00064

Measured today against content hash f6b7648b4c33, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

failure-pattern-process 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 today.

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/failure-pattern-process/SKILL.md · 76 lines

How it starts

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

Failure Pattern Process Skill

Use this skill to execute a reusable, evidence-first failure-pattern process:

  1. Mine failure patterns
  2. Log raw findings without pruning
  3. Triage common versus repo-specific patterns
  4. Build a prioritized enhancement plan with early-detection gates

Process Contract Alignment

This skill is aligned to:

Canonical stage model:

queued -> mining -> raw_logged -> triaged -> planned -> completed

Failure transition:

* -> blocked

Artifact Pack

Required outputs:

  • A1-source-index
  • A2-pattern-candidates
  • B1-raw-findings-log (append-only, no pruning)
  • C1-triage-matrix
  • C2-classification-rationale
  • D1-enhancement-backlog
  • D2-early-detection-gates
  • run-summary

Practical Templates

Template Purpose
templates/source-index-template.md Capture evidence sources with provenance and timestamps
templates/raw-findings-log-template.md Append-only raw findings record (duplicates retained)
templates/triage-matrix-template.md Classify findings as common, repo-specific, or unknown with rationale
templates/enhancement-backlog-template.md Prioritized enhancement items with validation methods
templates/early-detection-gates-template.md Define detection triggers, owners, and actions
templates/run-summary-template.md Summarize stage transitions, gate outcomes, and handoff

Checklists

Checklist Purpose
checklists/gate-validation-checklist.md Verify Gate 1 through Gate 4 completion criteria

Read the full file on GitHub · 76 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. today First seen · 76 lines · 71 tokens per session scan A f6b7648b4c33

Subscribe to this mod's changes

failure-pattern-process is a skill published in the GitHub repository ivegamsft/basecoat (4 stars, last pushed today), licensed MIT. It adds 71 tokens to every session and 638 once invoked, about $0.0004 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-09-08.