mcpField
S
show-me-the-code

show-me-the-code

github.com/bseneDevelopment7149 installsUpdated 2d ago
Repository

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

  1. 01Present all code changes as unified diffs
  2. 02Keep three context lines where available
  3. 03Format headers for added and deleted files
  4. 04Output separate diffs for multiple files
  5. 05Optionally add a brief explanation

Use cases

  1. 01Review a small code fix
  2. 02Inspect a new file as a patch
  3. 03Check changes across multiple files
  4. 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-code

After installing, type/show-me-the-codein Claude Code to confirm it loaded.

Details

From the project README

Show 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

ModelWithoutWithDelta
claude-opus-4-833%100%+67%
claude-sonnet-4-633%83%+50%
claude-haiku-4-517%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.

Comments

Markdown supported