learn

learn is a command for Claude Code from robisson/build-like-amazon-agent-skills. It costs 0 tokens per session (951 once invoked), scanned A, original, MIT.

A command that links two activities: Correction of Errors, a blameless review of a failure, and mechanism creation, which turns lessons into safeguards that prevent recurrence.

In plain words
What is it for?
Use it to document an incident, build a timeline, apply the 5 Whys, separate immediate fixes from long-term prevention, and define owners, due dates, and completion criteria.
Why use it?
It helps teams move beyond describing a failure by identifying systemic causes and converting them into owned, trackable prevention work.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

Part of the build-like-amazon plugin — 29 skills, 14 commands, 10 agents, 1 hook shipped together

Good fit Use it to document an incident, build a timeline, apply the 5 Whys, separate immediate fixes from long-term prevention, and define owners, due dates, and completion criteria.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/robisson/build-like-amazon-agent-skills/learn
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.

Clone the repo
git clone --depth 1 https://github.com/robisson/build-like-amazon-agent-skills

Made for: Claude Code.

Or install build-like-amazon, the plugin that ships this one along with the rest of its 29 skills, 14 commands, 10 agents, 1 hook.

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 learn

README.md
[![agentmods](https://agentmods.dev/badge/commands/robisson/build-like-amazon-agent-skills/learn/github.svg)](https://agentmods.dev/commands/robisson/build-like-amazon-agent-skills/learn)
Your own site
<a href="https://agentmods.dev/commands/robisson/build-like-amazon-agent-skills/learn"><img src="https://agentmods.dev/badge/commands/robisson/build-like-amazon-agent-skills/learn/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 learn

Your own site · 80×15
<a href="https://agentmods.dev/commands/robisson/build-like-amazon-agent-skills/learn"><img src="https://agentmods.dev/badge/commands/robisson/build-like-amazon-agent-skills/learn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 951 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.00000 $0.00951
Opus 5.5 $0.00000 $0.00380
Sonnet 5.5 $0.00000 $0.00190
Haiku 4.5 $0.00000 $0.00095

Measured 20d ago against content hash 605725e5183f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

learn 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 20d 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.

.claude/commands/learn.md · 70 lines

How it starts

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

Learn — Correction of Errors and Mechanisms

Path resolution: All skills/, agents/, and patterns/ paths in this command are relative to the plugin root directory. Installed as a Claude Code plugin, that root is the BLA plugin root: line the plugin printed at session start; in a local install it is the working directory.

You are activating the learn skill chain: correction-of-errors → mechanism-creation.

What to do

  1. Read skills at skills/correction-of-errors/ and skills/mechanism-creation/.
  2. Help the user learn from failures and build systems that prevent recurrence.

Step 1: Correction of Errors (COE)

Guide the user through writing a COE:

  • Incident summary: What happened, when, impact (duration, customers affected).
  • Timeline: Minute-by-minute from detection to resolution.
  • Root cause analysis: Use 5 Whys — dig past symptoms to systemic causes.
  • Contributing factors: What conditions allowed this to happen?
  • What went well: Acknowledge what worked (detection, response, tooling).
  • Action items: Each with owner, due date, and completion criteria.
    • Categorize: immediate fix, short-term mitigation, long-term prevention.

Key COE principles:

  • Blameless — focus on systems, not individuals.
  • Be brutally honest — the goal is learning, not looking good.
  • Action items must be mechanisms, not heroics.

Once the COE is drafted, load agents/coe-reviewer.md and review it through the COE reviewer lens.

Step 2: Mechanism Creation

Convert learnings into durable mechanisms:

  • Automation: Replace manual steps with automated checks.
  • Guardrails: Pipeline gates, config validation, pre-deploy checks.
  • Process changes: Updated runbooks, new review steps, training.
  • Architectural improvements: Eliminate the class of failure entirely.
  • Metrics and alarms: Detect the preconditions before they become incidents.

A mechanism is complete when:

  • It works without human willpower or memory.
  • It prevents the entire CLASS of problem, not just this instance.
  • It's verified through testing or simulation.

Read the full file on GitHub · 70 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. 20d ago Changed 605725e5183f
  2. 1mo ago Changed · +13 lines 456f1b774225
  3. 1mo ago First seen · 57 lines · 0 tokens per session scan A 7d4562d970fb

Subscribe to this mod's changes

learn is a command published in the GitHub repository robisson/build-like-amazon-agent-skills (16 stars, last pushed 20d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 951 tokens. 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-30.