/ccxp-skills:verify-site [PR number]from ccxp-skills
Use when the user explicitly asks to verify a site PR — local preview, run the test plan's automated checks, tick boxes
Ships in ccxp-skills. 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.
<skills-root>= this skill's "Base directory" minus its last component; substitute the literal path (skill-conventions§9).
Start a local preview server, run automated checks against every route the PR touches, and tick test-plan items the automation can definitively verify. Items that need human judgement (visual hierarchy, copy review, "does this feel right") are left untouched and reported.
<arg> is optional:
/verify-site 11 — verify a specific PR/verify-site — use the current branch's open PRConsumer repo must have:
npm run build + npm run preview on localhost). Override with .verify-site.json (see Config below).npx on PATH — the skill installs Lighthouse and Playwright on demand via npx.The first run downloads Chromium for Playwright (~200 MB) and Lighthouse. Subsequent runs are fast.
If <arg> is numeric, use it directly
If empty, discover from the current branch:
BRANCH=$(git branch --show-current)
bash <skills-root>/_gh/gh.sh pr list --head "$BRANCH" --state open --json number --jq '.[0].number'
If no PR is found, stop and report.
bash <skills-root>/_gh/gh.sh pr view "$PR" --json body --jq '.body' > /tmp/pr-body.md
The skill expects a ## Test plan section with - [ ] / - [x] items. Only unchecked items are candidates for auto-ticking.
bash "$(dirname "${BASH_SOURCE[0]}")/scripts/preview-up.sh"
This resolves the preview command + URL, runs the build, starts the server in the background, writes the PID + URL to /tmp/verify-site.env, and waits for the server to answer 200 on / (up to 60s).
On error (build fails, port in use, server never answers): stop, clean up, report.
Prefer the sitemap:
curl -sf "$URL/sitemap-index.xml" | grep -oE '<loc>[^<]+' | sed 's#<loc>##' \
|| curl -sf "$URL/sitemap.xml" | grep -oE '<loc>[^<]+' | sed 's#<loc>##'
If no sitemap, fall back to the list in .verify-site.json routes field, or crawl one hop from /.
Each script is independent and prints one {check, route, status, detail} JSON object per line (NDJSON); the orchestrator (verify.sh) appends them to /tmp/verify-site-results.ndjson. Set VERIFY_SITE_TMP to use another scratch directory than /tmp.
| Check | Script | What it verifies |
|---|---|---|
| Build | (already done in step 3) | npm run build exits 0 |
| Routes | check-routes.sh | Every discovered route returns HTTP 200 |
| Lighthouse | check-lighthouse.sh | Runs Lighthouse mobile profile on each route; parses Performance, Accessibility, Best Practices, SEO scores |
| A11y | check-a11y.sh | Playwright + @axe-core/playwright against each route; reports violations |
| Responsive | check-responsive.sh | Playwright at 375 / 768 / 1280 — no horizontal overflow (scrollWidth > clientWidth); optional screenshots to /tmp/verify-site-screens/ |
Each script accepts a space-separated list of routes via ROUTES env var and the base URL via URL.
Run scripts/match-testplan.sh /tmp/pr-body.md /tmp/verify-site-results.ndjson /tmp/pr-body-updated.md. It applies a heuristic keyword match:
| Test plan phrase contains… | Match against |
|---|---|
npm run build, "build green", "compiles" | Build result |
| "renders", "loads", "200", "no 500", "route" | Route check |
| "Lighthouse", "Performance", "Perf ≥", "A11y ≥" | Lighthouse scores |
| "accessibility", "axe", "a11y", "aria", "focus" | A11y audit |
| "mobile", "375px", "responsive", "no horizontal overflow", "stacks" | Responsive check |
An item ticks green only if the associated check ran, passed on at least one route, and failed on none (skipped checks, unknown statuses and unparseable records never tick). If any route fails, the item stays unchecked and the failure is listed in the report. There is no link, image-alt or heading-order check: items about those stay human-only.
For every auto-tickable item that passed, rewrite - [ ] → - [x]:
bash <skills-root>/_gh/gh.sh pr edit "$PR" --body-file /tmp/pr-body-updated.md
Do NOT change items the automation couldn't match or that failed — those stay - [ ] and are listed in the report so the human reviewer can decide.
bash "$(dirname "${BASH_SOURCE[0]}")/scripts/preview-down.sh"
Report to the user:
Optional .verify-site.json at repo root overrides auto-detection:
{
"preview": {
"build": "npm run build",
"start": "npm run preview -- --host",
"url": "http://localhost:4321",
"ready_path": "/"
},
"routes": ["/", "/blog/", "/product/acme-cloud"],
"lighthouse": {
"enabled": true,
"thresholds": {
"performance": 85,
"accessibility": 90,
"best-practices": 95,
"seo": 95
},
"sample_routes": ["/", "/blog/", "/product/acme-cloud"]
},
"a11y": { "enabled": true },
"responsive": {
"enabled": true,
"widths": [375, 768, 1280]
}
}
If absent, defaults are:
astro.config.* → preview is npm run preview, URL http://localhost:4321next.config.* → npm run start, URL http://localhost:3000vite.config.* → npm run preview, URL http://localhost:4173sitemap-index.xml → sitemap.xml → /[375, 768, 1280]- [ ] → - [x] when the check passed clean. Never unflip an already-ticked item. Never add or remove items.trap in verify.sh. Leaving a stuck server on the port breaks the next run.package-lock.json (opens in a new tab)package.json (opens in a new tab)scripts/check-a11y.sh (opens in a new tab)scripts/check-lighthouse.sh (opens in a new tab)scripts/check-responsive.sh (opens in a new tab)scripts/check-routes.sh (opens in a new tab)scripts/ensure-deps.sh (opens in a new tab)scripts/match-testplan.sh (opens in a new tab)scripts/preview-down.sh (opens in a new tab)scripts/preview-up.sh (opens in a new tab)scripts/report.sh (opens in a new tab)scripts/verify.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub synx-data-labs/ccxp-skills --plugin ccxp-skills57 skills in this plugin
/1password-env-setupUse when the user explicitly asks to bootstrap or refresh a repo's 1Password-backed .env — installs the refresh-env helper, generates a hash-checking .envrc, and materializes .env from .env.tpl via op inject/address-prUse when the user explicitly asks to address, verify, or merge a specific open PR (CI, Claude Code review, test plan, tiered merge)/agent-pairingUse when the user explicitly asks to toggle the ccxp-agent main-session agent on/off for this Claude Code profile or check its status