with one click
lessons
// Record a lesson learned after a user correction, or review existing lessons at session start
// Record a lesson learned after a user correction, or review existing lessons at session start
Run pre-commit hooks and golangci-lint to verify code quality before finishing work
Start a new feature development session with branch setup and requirements gathering
Fix all CVEs in the Okteto CLI Docker image by scanning with Trivy and updating vulnerable dependencies and binaries
| name | lessons |
| description | Record a lesson learned after a user correction, or review existing lessons at session start |
Manages the self-improvement loop. Use this skill when:
All lessons live in .claude/lessons.local.md.
cat .claude/lessons.local.md
From the user correction, extract:
Add a new entry at the bottom of .claude/lessons.local.md, above the closing comment:
## 2026-03-17 — [short title]
**Mistake**: [What went wrong]
**Pattern**: [Rule to apply going forward]
**Trigger**: [When to apply this rule]
Use absolute dates (YYYY-MM-DD), never relative ("today", "last week").
Report the new entry to the user briefly:
Lesson recorded: [short title]
At the start of a session, or when asked:
.claude/lessons.local.mdLessons become stale when:
When pruning, remove the entry entirely. Don't leave tombstones.