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-code

Installs 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.

  1. Read references/se-principles.md to have the principle catalog available
  2. Optionally read references/anti-patterns.md if you suspect the changes include areas for improvement
  3. 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.

ScopeGit CommandsWhen to Use
Feature branchgit log main..HEAD --oneline + git diff main...HEADUser is on a non-main branch (default)
Last N commitsgit log --oneline -N + git diff HEAD~N..HEADUser specifies a range, or on main (default N=5)
Specific commitgit show <sha>User references a specific commit
Working changesgit diff + git diff --cachedUser 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
1jimliu avatarrelease-skillsjimliu/baoyu-designUniversal release workflow. Auto-detects version files and changelogs. Supports Node.js, Python, Rust, Claude Plugin, GitHub Releases, annotated tags, historica2.9Kskills.sh installs
2nrwl avatarnx-importnrwl/nx-ai-agents-configImport, merge, or combine repositories into an Nx workspace using nx import. USE WHEN the user asks to adopt Nx across repos, move projects into a monorepo, or 2.7Kskills.sh installs
3qodo-ai avatarqodo-get-rulesqodo-ai/qodo-skillsLoads coding rules from Qodo most relevant to the current coding task by generating a semantic search query from the assignment. Use when Qodo is configured and2.6Kskills.sh installs
4paulrberg avatarbump-releasepaulrberg/agent-skillsCut a release: bump versions, write changelogs, commit, tag.2.4Kskills.sh installs
5bytedance avatarweb-design-guidelinesbytedance/deer-flowReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site 2.3Kskills.sh installs
6yoshiko-pg avatardifityoshiko-pg/difitAsk the user for a code review through difit after code changes.2.3Kskills.sh installs