/publish-spec:publish-specfrom Publish Spec
Author, validate, and optionally publish a static HTML design spec, PRD, review site, or technical walkthrough with behavior-first structure, clear exhibits, and verified desktop/mobile layouts.
Ships in Publish Spec. 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.
Use this skill to author, revise, validate, and publish static HTML design specs, PRDs, architecture walkthroughs, and review sites.
For every new spec or substantive spec revision, read references/house-style.md completely before editing.
The house style is a system, not one fixed page template:
Why › What › How › Where): Preserve the source document's information architecture. Organize top-level sections by observable behavior or guarantee. Do not split them by file or layer. Start with a concise executive summary. Include verbatim Why provenance quotes when applicable. Lead each section with a falsifiable claim sentence paired with one primary exhibit. Place open decisions directly under the exhibit they affect, with a pre-selected Suggested default. End change specs with an explicit Not changing (Scope) block.must and can in requirements, avoid both corporate/LLM filler (utilize, leverage, facilitate, prior to, in order to, comprehensive, seamless) and epigrammatic "smart-guy" slop (repeated "not X, it is Y" antithesis, aphorisms, telegraphic fragments, anthropomorphism, and truth-vouching asides), and never write more than 3 consecutive paragraphs without a structural break or visual aid.max-width: 480px) that proves the point rather than full-window chrome, use numbered pins for callouts, write schemas in the project's native language, keep code slices to 10–30 lines (sketch for unbuilt code, real @@ hunk headers without ... elisions for diffs), and make diagrams interactive or animated only when state/branching/timing is clearer that way.1280px, 768px, 375px): Every multi-column grid, table, code block, and static/interactive/animated diagram must work at 768px (<= 900px) and 375px (<= 680px) with zero horizontal page overflow, no crushed text columns, and no microscopic SVG text (>= 10px rendered height). Reflow horizontal flows vertically on mobile (↓) or place wide 2D diagrams/matrices inside .diagram-scroll / .matrix-scroll (overflow-x: auto; max-width: 100%; contain: inline-size) with interactive controls kept outside the horizontal scroll area.Inspect the target spec:
Author or revise the spec:
375px), narrow (768px), and desktop (1280px) widths, and remove formulaic writing and design using "Avoid formulaic AI output" in references/house-style.md. When revising or condensing existing text, leave fenced code, inline code (<code> / `...`), blockquotes (<blockquote> / >), and passages containing verbatim external quotes untouched, and verify that every threshold, inheritance default, tool boundary, and caveat still holds. Do not score the page with an AI-authorship detector, and do not ask whether it sounds human.Run an Impeccable design pass with the latest version:
Update Impeccable to the latest published version first, from the spec directory:
npx impeccable@latest update
Load the impeccable skill and run its Setup with the spec entry page as --target. If its context output still reports UPDATE_AVAILABLE, the update did not apply. Fix that before you continue. Do not run the pass on an old version.
Run /impeccable polish <entry page> on every served entry page. A spec is a Read surface, and this pass is a refinement, not a redesign.
Keep the spec's copy, section order, claims, and exhibits. When an Impeccable suggestion conflicts with references/house-style.md, the house style wins.
Do this pass before every publish and before you call an HTML spec final, including revisions.
Run automated static + headless-browser validation (and optional calibrated prose check):
Run the bundled linter from the spec directory before finishing or deploying:
node <skill-dir>/scripts/lint-spec.mjs . --screenshots /tmp/spec-shots
lint-spec.mjs checks prose rhythm, vocabulary, diff/code hygiene, secret leaks, CSS media queries, and launches headless Chrome at 1280px, 768px, and 375px (including clicking interactive diagram/state controls on mobile) to catch horizontal overflow, uncollapsed grids, crushed text columns, and illegible SVG text.
Fix every reported error, address warnings, and visually inspect the generated desktop (1280px) and mobile (375px) screenshots in /tmp/spec-shots.
When a System One decision-model endpoint is configured (TypeSafe Jev jev-1.14.0, Cloudflare Workers AI @cf/cloudflare/clef-flash / clef, or a local /v1/systemone server such as mlx-community/clef-flash-4bit), you can also run node <skill-dir>/scripts/judge-prose.mjs . --out /tmp/baseline.json to classify each paragraph against the calibrated defect categories in references/prose-calibration.json and node <skill-dir>/scripts/judge-prose.mjs . --verify-against /tmp/baseline.json (or --verify-pairs <pairs.json>) to confirm that rewritten paragraphs preserve all original rules, inline code tokens, and caveats.
Also run the source project's own validation or local link checks when they exist.
Publish / deploy (optional, via references/deploy.md):
references/deploy.md exists in this skill directory. It is private and gitignored, so a fresh install does not have it:
references/deploy.md exists: Read it completely and follow its exact deployment, registration, post-deploy verification, and security guardrails.references/deploy.md does not exist: Check if the target project has its own deployment instructions or if the user specified a target host (see references/deploy.example.md for common patterns such as GitHub Pages, Vercel, or Cloudflare). If the user only asked to write or update the spec locally, stop after Step 4 and report the local file path and verification summary.lint-spec.mjs or ignore mobile (375px) layout/diagram failures.references/deploy.md) into a public repository unless explicitly instructed by the user.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub rock3r/publish-spec --plugin publish-spec