publish-spec
A portable agent skill for authoring, validating, and optionally publishing static HTML design specs, PRDs, review sites, and technical walkthroughs.
The skill helps agents:
- structure specs around observable behavior and guarantees (
Why › What › How › Where) instead of implementation layers;
- pair every section claim with a concrete exhibit (cropped UI mockups
<= 480px, state machines, annotated call trees, native-language schemas, or focused code slices);
- surface open decisions with a pre-selected
Suggested default directly under the exhibit they affect;
- write in direct, active Plain Technical English without formulaic AI filler or decorative card grids;
- run a design pass with the latest Impeccable skill before any spec is published or called final (Impeccable must be installed);
- check prose budgets and CSS breakpoints with
lint-spec.mjs. The linter uses Node built-ins and headless Chrome to check desktop (1280px), narrow (768px), and mobile (375px) layouts. Checks cover static, interactive, and animated diagrams. The linter also catches leftover citation markers and unfilled placeholders;
- optionally deploy via a user-supplied
skills/publish-spec/references/deploy.md add-on file (gitignored so personal hosting credentials or routes stay out of version control).
Installation
You can install the skill in several ways:
- Copy
skills/publish-spec/ into your agent skills directory (for example .agents/skills/publish-spec/).
- Use
npx skills add rock3r/publish-spec and similar mechanisms.
Claude Code
The repository ships a Claude Code plugin manifest (.claude-plugin/plugin.json) and marketplace (.claude-plugin/marketplace.json):
claude plugin marketplace add rock3r/publish-spec
claude plugin install publish-spec@publish-spec
OpenAI Codex
The repository ships a Codex plugin manifest (.codex-plugin/plugin.json) and marketplace (.agents/plugins/marketplace.json):
codex plugin marketplace add rock3r/publish-spec
codex plugin add publish-spec@publish-spec
Customizing Deployment (references/deploy.md)
By default, publish-spec authors and validates static HTML specs locally. To teach the skill how to deploy in your environment (GitHub Pages, Vercel, Cloudflare Workers/Pages, S3, etc.):
- Copy
skills/publish-spec/references/deploy.example.md to skills/publish-spec/references/deploy.md in your installed skill directory.
- Fill in your host commands, URL patterns, and guardrails.
skills/publish-spec/references/deploy.md is gitignored so environment-specific details are never committed.
Running the Spec Linter and Prose Classifier
lint-spec.mjs requires only node (and uses local headless Chrome/Chromium when available for live viewport layout checks at 1280px, 768px, and 375px):
node skills/publish-spec/scripts/lint-spec.mjs <dir-or-html-or-url> --screenshots /tmp/spec-shots
For paragraph-level style-defect classification and post-rewrite semantic verification against a System One decision model (TypeSafe jev-1.14.0, Cloudflare Workers AI @cf/cloudflare/clef-flash or clef, or a local /v1/systemone server such as mlx-community/clef-flash-4bit):
node skills/publish-spec/scripts/judge-prose.mjs --calibrate-only
node skills/publish-spec/scripts/judge-prose.mjs <dir-or-html-or-md> --out /tmp/prose-findings.json
node skills/publish-spec/scripts/judge-prose.mjs <dir-or-html-or-md> --verify-against /tmp/prose-findings.json
node skills/publish-spec/scripts/judge-prose.mjs --verify-pairs /tmp/rewrite-pairs.json
Development
CI runs on every push and pull request. Run the same checks locally:
node --test tests/*.test.mjs
rumdl check .
The tests run the linter in static-only mode against the pages in tests/fixtures/. They also check that SKILL.md and both plugin manifests declare the same version, and that CHANGELOG.md has an entry for it.
Releases
To release, bump the version in SKILL.md, .claude-plugin/plugin.json, and .codex-plugin/plugin.json, and add a section for it to CHANGELOG.md. When the change lands on main, the release workflow tags v<version> and publishes a GitHub release with that section as the notes. A version that already has a release is skipped.
Provenance & Attribution
Provenance is tracked in skills/publish-spec/skill-source.json using rock3r/skill-provenance.
Created by Sebastiano Poggi (Apache-2.0); incorporates claim-hierarchy, exhibit, and linting concepts inspired by Thariq Shihipar's html-plan skill (MIT).
License
Apache License 2.0. See LICENSE.