/greybeard:verify-responsivefrom greybeard
Renders a real page at specified viewport widths inside fixed-width iframes for responsive UI verification. Use instead of resizing the browser window.
Ships in greybeard. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
"The CSS looks right" is not "it renders right at 390px." A media query only proves itself when something evaluates it at that width. This is §4 applied to UI — define success criteria, loop until verified — where the criterion is a rendered page at a real width, not a stylesheet that reads correctly.
The tool is one throwaway HTML file: fixed-width <iframe>s pointed at your running app. An iframe is a nested browsing context, so its viewport is the iframe box — width and height media queries, container queries, and vw/vh all resolve to the size you set. Two frames side by side puts both breakpoints in a single screenshot.
Don't — go straight to the harness. Resizing buys exactly one thing, a narrower viewport, which is the same thing the iframe gives you. The iframe then gives you three more:
innerWidth and matchMedia(...) from inside the frame. A resized window can only be photographed.The tool that genuinely beats this harness is device emulation, not window resizing — see what this does not give you.
url — the running page to check (e.g. http://localhost:3000/pricing)widths — viewports to render; default 390×844 (phone) and 1280×800 (desktop)static-dir — the directory the dev server serves at the same origin (public/, static/, www/)Start the app and note its origin.
Put the harness in the app's own static-dir — not on a second server. Same-origin is the entire point: it is what makes step 4 possible. A harness on another port is cross-origin, iframe.contentDocument comes back null, and you are reduced to screenshots.
Write _viewports.html into that directory:
<!doctype html><meta charset="utf-8"><title>viewports</title>
<style>
body { margin:0; display:flex; gap:16px; background:#111; font:12px system-ui }
figure { margin:0 } figcaption { color:#888; padding:4px }
iframe { border:0; background:#fff }
</style>
<figure><figcaption>390 × 844</figcaption>
<iframe id="m" src="/YOUR/PATH" width="390" height="844"></iframe></figure>
<figure><figcaption>1280 × 800</figcaption>
<iframe id="d" src="/YOUR/PATH" width="1280" height="800"></iframe></figure>
Open /_viewports.html and screenshot it.
Drive it and assert from the parent. Same-origin, so the frame is fully scriptable — you can reach past what a screenshot shows:
const w = m.contentWindow, doc = m.contentDocument;
w.innerWidth; // 390
w.matchMedia('(max-width: 640px)').matches; // true → the mobile arm really is live
doc.querySelector('[data-testid="menu"]').click();
doc.querySelector('.drawer').className; // read the result back
w.localStorage.getItem('seen'); // and any state it wrote
Assert the width from inside the frame before trusting a screenshot. "Looks narrow to me" is how you verify nothing.
Delete the harness before committing. Anything in the static dir ships. rm _viewports.html, then confirm with git status — don't leave it for review to catch.
The iframe narrows the viewport. It does not emulate a device. Measured inside a 390px frame on a laptop: pointer: fine and hover: hover are both still true, navigator.maxTouchPoints is 0, and devicePixelRatio is the host's.
So a layout that branches on width is covered honestly. One that branches on @media (hover: hover), sniffs the user agent, or swaps assets on DPR will render its desktop arm at 390px and mislead you with a screenshot that looks right. There is also no browser chrome, so 100dvh-vs-100vh differences never show up. When the behavior under test depends on any of those, use real device emulation or a real device — this harness will lie to you.
/visualize draws the process a change alters, or the structure of the code. This renders the running UI. Use this one when the question is "what does it actually look like at this width."What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub clawnify/greybeard --plugin greybeard7 skills in this plugin
/check-resolvableAudit the whole skill/tool library so it stays a DRY, MECE resolver — no duplicate skills, no overlaps, no gaps. Use after adding or editing a skill, or when the library feels cluttered./pressure-testPressure-test the current approach against scalability, long-term, and efficiency, then recommend the best option. Use when the user asks to pressure-test a decision or audit the session's approaches./sidenotePark a passing thought as a later-task without derailing the current one — logged, not acted on. Use when the user asks to park a thought, sends SIDENOTE:, or wants to list parked notes./skillifyTurn something you just did into a reusable skill and register it in the resolver. Use when the user says "skillify this", "make that a skill", or after completing a non-trivial procedure worth repeating./visualizeDraw the thing under discussion: the process change or the code shape, whichever the question is about, grounded in the real code and anchored to file:line. Use when the user asks to visualize a change, a process, a flow, code, or architecture; use verify-responsive to check a running UI at a viewport width./wrapRule on whether this session can end here — finish the loop now, or make the work durable enough that another agent can pick it up. Use when the user asks to wrap up, hand off, or decide whether this session or worktree can be closed.