About show-me-the-code
show-me-the-code is a skill for developers who want code changes presented as unified diffs. It specifies context lines, file boundaries, and headers for added or deleted files.
Key features
- 01Present all code changes as unified diffs
- 02Keep three context lines where available
- 03Format headers for added and deleted files
- 04Output separate diffs for multiple files
- 05Optionally add a brief explanation
Use cases
- 01Review a small code fix
- 02Inspect a new file as a patch
- 03Check changes across multiple files
- 04Discuss code changes in a consistent format
MCP support
The input does not state how this project relates to MCP.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ bsene/ skills --skill show-me-the-codeAfter installing, type/show-me-the-codein Claude Code to confirm it loaded.
Details
From the project READMEShow Me The Code
Rule: when this skill is requested, present code changes as unified diffs (diff -u format), including one-liners, new files, and deleted files.
- 3 lines of unchanged context above and below each hunk where available; file boundaries may leave fewer
- New file:
--- /dev/null/ deleted file:+++ /dev/null - No filename? Use
a/snippet.ts - Multiple files: one diff block per file
After the diff: optional 1–3 sentence why.
Example
Asked to "make total ignore negative prices and show the diff", the response starts with the diff in diff -u
format — context where available, file headers, hunk header — followed by one line of why:
--- a/src/cart.ts
+++ b/src/cart.ts
@@ -1,5 +1,5 @@
export function total(items: Item[]): number {
return items.reduce((sum, item) => {
- return sum + item.price;
+ return sum + Math.max(0, item.price);
}, 0);
}
Clamping each price at 0 prevents a refunded line item from reducing the cart total below the legitimate sum.
Benchmark
Scenario: .benchmarks/scenarios/show-me-the-code-001-diff-response.md · Run: 2026-08-31 · Log: .benchmarks/runs/2026-08-31/show-me-the-code-001-diff-response.json
| Model | Without | With | Delta |
|---|---|---|---|
| claude-opus-4-8 | 33% | 100% | +67% |
| claude-sonnet-4-6 | 33% | 83% | +50% |
| claude-haiku-4-5 | 17% | 83% | +66% |
PASS (run 2026-08-31). Large uniform gains; no regressions. Gate per
.agents/skills/skill-optimizer/rules/release-gates.md.
Activation scope and the scenario's explicit diff request changed after this run; rerun pending.