
lesson-learned
Skill that turns recent git changes into concrete software engineering lessons and principles.
- GitHub stars
- 2.7K
What it does
- Analyzes recent code changes through git history to surface what the work actually taught you
- Triggers on prompts like "what is the lesson here?", "engineering takeaway", or "reflect on this code"
- Extracts reusable principles from recent work rather than summarizing the diff line by line
Analyze recent code changes via git history and extract software engineering lessons. Use when reflecting on work or asking 'what is the lesson here?'
Add marketplace
/plugin marketplace add softaworks/agent-toolkitRun it inside Claude Code once, then install the plugin below.
Install
/plugin install lesson-learned@agent-toolkitRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceLesson 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 |
Default behavior:
- If on a feature branch: analyze branch commits vs main
- If on main: analyze the last 5 commits
- If the user provides a different scope, use that
Phase 2: Gather Changes
- Run
git logwith the determined scope to get the commit list and messages - Run
git difffor the full diff of the scope - If the diff is large (>500 lines), use
git diff --statfirst, then selectively read the top 3-5 most-changed files - Read commit messages carefully -- they contain intent that raw diffs miss
- Only read changed files. Do not read the entire repo.
Phase 3: Analyze
Identify the dominant pattern -- the single most instructive thing about these changes.
Look for:
- Structural decisions -- How was the code organized? Why those boundaries?
- Trade-offs made -- What was gained vs. sacrificed? (readability vs. performance, DRY vs. clarity, speed vs. correctness)
- Problems solved -- What was the before/after? What made the "after" better?
- Missed opportunities -- Where could the code improve? (present gently as "next time, consider...")
Map findings to specific principles from references/se-principles.md. Be specific -- quote actual code, reference actual file names and line changes.
Phase 4: Present the Lesson
Use this template:
## Lesson: [Principle Name]
**What happened in the code:**
[2-3 sentences describing the specific change, referencing files and commits]
**The principle at work:**
[1-2 sentences explaining the SE principle]
**Why it matters:**
[1-2 sentences on the practical consequence -- what would go wrong without this, or what goes right because of it]
**Takeaway for next time:**
[One concrete, actionable sentence the user can apply to future work]
If there is a second lesson worth noting (maximum 2 additional):
---
### Also worth noting: [Principle Name]
**In the code:** [1 sentence]
**The principle:** [1 sentence]
**Takeaway:** [1 sentence]
What NOT to Do
| Avoid | Why | Instead |
|---|---|---|
| Listing every principle that vaguely applies | Overwhelming and generic | Pick the 1-2 most relevant |
| Analyzing files that were not changed | Scope creep | Stick to the diff |
| Ignoring commit messages | They contain intent that diffs miss | Read them as primary context |
| Abstract advice disconnected from the code | Not actionable | Always reference specific files/lines |
| Negative-only feedback | Demoralizing | Lead with what works, then suggest improvements |
| More than 3 lessons | Dilutes the insight | One well-grounded lesson beats seven vague ones |
Conversation Style
- Reflective, not prescriptive. Use the user's own code as primary evidence.
- Never say "you should have..." -- instead use "the approach here shows..." or "next time you face this, consider..."
- If the code is good, say so. Not every lesson is about what went wrong. Recognizing good patterns reinforces them.
- If the changes are trivial (a single config tweak, a typo fix), say so honestly rather than forcing a lesson. "These changes are straightforward -- no deep lesson here, just good housekeeping."
- Be specific. Generic advice is worthless. Every claim must point to a concrete code change.
From the softaworks/agent-toolkit README
Softaworks Agent Skills
Opinionated skills shared by @leonardocouy for improving daily work efficiency with Claude Code. Skills are packaged instructions and scripts that extend agent capabilities across development, documentation, planning, and professional workflows.
Skills follow the Agent Skills format.
๐งญ Quick Navigation
๐ Installation โข ๐ Available Skills โข ๐ค Agents & Commands โข ๐ Skill Structure โข ๐ค Contributing โข ๐ License โข ๐ Links
๐ Installation
Quick Install (Recommended)
npx skills add softaworks/agent-toolkit
This method works with multiple AI coding agents (Claude Code, Codex, Cursor, AdaL, etc.)
Register as Plugin Marketplace
Run the following commands in Claude Code:
/plugin marketplace add softaworks/agent-toolkit
/plugin
Install Plugins
Option 1: Via Browse UI
- Switch to Marketplaces tab (use arrow keys or Tab)
- Select agent-toolkit, press Enter
- Browse and select the plugin(s) you want to install
- Select Install now
Option 2: Direct Install
# Install specific skill
/plugin install codex@agent-toolkit
/plugin install humanizer@agent-toolkit
# Install specific agent
/plugin install agent-codebase-pattern-finder@agent-toolkit
# Install specific command
/plugin install command-codex-plan@agent-toolkit
Option 3: Ask the Agent
Simply tell Claude Code:
Please install Skills from github.com/softaworks/agent-toolkit
Available Plugins
Each skill, agent, and command is an individual plugin that can be installed separately:
- Skills โ See Available Skills for the full list
- Agents โ See Agents (install as
agent-<name>@agent-toolkit) - Commands โ See Slash Commands (install as
command-<name>@agent-toolkit)
Update Plugins
To update plugins to the latest version:
- Run
/pluginin Claude Code - Switch to Marketplaces tab
- Select agent-toolkit
- Choose Update marketplace
You can also Enable auto-update to get the latest versions automatically.
Manual Installation
For Claude Code (Manual) โ Skills only
cp -r skills/<skill-name> ~/.claude/skills/
For claude.ai โ Skills only
Add skills to project knowledge or paste SKILL.md contents into the conversation.
๐ Available Skills
| Category | Skill | Description |
|---|---|---|
| ๐ค AI Tools | codex | Advanced code analysis with GPT-5.2 |
| ๐ค AI Tools | gemini | Large-scale review (200k+ context) |
| ๐ค AI Tools | perplexity | Web search & research |
| ๐ฎ Meta | agent-md-refactor | Refactor bloated agent instruction files |
| ๐ฎ Meta | command-creator | Create Claude Code slash commands |
| ๐ฎ Meta | plugin-forge | Build Claude Code plugins & manifests |
| ๐ฎ Meta | skill-judge | Evaluate skill design quality |
| ๐ Documentation | backend-to-frontend-handoff-docs | API handoff docs for frontend |
| ๐ Documentation | c4-architecture | C4 architecture diagrams with Mermaid |
| ๐ Documentation | crafting-effective-readmes | Write effective README files |
| ๐ Documentation | draw-io | Create & edit draw.io diagrams |
| ๐ Documentation | excalidraw | Work with Excalidraw diagrams |
| ๐ Documentation | frontend-to-backend-requirements | Document API requirements |
| ๐ Documentation | marp-slide | Professional presentation slides |
| ๐ Documentation | mermaid-diagrams | Software diagrams with Mermaid |
| ๐ Documentation | writing-clearly-and-concisely | Clear, professional writing |
| ๐จ Design & Frontend | design-system-starter | Create design systems |
| ๐จ Design & Frontend | mui | Material-UI v7 patterns |
| ๐จ Design & Frontend | openapi-to-typescript | Convert OpenAPI to TypeScript |
| ๐จ Design & Frontend | react-dev | Type-safe React 18-19 with TypeScript |
| ๐จ Design & Frontend | react-useeffect | React useEffect best practices |
| ๐ ๏ธ Development | database-schema-designer | Design robust database schemas |
| ๐ ๏ธ Development | dependency-updater | Smart dependency management |
| ๐ ๏ธ Development | naming-analyzer | Suggest better variable/function names |
| ๐ ๏ธ Development | lesson-learned | Extract SE lessons from recent code changes |
| ๐ ๏ธ Development | reducing-entropy | Minimize codebase size |
| ๐ ๏ธ Development | session-handoff | Seamless AI session transfers |
| ๐ฏ Planning | game-changing-features | Find 10x product opportunities |
| ๐ฏ Planning | gepetto | Detailed implementation planning |
| ๐ฏ Planning | requirements-clarity | Clarify requirements before coding |
| ๐ฏ Planning | ship-learn-next | Turn learning into actionable reps |
| ๐ Professional | daily-meeting-update | Interactive daily standup generator |
| ๐ Professional | difficult-workplace-conversations | Navigate difficult conversations |
| ๐ Professional | feedback-mastery | Deliver constructive feedback |
| ๐ Professional | professional-communication | Technical communication guide |
| ๐งช Testing | qa-test-planner | Comprehensive QA test planning |
| ๐ฆ Git | commit-work | High-quality git commits |
| ๐ง Utilities | datadog-cli | Debug with Datadog logs & metrics |
| ๐ง Utilities | domain-name-brainstormer | Generate & check domain names |
| ๐ง Utilities | humanizer | Remove AI writing patterns |
| ๐ง Utilities | meme-factory | Generate memes with API |
| ๐ง Utilities | jira | Natural language Jira interaction |
| ๐ง Utilities | web-to-markdown | Convert webpages to Markdown |
๐ค Agents & Commands
Requires Claude Code CLI โ These agents and commands are exclusive to Claude Code users.
For full access, add the marketplace and install plugins:
/plugin marketplace add softaworks/agent-toolkit /plugin install codex@agent-toolkit
Agents
Specialized sub-agents that Claude Code can delegate tasks to:
| Agent | Description |
|---|---|
| ascii-ui-mockup-generator | Visualize UI concepts through ASCII mockups |
| codebase-pattern-finder | Find similar implementations and patterns |
| communication-excellence-coach | Email refinement, tone calibration, roleplay |
| general-purpose | Default agent for complex multi-step tasks |
| mermaid-diagram-specialist | Create flowcharts, sequence diagrams, ERDs |
| ui-ux-designer | Research-backed UI/UX design feedback |
Slash Commands
Reusable workflows invoked with /command-name:
| Command | Description |
|---|---|
/codex-plan | Create implementation plans using Codex 5.2 |
/compose-email | Draft professional emails |
/explain-changes-mental-model | Build mental model of code changes |
/explain-pr-changes | Generate PR summaries |
/sync-branch | Sync feature branch with main |
/sync-skills-readme | Update README skills table |
/viral-tweet | Optimize tweet ideas for X engagement |
๐ Skill Structure
Each skill contains:
SKILL.md- Detailed instructions for the agent (with YAML frontmatter)README.md- User-friendly documentation with examplesscripts/- Helper scripts for automation (optional)references/- Supporting documentation (optional)
๐ค Contributing
Contributions are welcome! When adding new skills:
- Follow the Agent Skills format
- Include both
SKILL.md(for agents) andREADME.md(for users) - Add YAML frontmatter to
SKILL.mdwithname:anddescription:fields - Update this README.md with a link to your skill
๐ License
MIT
๐ Links
Details
- Marketplace
- softaworks/agent-toolkit
- Source
- dist/plugins/lesson-learned
- Category
- Development
- Keywords
- development, reflection, git, learning, principles
- Listed since
- Apr 6, 2026
More from softaworks/agent-toolkit
All 56- marp-slide
- meme-factory
- mermaid-diagrams
- mui
- naming-analyzer
- openapi-to-typescript
- perplexity
- plugin-forge
- professional-communication
- qa-test-planner
- react-dev
- react-useeffect
- reducing-entropy
- requirements-clarity
- session-handoff
- ship-learn-next
- skill-judge
- web-to-markdown
- writing-clearly-and-concisely
- agent-ascii-ui-mockup-generator
- agent-codebase-pattern-finder
- agent-communication-excellence-coach
- agent-general-purpose
- agent-md-refactor
Similar to lesson-learned
More Learning & Teaching
lesson-learnedSkillsoftaworks/agent-toolkit3K installsTurns recent git changes into concrete software engineering lessons, grounded in the actual diffs and commit messages.
learn-from-prsPluginNTCoding/claude-skillz365 starsAnalyze PR feedback patterns from CodeRabbit, SonarQube, and reviewers to suggest config updates that catch issues locally
command-explain-changes-mental-modelPluginsoftaworks/agent-toolkit2.7K starsBuild a mental model of changes by splitting them into smaller logical chunks.
insightsSkillrohitg00/pro-workflow194 installsSession analytics that computes learning, correction, and productivity stats from project memory and git history.
developer-essentialsPluginwshobson/agents42.8K starsEssential developer skills including Git workflows, SQL optimization, error handling, code review, E2E testing, authentication, debugging, and monorepo manageme
developer-toolkitPluginarmanzeroeight/fastagent-plugins29 starsEssential development tools for code review, debugging, and refactoring. Includes strategic agents for high-level decisions and tactical skills for specific ope