learning-from-failure

learning-from-failure is a skill for Claude Code from fatihguner/foreman. It costs 82 tokens per session (3,271 once invoked), scanned A, original, MIT.

A leadership guide to responding constructively to failure, sharing mistakes, and analysing what went wrong as well as what worked. It focuses on reducing blame and treating setbacks as sources of learning.

In plain words
What is it for?
Use it after project failures, when reviewing mistakes, or when a team needs to replace blame with productive learning.
Why use it?
It helps teams avoid denial, blame, or excessive guilt after a setback. A more open response can make it easier to identify lessons and improve future work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the foreman plugin — 142 skills, 60 commands, 7 agents shipped together

Good fit Use it after project failures, when reviewing mistakes, or when a team needs to replace blame with productive learning.

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

Made for: Claude Code.

Or install foreman, the plugin that ships this one along with the rest of its 142 skills, 60 commands, 7 agents.

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 learning-from-failure

README.md
[![agentmods](https://agentmods.dev/badge/skills/fatihguner/foreman/learning-from-failure.svg)](https://agentmods.dev/skills/fatihguner/foreman/learning-from-failure)
Your own site
<a href="https://agentmods.dev/skills/fatihguner/foreman/learning-from-failure"><img src="https://agentmods.dev/badge/skills/fatihguner/foreman/learning-from-failure.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,271 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 134
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00082 $0.03271
Opus 5 $0.00041 $0.01636
Sonnet 5 $0.00016 $0.00654
Haiku 4.5 $0.00008 $0.00327

Measured yesterday against content hash 8d603c2529a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

learning-from-failure 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 yesterday.

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.

plugins/foreman/skills/learning-from-failure/SKILL.md · 203 lines

How it starts

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

Read runtime and advisory rules before applying this skill. Other Foreman layers and the catalog are in ../../content/, relative to this SKILL.md.

Learning from Failure

Consider a thought experiment: what if leaders displayed their failures as prominently as their wins? A trophy case in the corner office, but instead of deal tombstones and framed press clippings, it held the pitch deck that lost the account, the product that customers rejected, the hire who left after three months. The idea feels absurd -- and that absurdity reveals how deeply organisations have internalised the fiction that competent leaders do not fail. They do. The research is unambiguous: around 70% of people react poorly to failure, whether by blaming others, denying the problem, or absorbing disproportionate personal guilt. The difference between leaders who grow and those who stagnate is not the frequency of their failures but the quality of their response.


The Framework

Learning from failure is not a single practice but a constellation of five interlocking disciplines.

Discipline 1: Lose Well

Failure is inevitable; losing badly is optional. "Losing well" is a learnable skill with three distinct strategies:

Pivot the effort. When a project fails, resist the urge to bury it. Step back and ask: what worked in what was tried? Skills, innovations, and ideas developed for a failed initiative rarely lack application -- they simply lack the right context. The creative thinking that produced a failed product may be a perfect fit for a different problem.

Reconnect to purpose. If the work matters for reasons beyond winning, the loss stings less and teaches more. Work is finite -- projects end, companies fold, people leave. But the underlying purpose is not bounded by any single outcome. Leaders who anchor in purpose rather than scoreboard can absorb losses without losing direction.

Share the pain. Losing involves heartbreak, frustration, and sorrow that leaders often feel obligated to suppress. Creating space for the team to acknowledge negative feelings -- to talk about what happened and how it felt -- builds the kind of psychological safety that, paradoxically, enables future risk-taking. Hard times bring people together; ignoring that dynamic wastes its value.

Read the full file on GitHub · 203 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. yesterday First seen · 203 lines · 82 tokens per session scan A 8d603c2529a8

Subscribe to this mod's changes

learning-from-failure is a skill published in the GitHub repository fatihguner/foreman (47 stars, last pushed 2d ago), licensed MIT. It adds 82 tokens to every session and 3,271 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-06.

Related

Other skills, from other repositories

apply-change-leadership

Use when a manager's team is experiencing a significant organizational change — restructuring, strategy shift, leadership change, layoffs, or major process transition — and needs leadership that maintains team stability, preserves trust, and converts uncertainty into direction.

jeffreytse/grimoire-core · 51 tokens

build-psychological-safety

Use when a team leader wants to assess and improve the degree to which team members feel safe to speak up, admit mistakes, ask questions, and disagree — because psychological safety is the strongest predictor of team learning and high performance.

jeffreytse/grimoire-core · 52 tokens

apply-five-commander-virtues

Use when assessing, developing, or hiring for leadership capability — to evaluate a leader against the five virtues that Sun Tzu identifies as determinants of strategic success and diagnose which virtue deficits are causing organisational or competitive failures.

jeffreytse/grimoire-core · 50 tokens

reading-metaskill

A reading and learning guide based on building a regular reading habit, choosing books, and understanding difficult subjects through original works and explanation.

kangarooking/cangjie-skill · 139 tokens

textbook-distillation

Turn a textbook or long-form source into a self-paced learning track: chapter map, lesson plan, then self-contained HTML lecture notes (styled as the human specifies) with worked examples, exercises, and checkpoint questions. Read this for "lecture notes" / "study notes" / "course" / "syllabus" requests from a…

Lingtai-AI/lingtai · 116 tokens

team-onboarding-playbook

Design a structured onboarding experience that gets new team members productive in 30, 60, and 90 days. Use when a new hire is joining, when contractors or agency partners need to ramp up, when an existing team is restructuring and members are switching focus, or when current onboarding feels chaotic and slow. Also…

rampstackco/claude-skills · 124 tokens