Skills for Real Engineers. Straight from my .agents directory.
lesson-learned
Agent skill fromsoftaworks/agent-toolkit
Analyze recent code changes via git history and extract software engineering lessons. Use when the user asks 'what is the lesson here?', 'what can I learn from this?', 'engineering takeaway', 'what did I just learn?', 'reflect on this code', or wants to extract principles from recent work.
How to install lesson-learned
npx skills add softaworks/agent-toolkit# or add only this skill to Claude Code: copy the folder
skills/lesson-learned/
# into
~/.claude/skills/lesson-learned/ (all projects)
.claude/skills/lesson-learned/ (one project)
1# Lesson Learned23Extract specific, grounded software engineering lessons from actual code changes. Not a lecture -- a mirror. Show the user what their code already demonstrates.45## Before You Begin67**Load the principles reference first.**891. Read `references/se-principles.md` to have the principle catalog available102. Optionally read `references/anti-patterns.md` if you suspect the changes include areas for improvement113. Determine the scope of analysis (see Phase 1)1213**Do not proceed until you've loaded at least `se-principles.md`.**1415## Phase 1: Determine Scope1617Ask the user or infer from context what to analyze.1819| Scope | Git Commands | When to Use |20|-------|-------------|-------------|21| Feature branch | `git log main..HEAD --oneline` + `git diff main...HEAD` | User is on a non-main branch (default) |22| Last N commits | `git log --oneline -N` + `git diff HEAD~N..HEAD` | User specifies a range, or on main (default N=5) |23| Specific commit | `git show <sha>` | User references a specific commit |24| Working changes | `git diff` + `git diff --cached` | User says "what about these changes?" before committing |2526**Default behavior:**27- If on a feature branch: analyze branch commits vs main28- If on main: analyze the last 5 commits29- If the user provides a different scope, use that3031## Phase 2: Gather Changes32331. Run `git log` with the determined scope to get the commit list and messages342. Run `git diff` for the full diff of the scope35…
Excerpt shown under the repository's MIT license.
More skills in agent-toolkit
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
