New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Turns recent git changes into concrete software engineering lessons, grounded in the actual diffs and commit messages.

skills.sh installs
3K
GitHub stars
2.7K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers scope selection across feature branches, the last N commits, specific SHAs, and uncommitted working changes
  • Runs git log, git diff, and git show against a principles catalog in references/se-principles.md and an optional anti-patterns.md
  • Enforces a cap of one or two lessons, each tied to specific files and commit intent rather than generic advice
  • Designed for developers who want to reflect on recent work and extract a reusable takeaway from their own code

Install

$ npx -y skills add softaworks/agent-toolkit --skill lesson-learned -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/softaworks/agent-toolkit
Categories
Git & Releases, Code Review & Quality

More from softaworks/agent-toolkit

All 40

Similar to Lesson Learned

More Git & Releases