/staging-review:staging-reviewfrom staging-review
Pre-client review gate for Hydra sites. Before any staging/dev link goes to a client, review the whole site against the client's HBIS brief and everything they've been told since — copy (spelling, grammar, capitalization), brief accuracy, removed services creeping back, design defects, 375px mobile overflow, mobile PageSpeed (90+), the two required sidebar menus, page placement, and whether the lead forms can actually send and be read. Sites that fail are held, get a full fix list on the Hydra Production Tracker with the Viber @-mentioned, and move to Viber - Changes. Client messages are drafts only. Use when the user says "/staging-review", "review the sites ready for client review", "is <client> ready for the client?", "check staging before we send it", "review <client>'s staging site", or before sending any client a staging or dev link.
Ships in staging-review. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A tracker task sitting at AM: Client Review, plus a Viber comment saying "ready for client review", is not evidence that the site is ready. On the first run of this review (2026-10-14), every one of six sites marked ready failed. The failures included an invented team page on a one-person business, the wrong phone number on every out-of-state page, items we had told the client were fixed and weren't, and two sites whose contact forms could not send a single lead. This skill is the gate between "the Viber says it's done" and "the client gets the link".
The operator is whoever is running this skill, normally the Account Manager on the
projects being reviewed. Read the operator's name, Slack user ID and Asana user GID from
~/.claude/staging-review/config.json. If it doesn't exist, ask once and write it:
{ "operator_name": "<full name>", "slack_user_id": "<U...>", "asana_user_gid": "<gid>" }
Dated notes like "(2026-10-14)" record why a rule exists. They are house policy, not one person's preference.
slack_send_message_draft, or Gmail create_draft). Client channels are
Slack Connect, so a tool send is refused there anyway.thread_ts
on a client draft, even when the client wrote in a thread, because clients miss thread
replies (2026-10-14). Still read threads: slack_read_channel hides thread replies, so a
client who answered in a thread looks silent.<a data-asana-gid="USER_GID"/> in html_text. Slack: <@U…>.
A plain-text name is invisible to them.**bold**, because *x* becomes italic.
A channel holds one attached draft. Only a returned draft_id proves a draft was created;
the success string alone does not.Blocks — hold the link and send the site back to the Viber:
__PMS_CONFIG__ missing) or can't be read (step 4).[Missing], [CONFIRM], {{ }}, lorem or other placeholders visible on the page.Doesn't block — list it, but the client reviews it:
If the client's live site already visibly makes a claim (e.g. "24/7 Emergency Service" in every footer), it stays on the Hydra build, even if the brief says "confirm first". It comes out only if the client's own words contradict it. Before treating a brief's ban as a contradiction, check who wrote the brief: a brief CIWG reconstructed (including one borrowed from a sister brand) is not the client speaking, and the live site wins. Things the live site doesn't visibly show (a licence # commented out in HTML, an address only in JSON-LD) still stay out. Wrong facts (another contractor's licence, a removed service) still go.
Find the tracker tasks the operator wants reviewed. The default is tasks on the Hydra
Production Tracker where Status = AM: Client Review and AM is the operator. Field and
option IDs are looked up by name (see asana-reference.md); search with search_tasks
custom_fields. The result is usually large, so jq the saved file.
Show the operator a short table: site, Viber, Staging Link, Dev Link, when it moved to Client
Review (from the stories feed — modified_at is useless, a daily automation bumps every
task), and the latest note. Ask which ones to review. Recommend the ones with a staging
link, and put first any whose link has already gone to the client. Never review other AMs'
clients unless asked.
get_task_stories, newest first): the Viber's "ready" comment and its
open questions; what the operator promised the client and when; constraints from earlier
hand-offs; the Staging Link field.client-, hosting-, sometimes duplicates). Read the last ~10 messages and their
threads. Note what the client asked for, what we confirmed back, and whether the link
was already sent. If it was, the job changes (step 9)./services with the title "Our HVAC & Plumbing
Services in <a city they don't serve>" — wrong service and wrong city.).md. Look in the repo (overrides/<slug>/.onboarding/hbis/, or on
the client branch), in the task's attachments, or in the operator's Downloads. Identify it
by its frontmatter business: line — several clients' briefs share near-identical
filenames. Note whether the client wrote it or CIWG reconstructed it (this decides the
live-site-claims rule above). Decisions made in Slack after the brief override it;
reconstructed briefs mark unknowns [Missing — confirm with client], and those must never
appear on the site as facts.<slug>-stg.ciwebgroup.com) if it serves, otherwise dev.
If only dev exists, the fix list must say "promote to staging before the client reviews".Write the locked constraints down in one place (they become the agent prompt in step 5).
bash scripts/crawl.sh <work-dir>/<slug> https://<slug>-stg.ciwebgroup.com
Use the session scratchpad as <work-dir>. The crawl fetches every sitemap page plus the
homepage, then reports non-200 pages and pages missing __PMS_CONFIG__.
Two silent failures, both of which pass the build:
pms-config.txt lists pages without window.__PMS_CONFIG__.
Without it the contact forms render inert with no action, have no siteName, and fail
silently: no error and no leads. Redirect stubs (e.g. /team → /about) may lack it
harmlessly. On 2026-10-14, two of six sites had it on 0 pages.styles/globals.css, the shared lead form only gets its colours if that file has
@source "../../../packages/ui/src/forms/**/*.tsx"; and maps the form tokens
(bg-card, text-foreground, border-divider, bg-primary) in @theme. Without it the
form renders at ~1.1:1 contrast. Check the file, and when running axe or a contrast check,
scroll the page fully and force [data-reveal] blocks visible first — three earlier
gate rounds missed this because axe ran before the form was on screen.Either failure is the first item on the fix list. The fix includes "submit a real test lead and confirm it arrives". Do not submit test leads to a client's site yourself.
Run these together:
agent-prompt.md with
the crawl folder, the brief path, the live-site claims and the locked constraints from
step 2. It returns a report: brief accuracy, then copy, then code defects. Subagents can't
write report files; the report comes back as a message.scripts/mobile-scan.js
into the JavaScript tool, then poll. One site per tab, so several can run at once.data-reveal above the fold
can leave the hero blank for seconds. Read computed styles before calling it a bug. Also
look for header buttons pushed off-screen, clipped badges, and a logo that isn't the
client's. A 200 and a good-looking hero are not a check: read the rendered text and the
<title> too.Use the right page-type names in every report (2026-10-23):
service-area pages (/service-areas/springfield-il), service-in-city pages
(/air-conditioning/ac-repair-springfield-il), child pages (/air-conditioning/ac-repair),
category/hub pages (/air-conditioning). Never call service-in-city pages "city pages"
or "child pages".
Every service-area page and service-in-city page needs two sidebar menus:
python3 scripts/sidebar.py <work-dir>/<slug>
Then open two or three pages and read the actual sidebar text before reporting. The first
<aside> is often the request form, and menus can carry different headings ("Other service
areas", "… in nearby towns"). A "same service in nearby towns" block is fine only alongside
both required menus. If the site has no service-in-city pages, menu 2 should list the services
available in that town and link to the service hubs. Check the town list against the brief,
since some clients don't want a page per town.
Placement. A page isn't done until it's linked from all four:
/sitemap HTML page and sitemap.xml;Every link points at the final URL, never through a 301, and never at a drafted page
(404). On some overrides the menu, homepage and footer lists come from code
(overrides/<slug>/lib/nav-data.ts) and render inside astro-islands — read the island props,
not just the <a> tags, or the audit undercounts. Watch for mega menus capped at 3 services
per category.
Town in the page. URLs may drop -city-st, but the town must be in the page:
service-in-city, service-area, hub and offer pages read "{Service} in {Town}, {ST}" in the
H1 and meta title, and the meta description and opening paragraph name the town. Company and
resource pages carry the primary town in the meta title. A bulk title like "X in metro"
on a page for a smaller town in that metro is a fail.
Leadership re-runs mobile PageSpeed on every go-live, and sites have launched in the 50s and 60s, with clients spotting slow scores before we did. The standard is 90+ mobile, with LCP ≤ 2.5s, TBT ≤ 200ms and CLS ≤ 0.1. Measure it here, before the client has the link, and not for the first time after launch.
bash scripts/pagespeed.sh <work-dir>/<slug> https://<slug>-stg.ciwebgroup.com \
/ <one child page> <one service-in-city page> <the heaviest page the visual pass found>
Run it in the background. That's 3 runs per page, and the median is what you report. It
calls the PageSpeed Insights API and falls back to local Lighthouse 12 (same engine, same mobile
profile) when PSI refuses the call. Set PAGESPEED_API_KEY to stay on PSI. Read psi/summary.tsv:
astro-island, or behind a data-reveal, the hero waits for
JavaScript before it paints. The fix is to render it server-side and never hide it above
the fold. A high TBT usually comes from third-party scripts (third-party-summary in the
JSON). Font-swap layout shift is a CSS-only fix.Every page under the bar goes on the fix list under Performance: page, median score and the
failing metrics, the LCP element or the blocking script, and "done when: 90+ mobile median on
pagespeed.sh". If the fix is outside the override (shared shell, core components), say so,
so the Viber can route it to the platform team rather than hack it locally.
For each agent report, check the biggest claims (the High items, and anything client-visible)
with grep on the crawl, against the brief, and against the live site. Report what was
confirmed and what was downgraded. Sort each item into blocks or doesn't block using
the section above. Then write the fix list from fixlist-template.md:
python3 scripts/md2asana.py fixlist.md <viber-gid> "<opening>" → add_comment html_text).
Keep it to the changes — no recap of the client conversation beyond the one line that
explains a change. If the client's Asana task has a second owner who needs it (some
clients have a co-Viber), tag them too.slack_search_users; Viber Asana GIDs come from the
stories feed (created_by.gid).If the site passes, say so, leave Status at AM: Client Review, and draft the client's review message (step 9 wording rules apply).
Wording rules for every client draft:
If the link already went out: mark the client-visible items "urgent" and recommend a short heads-up, drafted top-level in their channel:
Thank you, <@client>! Quick note while you look: we've spotted a few display issues on staging (mainly on ) and the team is fixing them now. Your content feedback is still very welcome in the meantime.
If the operator already asked the client a question that a fix-list item depends on (e.g. "is the booking link-out OK?"), tell the Viber to hold that item until the client answers.
After the operator confirms that the messages went out, read each channel back for the
timestamps, then post a log comment on every task: the review was done; the link was held
from the client (or not); the Status change; every message sent, with a permalink
(https://<workspace>.slack.com/archives/<channel>/p<ts-without-dot>) and any reply; what's
still waiting on the client; the next step.
In the same turn, without asking (2026-10-28):
Only roll Next Follow-Up Due forward in bulk on tasks in AM: Client Review or Pending HBIS — those are the stages where the ball is with the client.
A table: site | result (pass / held) | top blocker | mobile PageSpeed (home median) | what was posted. Then list the drafts waiting for the operator to send, by draft ID. Then list any decisions only the operator can make (policy-breaking live claims, brief-vs-live conflicts, anything held for a client answer).
agent-prompt.md (opens in a new tab)asana-reference.md (opens in a new tab)fixlist-template.md (opens in a new tab)scripts/crawl.sh (opens in a new tab)scripts/md2asana.py (opens in a new tab)scripts/mobile-scan.js (opens in a new tab)scripts/pagespeed.sh (opens in a new tab)scripts/sidebar.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ciwebgroup/claude-plugins --plugin staging-review