
Lesson Learned
This takes your recent git changes and extracts the actual software engineering principle at work. You ask "what's the lesson here?" after merging a feature branch or finishing a refactor, and it diffs your commits, reads the messages, and mirrors back the pattern you just demonstrated. It references a principles catalog to name what you did (separation of concerns, defensive copying, whatever), then connects it to the specific files you changed. The format is tight: what happened in the code, the principle at work, why it matters, and a takeaway for next time. It's reflective, not prescriptive. If your changes are trivial, it'll say so instead of inventing lessons. Good for teams that want to turn everyday work into shared learning without the overhead of retrospectives.
- skills.sh installs
- 3K
- GitHub stars
- 2.7K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add softaworks/agent-toolkit --skill lesson-learned --agent claude-codeInstalls into .claude/skills of the current project.
Files
Lesson Learned
Extract specific, grounded software engineering lessons from actual code changes. Not a lecture -- a mirror. Show the user what their code already demonstrates.
Before You Begin
Load the principles reference first.
- Read
references/se-principles.mdto have the principle catalog available - Optionally read
references/anti-patterns.mdif you suspect the changes include areas for improvement - Determine the scope of analysis (see Phase 1)
Do not proceed until you've loaded at least se-principles.md.
Phase 1: Determine Scope
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
Details
- Repository
- github.com/softaworks/agent-toolkit
- Categories
- Git & Pull Requests, Documentation, AI & Agent Building
More from softaworks/agent-toolkit
All 43- Gepetto1.6K
- Requirements Clarity1K
- Jira854
- Draw Io838
- Mui824
- Design System Starter823
- Backend To Frontend Handoff Docs821
- Frontend To Backend Requirements820
- Excalidraw815
- Perplexity802
- Web To Markdown780
- Datadog Cli738
- Mermaid Diagrams5.2K
- Humanizer4.5K
- Database Schema Designer4.4K
- Qa Test Planner4.4K
- Writing Clearly And Concisely4.4K
- C4 Architecture4.3K
- Skill Judge4.3K
- Agent Md Refactor4.3K
- Crafting Effective Readmes4.2K
- Session Handoff4.2K
- Commit Work4.2K
- React Dev4.2K