bostonaholic/skills

learning-from-mistakes

Codifies the latest correction or mistake in the conversation as a short imperative rule in the project or global CLAUDE.md or AGENTS.md, after the user approves it.

View source

How to use

  1. Copy the installation command and review the source package before installing it in your own agent environment.
  2. Check the source document for required tools, credentials and supported hosts.
  3. Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/bostonaholic/skills --skill learning-from-mistakes

Before you start

  • Installation does not include a model subscription, API allowance or permission to access your files.
  • Repository stars and installation counts describe activity, not an independent quality or security test.
Original skill document

Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.

Learn From Mistake

Turn the most recent mistake or correction in the conversation into a rule in the instructions file the agent reads, so the lesson persists across sessions. If no correction is clear, ask which one to codify.

  • The rule: one or two imperative sentences ("Do X", "Never Y"), specific

enough to change behavior. A platitude ("be careful with tests") fails.

  • Target file:
  • Project lessons (this codebase, its conventions or tooling) go in the

instructions file at the root from git rev-parse --show-toplevel: CLAUDE.md in Claude Code, AGENTS.md in Codex. Outside a repository, ask where to write.

  • Lessons that apply across projects go in ~/.claude/CLAUDE.md in Claude

Code or ~/.codex/AGENTS.md in Codex. In another host, ask which file it reads.

  • If the file is a symlink, edit the file it resolves to. If it only imports

another file (a line such as @AGENTS.md), edit the imported file.

  • Overlap: if the rule already exists, stop and say where. If a related

rule exists, refine it instead of adding a duplicate.

  • Approval: show the rule (or the old and new text of a refined rule), the

file path, and the section: an existing section that fits, or else a new ## Learned Rules section. Never propose any other new heading. Write nothing until the user approves.

Related by task

from this repository

More skills

All skills
bostonaholic
Community

auditing-agent-token-usage

Audits recent Claude Code and Codex session logs for token and context cost: model routing, inherited subagent models, long sessions, compactions, oversized tool results, and unused MCP servers. Use when the user says \"audit token usage\", or when asked about agent token usage, context costs, session length, model routing, or cost efficiency.

1h installs
1
GitHub stars
2
Updated
Nov 21
bostonaholic
Community

auditing-complexity

Ranks where code complexity concentrates in a git repository (cyclomatic complexity, nesting, fan-out, mutable state) and scores CRAP change risk from a coverage file. Read-only. Use when the user says "find complexity hotspots", or when asked for complexity hotspots or change risk. Not for test value; use auditing-tests.

1h installs
1
GitHub stars
2
Updated
Nov 21
bostonaholic
Community

auditing-tests

Audits a test suite, or a named part, for low-value tests and marks each retain, fix, consolidate, or delete with verified removal evidence. Read-only. Use when the user says "audit the tests", or when asked to audit tests for redundant, junk, or low-value tests. Not for code complexity; use auditing-complexity.

1h installs
1
GitHub stars
2
Updated
Nov 21
bostonaholic
Community

being-extremely-fucking-brief

Keeps every reply to the user to three lines or fewer, with no preamble, restated question, recap, or closing offer. Use when the user says "be brief", or when about to reply to the user: load it before every reply in every session, including plain questions, recommendations, and comparisons, even when no other skill applies. Load it alongside any other skill that fits the request, never instead of one.

1h installs
1
GitHub stars
2
Updated
Nov 21