wkentaro/agent-skills/show-before-after
Claude Code and agent skill by wkentaro/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Build a side-by-side before/after HTML page with numbered annotations to show a visual change: UI, chart, diagram, rendered document, image output, or terminal output. Use when the user asks for a before/after, a visual diff, or to see a plan or change visually. PR screenshots belong to before-and-after.
Install
npx vskill@latest install wkentaro/agent-skills/show-before-afterSKILL.md
Show Before/After
A before/after page is one self-contained HTML page that sets two states of something visual side by side and pins the reasoning to what the reader sees. Before is usually the current state; After is a plan, a finished branch, or an alternative.
Sources
Render each side from the most faithful source available, and label it under the pane title ("Current app.css", "localhost:5173 on main", "matplotlib, seed 0", "Screenshot, macOS"):
- Both states run as web pages: point each
<iframe>at its own server. - HTML, CSS, or SVG to recreate (web UI, diagram, email, rendered doc): put the real source
in an <iframe srcdoc>, so the two stylesheets stay isolated.
- Rendered output (chart, model prediction, native or mobile UI): an image per side,
produced by the real code at each revision.
- Text output (terminal, logs, copy): the real text in a monospace block per side.
Feed both sides the same input, data, and seed, so the change is the only difference.
Page
- Title, then one or two sentences: what changes and what stays fixed.
- One row of controls, only those this comparison needs: annotations toggle, layout (Side
by side / Stacked), viewport, scroll together for long frames, and input variants that exercise the change.
- Two panes: "Before · <source>" and "After · <one-line summary>".
- Numbered notes under each pane. Before notes name the problems; After notes name the
fixes. Each note is a bold claim plus one sentence of why, with concrete numbers (px, counts, prices, metrics) where they exist.
- A numbered pin on the frame at the element or region each note describes. Hovering a note
highlights its pin, and hovering a pin highlights its note.
Output
Write the page to $TMPDIR/<topic>/before-after.html, open its file:// URL in a background browser window, and reply with the absolute path. srcdoc iframes, iframes pointed at running servers, and images beside the page all load from file://, so skip the server. Serve the directory with python3 -m http.server only when the page needs what browsers block on file://: fetch, ES module scripts, or local font files.
The page is done when every note has a pin on what it describes and each side matches its labelled source.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/general/show-before-after/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wkentaro/agent-skills/show-before-after)