vertical-slice-postmortem

A review skill for learning from a completed major code change, called a slice. It examines defects, review findings, testing, and the time and tokens spent.

In plain words
What is it for?
Use it after a major slice to find root causes, strengthen the development recipe and tests, and decide where extra review is worth the cost.
Why use it?
It prevents teams from repeatedly fixing the same symptoms and helps improve the instructions and tests that should have prevented them.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/leifericf/agentic-sdk/vertical-slice-postmortem
Any agent
npx skills add leifericf/agentic-sdk --skill vertical-slice-postmortem
Clone the repo
git clone --depth 1 https://github.com/leifericf/agentic-sdk

Made for: Claude Code, Codex.

Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,776 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00043 $0.01776
Opus 5 $0.00022 $0.00888
Sonnet 5 $0.00009 $0.00355
Haiku 4.5 $0.00004 $0.00178

Measured 3d ago against content hash 8431d8181491, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vertical-slice-postmortem scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/vertical-slice-postmortem/SKILL.md · 141 lines

How it starts

The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.

vertical-slice-postmortem

A review round fixes the symptom; this skill fixes the cause. After a landed slice, it asks why each class of defect was written, hardens the recipe that should have prevented it and the test that should have caught it, and asks where the slice spent more tokens or wall-clock than its quality required. Run once per major slice so the system compounds quality and efficiency instead of relearning the same lesson.

The four goals in tension

The system pursues four goals at once, and they pull against each other:

  1. Highest code quality: well-factored, correct, conformant.
  2. Fewest tokens spent reaching it.
  3. Fastest iteration: short build, verify, and review cycles.
  4. Thorough review and test: proven well-factored and bug-free.

Goals 2 and 3 pull against 1 and 4. Another review round and more generated cases buy quality at the cost of tokens and time; fewer buy economy and speed at the risk of a defect. The balance is risk-proportionate: spend the extra round, the tokens, and the wall-clock where the blast radius is large or the input untrusted (the native edge, a query compiler, a security seam, a cross-module change), and economize where the unit is small and pure (a mechanical scaffold, a test-only phase, a single-module refactor). The lean default, the earned-second-round rule, and security-shifts-left are this principle at work. This retrospective is where the balance is re-tuned each slice. A finding that the slice was correctly balanced is a valid result; do not invent waste or risk to act on.

Stance: root cause, not symptom; prevention, not patch

  • Every fix commit is evidence. A defect found in review is a defect the writing recipe let through and the test routine did not catch. The slice's fix commits and review findings are the raw material.
  • Cluster, do not enumerate. Ten fixes for the same native-lifetime bug are one root cause, not ten. The improvement targets the class.
  • Improve the source, including the tests. For each class, harden the write-time recipe (the relevant write-<lang>, write-ui), AND the test routine that would have caught it (write-tests, verify-lanes), AND, where cheap, the review dimension that found it, so the next catch is a lint or a unit test, not a costly round.
  • Smallest sufficient change. A checklist line, a lane, a test pattern, not a rewrite. An improvement that would not have prevented a real defect this slice does not land. Do not bloat the skills.
  • Be honest about the uncatchable. Some defects only a runtime or an interactive run can surface. Say so; do not pretend a lane covers what it cannot.
  • Cost is evidence too. Wasted tokens and wall-clock are defects in the orchestration, not the code. A verbose return the caller had to hold, an invariant repeated in every dispatch, an expensive lane run per phase instead of per deliverable, a heavy model on a mechanical phase: each is a recurring tax the next slice pays. Cut it at the source like any other class, and only where the evidence shows the rigor survives the cut.

Read the full file on GitHub · 141 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 141 lines · 43 tokens per session scan A 8431d8181491

Subscribe to this mod's changes

vertical-slice-postmortem is a skill published in the GitHub repository leifericf/agentic-sdk (5 stars, last pushed 14d ago), licensed MIT. It adds 43 tokens to every session and 1,776 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens