Diagnose a concrete model mistake and improve the code, tests, instructions, skills, tools, or workflow so the same class of failure is less likely to recur, then retry the original task. Use when the user explicitly invokes /learn-from-mistake or asks the agent to learn from, postmortem, or prevent recurrence of a wrong output, bad implementation, missed requirement, unsupported claim, or workflow failure.
$npx -y skills add minghinmatthewlam/agent-guards --skill learn-from-mistakeInstalls into the current project.
Run `npx skills use "https://github.com/minghinmatthewlam/agent-guards" --skill "minghinmatthewlam/agent-guards/learn-from-mistake"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/minghinmatthewlam/agent-guards" that are relevant to the current task. Run `npx skills add "https://github.com/minghinmatthewlam/agent-guards"` and select the relevant skills, then follow their instructions.