# Docs

sugikit 0.5.1

## Install

```sh
pnpm add -D sugikit
```

```sh
npm install -D sugikit
```

```sh
npx sugikit login
```

Log in to your Sugikit account in the browser (device code)

```sh
npx sugikit skills install
```

Copy the sugikit agent skill into <project>/.claude/skills/

```sh
npx sugikit browsers install
```

Install the headless Chromium build that Sugikit's own Playwright version needs

```sh
npx sugikit check <url>
```

Check a URL and write a JSON report; --site also crawls the whole site

## Plan

Every command except login, logout, whoami, browsers install, capture, feedback and --help needs an active Sugikit plan.
Without one it exits 1 with: This needs a Sugikit plan. Buy one at https://sugikit.com/#pricing, then run sugikit login.

Free: sugikit login, sugikit logout, sugikit whoami, sugikit account, sugikit browsers, sugikit capture, sugikit feedback, sugikit --help, sugikit --version

- License check: GET https://sugikit.com/api/license
- Cached for: 1 day
- Works offline for: 7 days

## Commands

### sugikit check

```sh
sugikit check <url> [--project <dir>] [--out <file>] [--no-browser] [--psi] [--runs <n>] [--page-type <type>] [--timeout <s>] [--site [--max-pages <n>]] [--taste <file>]
```

Check a URL and write a JSON report; --site also crawls the whole site

### sugikit psi

```sh
sugikit psi <url> [--project <dir>] [--out <file>] [--runs <n>]
```

Run PageSpeed Insights only and write a JSON report

### sugikit report

```sh
sugikit report [--before <file>] [--after <file>] [--psi-before <file>] [--psi-after <file>] [--out <file>]
```

Write a local before/after HTML page from two reports

### sugikit judge apply

```sh
sugikit judge apply <report.json> <answers.json> [--out <file>]
```

Check the agent's judge answers ([{ id, pass, reason, quote, item? }]) against the report's judge items, add them as findings and recompute the hero and structure scores. Writes back to <report.json> unless --out is set. Also: sugikit judge merge

### sugikit taste apply

```sh
sugikit taste apply <code> --direction A|B|C [--dir <project>] [--force]
```

Write sugikit.taste.json from a taste code copied on sugikit.com/taste

### sugikit taste show

```sh
sugikit taste show [--dir <project>] [--json]
```

Print the taste sentence, the direction and its tokens

### sugikit taste verify-file

```sh
sugikit taste verify-file [--dir <project>]
```

Re-derive sugikit.taste.json from its code and direction and list hand edits outside locks

### sugikit skills install

```sh
sugikit skills install [--dir <project>]
```

Copy the sugikit agent skill into <project>/.claude/skills/

### sugikit browsers install

```sh
sugikit browsers install
```

Install the headless Chromium build that Sugikit's own Playwright version needs

### sugikit snapshot

```sh
sugikit snapshot <url>... [--dir <project>]
```

Start a capture run: print its run id and take the before screenshots of up to 10 pages (desktop and phone, light and dark) into the CLI's cache folder, at the start of a restyle

### sugikit capture

```sh
sugikit capture --request <text> [<url>...] [--run <id>] [--iteration <n>] [--dir <project>]
```

After each change: take the after screenshots and upload them with the last ones as before and the user's request for this iteration (sugikit.com/terms#captures). Needs only the login

### sugikit feedback

```sh
sugikit feedback [<url>...] --happy yes|no [--note <text>] [--dir <project>]
```

At the end: send the owner's answer and note for the run. Needs only the login

### sugikit login

```sh
sugikit login
```

Log in to your Sugikit account in the browser (device code)

### sugikit logout

```sh
sugikit logout
```

Log out and delete the saved login and license files

### sugikit whoami

```sh
sugikit whoami
```

Print the account email and plan (also: sugikit account)

### sugikit --version

```sh
sugikit --version
```

Print the version

### sugikit --help

```sh
sugikit --help
```

Print this help

### Options

- `--project <dir>`: Project directory for framework detection (default: cwd)
- `--out <file>`: Output path (default: .sugikit/report.json, sugikit psi: .sugikit/psi.json, sugikit report: .sugikit/report.html, sugikit judge apply: the <report.json> it reads); sugikit check screenshots go to <name>-shots/ next to the report (.sugikit/report-shots/) sugikit check compares the first screen with before.json next to the report, when it exists
- `--no-browser`: Skip the headless browser polish checks
- `--psi`: Add PageSpeed Insights (needs a public URL and the PSI_API_KEY environment variable)
- `--page-type <type>`: product, launch or waitlist; overrides the detected page type for the convert checks
- `--timeout <s>`: sugikit check: soft time budget in seconds (default: 120); when it runs out, the dark, reduced motion and CTA click checks are skipped and reported as polish/slow-page
- `--site`: sugikit check: also crawl the site (start URL, sitemap URLs, same-origin links) and run the site-wide checks; prints an estimated Ahrefs Site Audit health score. --timeout is then the budget for the whole run (default: 600)
- `--taste <file>`: sugikit check: the sugikit.taste.json for the taste/* checks (default: <project>/sugikit.taste.json when it exists). Taste findings are warnings and tips; they never change the exit code or green
- `--max-pages <n>`: sugikit check --site: most URLs to crawl (default: 200, at most 1000)
- `--runs <n>`: PageSpeed runs per strategy, the best score per category is kept (default: 3)
- `--before <file>`: sugikit report: baseline report (default: .sugikit/before.json, skipped when missing)
- `--after <file>`: sugikit report: latest report (default: .sugikit/report.json)
- `--psi-before <file>`: sugikit report: sugikit psi report for the baseline
- `--psi-after <file>`: sugikit report: sugikit psi report for the latest run
- `--dir <project>`: sugikit skills install, sugikit taste, sugikit snapshot, sugikit capture, sugikit feedback: project directory (default: cwd)
- `--request <text>`: sugikit capture: what the user asked for in this iteration, in their words, at most 1000 characters (no code, no secrets)
- `--run <id>`: sugikit capture: the run id sugikit snapshot printed (default: the run in progress)
- `--iteration <n>`: sugikit capture: the iteration number, 1 to 30 (default: the last one plus 1)
- `--happy <yes|no>`: sugikit feedback: the owner's answer to "Are you happy with the result?" (asked on a terminal when missing)
- `--note <text>`: sugikit feedback: the owner's optional note, at most 2000 characters

### Exit codes

- sugikit check: 0, No error findings (page and site)
- sugikit check: 1, Error findings exist, or the check could not run
- sugikit psi: 1, No PageSpeed scores, or an error finding
- Every gated command: 1, No login, no active plan, or the plan's updates ended
- sugikit taste: 2, Usage errors, a bad code or a missing --direction
- sugikit taste: 1, A refused overwrite, a missing or invalid file, or drift

## Checks

### polish

Sugikit loads the page in headless Chromium in four states: `desktop-light` (1440 px wide), `desktop-dark`, `phone-light` and `phone-dark`, plus `phone-light-reduced-motion`. Screenshots of each state are in `<report name>-shots/` next to the report (`.sugikit/report-shots/`, `.sugikit/before-shots/`). Look at them before and after a visible fix.

- `polish/horizontal-scroll` (error): On `phone-light`, the page is wider than the viewport, so it scrolls sideways.
- `polish/tap-targets` (warn): On `phone-light`, links, buttons, inputs, selects, summaries and ARIA buttons, links, tabs and menu items with a hit area smaller than 24x24 CSS px, with the WCAG 2.5.8 exceptions: links inside a line of text, unstyled native controls the browser sizes, and controls spaced so a 24 px circle centered on each does not touch another control or another small control's circle.
- `polish/contrast` (error): Text with contrast below 4.5:1 (3:1 for large text: 24 px, or 18.66 px bold) in any of the four states.
- `polish/axe` (warn): Serious or critical axe-core violations in `desktop-light` and `phone-light` (so phone-only controls such as the menu button are checked), except color contrast (that is `polish/contrast`).
- `polish/type-scale` (warn): More than 12 font size steps on `desktop-light` (visible paragraphs, list items, headings, link and button labels, quotes and table cells; sizes within 1 px count as one step).
- `polish/body-text-size` (warn): On `phone-light`, the share of body paragraph text (paragraphs of 60+ characters outside footer, aside, nav, small and figcaption, counted by characters) under 15 px.
- `polish/line-length` (warn): Paragraphs at 1440 px with more than 85 characters per line.
- `polish/spacing-scale` (warn): Distinct padding, margin and gap values on `desktop-light`.
- `polish/img-dimensions` (warn): Images with no width and height (they cause layout shift) and images whose file is more than 2x their displayed size (wasted bytes).
- `polish/dark-mode` (info, or warn when half done): Whether the page background and text color change between `desktop-light` and `desktop-dark` (`prefers-color-scheme: dark`).
- `polish/reduced-motion` (warn): Animations that are endless or long, and videos that play (autoplay and muted, or started by a script), when `prefers-reduced-motion: reduce` is on.
- `polish/text-clipped`: Fix: Let each listed text fit its box at that width: allow wrapping (flex-wrap: wrap on the row, white-space: normal), let the box shrink or grow (min-width: 0, no fixed width or height), or give the text less to fit (a shorter layout at that width).
- `polish/floating-text-panel` (error): On `desktop-light`, headings (h1 to h3 next to a visible paragraph or button) and text blocks (more than 40 characters of their own text) that sit on a box of their own: a background color, gradient or `backdrop-filter` that differs from the section behind it, or an outer `box-shadow`.
- `polish/eyebrow-label` (error): On `desktop-light`, a short line (1 to 8 words, 60 characters at most) right above an h1 or h2 (its bottom within 48 px of the heading's top, overlapping it across), set at 60% of the heading's size or smaller, and in uppercase, letter-spaced (0.05em or more), a monospace face, or an accent color unlike the heading's.
- `polish/long-description` (error for the hero line, warn for section intros): The hero line (the first paragraph of 6 or more words after the h1, in its block) fails over 2 lines at 1440 px, over 4 lines at 390 px, or over 20 words (the same limit the copied prompt gives).
- `polish/bare-hero-background` (error): On `desktop-light` and `desktop-dark`, the band behind the hero copy (the h1 with its paragraph and CTA, 48 px above and below, full width).
- `polish/lost-product-visual` (error): The baseline report (`.sugikit/before.json`, same page path) recorded a product visual in its first screen (a screenshot, video, embed or HTML UI mockup of 40,000 px or more, `firstScreen.productVisual`), and the page now has none.
- `polish/lost-hero-background` (error): The baseline report (`.sugikit/before.json`, same page path) recorded the hero backdrop on `desktop-light` (`firstScreen.heroBackdrop`) and it was not bare (a visual, or 15% or more changed pixels, or 0.5% or more edges, as in `polish/bare-hero-background`), and the hero is bare now.
- `polish/focus-visible` (warn): On `desktop-light` and `desktop-dark`, after one real Tab press, keyboard focus moves through the first 40 focusable elements.
- `polish/paste-blocked` (error): On `desktop-light`, a paste event goes into each visible text, email, password, search, tel and url field.
- `polish/clickable-not-focusable` (warn): On `desktop-light`, visible elements with `cursor: pointer` of their own (not inherited) that are not a link, a button, a form control, a label or a summary, have no interactive role and no `tabindex`, and are not inside or around a control.
- `polish/focus-under-sticky` (warn): On `desktop-light` and `phone-light`, each focused element (the first 40 in Tab order) is scrolled into view the way a Tab press does.
- `polish/anchor-under-header` (warn): On `desktop-light`, when a fixed or sticky header shows at the top, each in-page link target (`href="#id"`, at most 8) is scrolled to as the browser does for a fragment.
- `polish/autoplay-pause` (warn): On `desktop-light`, before any motion is finished: a playing video (autoplay and muted, or started by a script) of 2% of the screen or more that loops or runs over 5 s, and endless motion (or motion over 5 s) on an element that holds text (a marquee, an autoplay slider) or covers 10% of the screen or more, with no `controls` attribute and no pause, stop or play button near it (WCAG 2.2.2).
- `polish/carousel-controls` (warn): On `desktop-light`, a slider library root (Swiper, Splide, Embla, Keen, Slick, Glide, Flickity, a `carousel` class) or an aria carousel whose slides run past its edge, with no previous, next or dot buttons in it or next to it.
- `polish/autofocus` (warn on phones, info on desktop): The element focused right after load is a text field, select or editable box.
- `polish/color-scheme` (warn): In each state with a dark page background (a dark theme, or a dark-only page in the light states), the color scheme the browser uses (the root `color-scheme`, else the `color-scheme` meta) is not dark.
- `polish/input-typable` (warn): On `desktop-light`, one character is typed with the keyboard into each visible text, email, search, tel and url field (at most 6) that is not readonly or disabled.
- `polish/hydration-error` (warn): Console errors, uncaught errors and rejections during load on `desktop-light` that are React hydration errors (minified #418, #423 or #425, "Hydration failed", "did not match") or another framework's hydration mismatch.
- `polish/skip-link` (info): On `desktop-light`, when 5 or more focusable elements sit before `main`, the first Tab press must land on a visible link to an element on the page (a skip link).
- `polish/heading-orphan` (info): H1 to h3 with 4 words or more on 2 lines or more whose last line holds one word, at 1440 px and 390 px.
- `polish/hover-state` (info): On `desktop-light`, the real mouse hovers each button and nav or header link style (one per tag and class list, at most 12).
- `polish/transition-all` (info): On `desktop-light`, visible elements whose `transition-property` is `all` with a duration.
- `polish/layout-animation` (info): On `desktop-light`, transitions, CSS animations (their `@keyframes`) and script animations of width, height, top, left, right, bottom, inset, margin, padding or font size.
- `polish/theme-color` (info): In each state with a `theme-color` meta that matches it (its `media` query), the color differs from the page background by more than 12 in a channel, so the phone browser bar shows another color.
- `polish/turkish-uppercase-i`: Fix: In Turkish text the browser uppercases "i" to "İ", so an English word in uppercase shows as CHAMPİON: wrap each listed English word in an element with lang="en" (for example <span lang="en">Champion</span>).
- `polish/small-body-text`: Fix: Raise paragraph and list text to 16 px or more on phones and labels (captions, badges, notes) to 12 px or more, with steps of the existing type scale.
- `polish/body-line-height`: Fix: Set the line height of the listed paragraphs to 1.4 to 1.8 (1.5 is a safe default), on the paragraph style, not per element.
- `polish/display-line-height`: Fix: Set the line height of large text (40 px or more) to 0.85 to 1.2, for example 1 or 1.1 on the heading style.
- `polish/clipped-glyphs`: Fix: Let the listed heading show every letter and accent: raise its line height (at least 1 for display text, more with accents such as İ or Ü), or remove overflow: hidden from the heading or its wrapper, or add a little padding inside the clipping box.
- `polish/squeezed-row`: Fix: Product and content cards keep their names inside the card: wrap a name to at most 2 lines, then end it with an ellipsis, and never let it run over the next card.
- `mobile/zoom-blocked`: Fix: Let visitors zoom: remove user-scalable=no and maximum-scale from the viewport meta, so it reads <meta name="viewport" content="width=device-width, initial-scale=1">.
- `mobile/input-zoom`: Fix: Give the listed inputs, selects and text areas a font size of 16 px or more on phones, so iOS does not zoom in when they get focus.
- `mobile/safe-area`: Fix: The viewport meta has viewport-fit=cover, so the page draws under the notch and the home indicator.
- `mobile/nav-thumb-side`: Fix: Put the logo on the left and the cart and the menu button on the right of the phone header, and let the menu drawer open from the right, so the right thumb reaches them.
- `keep/sticky-header`: Fix: Keep the original feature, restyle it: the header or nav was sticky or fixed before the change and is not now.
- `keep/menu`: Fix: Keep the original feature, restyle it: the page had a menu toggle or drawer (a menu button, an aria-expanded control or a details element in the header) and it is gone.
- `keep/forms`: Fix: Keep the original feature, restyle it: a form, search field or cart link the page had is gone.
- `keep/carousel`: Fix: Keep the original feature, restyle it: the page had a carousel or slider and it is gone.
- `keep/animations`: Fix: Keep the original feature, restyle it: the first screen had motion (CSS animations or transitions, a canvas, a video or WebGL) and has none now.
- `keep/product-zoom`: Fix: Keep the original feature, restyle it: the product images zoomed on hover or click (a zoom or lightbox library, a zoom-in cursor or a hover scale) and do not now.
- `polish/slow-page` (info): The check ran past its time budget (`--timeout`, default 120 s), so it skipped the optional browser checks named in `evidence` (dark states, axe on `phone-light`, the keyboard and mouse checks, the reduced motion run, CTA click tests).
- `polish/browser` (error): Sugikit could not start headless Chromium, so no polish checks ran.
- `polish/tailwind-no-unknown-classes`: Fix: Tailwind generates no CSS for the listed classes, so they do nothing.
- `polish/tailwind-require-static-classes`: Fix: Optional: the linter cannot read the className given to the listed component (a variable, a map lookup or a template string), so its other Tailwind checks skip it.
- `polish/tailwind-no-arbitrary-values`: Fix: Optional: swap an arbitrary value for the theme step only when the evidence names one with the same value (for example "p-[13px]" to "p-3.25").
- `polish/tailwind-no-raw-colors`: Fix: Optional: use a theme color only when one renders the same color as the raw palette class.
- `polish/tailwind-no-restyle`: Fix: Optional: where a component is restyled with className, use one of its existing variants or sizes only when it looks the same.
- `polish/tailwind-no-inline-styles`: Fix: Optional: move a static inline style to the equal Tailwind class (for example marginTop: 12 to mt-3).
- `polish/tailwind-unparsed` (info): Source files that Oxlint could not parse.
- `polish/tailwind-notes` (info): Warnings that @shadcn/lint printed during the check, in `evidence`.
- `polish/tailwind-lint` (info): Sugikit could not run its Tailwind class lint.

### seo

Sugikit reads the server HTML of the page (no JavaScript), the response headers, `/robots.txt` and the sitemap. A tag that only appears after client JavaScript runs does not count. Put meta tags in the framework's head API, which renders them on the server.

- `seo/title` (error): The page has exactly one `<title>` (inline SVG titles do not count), and it is not empty.
- `seo/title-length` (warn): The title is 30 to 60 characters.
- `seo/meta-description` (error): `<meta name="description">` exists with content, and only once.
- `seo/meta-description-length` (warn): The description is 70 to 160 characters.
- `seo/html-lang` (error): `<html>` has a `lang` attribute, and it is a well-formed BCP 47 language tag (`en`, `en-US`, `pt-BR`, `zh-Hant`).
- `seo/viewport` (error): `<meta name="viewport">` exists.
- `seo/canonical` (error): `<link rel="canonical">` exists and its `href` is an absolute http(s) URL.
- `seo/open-graph` (warn): `og:title`, `og:description`, `og:url`, `og:type` and `og:image` all exist, and `og:image` is an absolute http(s) URL.
- `seo/og-url` (warn): `og:url` exists and names the same URL as `<link rel="canonical">` (the page URL when there is no canonical; fragments are ignored).
- `seo/twitter-card` (warn): `<meta name="twitter:card">` exists with a known type (`summary`, `summary_large_image`, `app`, `player`), and the card is complete: a title for every type, plus a description and an image for `summary` and `summary_large_image`, and `twitter:player` for `player`.
- `seo/og-image` (warn): The page has an `og:image` with an absolute http(s) URL that answers 200 with an image content type.
- `seo/og-image-size` (warn): The image is at least 1200 px wide with a ratio of 1.91:1 (1.86 to 1.96 passes, so 1200x630, 1200x628 and 2400x1260 pass; 16:9 and squares fail).
- `seo/og-image-weight` (warn): The file is 1 MB (1,048,576 bytes) or less.
- `seo/og-image-alt` (warn): `og:image:alt` or `twitter:image:alt` is set.
- `seo/twitter-large-card` (warn): `twitter:card` is `summary_large_image`, and X has an image: `twitter:image`, else `og:image` (the message says which one counts).
- `seo/og-image-no-link` (error): The text in the image has no link: no `http:` or `https:`, no `www`, no email address, not the site's own domain, and no word.tld for any TLD of 2 to 24 letters (`.com`, `.sh`, `.com.tr`, `.co.uk` too).
- `seo/og-image-small-print` (warn): Lines of 3 or more words under half the headline's height (the tallest line) or under 4.5% of the image height.
- `seo/json-ld` (warn): The page has at least one `<script type="application/ld+json">` and every block parses as JSON.
- `seo/json-ld-type` (warn): Some JSON-LD node has `@type` `Organization`, `WebSite`, `SoftwareApplication`, `MobileApplication` or `Product`.
- `seo/h1` (error): Exactly one `<h1>` on the page (error), and it is not empty (warn; text, an image alt or an aria-label count).
- `seo/heading-order` (warn): Heading levels do not skip (no `h2` followed by `h4`).
- `seo/img-alt` (warn): Every `<img>` has an `alt` attribute (an empty `alt=""` passes).
- `seo/favicon` (warn): A `<link rel="icon">` (or `rel="shortcut icon"`) exists.
- `seo/noindex` (error): No `noindex` or `none` in `<meta name="robots">`, `<meta name="googlebot">` or the `X-Robots-Tag` header.
- `seo/robots-txt` (error): `/robots.txt` returns 200 with a plain text body.
- `seo/robots-syntax` (error): Every robots.txt line (comments and blank lines aside) is one a crawler reads as meant.
- `seo/robots-sitemap` (warn): Robots.txt has a `Sitemap:` line.
- `seo/sitemap` (error): The sitemap (from robots.txt, else `/sitemap.xml`) returns 200 and is a `<urlset>`, a `<sitemapindex>` or a text sitemap (one URL per line).
- `seo/sitemap-scope` (warn): Every absolute `<loc>` in the sitemap is on the site's origin (or the sitemap's).
- `seo/sitemap-limits` (error): The sitemap file has at most 50,000 entries (`<url>`, or `<sitemap>` in an index) and at most 50 MB (52,428,800 bytes) uncompressed, the limits of the sitemap protocol.
- `seo/sitemap-lastmod` (warn): Every sitemap entry has a `<lastmod>`.
- `seo/sitemap-host` (info): On a local run (localhost, 127.0.0.1, `*.localhost`, `[::1]` or 0.0.0.0), robots.txt lists the sitemap on another host, so the same path on the tested origin was checked instead.
- `seo/sitemap-local`: Fix: Make the robots.txt Sitemap: line use the production URL, not a local host.
- `seo/redirects` (error): The URL you checked, followed one redirect at a time (at most 10 hops).
- `seo/mixed-links` (error): On an https page, no `<a href>` points to an `http://` URL on the same site (www and apex count as the same), and no image, srcset candidate, script, stylesheet, iframe, video, audio, source, track, embed or object loads over `http://`.
- `seo/double-slash` (error): No internal link (and not the page URL itself) has `//` in its path, such as `https://example.com/blog//post`.
- `seo/html-size` (error): The uncompressed size of the page HTML.
- `seo/no-outgoing-links` (error): An indexable page (no noindex in meta robots or X-Robots-Tag, no canonical to another URL) has at least one `<a href>` to another http(s) URL, on this site or another.
- `seo/broken-resources` (error): Sugikit requests each image (`src` and the first `srcset` candidate), script `src` and stylesheet `href` on the page, same-site and third-party: HEAD, GET when HEAD answers 405, at most 40 files, 4 at a time, 5 seconds each.
- `seo/image-weight` (error): The file size of each image `seo/broken-resources` checked that answered 2xx, from `Content-Length` of that answer.
- `seo/hreflang` (error): Only when the page has `<link rel="alternate" hreflang>`; otherwise not applicable (info).
- `seo/link-redirects` (info): The same-origin links Sugikit checks (up to 20) are asked without following redirects; a link that answers 3xx is listed with its target.
- `seo/http-status` (error): The page URL returns a 2xx status.
- `seo/fetch-blocked` (info): The plain HTTP request for the page got 403, 429, 503 or a bot challenge page, but the headless browser loaded it.

### geo

GEO (generative engine optimization) is about AI assistants and AI search: ChatGPT, Claude, Perplexity, Google AI Overviews. They read the raw HTML, `/robots.txt` and `/llms.txt`. Most of their crawlers do not run JavaScript.

- `geo/llms-txt` (error): `/llms.txt` returns 200 with a plain text body.
- `geo/llms-txt-format` (warn): `/llms.txt` starts with a `# ` heading and contains at least one markdown link `[text](url)`.
- `geo/llms-full-txt` (warn): `/llms-full.txt` returns 200 with a plain text body.
- `geo/ai-crawlers` (warn): Robots.txt does not block `/` for GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, Claude-User, PerplexityBot, Google-Extended or Applebot-Extended.
- `geo/faq-schema` (warn): Some JSON-LD node has `@type` `FAQPage`.
- `geo/ssr-content` (error): The server HTML (no JavaScript run) has at least 400 characters of visible text in `<body>`.
- `geo/hero-statement` (warn): A `<p>` with text follows the `<h1>`.
- `geo/hero-length` (info): The first sentence of the paragraph after the `<h1>` is 30 words or fewer, so AI answers can quote it.

### convert

Convert checks look at what makes a visitor trust the page and act: working links, a way to reach a human, a short sign-up form, a visible price. Each finding carries `engine` (what measured it), `confidence` (`high`, `medium`, `low`), `source` (the study or guide behind the rule) and, when only the site owner can fix it, `needsOwner: true`.

The `convert` score weights checks by confidence: high 3, medium 2, low 1. `info` findings weigh 0.

- `convert/link-text` (warn, high): Links whose whole text is "click here", "learn more", "read more" or "here" (case and spaces ignored) and that have no `aria-label` or `aria-labelledby`.
- `convert/input-type` (warn, high): Visible inputs with no type or `type="text"` whose name, id, autocomplete, placeholder, `aria-label` or label says email or phone, so phones show the letter keyboard.
- `convert/form-autocomplete` (info, medium): Visible email, name, phone, address and one-time code fields with no `autocomplete` value (a deliberate `autocomplete="off"`, on the field or the form, passes).
- `convert/submit-disabled` (info, medium): Submit buttons in visible forms that are disabled (`disabled` or `aria-disabled="true"`) in the page HTML, before the visitor typed anything.
- `convert/generic-filler` (warn, medium): Generic filler in the visible text (forms ignored):
- `convert/placeholder-text` (error, high): Leftovers in the visible text and links:
- `convert/contact-visible` (warn, high): The header, footer or nav has a `mailto:` link, or a link whose href or text mentions contact, support or help.
- `convert/form-fields` (warn or error, high): The visible fields (inputs other than hidden and buttons, selects, textareas) of sign-up and lead forms: forms with an email field or a submit label like sign up, join, waitlist, subscribe, get started or request.
- `convert/price-visible` (warn, medium): A currency amount on the page ($, € or £ before a number, or a number with USD, EUR or GBP), or a same-origin link whose text or href says pricing, plans or price.
- `convert/hero-in-first-screen` (error, high): Source: NN/g scrolling and attention.
- `convert/mobile-fold` (error or warn, high): Source: NN/g Fold Manifesto; NN/g scrolling and attention.
- `convert/primary-cta-one` (error or warn): Source: NN/g: keep major CTAs above the fold; Wiebe: remove other calls to action.
- `convert/cta-salient` (error or warn): Source: WCAG 1.4.3 and 1.4.11; Kadavy via CXL (secondary): contrast matters, not hue.
- `convert/cta-tap-size` (warn, high): Source: WCAG 2.5.5 and 2.5.8 target size.
- `convert/arrival-popup` (error, high): Source: Google Search Central intrusive interstitials; NN/g popups.
- `convert/cta-works` (error, high): Source: Stanford credibility: "Avoid errors of all types".
- `convert/hero-lcp` (warn or info, high): Source: web.dev Core Web Vitals: LCP within 2.5 s.

### hero

Hero checks look at the first screen: does the header say what is sold, does the subheader say how it works, does the CTA continue the promise, does the visual show the product. Structure checks look at the page as a whole: navbar, social proof near the top, 3 to 6 feature blocks, a repeated CTA, a footer. The ids are `hero/*` and `structure/*`. Severity is `warn` or `info` only; aliased convert rules keep their own severity.

- `hero/in-first-screen` (error) Reports `convert/hero-in-first-screen`, `convert/mobile-fold`.
- `hero/headline-what` (judge, warn, medium): The header alone says exactly what is sold, and it is not a slogan.
- `hero/vague-verbs` (static, warn or info, medium): Vague slogan words in the header and subheader ("supercharge", "empower", "revolutionize", "improve your workflow" warn; "unlock", "seamless", "next-gen", "cutting-edge", "leverage", "robust", "world-class", "game-changing", "transform your", "elevate your" are info).
- `hero/subheader-length` (static and render, warn, medium): A subheader exists under the header, with 1 or 2 sentences and 45 words or fewer.
- `hero/subheader-how` (judge, warn, medium): The subheader says how the product works, or names a fact that makes the header believable.
- `hero/hook` (judge, info, low): The header and subheader carry a specific claim, or answer the main buying objection.
- `hero/plain-words` (static and judge, warn, medium): The Flesch-Kincaid grade of the header and subheader (brand words and code tokens removed) is 8 or lower, measured with 15 words or more.
- `hero/visual-shows-product` (render and judge, warn, high for render, medium for judge): At 1440x900 a visual covers 20% of the first screen or more (on a phone, info when it does not show within 2 screens).
- `hero/slop-patterns` (judge, warn, medium): A reader looks at the screenshots for the patterns that make a generated page look cheap: eyebrow labels, muddy or unrelated colors, a flat hero, long lines and added text boxes.
- `hero/one-primary-cta` (warn) Reports `convert/primary-cta-one`.
- `hero/cta-continues-promise` (static and judge, warn, medium): The primary CTA label is not generic ("Submit", "Sign up", "Learn more", "Request a demo" warn; "Get started" is info).
- `hero/cta-unmissable` (warn) Reports `convert/cta-salient`, `convert/cta-tap-size`.
- `hero/five-second-test` (judge, warn, medium): A stranger who sees only the first screen knows what this is, what they get, and what to click.

### structure

- `structure/navbar` (static, info, medium): A header, nav or banner with a link to the home page, a logo or the product name.
- `structure/hero` (warn)
- `structure/social-proof-near-top` (static, render and judge, warn, medium): Proof candidates (a logo row with a cue like "trusted by", a testimonial with a name, a count of 100 or more, a rating, a GitHub stars badge).
- `structure/cta-incentive` (render and judge, warn, medium): A short line (2 to 25 words) within 120 px below or beside the primary CTA (searched in the CTA's form and up to 2 ancestors of it, else in its section), or a label that says free, trial, no card, open source, minutes or one-time.
- `structure/features-count` (static, warn below 3, info above 6, medium): The feature blocks after the hero: a group of 2 or more siblings with the same tag and classes, each with a heading and a paragraph, or a run of sections with one h2 and a paragraph each.
- `structure/feature-headers` (static and judge, warn, medium): Feature headings with vague words, generic labels ("Features", "Why us", "Benefits") or more than 10 words.
- `structure/feature-image` (static, render and judge, warn, medium): More than half of the feature blocks have no image, video, canvas, svg (64 px or more), iframe or HTML visual.
- `structure/feature-paragraph` (static and judge, info, low): A feature block with no paragraph, or one over 80 words.
- `structure/cta-repeat` (render, warn, medium): On a page taller than 3 screens at 1440x900, a primary-style CTA in the last 2 screens, or pinned in view at the end.
- `structure/footer` (static, info, medium): A footer with 1 or more links.
- `structure/footer-contact` (warn) Reports `convert/contact-visible`.
- `structure/order` (static, info, low): The order hero, proof, features, repeated CTA, footer.
- `structure/keep-stronger-section` (judge, warn, medium): After a restyle, the judge compares each main section in `.sugikit/before-shots/` with the same section in the new screenshots and says which is stronger, with an exact reason.
- `structure/keep-features-and-motion` (judge, warn, medium): The judge lists every interactive feature and animation of the before page and confirms each is present after the restyle.

### taste

sugikit check: the sugikit.taste.json for the taste/* checks (default: <project>/sugikit.taste.json when it exists). Taste findings are warnings and tips; they never change the exit code or green

- `taste/display-font` (warn): Fix: Set the hero headline in tokens.font.display from sugikit.taste.json: load the face and point the display font variable at it (--font-display in :root, or --font-display in the Tailwind v4 @theme block), then use that variable on the h1.
- `taste/body-font` (info): Fix: Set body text in tokens.font.body: point the body font variable at it (--font-body in :root or --font-sans in the Tailwind v4 @theme block) and use it on body.
- `taste/hero-size` (info): Fix: Set the hero headline size to tokens.type.hero (a clamp() value): one --text-hero variable in :root or the Tailwind v4 @theme block (--text-hero), used by the h1.
- `taste/hero-weight` (info): Fix: Set the hero headline weight to tokens.type.heroWeight (within 100): a --font-weight-hero variable in :root or @theme, used by the h1.
- `taste/hero-lines` (info): Fix: Keep the hero headline within tokens.type.heroMaxLines lines at 1440 px wide and never leave one word alone on its last line: set text-wrap: balance (tokens.type.heroWrap) on the h1, then adjust its max-width.
- `taste/palette` (warn): Fix: Set the page colors from tokens.color (for tokens.scheme both: tokens.colorLight in light mode and tokens.colorDark in dark mode): --color-bg, --color-text and --color-accent (with --color-accent-ink for the CTA label) in :root or the Tailwind v4 @theme block, then use them on body, the hero text and the primary CTA. accentMode is a label, not a color: emit no variable for it.
- `taste/corners` (info): Fix: Set the button radius to tokens.radius.control (--radius-control in :root, or --radius-control in the Tailwind v4 @theme block) and use it on the primary CTA and the other controls.
- `taste/hero-layout` (warn): Fix: Keep the page's own hero layout. layout.hero is a hint only for a page without its own hero layout: then lay out the hero as it says, centered (text and CTA centered), left (text starts in the left quarter, left-aligned) or split (text left, the hero visual right).
- `taste/hero-visual` (info): Fix: Keep every visual the page had in its hero. layout.heroVisual is a hint only for a page without its own hero visual: then show the product (a real screenshot), an illustration, a photo or an abstract visual in the first screen, or no media for none; layout.visualRecipe says how to build it (product-ui: the page's real product UI or screenshot).
- `taste/density` (info): Fix: Match the density the taste names: airy (fewer elements and more space in the first screen, tokens.space.section and --spacing values up) or dense (more content up top).
- `taste/motion` (info): Fix: Keep the page's own animations as they are (hero text effects, a live canvas or 3D hero, marquee loops): the motion level only governs the motion the restyle adds, and an animation the page ran before the changes (before.json) is never flagged.
- `taste/strong-first-screen` (warn): Fix: Keep one element that dominates the first screen and carries the brand: the hero headline at tokens.type.hero (2.5x the body text size or more, covering 6% of the 1440x900 screen), or a real product visual that covers 25%.
- `taste/color-roles` (warn): Fix: Use only the direction's colors: give each listed text, surface, border and gradient a color from tokens.color by its job (background and text, button and its label, surface and its text, border), or a mix of two of them.
- `taste/file`

### pagespeed

`npx sugikit psi <url>` (or `sugikit check <url> --psi`) runs PageSpeed Insights (Lighthouse on Google's servers) for mobile and desktop, keeps the best score of 3 runs, and stores `scores.pagespeed` with performance, accessibility, best practices and SEO per strategy. It needs `PSI_API_KEY` and a public URL. Localhost does not work.

Each failing Lighthouse audit (score under 0.9) becomes a finding with id `pagespeed/<audit-id>`, for example `pagespeed/render-blocking-resources`. Severity is `error` under 0.5, else `warn`. `fix.summary` holds Lighthouse's own text and, for common audits, a framework hint. Look up the audit id below.

- `pagespeed/local-url` (info): The URL is localhost or a private address.
- `pagespeed/no-key` (info): `PSI_API_KEY` is not set.
- `pagespeed/api-error` (warn): PSI returned no result for mobile or desktop.

### site

`--site` runs the page checks on the start URL, then crawls the site and checks it as a whole. The crawl starts at the start URL, follows same-origin `<a href>` links and same-origin canonical targets breadth first, and only then crawls the URLs found only in the sitemaps (robots.txt `Sitemap:` lines, else `/sitemap.xml`; sitemap index entries are read only on the same site). It follows redirects one hop at a time, and checks an off-site redirect target with HEAD only (no further hops). It stops at `--max-pages` (default 200, at most 1000) or when the `--timeout` budget (default 600 seconds) runs out. On a local run (localhost and similar) the production origin named by the start page canonical, robots.txt or the sitemap is treated as the same site.

- `site/4xx` (error): Crawled internal URLs that answer 4xx (401, 403 and 429 do not: they are in `site/unchecked`). Ahrefs Error: 4XX page, 404 page, 403 page.
- `site/5xx` (error): Crawled internal URLs that answer 5xx (503 does not: it is in `site/unchecked`). Ahrefs Error: 5XX page, 500 page.
- `site/timeout` (error): Crawled internal URLs that gave no answer within 10 seconds, or no answer at all. Ahrefs Error: Timed out.
- `site/broken-links` (error): Crawled HTML pages with an internal link to a URL that answers 4xx or 5xx (directly or after redirects). Ahrefs Error: Page has links to broken page.
- `site/redirect-loop` (error): Internal URLs whose redirects come back to a URL already in the chain. Ahrefs Error: Redirect loop.
- `site/redirect-chain` (error): Internal URLs that redirect through more than 5 hops. Ahrefs Error: Redirect chain too long.
- `site/broken-redirect` (error): Internal URLs that redirect to a URL that answers 4xx, 5xx or nothing. Ahrefs Error: Broken redirect.
- `site/redirects` (warn): Internal URLs that redirect. Ahrefs Warning: 3XX redirect, 302 redirect, HTTPS to HTTP redirect.
- `site/redirects-notice` (info): Internal URLs that redirect from http to https, and crawled URLs whose redirects take 2 to 5 hops (more is `site/redirect-chain`, a loop is `site/redirect-loop`). Ahrefs Notice: HTTP to HTTPS redirect, Redirect chain.
- `site/http-links` (error): Pages of an https site (or a local run of an https production site) that link to the same host over `http://`. Ahrefs Error: HTTPS page has internal links to HTTP.
- `site/orphans` (error): Sitemap URLs that answer 2xx and that no crawled page links to (the start URL is never an orphan). Ahrefs Error: Orphan page (has no incoming internal links).
- `site/canonical-no-links` (error): URLs named as canonical by some crawled page that no crawled page links to. Ahrefs Error: Canonical URL has no incoming internal links.
- `site/canonical-target` (error): Crawled HTML pages whose canonical names another URL that answers 4xx or 5xx, or redirects. Ahrefs Error: Canonical points to 4XX, Canonical points to 5XX, Canonical points to redirect.
- `site/canonical-non-canonical` (warn): Crawled pages whose canonical target names yet another URL as its canonical (a canonical chain). Ahrefs Warning: Non-canonical page specified as canonical one.
- `site/canonical-protocol` (info): An https page with an http canonical, or an http page with an https canonical. Ahrefs Notice: Canonical from HTTPS to HTTP, Canonical from HTTP to HTTPS.
- `site/double-slash` (error): Crawled internal URLs with `//` in the path (`/blog//post`); `sources` lists the pages that link to them. Ahrefs Error: Double slash in URL.
- `site/html-size` (error): Crawled HTML pages with more than 2 MB of HTML, counted uncompressed (Googlebot reads only the first 2 MB for Google Search). Ahrefs Error: Page size exceeds Googlebot's 2 MB crawl limit.
- `site/html-large` (warn): Crawled HTML pages with more than 1 MB and at most 2 MB of uncompressed HTML. Ahrefs Warning: HTML file size too large.
- `site/no-outgoing-links` (error): Indexable crawled HTML pages (no noindex, no canonical to another URL) with no `<a href>` to any other URL, on this site or another. Ahrefs Error: Page has no outgoing links.
- `site/duplicates` (error): Indexable 2xx HTML pages with the same visible text and no canonical between them (one page names the other as canonical). Ahrefs Error: Duplicate pages without canonical.
- `site/sitemap-urls` (error): Sitemap URLs that redirect, answer 4xx or 5xx, time out, are noindex, or name another URL as canonical. Ahrefs Error: 3XX redirect in sitemap, 4XX page in sitemap, 5XX page in sitemap, Page from sitemap timed out, Noindex page in sitemap, Non-canonical page in sitemap.
- `site/not-in-sitemap` (info): Crawled 2xx HTML pages that are indexable (no noindex, no canonical to another URL) and that no sitemap lists. Ahrefs Notice: Indexable page not in sitemap.
- `site/title-missing` (error): Crawled HTML pages with no `<title>` or an empty one. Ahrefs Error: Title tag missing or empty.
- `site/title-multiple` (error): Crawled HTML pages with more than one `<title>`. Ahrefs Error: Multiple title tags.
- `site/title-duplicate` (warn): Indexable, canonical pages that share their title with another page. Ahrefs Warning: Title tag duplicate (pages with the same title).
- `site/description-multiple` (error): Crawled HTML pages with more than one meta description. Ahrefs Error: Multiple meta description tags.
- `site/html-lang` (error): Crawled HTML pages whose `<html lang>` is not a valid BCP 47 tag (`en_US`, `english`). Ahrefs Error: HTML lang attribute invalid.
- `site/html-lang-missing` (warn): Pages with no `<html lang>` (an invalid one is `site/html-lang`). Ahrefs Warning: HTML lang attribute missing.
- `site/h1` (warn): Pages with no `<h1>` or an empty one. Ahrefs Warning: H1 tag missing or empty.
- `site/h1-multiple` (info): Pages with more than one `<h1>`. Ahrefs Notice: Multiple H1 tags.
- `site/description` (warn): Pages with no meta description, or one outside 70 to 160 characters. Ahrefs Warning: Meta description tag missing or empty, Meta description too short, Meta description too long.
- `site/title-length` (warn): Pages whose title is outside 30 to 60 characters (a missing title is `site/title-missing`). Ahrefs Warning: Title too short, Title too long.
- `site/h1-not-indexable` (info): The same as `site/h1` on pages search engines do not index (noindex, or a canonical to another URL). Ahrefs Notice: H1 tag missing or empty.
- `site/description-length-not-indexable` (info): Pages search engines do not index (noindex, or a canonical to another URL) with a meta description outside 70 to 160 characters. Ahrefs Notice: Meta description too short, Meta description too long.
- `site/title-length-not-indexable` (info): The same as `site/title-length` on pages search engines do not index (noindex, or a canonical to another URL). Ahrefs Notice: Title too short, Title too long.
- `site/img-alt` (warn): Pages with `<img>` tags that have no `alt` attribute. Ahrefs Warning: Missing alt text.
- `site/noindex` (warn): Pages that block indexing (robots meta or `X-Robots-Tag`). Ahrefs Warning: Noindex page.
- `site/social-tags` (warn): Pages whose Open Graph set is incomplete (`og:title`, `og:description`, `og:type`, `og:url`, absolute `og:image`), whose `og:url` differs from the canonical URL, or whose X card is incomplete. Ahrefs Warning: Open Graph tags incomplete, Open Graph URL not matching canonical, X (Twitter) card incomplete.
- `site/social-tags-missing` (info): Pages with no Open Graph tags at all, or no `twitter:card`. Ahrefs Notice: Open Graph tags missing, X (Twitter) card missing.
- `site/hreflang` (error): The `seo/hreflang` checks on every crawled page that has hreflang, with the alternates' status, canonical and hreflang taken from the crawl (no extra requests). Ahrefs Error: Hreflang annotation invalid, Missing reciprocal hreflang (no return-tag), Hreflang to broken page, Hreflang to redirect, Hreflang to non-canonical, Hreflang and HTML lang mismatch.
- `site/broken-resources` (error): Images and scripts that answer 4xx or 5xx on every crawled HTML page (same-origin only). Ahrefs Error: Page has broken image, Page has broken JavaScript, Image broken, JavaScript broken.
- `site/image-weight` (error): Crawled HTML pages that load an image over 100 KB (102,400 bytes). Ahrefs Error: Image file size too large.
- `site/robots-syntax` (error): The `seo/robots-syntax` checks on the robots.txt the crawl read (after its redirects): lines with no colon, a misspelled key (within 2 letters of User-agent, Allow, Disallow, Sitemap or Crawl-delay; other keys are ignored, as RFC 9309 says), a rule before any User-agent line, an empty User-agent, a path that does not start with `/` or `*`, a Crawl-delay that is not a number, a Sitemap that is not absolute. Ahrefs Error: Robots.txt has syntax error.
- `site/robots-redirects` (error): Robots.txt redirects more than 5 times or in a loop (the crawl follows it with redirect "manual", one hop at a time). Ahrefs Error: Robots.txt has too many redirects or redirect loop.
- `site/sitemap-syntax` (error): Each sitemap file the crawl read (200, not HTML) is well-formed XML and every `<loc>` is an absolute http(s) URL. Ahrefs Error: Sitemap has syntax error.
- `site/sitemap-scope` (warn): Sitemap files that list absolute URLs of another site: another origin, a CDN host, http on an https site, www on an apex site.
- `site/sitemap-limits` (error): Each sitemap file the crawl read has at most 50,000 entries and 50 MB uncompressed. Ahrefs Error: Sitemap larger 50MB, Sitemap with over 50K URLs.
- `site/link-redirects` (warn): Indexable pages (no noindex, no canonical to another URL) with internal links to URLs that redirect. Ahrefs Warning: Page has links to redirect.
- `site/link-redirects-not-indexable` (info): The same links on pages that are noindex or name another URL as canonical. Ahrefs Notice: Page has links to redirect.
- `site/unchecked` (info): Crawled URLs that answered 401, 403, 429 or 503 (a login, bot protection or a rate limit).
- `site/start-redirect` (error): The start URL redirects to another site (not only its www, apex or https twin).
- `site/not-covered` (info): Nothing. Ahrefs Not covered: 4XX page receives organic traffic, 3XX page receives organic traffic, Noindex page receives organic traffic, Non-canonical page receives organic traffic.

## Scores

- polish, seo, geo (by severity): error 3, warn 1, info 0
- convert, hero, structure, taste (by confidence): high 3, medium 2, low 1, info 0

score = round(100 * passed weight / total weight); 100 when no check applies

GREEN: no error findings (page and site) and polish, seo, geo and convert all at 90 or more

Hero, structure and taste: owner checks, shown on their own line, never decide green. PageSpeed does not decide green.

`site.health` estimates the Ahrefs Site Audit Health Score: crawled internal URLs with no Error-level site finding, divided by all crawled internal URLs, times 100. Only Error-level issues count; warnings and notices do not. One URL with five errors costs the same as one URL with one error, so 100 needs every crawled URL clean. A robots.txt or sitemap file with an Error-level finding (`site/robots-syntax`, `site/robots-redirects`, `site/sitemap-syntax`, `site/sitemap-limits`) counts as one more crawled URL with an error; clean files are not counted. It is an estimate: Ahrefs confirms on its next crawl, and a project can change which issues count as errors.

## Report

### Files

- `.sugikit/report.json`: sugikit check
- `.sugikit/report-shots/`: sugikit check
- `.sugikit/before.json`: sugikit check --out .sugikit/before.json
- `.sugikit/psi.json`: sugikit psi
- `.sugikit/report.html`: sugikit report
- `sugikit.taste.json`: sugikit taste apply

### Fields

- report.json: version, target, framework, startedAt, finishedAt, scores, pageType, findings, states, screenshots, site, sets, judge, firstScreen, green, greenReasons
- scores: polish, seo, geo, convert, pagespeed, siteHealth, hero, structure, taste
- findings[]: id, category, rule, severity, message, selector, url, evidence, fix, engine, confidence, source, needsOwner
- site: start, health, healthNa, healthNote, pagesCrawled, htmlPages, errorPages, maxPages, stopped, startRedirect, notCrawled, sitemapUrls, sitemapFiles, blockedByRobots, aliases, notes, findings, passed, pages
- site.findings[]: id, severity, ahrefsLevel, ahrefs, message, count, urls, sources, details, fix
- judge answers: id, pass, reason, quote, item

### Values

- framework: next, tanstack-start, astro, unknown
- category: polish, seo, geo, pagespeed, convert, hero, structure, taste
- severity: error, warn, info
- engine: static, render, psi, judge
- confidence: high, medium, low
- pageType: product, launch, waitlist

## Keys and calls

### Environment

- `PSI_API_KEY`: PageSpeed Insights key for --psi and sugikit psi
- `SUGIKIT_API_URL`: Account server (default https://sugikit.com)
- `SUGIKIT_NO_OPEN`: 1: sugikit login does not open the browser
- `XDG_CONFIG_HOME`: Folder for sugikit/auth.json and sugikit/license.json (default ~/.config; Windows: APPDATA)
- `XDG_CACHE_HOME`: Folder for the capture run and its screenshots, sugikit/captures/ (default ~/.cache; Windows: LOCALAPPDATA)

### Calls

- https://sugikit.com/api/auth/device/code
- https://sugikit.com/api/auth/device/token
- https://sugikit.com/api/auth/revoke
- https://sugikit.com/api/license
- https://sugikit.com/api/captures/iterations
- https://sugikit.com/api/captures/feedback
- https://www.googleapis.com/pagespeedonline/v5/runPagespeed

## Skill

### The fix loop

1. Find the URL and the framework
2. Save a baseline (first run only)
3. Read the report and fix
3b. Judge the hero
3c. Judge the result
4. Measure again
4b. Check the whole site
5. Check the production build
6. PageSpeed
7. Summary
8. Feedback

Stop when the summary prints `GREEN` (report `green: true`: no `error` findings and polish, seo, geo and convert at 90 or higher; hero and structure are owner checks and do not decide it), or after 5 rounds. Five rounds is the limit, even if findings remain.

### Never game the check

- Do not hide elements from the checker or from crawlers.
- Do not sniff the user agent or serve different content to bots.
- Do not add fake or filler content to pass a length or text rule.
- Do not disable a rule, edit Sugikit, or edit the report.

### Conversion policy

- Never invent proof, testimonials, user counts, logos, ratings, prices, guarantees, deadlines or urgency. No countdowns, no "only N left", no made up quotes or contact details. If a fact is not in the repo (README, pricing config, checkout setup, package.json, llms.txt), ask the owner.
- Keep the buyer's style. Fix conversion inside the existing palette, type and voice. Make a button stand out with contrast and space within the palette, never with a new loud color.
- Ask the owner for missing facts in one batched message (see Questions). Do not ask one at a time.
- Findings with `needsOwner: true` go to the "your turn" list in the final summary. Do not retry them.
- Copy edits (headlines, button labels, link text) are suggestions only. Apply them only when the owner allowed copy changes. Else list the suggested text in the summary.
- One exception: shortening a long hero line or section intro (`polish/long-description`) from its own words. In taste mode apply it, even in a looks-only restyle, and list the old and new text for the owner. Outside taste mode it stays a suggestion unless the owner allowed copy changes.

## Taste

- `sugikit taste apply <code> --direction A|B|C [--dir <project>] [--force]`: Write sugikit.taste.json from a taste code copied on sugikit.com/taste
- `sugikit taste show [--dir <project>] [--json]`: Print the taste sentence, the direction and its tokens
- `sugikit taste verify-file [--dir <project>]`: Re-derive sugikit.taste.json from its code and direction and list hand edits outside locks

### Taste mode

- If the owner gave you a taste code, run `npx sugikit taste apply <code> --direction A|B|C` first. It writes the file.
- If `sugikit.taste.json` exists, you are in taste mode. Read `references/taste.md` before step 3 and apply the direction: its fonts, colors, type, spacing, radius, motion and hero layout. This replaces the "no new palette, no new fonts, no layout rewrites" rule in Taste rules.
- All other rules stay: keep the owner's copy and sections, the Conversion policy, and contrast and a11y over taste.
- If the file does not exist, Taste rules apply as written.
- Next round: after you apply a direction, end the summary by suggesting one more round, even when the owner is happy with the result. The owner swipes a few more pages on sugikit.com, copies the new prompt or taste code, and you apply it again, so the taste gets sharper each time.

1. Read the file
2. Apply the tokens
3. Hero layout
4. Color
5. Theme (light, dark, system)
6. Sections and copy
7. Check loop