BEFORE YOU START: if what you are reading is a SUMMARY of this document rather than its
complete text, stop and re-fetch it verbatim — `curl -s https://cobaltcapture.com/playbooks/design-pass.md` — and follow that instead.
Summarizing this drops the instructions that make the run work, and you will produce a
plausible-looking run that misses the point. If you can see this paragraph AND the words
"SEVERITY IS ANCHORED ON OUTCOME" near the end, you have the full text and can proceed.

Run a design pass on the site named in the request and deliver it as a Cobalt Capture review.

GOAL: find what a real person would see as broken, off, or confusing on a device the product's own
team doesn't use. The team already catches most problems by using the product on their own laptop
and phone. What they miss: a layout that is fine at 390px and wrong at 360 or 768; padding that is
uneven inside one button; an item a few pixels off its neighbours; text cut off, wrapping badly or
colliding at one width; a modal or email that looks fine on desktop and falls apart on a phone. Plus
a short list of hard fundamentals that are always worth reporting (below).

REPORT THE PROBLEM, NOT THE FIX. Whoever reads this review (usually a coding agent with the team's
own playbooks) decides how to fix it, and a prescribed fix is often the wrong one for that team.
Each finding says what a person sees, where, on which devices, and the evidence. In OWNED mode,
say where it lives (file:line, selector) so it can be found, but do not prescribe the change.

A SCRIPT MEASURES, YOU JUDGE. A model looking at a screenshot cannot measure pixels (the image is
downsampled before you see it), misplaces things, and over-flags. The measuring script below
NOMINATES candidates with exact numbers; you confirm each one in a cropped, zoomed screenshot, and
only what a person would actually notice becomes a finding. Never state a pixel number the script
didn't produce.


HOW TO TALK TO THE USER — this matters as much as the run itself.
Short. Numbered. ONE thing at a time. Every time you hand back, the user should see exactly what
they need to do next and nothing else. Do not front-load caveats, do not preview later phases, do
not explain your reasoning unless asked, do not dump a table when a sentence will do. If a handback
runs past ~10 lines, you have written too much — cut it to the decision. A person skimming on their
phone should be able to act on it.

HANDING BACK THE SAVE / CLAIM LINK — do this exactly; it breaks constantly otherwise. The save_url
ends in a "#claim=<slug>:<token>" fragment, and that fragment is the ONLY thing that ties the review
to the user's account. Two failure modes, both common:
- NEVER wrap it in a markdown link like [Save](...). Terminals fuse an invisible character into the
  href (it comes out as ".../r/slug<junk>Save" and points nowhere), and a CLICKED link usually drops
  everything after the "#", so the token never arrives and "Save to my account" never appears.
- Hand the save_url back as a BARE, unlinked line of its own, the whole string intact, and say in one
  line: "copy this whole line and paste it into your browser's address bar — don't click it, and be
  signed in to Cobalt first." The review_url (for sharing) may be an ordinary link; the save_url must
  be bare copy-me text.

WHEN THE USER ASKS FOR SOMETHING COBALT CAN'T DO (report_unmet_request's description lists what
isn't built yet): say plainly that it can't do that yet, offer the closest thing it can do, call
report_unmet_request once for that ask, and tell them it was logged for the team. Don't say it will
be built or give a date.

FIRST — CHECK YOUR TOOLS, BEFORE ANYTHING ELSE.
This playbook needs the Cobalt tools: create_review, add_note, add_screenshot,
update_review (check_inbox too in companion mode, to see the run's emails). Check whether they are available to you right now.

If they are NOT available, STOP. Output ONLY this and then wait — no personas, no jobs, no plan, no
discussion of what you would have done. None of that is useful until the tools exist.

Say WHERE each step happens (a terminal is not a chat box, and people get this wrong), and give the
re-run line as literal text with the real URL already filled in — never "send me that again",
because by then it's gone.

Order matters here: the copy step comes AFTER the install command and BEFORE the restart. There is
only one clipboard, so copying the re-run line first just loses it to the install command; and
copying it after the restart is impossible, because the message it's in no longer exists:

    Cobalt isn't connected yet — about a minute to fix.

    1. In your terminal (a normal shell, not this chat), run this from anywhere —
       it doesn't matter which folder you're in:

       claude mcp add --scope user --transport http cobalt "https://cobaltcapture.com/mcp"; python3 -c "import json,os;p=os.path.expanduser('~/.claude/settings.json');os.makedirs(os.path.dirname(p),exist_ok=True);d=json.load(open(p)) if os.path.exists(p) and os.path.getsize(p) else {};a=d.setdefault('permissions',{}).setdefault('allow',[]);'mcp__cobalt' in a or a.append('mcp__cobalt');json.dump(d,open(p,'w'),indent=2);print('Cobalt ready.')"

       That's two things joined by a semicolon: the first registers Cobalt as a
       tool for every project; the second adds "mcp__cobalt" to the allow-list in
       your ~/.claude/settings.json so calls aren't blocked. It only ever appends
       to that file — nothing is overwritten — and it's safe to run twice.

    2. Now copy the line below. Do it before the next step — once you restart,
       this message is gone:

       /mcp__cobalt__design_pass https://THEIR-ACTUAL-URL.com

    3. Quit Claude Code and start it again. New tools only load on startup.

    4. Paste what you copied in step 2.

    Without this the findings can't become a shareable review, and the review is the deliverable.
    To undo all of it later, ask me for the reset command.

Substitute the real URL into the step-2 line — do not leave a placeholder.

NEVER hand someone an opaque command. Any time you give a command longer than a single obvious
invocation, say in one or two plain lines what it does and what it touches, BEFORE they run it.
People are right to hesitate at a wall of quoted Python, and "just paste this" is how bad habits get
taught.

IF THEY ASK TO UNDO / START OVER, give them this — it removes every Cobalt registration (all
scopes) and the permission rule, leaves everything else alone, and is safe to re-run:

    python3 -c "
    import json,os
    ch=os.path.expanduser('~/.claude.json')
    if os.path.exists(ch):
        d=json.load(open(ch)); n=0
        n+= (d.get('mcpServers') or {}).pop('cobalt',None) is not None
        for cfg in (d.get('projects') or {}).values():
            n+= ((cfg or {}).get('mcpServers') or {}).pop('cobalt',None) is not None
        json.dump(d,open(ch,'w'),indent=2); print(f'removed {n} registration(s)')
    s=os.path.expanduser('~/.claude/settings.json')
    if os.path.exists(s):
        d=json.load(open(s)); a=(d.get('permissions') or {}).get('allow') or []
        if 'mcp__cobalt' in a: a.remove('mcp__cobalt'); print('removed permission rule')
        json.dump(d,open(s,'w'),indent=2)
    print('Cobalt fully reset — restart Claude Code.')
    "

NOT CLAUDE CODE? The server works with any MCP client; only the install and the re-run differ.
- Codex:  codex mcp add cobalt --url https://cobaltcapture.com/mcp   (writes ~/.codex/config.toml)
- Cursor, Windsurf, others: add an HTTP MCP server named "cobalt" pointing at
  https://cobaltcapture.com/mcp in that client's MCP settings.
- Claude chat / Cowork / ChatGPT (no terminal at all): the user adds Cobalt from the app's
  directory, in one click, and signs in to Cobalt: Claude at
  https://claude.ai/directory/cobalt-capture, ChatGPT at
  https://chatgpt.com/plugins/plugin_asdk_app_6abee108db9c8191b3ed83996c6097b6 . Then they simply
  ask again in plain words ("run a pricing teardown of https://THEIR-ACTUAL-URL.com"). There is no slash command and nothing to paste. Public-page
  studies run in full there; studies that must sign up or click through a product only cover
  their logged-out screens, and you should say so before starting.
Tool-approval works differently in each; if a call is refused, point them at their client's
tool-permission setting rather than guessing at a config format you're unsure of.

IMPORTANT: not every client exposes MCP prompts as slash commands — Codex currently does not. If
theirs doesn't, step 2 is NOT a slash command. Give them this to paste instead:

    Run: curl -s https://cobaltcapture.com/playbooks/design-pass.md
    Then follow it exactly against https://THEIR-ACTUAL-URL.com

The tools still work there — it's only the prompt shortcut that's Claude Code specific.

DIFFERENT PROBLEM, SAME FEELING: the tools are listed but a call gets DENIED by permissions.
Registered and permitted are two separate things. If a Cobalt call comes back denied, don't retry it
and don't work around it — stop and give them this, then wait:

    Cobalt is installed but not permitted yet. In your terminal, run the same
    install command from step 1 again — it grants the permission too, and is
    safe to re-run. Then restart Claude Code and paste your request again.

That install command does both jobs, so there is nothing extra to give them here. Always hand over
the COMMAND rather than a JSON snippet to hand-edit: it merges into whatever they already have and
is idempotent, whereas hand-editing settings.json is how people delete their own permission rules by
accident. (For reference, the rule it adds is "mcp__cobalt" in permissions.allow, which covers every
tool on the server.)

Do NOT suggest a permission MODE like acceptEdits — that governs file edits, not MCP calls, and
won't fix this. If Claude Code instead PROMPTS them to approve the call, "always allow" does the
same job and they can skip the terminal entirely.

If they tell you they already installed it and the tools STILL aren't here, they almost certainly
ran it without `--scope user`. That registers the server for one project only, so it works in the
folder they installed it from and silently does nothing everywhere else. Ask them to run the install
again exactly as written — `--scope user` is the whole fix, and re-running it is harmless.

Going ahead without the tools is the user's decision, not yours. If, after seeing the above, they ask
you to proceed without them, keep the findings in a local markdown file and say what that run cannot
cover. What the tools add, so you can explain the trade:
The deliverable is a durable review at a shareable URL with a screenshot behind every
finding, which whoever fixes the layout can open next to the code. Chat text scrolls away and
carries no images, and a visual finding without its screenshot cannot be checked.

The same applies if you could not read this document IN FULL. If you are working from a summary, or
a fetch was blocked, refused, or truncated, say so and stop. Do not reconstruct the method from
memory or from whichever parts survived — a half-remembered playbook produces a run that looks
right and isn't.

FOLLOW-UPS ON A SAVED REVIEW — once the human has saved a review to their account, the claim_token
you held stops working (the write tools will say so). When they ask for a change to that review
(re-weight the criteria, retake a capture, add a section), do not start a new one: ask them to open
the review, choose Export & more → Hand to your agent, and paste you the token. Pass it as
claim_token on every write, exactly like the original claim_token. replace_screenshot works with
it, so a bad capture is retaken in place. If they would rather not, make a new review and say why.

RE-RUN / COMPARE MODE — history is the one thing a one-off chat cannot give, so when a study has
been run before, make the DELTA the headline. People stay for the feeling of progress; a run that
only re-lists today's problems throws that away.
Enter this mode whenever the user references a previous run, hands you a prior review URL, or a prior
review for this same product+study is recorded (e.g. in .claude/mgs.config.json's `ace` block or a
project memory). Then:
- BEFORE running, call get_review on the prior review to load its findings — the text AND the
  annotated screenshots — so you know exactly what was wrong last time.
- Run the study cold as usual, but for each PRIOR finding, establish its current state by actually
  reproducing the old steps (don't assume), and label it: FIXED (was broken, now works), PERSISTING
  (still there), or NEW (surfaced this run, not last).
- In the finalize verdict, LEAD with the delta: "Since <prior run's date>: X fixed, Y new, Z still
  open," then group the findings fixed / still-open / new. Name the progress explicitly — that line
  is the reason to run it again.
- On the finalizing update_review call, pass compared_to=<the prior review slug or URL> so the
  re-run (and the improvement over time) is recorded.
- After finalizing, offer to record THIS review's URL as the latest for this product+study (in the
  `ace` block or a project memory) so the next run diffs against this one. Write it only if the user
  says yes.
- If get_review reports the prior review is LOCKED (it is past its plan's 7-day editing
  window; the shared link still works), relay that in one line and run normally as a fresh baseline — don't
  stall on it, and don't try to work around it.
If there is no prior run, say so in one line and run normally — a first run is the baseline the next
one measures against, which is itself worth telling the user.

STEP 0 — ORIENT, in one line each, then keep moving:
- OWNED or EXTERNAL. OWNED: the working directory is this site's codebase (check git remotes,
  README, deploy config). You may read the CSS and templates to say where each problem lives.
  EXTERNAL: public pages only. If it's ambiguous, pick EXTERNAL and say so. 
- HOW DEEP CAN THIS RUN GO? The hard-to-find problems live deep: modals, results screens, settings,
  error states, and emails. Marketing pages at rest are where the team already looks. In order of
  preference:
  1. COMPANION: this pass rides a usability or scenario run (the user names that review, or you
     were started at the end of one). Cover every screen that run reached (get_review: each
     screenshot item's source_url is a screen), in the same signed-in browser session if you still
     have it, plus the run's emails (check_inbox with that run's inbox) and every modal, menu and
     dialog on those screens.
  2. OWNED, STANDALONE: walk the product's main path with test data the repo makes safe (its seed
     or test-order command, a dev build, a test account it documents), so results, dashboards and
     settings screens exist to look at. Say what test data you created.
  3. EXTERNAL, STANDALONE: public pages, opened states, and empty form submits only. Say in the
     summary that the deep screens were out of reach.
- A BROWSER is required. With no browser at all (a chat client) you can only do a STATIC DESIGN
  GLANCE: add_screenshot(page_url=..., viewport='desktop'|'mobile') per public page, judged only, no
  opened states, no device sweep. Say so in the first summary line and title it "Static design
  glance". Never present a glance as a design pass.

STEP 1 — SAY HOW THIS WILL GO (three lines at most), THEN OPEN THE REVIEW.
Tell the user what you will cover (screens, devices), roughly how long, and that it needs nothing
from them. No approval stop. Then create_review(title="Design pass: <site> (<today>)",
product_url=the site named in the request) with a summary that states scope only (and, in COMPANION mode, "Companion to
<that review's URL>"); the verdict comes at the end. Keep the slug + claim_token for every call.

STEP 2 — SET UP THE BROWSER AND THE MEASURING SCRIPT.
Drive the browser yourself with Playwright (install it if missing rather than asking). Keep ONE
script or REPL alive for the whole run. Load the two scripts once, and inject them after EVERY
navigation (a page load wipes them):
    import requests
    MEASURE = requests.get("https://cobaltcapture.com/static/js/design-pass-measure.js").text
    AXE = requests.get("https://cdnjs.cloudflare.com/ajax/libs/axe-core/4.10.2/axe.min.js").text
    ctx = browser.new_context(**p.devices["iPhone 13"], bypass_csp=True)  # bypass_csp: strict
    page.goto(url, wait_until="load"); page.evaluate("document.fonts.ready")  # sites refuse scripts
    page.add_script_tag(content=MEASURE); page.add_script_tag(content=AXE)
    a = page.evaluate("cobaltDesignPass.alignment()")   # visual-oddity candidates, this viewport
    m = page.evaluate("cobaltDesignPass.measure()")     # overflow, covered controls, images, inputs
    c = page.evaluate("cobaltDesignPass.contrast()")    # contrast (async, axe-core)
    d = page.evaluate("cobaltDesignPass.disclosures()") # menus, dialogs, accordions to open
alignment() looks at the current viewport only: scroll a screen at a time and call it again.
Upload each screenshot from inside the same script (requests.post to
https://cobaltcapture.com/api/upload with files={"file": ("shot.png", open("shot.png","rb"),
"image/png")}; the 3-tuple is required), then add_screenshot(image_url=...). Never pass base64.
Before any screenshot you judge: wait for fonts, let animations finish, hide cookie banners and chat
launchers you can name. To point at the exact spot, call cobaltDesignPass.mark("<selector>" or
element, <n>) before taking the shot, then cobaltDesignPass.unmark().

STEP 3 — THE DEVICE SWEEP. Real device emulation (Playwright's p.devices), not just a narrow
window, because the oddities this study exists for appear at specific widths:
    "iPhone SE" (320), "Galaxy S24" (360), "iPhone SE (3rd gen)" (375), "iPhone 13" (390),
    "Pixel 7" (412), "iPhone 14 Pro Max" (430), "iPad Mini" (768), "iPad Mini landscape" (1024),
    laptop 1280x800, desktop 1440x900.
Device names are not widths: check p.devices[name]["viewport"]["width"] once and say which widths
you covered (Playwright's "Galaxy S9+" and plain "iPhone SE" are both 320 wide).
A phone with the keyboard open (390x520) on any screen with a form. Dark mode only if the product
really supports it: render one screen with color_scheme "light" and "dark" and compare
cobaltDesignPass.themeSignature(); if they differ, add a dark pass at one phone and one desktop size.
For each screen at each device, scroll through it calling alignment() and measure(). Then OPEN
THINGS, one at a time, at a phone size and desktop: every item disclosures() returns, every dialog a
button opens, dropdowns near the edges, and forms submitted EMPTY to show their errors. Run
alignment() and measure() again on each opened state; that is where most of the finds are.
SAFE TO OPEN, NEVER TO COMMIT: never confirm a delete, send a message to a real person, submit
real data to someone else's site, start a checkout, or buy anything.

STEP 4 — WHAT TO LOOK FOR.
FIRST, STEP BACK. Before any detail, look at each key screen whole (the homepage, the screen where
the main job happens, the screen the person's own customers see, and anything printed or emailed),
at desktop and at a phone size, as the person this run is about: the scenario's person in
COMPANION mode, otherwise the site's most likely visitor. Answer in plain words, and keep the
answers for the summary:
   - Do I like this screen? Why, or why not? Name what drives it (it feels like a template, the
     pictures show someone else's business, it is calm and clear, it reads like a settings page).
   - Is it friendly, and does it look made for this person? Examples, pictures and sample names
     that show a different kind of business than theirs count here: they tell this person "not
     for you" before a word is read.
   - What is the one thing this person needs to do here, and is it obvious where and how?
   - Does everything on the screen earn its place? Ask "why is this here?" of each element. Be
     hardest on anything that stays on screen all the time (measure().floatingChrome lists what
     is pinned and is not a full header or footer bar): what is it for, how often would this
     person really use it, is the same link already in the header or menu, does it point at the
     page you are on, and does it look attached to anything or orphaned? Something rarely needed
     does not earn a permanent spot.
   A "no" to any of these is a finding (SEEN), written as the person's reaction and what caused it.
A. THE ODDITIES (alignment() nominates these; confirm each in a zoomed crop):
   - uneven padding inside one thing: a label not centered in its button, a badge with more space
     on one side, an input whose text sits low (unevenPadding)
   - an item a few pixels off its neighbours in the same card or column (nearMissEdges); a row of
     like items whose tops or bottoms almost line up, or cards whose buttons sit at different
     heights (rowMisaligned)
   - uneven gaps in a list, a nav or a row of cards (unevenGaps)
   - a button label wrapping onto two lines at one width (wrappedButtons)
   - text colliding with other text (overlappingText), text jammed against the screen edge, or
     cut off inside a sideways-scrolling table with no sign that it scrolls (edgeCrowding with
     insideSidewaysScroller)
   - placeholders cut off mid-word inside their field (cutPlaceholders)
   STRESS THE CONTENT, NOT JUST THE WIDTH. The best finds come from real data at real lengths:
   the names, titles and labels people type in. Wherever user-entered text shows on a screen
   (a name on a page or a button, a product title, a label), look at it short, typical, long
   and at the field's own limit (its maxlength). In OWNED mode set those values in the test data
   you created; in EXTERNAL mode only in your own browser's copy of the page, never saved. A
   button that holds a name next to a phone number or a price is the classic break.
   Then look with your own eyes at each screenshot for what no script catches: something that
   looks unfinished, a modal crammed on a phone, an email that falls apart at phone width, an
   empty or error state that looks raw, a layout that changes oddly between two devices.
B. THE FUNDAMENTALS (always worth reporting, measured):
   - the page scrolls sideways on a phone (measure().horizontalOverflowPx; when overflowCulprits is
     empty call overflowSource(): a third-party widget such as a human-check box drawing wider than
     its slot is a common cause no box measurement sees)
   - form fields under 16px on a phone (measure().smallInputs): iPhone Safari zooms the page when
     one is tapped
   - text that is genuinely hard to read: contrast().failures below 3:1, or below 4.5:1 for body
     text at its size. Logos and wordmarks are exempt. Take at most three needsReviewSample items
     per page to a zoomed look and drop the rest of that pile on purpose.
   - a control or text covered by something on top of it (measure().coveredControls), an opened
     menu or dialog running off the screen (offscreenOverlays), a fixed bar sitting over content
   - broken, blurry or stretched images
C. NOT FINDINGS: tap targets and text sizes that are merely below a guideline (report a tap target
   only when it is tiny AND crowded by another, text only when it is hard to read on that device);
   a near-miss you can't see in the zoomed crop; anything inside a decorative product mockup;
   things on purpose (an inset fieldset legend, a deliberately left-aligned button label); taste.
   An open menu or dialog covering the page behind it is expected; what counts is something on top
   of the opened panel. Focus inside a third-party frame is not the site's.

STEP 5 — CONFIRM, THEN WRITE IT UP. For every candidate: crop and zoom on the region, look, and
keep it only if a person would notice it on that device. Re-capture once to rule out a
mid-animation shot. DEDUPE BY CAUSE, NOT BY PAGE: the same thing on twelve pages or six devices is
ONE finding with an "also on" list. Note which devices it does NOT happen on; that tells the reader
where the breakpoint is.
Each finding, as an add_note followed by its screenshot(s) with the box on the exact spot:
- what a person sees, in one plain sentence, and why it reads as broken, off or confusing
- where: screen, state (opened menu, error, email), and the devices it happens on and doesn't
- the evidence: the measured numbers from the script, and a label: MEASURED (the script produced
  it), CONFIRMED BY EYE (a candidate you verified in a zoomed crop), or SEEN (no script could
  measure it; never state a pixel number for these)
- OWNED mode: where it lives (file:line or selector), without prescribing the change
Severity, anchored on the person:
- BROKEN: they can't read it, reach it or use it on that device.
- LOOKS OFF: they notice it, and it makes the product look unfinished or makes them hesitate.
A SEEN finding is never BROKEN unless your re-capture confirmed it. There is no "cosmetic" tier:
if it isn't worth one of these two labels, it isn't a finding.

STEP 6 — FINALIZE. update_review(review, claim_token, summary=...) with, in order:
1. FIRST IMPRESSION, two or three sentences from the step-back look: do the key screens look good
   and made for this person, and where do they not. Then a one-line verdict naming the devices
   where things go wrong ("Clean at 390 and up; at 360 and 375 the pricing table loses its plan
   columns and the builder spills off the card.").
2. In COMPANION mode: "Companion to <usability review URL>".
3. THE FINDINGS, most severe first, one line each with its devices. A short list is a good result:
   do not pad it with guideline nits to look thorough.
4. COVERAGE: screens x devices, which deep screens (modals, emails, results) were reached, and
   what was out of reach and why.
5. KEEP LIST: what holds up across every device, so nobody breaks it fixing the rest.
SEVERITY IS ANCHORED ON OUTCOME, NOT TASTE: a finding must plausibly make a person on that device
think the product is broken, unfinished, or confusing. "I'd lay this out differently" is not a
finding; "at 375 the Compare plans table shows feature names with the plan columns scrolled out of
view and nothing says it scrolls" is.
In COMPANION mode, finally add ONE add_note to the usability review (if you hold its claim_token or
agent token): "Design findings for these screens are in a separate review: <this review's URL>".
Nothing more goes into the usability review.
Then hand the user the review_url and the save_url (anonymous reviews are deleted after 30 days
unless saved).

NEVER: submit real data to a site you don't own, confirm anything destructive, start a checkout,
message a real person, solve a human-verification challenge, or change anything that persists on a
site you don't own. Look, open, close.

SUMMARY LEAD-IN. The first line of EVERY summary you write, both the scope summary on create_review
and the verdict on update_review, is this line, verbatim, followed by a blank line and then the rest:

    *A Cobalt Capture design pass: an AI agent looked at every screen it could reach across nine phone, tablet and desktop sizes, with menus and dialogs opened, and recorded what looks broken, off or confusing. [How this study works](https://cobaltcapture.com/workflows).*

This review will travel without you: shared as a link, exported, pushed into a GitHub issue, read by
another agent. Someone opening it cold needs to know what it is before the findings. Do not reword
it, translate it, or add to it, and do not drop it when update_review replaces the summary.