learn-by-mistake

learn-by-mistake is a plugin for Claude Code from JuanMarchetto/agent-skills. Its manifest loads nothing; the 1 skill, 4 commands, 3 hooks it bundles cost 169 tokens per session together, scanned A, original, MIT.

A plugin that gives a coding agent persistent memory of errors and their root causes.

In plain words
What is it for?
Use it to analyse failed commands, tests, builds, and runtime problems and record reusable fixes.
Why use it?
It helps prevent recurring failures by keeping useful lessons between sessions.

Plugin for Claude Code

Written for Claude Code: a Claude Code plugin manifest.

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.

Claude Code
/plugin marketplace add JuanMarchetto/agent-skills
agentmods
npx agentmods add plugins/juanmarchetto/agent-skills/learn-by-mistake
Clone the repo
git clone --depth 1 https://github.com/JuanMarchetto/agent-skills

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 learn-by-mistake

README.md
[![agentmods](https://agentmods.dev/badge/plugins/juanmarchetto/agent-skills/learn-by-mistake.svg)](https://agentmods.dev/plugins/juanmarchetto/agent-skills/learn-by-mistake)
Your own site
<a href="https://agentmods.dev/plugins/juanmarchetto/agent-skills/learn-by-mistake"><img src="https://agentmods.dev/badge/plugins/juanmarchetto/agent-skills/learn-by-mistake.svg" alt="Measured on agentmods" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured The manifest loads nothing itself; its 1 skill, 4 commands, 3 hooks cost 169 tokens a session between them.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

learn-by-mistake 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 2d 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.

skills/learn-by-mistake/.claude-plugin/plugin.json · 10 lines

What it actually says

{
  "name": "learn-by-mistake",
  "description": "Persistent error memory — analyzes failures, extracts root-cause lessons, and prevents the same mistake twice",
  "version": "1.0.0",
  "author": { "name": "Juan Marchetto" },
  "homepage": "https://github.com/JuanMarchetto/learn-by-mistake-skill",
  "repository": "https://github.com/JuanMarchetto/learn-by-mistake-skill",
  "license": "MIT"
}
Contents

What it installs

The manifest is a name and a version. 1 skill, 4 commands, 3 hooks travel with it, and installing the plugin installs all of them — 169 tokens a session between them. Each is measured on its own page, and each can be installed alone.

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. 2d ago First seen · 10 lines scan A cb7db09b58ad

Subscribe to this mod's changes

learn-by-mistake is a plugin published in the GitHub repository JuanMarchetto/agent-skills (5 stars, last pushed 5mo ago), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. 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-03.

Related

Other plugins, from other repositories

mochi

A browser companion for AI assistants. Bundled MCP tools for Chrome automation, persistent project memory (Continuum chain), and an in-page hint modal — pair with the Mochi Chrome extension.

DevZonayed/Mochi · not measured

context-guard

Per-session context-window observability plus the first shipped consumer: a statusline wrapper tees each session's contextwindow fields to a per-session snapshot file, a zone resolver classifies usage into smart/acceptable/dumb bands (percentage bands plus window-class token bands, conservative-min combination, zones.

melodic-software/claude-code-plugins · not measured

cross-code-organizer

Organize all your Claude Code memories, skills, MCP servers, and hooks — see what loads globally vs per-project, then move items between scopes.

mcpware/cross-code-organizer · not measured

codies-memory

File-based two-tier memory system for AI agents. Agent-namespaced vaults with promotion pipelines, trust levels, CLI write commands, and explicit general read mode for vault-less notes. Gives any agent persistent memory across sessions.

pyros-projects/limitless · not measured

claude-brain

Claude Mind - Give Claude photographic memory in ONE portable file. Share, version, and transfer your Claude's brain.

memvid/claude-brain · not measured

loreconvo

Vault your Claude conversations. Captures session decisions, artifacts, and context across Code, Cowork, and Chat. Organizes memory by project, skill, and persona. Never re-explain yourself again.

labyrinth-analytics/loreconvo · not measured