/sdd-kit:create-lesson-learnedfrom sdd-kit
Creates a new Lesson Learned entry in the Memory Bank, placed on the right Memory Bank level (repo root, or an app/service subtree like apps/<app>/docs/learnings/). Use this skill when a recurring pattern, pitfall or insight should be captured, e.g. when Claude repeatedly makes the same mistake, when a pattern emerges in reviews, or when something was learned during debugging. Also triggers on phrases like "this keeps happening", "we should document this", "lesson learned", "AI mistake", "I've seen this for the third time now".
Ships in sdd-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill guides through creating a Lesson Learned entry and places the file on the correct Memory Bank level (analogous to decision records). Each Lesson Learned is stored as its own file.
This skill is part of the Memory Bank. Conventions live in a check, a doc
comment, a CLAUDE.md or .claude/rules/ (see Conventions in the
shared reference). Decisions and learnings live under docs/decisions/
and docs/learnings/ of their level. Levels and the placement rule are
defined in the shared reference:
memory-bank-shared/REFERENCE.md.
Learnings have no significance gate — they are deliberately
low-threshold.
Find the repo root directory (where .git/ is located). All paths in
this skill are relative to the repo root.
Decide where the entry lives using the Placement rule from the
shared reference: a record lives on the smallest level whose subtree
contains everyone affected. For a learning that is usually the place
where the pitfall applies — e.g. services/controller-app/ for an
EF-Core pitfall in that service, the repo root for a tooling pitfall
that concerns everyone.
Propose the level derived from the conversation context; the user confirms or corrects. If the affected scope is not apparent from context, ask — never guess.
{scope} below is the confirmed level directory (empty for the repo
root).
Ask the user for the following information. If answers are already apparent from the conversation context (e.g. because a review problem is currently being discussed), suggest them instead of asking again.
Create the file at {scope}/docs/learnings/YYYY-MM-DD-kebab-case-title.md.
The filename is derived from the date and title:
If {scope}/docs/learnings/ does not exist, create the directory.
Hard-wrap the entry's prose at 100 characters at word boundaries (Line length in the shared reference) — the entry is reviewed in a side-by-side diff.
Use this template:
---
# status: Active | Resolved
status: Active
date: {today's date, YYYY-MM-DD}
last-modified: {today's date, YYYY-MM-DD}
# category: KI-Pattern | Review | Architecture | Testing
category: {selected category}
observed-in: {PRs/reviews/stories, if provided}
---
# {Title}
## Observation
{What is repeatedly occurring? Where was it observed?}
## Problem
{Why is this a problem?}
## Solution or workaround
{What helps against it?}
## Related conventions/decision records
{References to existing files, if available}
Update {scope}/docs/learnings/README.md with the new entry. If the
file does not exist, create it with a heading. The index lists all learnings
of this level with their date, title, status and category:
# Learnings
| Date | Title | Status | Category |
|------|-------|--------|----------|
| 2026-06-07 | [Claude generates wrong enum serialization](2026-06-07-claude-generates-wrong-enum-serialization.md) | Active | KI-Pattern |
| 2026-06-08 | [E2E tests flaky with WaitForLoadState](2026-06-08-e2e-tests-flaky-with-waitforloadstate.md) | Resolved | Testing |
Add the new entry at the end of the table. Never list entries of other levels here — every level maintains only its own index.
Show the user:
If the observation is actually a rule (e.g. "always do it this way"), suggest writing a convention instead, placed per Conventions in the shared reference.
If the observation is actually a decision, suggest using
/create-decision instead (note that it applies a significance gate).
Active: Observation is current, workaround documented.Resolved: The Lesson Learned became a convention or decision record.
Reference the new file and change the status.When the user wants to set an existing Lesson Learned to Resolved,
help them: change the status, update last-modified, and add the
reference to the new convention/decision record.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/create-decisionCreates a new Decision Record in the Memory Bank for significant decisions — hard-to-reverse choices of stack, library, data format or build mechanism, rules that spare the team the next decision, product decisions to be protected from silent rollback, breaks with an existing pattern, and cross-cutting changes. Use during spec creation or whenever such a decision is made. Triggers on phrases like "decision record", "we decided to", "write a decision", "document the decision", "why did we choose X over Y", or "ADR". Not every decision qualifies — the skill applies the significance gate with its exclusions first and routes implementation details to conventions, learnings, a CLAUDE.md, or an inline reason in the code instead, and it checks the finished record against the form rules./design-specWrites a story's design spec under docs/sdd/specs/ in the MIRA form — a compact, decision-centred document for the spec PR of the SDD workflow. Use when a refined work item is to be turned into a design spec, when the user asks to plan a story or write its spec, and whenever the superpowers brainstorming skill is about to write the spec document for a story. Covers the planning conversation before writing, the section order, what belongs in a spec versus the implementation plan, and the checks before sdd-kit:spec-pr./pr-reviewUse when you want a thorough, triage-first review of an Azure DevOps pull request — you have a PR ID or URL and want more than the diff checked. Covers security, CI/pipeline status, code smells, dead code and drift, duplicate or divergent implementations across the wider codebase, test quality in both directions (tests that cannot fail if the behavior breaks, and tests that are redundant or over-broad), and decision records (ADRs) — violations of active ones, code following superseded ones, and decisions missing a record. Also checks whether the story's design spec and implementation plan are deleted here, and whether anything still needed was left only in them. A spec PR gets its own, much smaller review instead — the spec against its work item, against the decision records and the existing code, and its planned test approach against the repo's test process — because a spec has no code, no tests, and nothing to drift. The branch is checked out in an isolated worktree; findings are reported for your triage and only posted after you approve them. For a deep look — not the quick working-tree /code-review./pr-screenshotsTests a UI change by hand in the real, running app and puts screenshots of it into the description of its Azure DevOps pull request. Use when a pull request whose change alters what users see — a screen, dialog, layout, style, icon or UI text — is about to be created, when the user asks for screenshots in a PR, or when review fixes changed a state a PR already pictures. Runs once, when the UI is final — never per plan task or for interim states. Web and Electron apps are driven with Playwright; for WPF and every other UI that Playwright cannot drive, it tells the user to add the screenshots by hand. Not for spec PRs, nor for changes nobody sees in the UI./spec-prOpens a pull request for a just-written Spec-Driven-Development spec (plus any Memory Bank items) and then STOPS — no implementation plan, no code — until the PR is merged. Use immediately after a spec is written (by sdd-kit:design-spec or the superpowers brainstorming skill) and the user approves it, INSTEAD of writing-plans. Auto-detects the git remote: Azure DevOps → the ado-toolkit:ado-pr workflow, GitHub → the gh CLI. Also triggers on "PR the spec", "open a spec PR", or "ship the spec for review".npx claudepluginhub mediainterface/claude-marketplace --plugin sdd-kit