/core:record-lessonfrom core
Captures durable project learnings, gotchas, and decisions into AGENTS.md or CLAUDE.md. Helps preserve verified rules that prevent recurring bugs or record non-obvious constraints.
Ships in core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Capture the reusable rule, not the incident that revealed it.
Read the repository's instruction hierarchy and the relevant nearby section.
Follow pointers and generated-file notices to their owning source; the target may
be AGENTS.md, CLAUDE.md, or another local instruction file. A file is
authoritative only when the hierarchy gives it that role; a file the hierarchy
presents as reference material takes no rule.
Identify every existing rule that overlaps the learning. Amend an existing rule when it already owns the meaning. State whether you amend that rule or add a new one beside it.
Complete when the authoritative file, the target section, and any overlapping rule are identified by name.
When the source is raw notes rather than a finished rule, derive the learning first:
Discard the rest.
Keep a learning only when it is verified and at least one is true:
Record nothing when no criterion above is true, or when an existing rule already covers the learning. A verified, project-specific rule stays even when it restates a general good practice. When you record nothing, propose no change and name the reason. When an existing rule already covers the learning, name that file, section, and rule.
Record only the verified part of a learning. When a cause or a repair is a hypothesis, say which fact is unverified and name the specific artefact that would confirm or refute it, such as a log, a metric, a configuration value, or a controlled experiment. Ask the user to supply that artefact. Until they do, propose or record no rule that depends on the hypothesis. A separate, already verified observation may still be recorded when it meets the criteria above.
Complete when each learning is either rejected with a named reason or reduced to a verified, reusable claim.
Exclude incident chronology, speculation, transient state, and implementation details unlikely to recur. Write only facts the source supplies. Do not invent paths, module names, symbol names, commands, values, owners, or examples.
Never write credentials, personal or customer data, or internal hostnames and
addresses, even when the user asks for them. Name the owning secret manager or
environment manager instead of a live value (principle-keep-secrets-out).
For every security bypass the source supplies, make the prohibition unambiguous:
Keep the proposed rule on the approved path.
Complete when the proposed text holds no secret, no personal data, no invented fact, and no usable bypass instruction.
Match the target file's voice and structure. Prefer one imperative sentence or bullet in an existing section. Give the action and the verified mechanism that makes it necessary, so a reader knows what to do and why it applies. When the source gives both a fault and its verified repair, write the rule so a reader can detect the fault and then follow the approved repair. Add a heading or an example only when a reader cannot apply the rule correctly without it. Do not restate nearby guidance.
Return the authoritative file, the target section, and the exact text to add. The instruction file carries the rule alone: add no summary, rationale section, retrospective, or verification checklist to it, even when a documentation template asks for one. Explain your reasoning in your reply instead.
If the user requested a proposal, state that files remain unchanged. If the user authorised an edit, apply only that patch and report the file changed.
Complete when the outcome is exactly one of these: no change, with a named reason; an exact proposed patch, with files unchanged; or one applied patch, with the changed file reported. In each case the proposed or applied rule is safe, discoverable, and not duplicated, and no unrelated documentation changed.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mintuz/skills --plugin core37 skills in this plugin
/acceptance-reviewWHEN deciding whether a PR, branch, diff, or current code satisfies an authoritative issue, specification, or decision contract; NOT for reconstructing meetings, tracing decision lineage, general code review, or implementation; returns a criterion-by-criterion proof and acceptance verdict./adam-modeWHEN explicitly invoked as /adam-mode or asked to work in Adam's style; NOT for automatic invocation; routes the task to a playbook, loads the principle and domain skills it needs, delegates through adam-agent and proves the result before it reports./architectWHEN shaping non-trivial code whose types, signatures, non-type contracts or module boundaries are not settled, before implementation; NOT for edits inside one function, read-only explanation, repo-wide hotspot scans, physical folder/package layout, or work whose design is already agreed; sketches caller usage, types, dependencies and module boundaries through arena, then implements against the agreed sketch when authorised/arenaWHEN choosing between alternative shapes for a non-trivial artifact (code, interface, prompt, document or visual direction) by producing several independent attempts in one pass, judging them against a rubric, picking a base and grafting in the best parts of the others; NOT for raising one artifact to a confirmed external bar over repeated rounds (gauntlet-loop), tasks with one obvious answer, or broad coverage or exploration partitions; returns one synthesised artifact and a synthesis note/babysitUSE WHEN a branch with committed work must reach green CI and merge while the user is away, or WHEN you are about to write a loop that polls or re-runs CI for one branch; NOT WHEN you watch many PRs as an agent inbox (github-monitor), only draft a PR description (pr), write commit messages (commit-messages), or write a poller that ships as product or repository code. Pushes the branch, opens the PR, watches checks with gh (GitHub) or tea (Forgejo, Gitea), fixes branch failures and merge conflicts, merges only after the user says yes, and reports each transition./benchmark-checklistWHEN validating a benchmark or measured performance claim; NOT for an unmeasured optimization guess; checks completed work, fairness and repeatabilityOther plugins' skills for the same job