/croftweaver:website-scorecardfrom Croftweaver
Adds an optional public scorecard section to a site page showing test gate results (accessibility, links, search data, wording) with date, version, and optional Lighthouse scores from PageSpeed. Never runs unasked.
Ships in Croftweaver. 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.
A site built with this kit carries a test gate. This skill lets the owner show what it found: one section on one page, generated from a real test run, dated, and honest about its age. It is optional and it is the owner's decision. Never add it unasked: a public page that reports on the site's quality is a statement the owner makes.
Say it in the owner's language, in plain words:
Your site comes with automatic checks: accessibility, links, search data, wording and more. I can add a short "Quality checks" section to one page that shows the results of a run, with the date and the version they were measured on. If you have run Google's PageSpeed test on the live site, its four scores go next to it, with a link so any visitor can run the same test. If the site is edited later, the section says so by itself until we run the checks again. Do you want that, and on which page?
Options: Yes, on <page> / No (default). No answer means no.
new-website copies this
skill into every site so that day's session finds it; nothing in the pipeline runs it.website-qa). The script refuses otherwise.| File | From this skill's templates/ | What it is |
|---|---|---|
scripts/scorecard.mjs | scorecard.mjs | runs the suite and writes the card |
src/components/Scorecard.astro | Scorecard.astro | renders the card; English and German built in |
tests/scorecard.spec.ts | scorecard.spec.ts | the page shows the file's numbers; the file adds up. Needs the script: install all three, never this file alone |
scorecard.json (project root) | written by the script | the card itself, committed like any other file |
The templates are in this skill's templates/ folder, beside this SKILL.md; the bundled
copy of the skill on a handed-off repo has them too (.claude/skills/website-scorecard/templates/
or .agents/skills/…).
AGENTS.md §2)package.json → scripts: "scorecard": "node scripts/scorecard.mjs".<Base>:
---
import Scorecard from '../components/Scorecard.astro';
---
<Scorecard />
An existing page (About, or the foot of the home page) needs nothing else. A new
page for it is a new page: work through AGENTS.md §6 (PAGES, llms.txt, share
card, a link to it).tests/scorecard.spec.ts set PAGE to that page's address ('/about').SITE.locale), or on a site
with several languages (astro-i18n-setup) the language of the page it is on
(Astro.currentLocale); <Scorecard lang="de" /> overrides both. English and German
are built in. Any other language: add its texts to TEXT in the component, next to
en and de. The tone rules apply to them (tests/tone.spec.ts).npm run scorecard # runs the whole suite, writes scorecard.json
git add scorecard.json && git commit -m "scorecard: test run of <date>"
scorecard.json by hand to get past this, ever.test.only.Then npm test once more: with the file present, scorecard.spec.ts now checks the
page against it.
The script does not fetch them: Google's PageSpeed API refused a request without a key
("quota exceeded") when this skill was written, and a key would be one more thing for
the owner to set up. Ask the owner, as website-qa §2 does:
Please run https://pagespeed.web.dev/ on your live home page (mobile) and send me the four numbers at the top: Performance, Accessibility, Best Practices, SEO.
# the owner's four numbers, in this order, and the day of the run
npm run scorecard -- --lighthouse <performance>,<accessibility>,<best-practices>,<seo> --date <YYYY-MM-DD>
git add scorecard.json && git commit -m "scorecard: Lighthouse scores of <date>"
A desktop run: add --strategy desktop. The date must be a real day, not in the future.
Record what the owner measured, exactly. The section links to the same test for the
site's own address, so a visitor who re-runs it sees whether the numbers hold. Never
enter a score nobody measured (AGENTS.md §4: invent nothing). No scores given: leave
them out; the section works without them.
The section goes live the way every change does: pull request, green checks, merge,
and on a two-stage site npm run ship (PUBLISHING.md). Say which address shows it,
preview or live.
Then look at the published page once. It should say "The site has not been edited since." If it says neither that nor "edited since", the host's build has no git and the section cannot tell its own age there: tell the owner, so they know to refresh the card after changes without that reminder.
TESTED
(scripts/scorecard.mjs): src/, public/, tests/, functions/, scripts/, the
Astro, Playwright and TypeScript configs, the package files, .nvmrc and orphan-exempt.txt. A site with
other root files that shape the build adds them to that list. On every build the
component compares those ids with the build's own, and counts uncommitted edits to
those paths as edits. Same → "The site has not been edited since."
Different → "The site has been edited since. A new test run is due." Build without
git → it says neither. A change to a document (the README, the content guide) does
not count.scorecard script
entry and scorecard.json.website-qa.seo-audit. Search rankings and AI
visibility over time: search-console-insights.The owner said yes and chose the page; scorecard.json is committed from a green run;
the page shows the same numbers (scorecard.spec.ts green with PAGE set); the
published page says whether the site was edited since, or the owner knows it cannot;
Lighthouse scores are either the owner's own measurement or absent; the owner knows the section
will say when it is out of date, and how to refresh it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
test-results, quality-report, lighthouse, pagespeed, scorecard
40 skills in this plugin
/ai-seoWhen the user wants to optimize content for AI search engines, get cited by LLMs, or appear in AI-generated answers. Also use when the user mentions 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'answer engine optimization,' 'generative engine optimization,' 'LLM optimization,' 'AI Overviews,' 'optimize for ChatGPT,' 'optimize for Perplexity,' 'AI citations,' 'AI visibility,' 'zero-click search,' 'how do I show up in AI answers,' 'LLM mentions,' or 'optimize for Claude/Gemini.' Use this whenever someone wants their content to be cited or surfaced by AI assistants and AI search engines. For traditional technical and on-page SEO audits, see seo-audit. For structured data implementation, see schema-markup./astro-i18n-setupTurn a new-website scaffold into a turnkey multi-language site: Astro i18n routing (clean default locale + prefixed others), self-referencing hreflang + x-default in the Base layout, i18n sitemap alternates, a language switcher, and the test-harness changes that keep the green-from-commit-1 gate honest across locales. Run at scaffold time when new-website Q4 = "two+ languages at launch", OR later to add a second language to a single-locale site whose default stays unprefixed (phased rollout). Trigger phrases: "multi-language site", "add i18n", "DE+EN site", "internationalization", "hreflang setup", "two languages at launch".
npx claudepluginhub karero/croftweaver --plugin croftweaverOther plugins' skills for the same job