Home / Claude Code mods / Context & memory / lessons-learned

lessons-learned

lessons-learned is a Claude Code mod by Sunkanxx that learns from your corrections: keeps each one for you to confirm at session start, recalls the lesson when it is relevant again, and turns a repeated correction into a rule CLAUDE.md loads.

Updated 2026-10-11

What is lessons-learned?

lessons-learned is a Claude Code mod by Sunkanxx that learns from your corrections: keeps each one for you to confirm at session start, recalls the lesson when it is relevant again, and turns a repeated correction into a rule CLAUDE.md loads. It is listed under Context & memory and has no public popularity data yet.

TypeClaude code mod
AuthorSunkanxx
RepositorySunkanxx/Mods
Popularityno public popularity data yet
CategoryContext & memory
SecurityReview before installing (60/100)
Rank#4,737 of 5,272 Claude Code mods; #440 in Context & memory
LicenseMIT
Last commit2026-10-11
Hooks6 events
Seescompaction, every prompt, every tool call
Draws onnothing

Is lessons-learned safe to install?

lessons-learned scores 60/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables; watches every prompt or event. It passed 4 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.now
$.clock.sleep
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.writewrites files
$.model.completedrives Claude
$.session.cwd
$.session.id
$.session.messagesreads the transcript
$.session.repo
$.session.surfaces
$.session.turns
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.askdraws interface
$.ui.logdraws interface
$.ui.statusdraws interface

How do I install lessons-learned?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/Sunkanxx/Mods
    claude plugin validate ./Mods/lessons-learned
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add Sunkanxx/Mods && claude plugin install lessons-learned@sunkanxx-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs lessons-learned for you:

Install the "lessons-learned" Claude Code mod from https://github.com/Sunkanxx/Mods/tree/main/lessons-learned. Run claude plugin validate on it first and show me what it can access before you enable it.

More from Sunkanxx/Mods

This repository has 2 Claude Code mods on MCPMods.

  • last-call: Stops work at a clean point before the 5-hour (or 7-day) usage limit, keeps the prompt cache warm while waiting, and con (Review before installing)