--- name: website-launch-check description: >- Launch readiness check for a site built with this toolkit: runs the site's own build and tests first, then checks only what they cannot (legal pages, E-E-A-T and local signals, content the site's settings call for, testimonial consent, what only a deployed site shows, the Cloudflare zone settings the owner reads in the dashboard), asks only where the owner's intent decides, and writes a dated report with a verdict to docs/launch/ as Markdown plus a self-contained HTML page. When the site replaces an older one, also a current-vs-new comparison with a redirect map for every old address. Runs three times in new-website (baseline after the scaffold, the verdict before launch, the live re-check once launch day's work is done) and on its own. Trigger phrases: "launch check", "ready to launch", "what's missing before launch", "pre-launch", "go live", "launch audit", "relaunch", "compare the old and the new site", "post-launch gap analysis". --- # Website launch check A conversation, not a static report: settings first, then the site's own tests, then the checks the tests cannot do, a question only where the owner's intent decides, an offer to fix each gap, and a dated report. The skill's text is English; everything the owner sees is in the owner's language (§1). When it runs: | Run | When | Report | |---|---|---| | **baseline** | `new-website` step 5a: after the scaffold is green (and after the brand-kit intake, where there is one) | `launch-check--baseline.md`, verdict "Baseline, not a launch verdict" | | **pre-launch** | `new-website` step 10c: after steps 7 to 10b, before §4's deploy | `launch-check--prelaunch.md`, verdict 🟢 / 🟡 / 🔴; §4 starts after 🟢, or a 🟡 the owner accepts | | **live** | `new-website` step 12a: once launch day's work is done (the production build Active on the live domain, the domain attached); not optional, since the zone read (§3) runs only here for a new domain | `launch-check--live.md` | It also runs on its own, on any site built with this toolkit, whenever the owner asks. ## 0. Settings: `docs/launch/config.json` Read `docs/launch/config.json`. If the site has an older `.launch-check-config.json` in its root, move it there first: `git mv` when git tracks it, `mv` when not, and say so. If both exist, move nothing and ask which to keep. Make the folder first (`mkdir -p docs/launch`). Older reports in `docs/` stay where they are. The old file's keys `storybrand` and `contact_forms` become `story_layer` and `contact_form`; fill a missing key as below. A moved file counts as saved settings (the last paragraph of this section). Without a settings file, fill one from what the site already says, and ask only what is still open: | Setting | From | |---|---| | `business_in_germany` (where the business is based decides the legal checks, not the site's language) | ask; the interview does not ask it | | `site_languages` | `SITE.locale` in `src/config.ts`, the README's interview answers (Q4) | | `story_layer` | the README's record of the §2a story offer, `STORY.md`; never ask again | | `blog`, `contact_form` | the README's interview answers (Q1, Q2), the pages | | `testimonials` | `src/data/testimonials.ts` (from `website-testimonials`); ask if the site has none | | `analytics` | `USE_ANALYTICS` and the README (Q5) | | `report_language` | the owner's language (§1) | | `replaces` | ask once: does this site replace one that is live now? Its address, or `null` | ```json { "business_in_germany": true, "site_languages": ["de"], "story_layer": false, "blog": false, "testimonials": true, "contact_form": true, "analytics": "plausible", "report_language": "de", "replaces": "https://www.example.com" } ``` On later runs, name the saved settings in one line and ask once whether any changed. ## 1. Language Questions, findings, reports, todos and the HTML are in the language the owner writes in; `report_language` is the default on a re-run, and the owner's message overrides it. A German owner gets everything in German, headings included. This file stays English. ## 2. The site's tests first Run, in the site's folder, `npm run build`, then the whole suite with `npx playwright test --forbid-only`, keeping the whole output. Use it, not `npm test`, so a narrowed `test` script cannot hide a failure, and `--forbid-only` so a `test.only` left in a spec fails the run instead of narrowing it; if `package.json`'s `test` script is anything but `playwright test`, that is a 🟡 finding. Then follow `references/test-coverage.md`: - A failing test is a 🔴 blocker that names the test and quotes its message. No look by eye stands in for a test. - Every `⚠ placeholders:` line is a blocker (a page still listed in `UNFILLED_UNTIL_LAUNCH`, or a `[MISSING: …]` placeholder, which only warns outside CI). `⚠ positioning coverage:` is a 🟡 finding. A skipped test is a 🟡 finding. - A category the mapping gives to a test is left to that test, **per page**, only where the output shows that page's test passed. The report lists those under "Left to the site's tests, as they stand in this site, for the pages in `PAGES`", and the check does not look at them again on those pages. Every other page, and every built page that `PAGES` lacks, is the check's. ## 3. What the launch check checks Only what the tests cannot. Skip what the settings rule out, and list it under "Skipped by the settings". **Always:** - Titles and descriptions: no two pages share one, and each says what its page is (🟡). - What no test reads (🔴, since a visitor would read it): the starter's example values (the name `Example`, `hello@example.com`) on the home page and the legal pages (the imprint where the site has one, the privacy or Datenschutz page), `public/llms.txt`'s own `[bracket]` slots, the 404 page's text. - Console errors on the local preview (`npm run preview`), read with the site's own Playwright (a short script that opens each built page and collects console errors). Run it after the tests, and stop it when done: the tests start a preview of their own, and Astro refuses it while another one runs. Errors that come from the `_headers` rules, HTTPS and the 404 status show only on a deployed site: at the baseline and pre-launch runs they read "not checked yet: not deployed", and the live run checks them. - The legal pages' answer (`README.md` in the folder that holds `package.json`): quote, in the report's Imprint / privacy row, every line in one of the three forms `AGENTS.md` §5 gives (`legal pages: reviewed by a lawyer ()`, `legal pages: own texts ()`, `legal pages: published as drafted (owner's decision, )`), and ask the owner about them at every pre-launch run, as below. - No such line: a blocker (🔴): the owner's answer is not recorded; `AGENTS.md` §5 asks for it. Do not ask here. Claim no test failure: the site's tests pass a legal page still listed in `UNFILLED_UNTIL_LAUNCH` whose draft notice shows. - Which pages each line covers: the README names none. With one line, it covers every legal page. With more than one, ask the owner at each pre-launch run which legal pages each line was recorded for. A page's answer is the newest line that covers it (of two with one date, the one further down the README); quote older lines as history, with no question. - A page whose answer is `reviewed by a lawyer` or `own texts`: at each pre-launch run, quote that line and ask the owner whether it is still true for the pages it is the answer for, one question per line. "Yes" goes in the report as "owner confirmed, ". "No" or "don't know" is a blocker that points at `AGENTS.md` §5: record a true answer, then launch. - A page whose answer is `published as drafted`: no question. Report it as 🟡, one per such line, naming the pages it is the answer for and leaving out any the date check below blocks, and none for a line left with no pages: ": the kit's drafts, published on your decision of ; a lawyer's review is still open to you." - A legal page no line covers, or added after its line: at every pre-launch run, for each legal page in `tests/_helpers.ts` `PAGES` (last path segment `privacy`, `datenschutz`, `legal-notice` or `impressum`), run `git log --diff-filter=A --format=%cs -- `, one file per call, and take the first line: the date it last entered git under that name. Not `--follow`, which dates a renamed file (the `/datenschutz` or `/impressum` swap) by the file it came from. A page rewritten under the same file name keeps its first date, so this check cannot see the rewrite. A page that no line covers, or whose date is after its answer's date, is a blocker naming that page: `AGENTS.md` §5 asks again for it and adds a dated line. The answer's own day counts as covered. No date (no output: the file is not committed; or an error: not a git repo) is a blocker of its own: commit the page, then run the check again. This holds whatever the answer, `published as drafted` included. Claim no test failure: the tests compare no dates. **Business in Germany:** - **Legal Notice or Impressum** per § 5 DDG (the Digitale-Dienste-Gesetz replaced the TMG in May 2024). The kit ships the English page at `/legal-notice`; the German one at `/impressum` replaces it on a German-language site, and an owner based in Germany may route both. Either address counts as the imprint. It carries: name, address, a fast electronic contact, register entry, VAT ID if any; for a regulated profession (architects, lawyers, doctors, and a trade that must register with a chamber such as the Handwerkskammer) also the chamber, the professional title and the state that granted it. - **Datenschutz:** hosting, analytics, forms, any embeds, the contact for data questions. Whether the text fits what the site really does; the slots and the analytics settings are `new-website` §4's own item. - **Consent banner:** needed only if the site stores or reads non-essential data on the visitor's device (§ 25 TDDDG, formerly TTDSG), such as Google Analytics, YouTube or Google Maps embeds. Analytics that store and read nothing on the device need no § 25 consent (the privacy page still names their legal basis, which is the owner's to settle), but check it on the deployed site (the browser's storage panel after a page view) rather than assume it from the product's name. If anything is stored or read, or you cannot tell, report the banner question as open for the owner, not as passed. A banner the site does not need is itself a finding. **Business elsewhere:** a privacy policy (GDPR-ready where the site serves people in the EU), and terms where the site sells or takes bookings. **Story layer:** the home page against `STORY.md` (from `website-story`), not against a generic list. **Blog:** an index page, at least one post (or drafts ready), a feed, a named author. **Testimonials** (`src/data/testimonials.ts`): real names and roles where the owner chose names, and **consent on file for each named person**: at each pre-launch run, ask the owner, quote by quote. "Yes" goes in the report as "owner confirmed consent on file, ". "No" or "don't know" for a quote is a blocker that points at `website-testimonials`' consent rule (keep it off the live site until consent lands). Keep no consent record and no contact details. **Contact form:** it shows its confirmation; a privacy note beside it links the privacy page; spam protection where it sends to a server. Ask before sending a test message: on a live site it reaches a real inbox. **E-E-A-T and local signals** (an assessment, not a measurement): rate Experience, Expertise, Authority, Trust and Local from what the site shows, 1 to 5 with one line why. **Authority needs outside data** (links from other sites, press, awards, a Business Profile): without it, the row reads "not checked: no outside data", with no stars, and the overall line names the rows it averaged. If `analytics/eeat.md` exists (`search-console-insights`), read its newest section and say what changed. Local: Google Business Profile, the same name, address and phone everywhere, `LocalBusiness` markup, the city or region in titles and headings, `hreflang` where `site_languages` has several, a map or directions link. `website-seo-geo`'s "GEO" is generative engine optimization, not local SEO. **Cloudflare zone settings** (the pre-launch run when the domain is already on Cloudflare; the live run always; never the baseline): the owner reads five places in the Cloudflare dashboard, or shows a screenshot. The assistant never signs in and never asks for a token. The places, and what each should show, are in `docs/CLOUDFLARE-CHECKLIST.md` in the Croftweaver folder, section 5, "Read in the dashboard": point the owner there rather than copy the paths, which Cloudflare moves. The report records each place as seen, dated. - Pre-launch, domain not on Cloudflare yet: under "Not checked yet", "Cloudflare zone settings: deferred to the live re-check: the domain is not on Cloudflare yet". It does not count in the verdict. - A setting that differs from the checklist (Bot Fight Mode, AI Labyrinth, the AI policies with Personal Agents, Bot Preference Sync, a Block Crawler switch): ask whether it was the owner's choice (§4). Yes: "owner's choice, ", with the checklist's trade-off in one line, quoted and credited to the checklist. No or don't know: 🔴, with the checklist item that sets it right. - Security rules: every rule on the page, in any section, listed with its name, its action, what it matches and "this domain" or "all websites in account", and what it does in plain words, from what the owner reads out. - It blocks or challenges, and nobody can say what it does or whose it is, or it could stop visitors or crawlers the owner wants: 🔴 until the owner keeps, changes or removes it. - Its action is Allow or Skip and nobody can say whose it is: 🟡, until the owner finds out (an account-wide rule may be another site's). - The owner knows it and keeps it: "owner's choice, ". - Cloudflare's own notes (Response rules' "Cloudflare default protection applied", a banner about rules Cloudflare deployed): quoted, no finding. - The setup tokens, live run only (never ask at pre-launch: launch day may still need one): the owner reads both token lists and names every token made for this site's setup and launch day. Active or Expires soon: 🔴, delete it now. Expired: 🟡, delete it. In neither list: fine. The owner cannot tell which they were: 🟡, find out what each token they cannot place is for, and delete it only once it proves to be this site's setup token. Name no other token in the report. If launch day still needs the token, read the rest and list "the setup tokens: deferred: launch day still needs it; read again when it is done" under "Not checked yet", with no finding. - Not read (no dashboard access, or the owner stops): "not checked: ", 🟡, never ✅. ## 4. Questions and findings Ask only where the owner's intent decides; everything else is a finding with an offer to fix. - Ask: "Your settings say testimonials. The site has none. Still planned, or skip?" Intent decides. - Do not ask: a page with two H1s, a missing description, an unfilled imprint line. Those are findings: "Found: … Want me to fix it?" Offer to fix each gap on the spot (draft a description, describe an image, fill an Impressum line from what the owner tells you), and run the tests again after a fix. ## 5. The report Write `docs/launch/launch-check--.md` from `references/report-template.md`, in the owner's language, without the template's comment. Each run starts from the template and this run's findings, never from an earlier report. A second report of the same kind on one day gets `-2` (then `-3`), and so does a second comparison: never overwrite a report. - **Verdict:** 🔴 when any blocker is open; 🟡 when only soon-after items are; 🟢 when nothing is. The baseline's verdict line is "Baseline, not a launch verdict". - Every row says what was seen and where. A row with no evidence reads "not checked" with the reason; never a guessed score or number. Then make the HTML page and keep every page current. The name in braces stands for the folder this SKILL.md is in: Claude Code fills it in; with another assistant, put that folder's path in its place. Run the commands in the site's folder (Claude Code asks before each, since the site's permission list does not include `python3`): ```bash python3 "${CLAUDE_SKILL_DIR}/scripts/report_html.py" docs/launch/.md --lang python3 "${CLAUDE_SKILL_DIR}/scripts/report_html.py" --rebuild docs/launch ``` The first writes `.html` beside the Markdown; the second rebuilds every HTML page in `docs/launch/` that has its Markdown beside it, so a report someone edited since shows the edit (a Markdown with no page yet needs the first command). The Markdown is the source; never edit the HTML by hand. The page opens from disk in any browser and loads nothing. ## 6. Todos (when the owner wants them) Ask: "Want to assign these?" If yes, write `docs/launch/launch-todos-.md` from `references/todos-template.md` (Markdown only: people tick its boxes), with the names or roles the owner gives. Anything assigned to the assistant: offer to do it now. If the project uses a task tracker, offer to create the tickets there too. ## 7. Relaunch: the current site against the new one When the settings name `replaces`, the pre-launch run also writes `docs/launch/launch-comparison-.md` and its HTML, following `references/relaunch.md` and `references/comparison-template.md`: a verdict, before-launch items, speed old and new, E-E-A-T for both, open questions, a redirect map for every old address, a side by side, what the old site gets wrong, what the new one adds and what it does not have yet. ## 8. The live re-check (12a) Only once the new site's production build is Active on the live domain: never request a page of the new site on the live domain before that (`PUBLISHING.md`, "Never request a page on the live domain before its build is Active": a first request caches a 404). Reading the old site's existing addresses before the switch is fine. Then check HTTPS, the 404 status, console errors on the live pages and the consent question, measure the live domain's speed as `website-qa` §2 does (the assistant runs Lighthouse; its fallbacks are PageSpeed Insights, then the owner), and fill the comparison's new-site row. Then read the Cloudflare zone settings (§3). The speed and comparison parts may be skipped; the zone read may not, since for a new domain nothing else reads it. For a WordPress move, point at `wordpress-inspector`'s `scripts/check_move.py --moves` where that skill is installed; a site's bundled skills do not include it, so otherwise say it comes from Croftweaver. **The analytics tag on the live page.** Run, in the site's folder, with the live address: ``` python3 "${CLAUDE_SKILL_DIR}/scripts/check_live_analytics.py" https:// ``` It fetches the home page and compares its analytics tag with `src/config.ts`. A ✗ (exit 1) is a 🔴; quote its lines. Tag missing: the page carries no analytics script tag. Tag present with analytics off: visits may be counted without the privacy page saying so. Only the script's path or id seen: 🔴 until someone looks. Exit 2 is 🟡 "not checked: ". It reads this folder's `src/config.ts`, so that file must be the live one: after `git fetch`, run `git diff --quiet origin/ -- src/config.ts` in the site's folder (`` is the value of `PROD_BRANCH` in that file). If it fails, the row is 🟡 "not checked: `src/config.ts` here differs from the live branch". Baseline and pre-launch runs: "not checked yet: not deployed". **Right after a publish, the live page may still come from a cache, so its answer can be about the build before. Run it again a minute later before acting on a ✗.** Measured 2026-11-09 with `curl -I`: croftweaver.com (Pages) answers `cf-cache-status: DYNAMIC` for `/` and `/?cb=`; guide.croftweaver.com (Workers static assets) answers `HIT` for both, so on Workers a fresh query is no proof of a fresh page. **The favicon on the live host.** The build refuses Astro's default icon, but a site made before the guard, or one whose build ran without it, may still serve it, so read the live files. Download `https:///favicon.svg` and `https:///favicon.ico` into a temp folder, one `curl -fsSL -o` each (`-L`: a host that redirects, such as the bare domain to `www`, is read at the end of the redirect), and read each exit code. Every run of the script below has the temp folder as its working folder, so an old copy writes nothing into the site. Then: - `curl` fails (404 or no answer): 🔴 with the URL. The starter's `Base.astro` links both files, so a missing one is a broken icon on a kit site; the build passes an absent file only because the starter, and the kit's own CI, build before any icon exists. - `node /scripts/build-marker.mjs --check` with no file must exit 2 and print its usage; the current script does. Any other answer means a copy from before 0.36 (it reads no arguments, so it exits 0, or 1 on the missing `dist/`): 🔴 "take `scripts/build-marker.mjs` from whats-new, then run this again". It cannot tell, so it does not pass. - `node /scripts/build-marker.mjs --check ` exits 1: 🔴 with the script's own output. When it says "Astro's default icon", the fix is the message's, then publish again. Google may keep the old icon for some weeks. `--check` first looks for Astro's icon (outline or hash), and says so. Only then does it look at how the body starts, so an ordinary HTML page from a redirect or a catch-all route is not passed: an SVG's first element must be ``), comments and one ``; an ICO starts with the bytes `00 00 01 00`. Anything else exits 1 with "not an icon" and the file: 🔴. This checks how the body starts, not that it is a working icon: a page that opens with an inline `` sprite, or a truncated file, gets past it. The build's `icons.spec.ts` decodes the icons; this only rules out Astro's and the common wrong answer. The starter's Worker answers a missing file with a real 404 (`not_found_handling: "404-page"`), so a host set up otherwise needs a look by hand. - It exits 0: ✅. Any other exit code: 🔴 with its output. A cached answer right after a publish: run it again a minute later, as for the analytics tag. Pre-launch runs need nothing new on a site with the 0.36 `build-marker.mjs`: §2 runs the build, which refuses Astro's icon. An older copy refuses nothing, and the live check above finds it only after the publish. ## 9. Committing The reports are the site's records: commit them the way the site's `AGENTS.md` says (a branch and a pull request, unless it says otherwise). Both the Markdown and the HTML go in. In a **public** site repository, ask before committing a comparison (it lists the old site's addresses) or todos that name people. ## Related skills - `website-qa`: the site's test suite, which this check runs first, and the speed measurement (§2). - `website-review`: the two-pass review at the end of a build. - `website-testimonials`: the consent rule for named quotes. - `wordpress-inspector`: the inventory, the redirects and the move check for a WordPress relaunch. - `outgoing-link-audit` and `internal-link-audit`: link liveness and orphan pages. - `seo-audit` and `website-seo-geo`: deeper SEO and the AI-search contract. - `search-console-insights`: the `analytics/` folder, including `eeat.md`.