
Turns your git history into a teaching moment. Point it at a feature branch or the last few commits, and it extracts one or two concrete software engineering principles your code actually demonstrates, grounded in specific files and changes. It reads from a reference catalog of principles, focuses on the dominant pattern rather than listing everything, and presents lessons reflectively instead of lecturing. Good for teams that want to learn from their own work without the usual abstract advice. If your changes are just a typo fix, it'll tell you that too instead of forcing profundity where none exists.
$ npx -y skills add pedronauck/skills --skill lesson-learned --agent claude-codeInstalls into .claude/skills of the current project.
Extract specific, grounded software engineering lessons from actual code changes. Not a lecture -- a mirror. Show the user what their code already demonstrates.
Load the principles reference first.
references/se-principles.md to have the principle catalog availablereferences/anti-patterns.md if you suspect the changes include areas for improvementDo not proceed until you've loaded at least se-principles.md.
Ask the user or infer from context what to analyze.
| Scope | Git Commands | When to Use |
|---|---|---|
| Feature branch | git log main..HEAD --oneline + git diff main...HEAD | User is on a non-main branch (default) |
| Last N commits | git log --oneline -N + git diff HEAD~N..HEAD | User specifies a range, or on main (default N=5) |
| Specific commit | git show <sha> | User references a specific commit |
| Working changes | git diff + git diff --cached | User says "what about these changes?" before committing |
Sponsors