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.
| Type | Claude code mod |
|---|---|
| Author | Sunkanxx |
| Repository | Sunkanxx/Mods |
| Popularity | no public popularity data yet |
| Category | Context & memory |
| Security | Review before installing (60/100) |
| Rank | #4,737 of 5,272 Claude Code mods; #440 in Context & memory |
| License | MIT |
| Last commit | 2026-10-11 |
| Hooks | 6 events |
| Sees | compaction, every prompt, every tool call |
| Draws on | nothing |
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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.now | |
$.clock.sleep | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.model.complete | drives Claude |
$.session.cwd | |
$.session.id | |
$.session.messages | reads the transcript |
$.session.repo | |
$.session.surfaces | |
$.session.turns | |
$.store.delete | keeps its own state |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.ask | draws interface |
$.ui.log | draws interface |
$.ui.status | draws interface |
How do I install lessons-learned?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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
- 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)