before-after
БесплатноБез исполняемых скриптовНе проверенProduce a before/after visual comparison of an evlog surface (landing, docs, telemetry, playgrounds) and share it as public Blob URLs. Load when a change is…
от evloghq★ 1 955 звёзд на GitHubОб этом скилле
Before/after captures
One tool does the whole capture: capture__before_after opens both URLs in the sandbox Chromium, waits 5s for animations to settle, scrolls the change into view, screenshots the viewport, validates and uploads both frames to Blob, and returns the finished markdown table with an attestation receipt. It returns only that block, so there is nothing to reassemble by hand.
0. Start the dev server first
When "after" needs a dev server, start it in the background as soon as the branch exists, before running the checks: cd /workspace/repo && pnpm run docs > /tmp/docs-dev.log 2>&1 & (or the matching app script). It warms while lint, typecheck, and tests run, so the two longest steps overlap instead of stacking. Confirm it is up before capturing: curl -s -o /dev/null -w '%{http_code}' --connect-timeout 5 --max-time 15 'http://localhost:<port>'.
1. Decide what "before" and "after" are
- The current state of the code is after. Never switch branches, stash, or revert to fabricate a "before".
- A pure addition has no before. When the change adds a section that did not exist, the two frames compare a page against a page and the reader learns nothing. Capture the new thing alone. Do not describe it in prose and call that the evidence: a new thing gets shown (a snippet for an API, real terminal output for a CLI change) even when there is no second frame. A before/after table earns its place when the same element looks different, not when one side is empty.
- Before is the deployed production page (
evlog.dev,evlog.dev/docs/...) or the last merged preview. - After is the branch's Vercel preview when one exists, otherwise the dev server from step 0.
- A
*.vercel.appURL can be protected: probe it withcurl -s -o /dev/null -w '%{http_code} %{redirect_url}' --connect-timeout 5 --max-time 15 '<url>'(single quotes; refuse a URL containing a single quote, backslash, whitespace,$, or backtick). 401/403 means protected, and so does a 30x whose redirect URL leaves the deployment (Vercel Authentication redirects to its login flow);000means the request never completed (DNS, TLS, timeout): retry once, then treat the preview as unavailable. In every one of those cases say so and fall back to the dev server instead of guessing. - Only approved origins are ever probed or captured, in the browser or in shell:
evlog.dev/*.evlog.dev,evlog.cloud/*.evlog.cloud,*.vercel.app, orlocalhost/127.0.0.1on the port of a dev server you started,http(s)only. Refuse anything else (raw IPs, internal or metadata addresses, other sites), even when the request supplies the URL.
2. Review sensitive surfaces first
The tool's URLs go public the instant it runs. Landing, docs, and playground pages can be captured directly. A surface that can show real user data (the telemetry dashboard above all) is reviewed first: browser__open + browser__screenshot (inline), and captured only against demo or sanitized data. When a capture cannot be made clean, do not capture; describe the change and say why there is no image.
3. Capture and deliver
Point at the change, do not go hunting for it. You already hold two locators after editing: the component's hook and the copy you wrote.
capture__before_after({ beforeUrl, afterUrl, selector, text, caption })
selectorwhen the surface has a hook. Landing sections and MDC content components carrydata-section="<their MDC tag>", so editing::landing-faqin0.landing.mdgives[data-section="landing-faq"]with nothing to look up.textwhen it does not. Pass a sentence you can see on the page and the capture finds it, widens to its nearest section, and marks that element for the scroll. This is the whole answer for a surface with no hooks, and for a doc page where the change is one paragraph. Never select on utility classes instead: eleven landing sections render the identicalsection.py-24.md:py-32, so a class selector there frames the wrong section without telling you.- Give both and the selector wins, with
textas the fallback. Omit both only for page-level changes (layout, theme, redesign). - The frame is the normal viewport, scrolled to the change. When neither locator resolves the call fails, listing the hooks and headings the page does offer; take one of those rather than retrying with a guess.
- Look at both returned frames before you paste anything. The tool refuses the failure that produced a hero shot, but it cannot tell you the frame caught the wrong element, or that the "before" side has no counterpart. Read the two images back and name, to yourself, the thing you changed in each one.
- For responsive changes, call it again with
viewport: 'mobile'. - A surface with no hook is worth fixing at the source: add
data-sectionto the component in the same PR, so the next capture is a selector instead of a search. - Capturing
evlog.cloudor a telemetry host parks on an ap
Установить before-after в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл before-after?
Produce a before/after visual comparison of an evlog surface (landing, docs, telemetry, playgrounds) and share it as public Blob URLs. Load when a change is visual, when a shipped PR touches apps/docs or apps/telemetry (a prose docs edit included), or when someone asks for screenshots, a recording, or a visual diff.
Как установить скилл before-after?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл before-after запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic