Scaffolds a static HTML showcase site organized by filesystem layout. Generates auto-discovered navigation, sitemap, and shared CSS for provenance reports, dashboards, digests, and audit results.
Ships in html-showcase. 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.
Publishing standard: every page this skill produces also carries the must-haves in
Skill(devops-tools:publishing-standard): a live "changed N ago" marker, the exact build time, version, commit and source, a link back to its index, one registry record and a place on the sitemap.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
A static HTML mini-site whose navigation structure is the filesystem
layout itself. Every page links to a shared CSS kernel served from
jsDelivr; an auto-discovered nav rail and a master site-map.html are
generated by scripts/build-nav.py from whatever directories you create
under the site root. Pages are pure HTML with optional per-page CSS
overrides. The architecture is built on five principles — read
references/principles.md first to
internalize the WHY before extending or forking, and
references/sitemap.md for the navigation
contract.
Every site this skill produces has the same shape:
<site-root>/
index.html ← site home (recommended)
overrides.css ← optional per-site tweaks
auto-nav.css ← generated by build-nav.py
auto-nav.js ← generated by build-nav.py
site-map.html ← generated by build-nav.py
<section-1>/ ← any subdirectory becomes a "section"
index.html
page-a.html
page-b.html
<2026-05-02-audit>/ ← YYYY-MM-DD- prefix sorts sections newest-first
index.html
findings.html
You don't hand-write the nav. You add HTML files in the directory shape
you want, then run scripts/build-nav.py --root <site-root>. The script
walks the tree, generates site-map.html, writes the rail's CSS/JS, and
injects the same nav rail into every page using comment markers. Re-runs
are idempotent.
For the architecture and trade-offs, see
references/sitemap.md.
Every concrete artifact in this skill (class names, file paths, the specific CDN URL, the commit-message conventions, even the "section" naming) is an instance of a small set of underlying principles. If you understand the principles, you can deviate intelligently from any specific instance without breaking the architecture. If you only follow the instructions, you'll bend the system out of shape the first time something doesn't fit your case.
The principles are catalogued in references/principles.md:
@layer ordering enforces specificity globallyPlus AI-collaboration patterns (why this design is LLM-friendly), and the rationale for using a CDN rather than copies.
| Layer | Mutability | What it controls | Where it lives |
|---|---|---|---|
| H1 — Kernel | Edit once → ripples everywhere | Tokens (color, spacing, type), reset, base elements, components | assets/showcase.css (jsDelivr CDN) |
| H2 — Composition | Per-page | Section order, content, semantic markup | The HTML file itself |
| H3 — Overrides | Per-page (optional) | Color or density tweaks for ONE page | overrides.css next to the HTML |
The kernel is the SSoT for every visual decision. HTML never invents
styles; it only arranges components defined by the kernel. To customize
one page, drop a few CSS variables into overrides.css. To customize
EVERY page, edit the kernel.
The auto-nav rail is generated, not hand-written. Its styling lives in
auto-nav.css (written by build-nav.py); its content is injected
between <!-- AUTO-NAV-START --> and <!-- AUTO-NAV-END --> markers in
each page's <body>.
The rail and the master site-map.html are always dark (slate-950
surface, slate-300 text, indigo-400 accents), regardless of the host
page's theme. The rail is the constant element across every page; pinning
its theme keeps it visually stable whether the page it overlays is a
light contractor showcase or a dark telemetry dashboard.
Pages within a section render in creation order, not alphabetical:
index.html always first.index_iter_<N>_<slug>.html naming convention sort
by N numerically (so iter_10 comes after iter_9, not after iter_1).st_birthtime on
macOS — never moved by edits or rebuilds).The rail's runtime behavior:
width: max-content to measure each link's true intrinsic width,
independent of the rail's current size), clamped to [220, 760]px.[220, 1200]px;
the chosen width is persisted in localStorage.‹ ›
buttons on the "Site" header row (zero added height) plus a Chrome-safe
bare [ / ] keyboard shortcut. ‹ / [ goes to the sibling above
(newer), › / ] to the one below (older); both are greyed out at the
ends of the list. The keys ignore presses while a modifier is held or
while focus is in the search box, so they never interrupt typing.Every rail (and the master site-map.html) gets a Search section
mounted at the top, powered by Pagefind — a
Rust-built static-search tool that produces a self-contained index with
no server, no build pipeline, and a ~70KB client UI.
How it's wired:
build-nav.py injects 4 tags into every page's <head> in strict
order: pagefind CSS → auto-nav CSS → pagefind JS → auto-nav JS.<div id="auto-nav-search"></div>;
auto-nav.js calls new PagefindUI({...}) once Pagefind has loaded.<site-root>/pagefind/, generated by
running pagefind --site <site-root>.scripts/site.sh nav runs build-nav.py AND pagefind --site —
search refreshes automatically every time the rail is rebuilt.If pagefind isn't installed, the rail still renders with the search
input present but inert; auto-nav.js's mountSearch() short-circuits
when window.PagefindUI is undefined. Install via brew install pagefind (or follow the official install docs).
install.sh --hook installs a pre-push git hook at .githooks/pre-push
and wires git config core.hooksPath .githooks. After that, every
git push main automatically:
site-map.html)scripts/site.sh nav <site-dir> (rebuilds rail + search index)scripts/site.sh push <site-dir> (rsync to myhost via
Tailscale)The hook is non-blocking — if rsync fails (cellular, coffee shop, myhost down), the push continues to GitHub anyway. Skip env vars:
| Variable | Effect |
|---|---|
NO_HTMLSHOWCASE_HOOK=1 | Skip the hook entirely |
NO_HTMLSHOWCASE_SYNC=1 | Run nav + search but skip the rsync |
NO_HTMLSHOWCASE_SEARCH=1 | Skip the pagefind regen step |
HTMLSHOWCASE_SITES="a b c" | Override auto-detection with explicit list |
Pick the role that matches your task. Full workflow for each in
references/contributing.md.
| Role | Example task | Edits | Affects |
|---|---|---|---|
| Consumer | "Make me a contractor showcase site" | Your HTML | Just your site |
| Customizer | "Re-theme this site with our brand teal" | overrides.css | Just your site |
| Contributor | "Add a .timeline component to the kernel" | Kernel CSS upstream | Every site using this kernel |
| Publisher | "Our team forks the kernel and publishes from our own GitHub" | Your fork's kernel | Sites that pin to your CDN URL |
Do NOT use for: blog posts, marketing landing pages, interactive web apps.
| Path | Role |
|---|---|
templates/index.html | Site home skeleton (hero + 3 example sections + footer + markers) |
templates/section-index.html | Section landing-page skeleton |
templates/overrides.css.example | Reference for per-site customization (rename to overrides.css) |
templates/lychee.toml | Link-checker config |
scripts/build-nav.py | Universal sitemap builder — auto-nav + site-map.html generator |
scripts/check-orphan-pages.py | Pure-stdlib orphan-page graph validator |
scripts/site.sh | Build nav + validate + push to myhost via Tailscale (see below) |
scripts/install.sh | One-shot bootstrap: install all 3 scripts into any repo |
references/principles.md | The WHY — five principles + AI patterns |
references/sitemap.md | The HOW — filesystem-as-sitemap contract, rail rendering |
references/contributing.md | The HOW — four stances with full workflows |
references/publishing.md | The WHERE — delivery surfaces (CDN vs tailnet) + myhost setup |
The CSS kernel itself lives at the plugin level
(plugins/html-showcase/assets/showcase.css) and is served from jsDelivr —
the skeleton HTML references the public CDN URL, not a local file.
Two surfaces, two roles:
| Surface | What goes there | When to use |
|---|---|---|
| jsDelivr CDN (public) | The kernel CSS only | Always — every page imports the kernel from one shared URL |
| myhost on the tailnet | Your rendered sites | Default for internal audiences (no DNS, no auth UI, no public exposure) |
| jsDelivr / Pages / Workers | Your rendered sites | Only when an external reader genuinely needs the page |
For internal-audience sites (audit reports, contractor showcases, telemetry views, weekly digests), the myhost tailnet path is the lowest-friction option. Adopting it in any repo is one command:
ROOT="$(cc-plugin-root html-showcase)"
bash "$ROOT/skills/page-template/scripts/install.sh"
That installs all three pipeline scripts (build-nav.py,
check-orphan-pages.py, site.sh) into <repo>/scripts/ and
appends **/.published.json to .gitignore. The installer is
idempotent (re-running it is a no-op) and non-destructive
(--force to overwrite). To also seed a starter site directory:
bash "$PLUGIN/skills/page-template/scripts/install.sh" --site contractor-site
Then scripts/site.sh push <site-dir> regenerates the sitemap, validates
locally (lychee + orphan check), and rsyncs to
myhost:~/sites/<repo>/<site-dir>/, served at
https://myhost.tailnet-name.ts.net:8448/<repo>/<site-dir>/. Push-side
gating (build-nav + lychee + orphan check) is the only gate. Full
mechanics, the URL formula, when NOT to use myhost, and the myhost
one-time setup are in references/publishing.md.
Two CSS custom properties at the top of showcase.css control the entire
visual rhythm. Override either in overrides.css to retune one site:
:root {
--density: 0.85; /* spacing multiplier; 1.0 baseline, lower = tighter */
--font-scale: 0.94; /* type multiplier; 1.0 baseline, lower = smaller */
}
Every padding, gap, margin, and section rhythm in the kernel derives from
the spacing scale; the spacing scale derives from --density. Body font
size derives from --font-scale. There are no scattered magic numbers in
component CSS — see Principle 3 in references/principles.md.
The kernel defines these semantic classes; HTML uses them. To inspect the full set, open the kernel CSS and search for class selectors.
| Class | Purpose |
|---|---|
.hero + .hero__inner / __eyebrow / __title / __lede / __cta-row | Top banner with gradient |
.chip--solid / .chip--ghost | Hero CTA buttons |
.metric-grid + .metric-card | At-a-glance number panel; modifiers --accent, --success, --warning |
.phase-grid + .phase-card | Phased timeline cards; modifiers --audit, --fix, --perf |
.commit-stack + .commit-card | Detailed commit cards with SHA chip + details grid |
.bug-grid + .bug-card (--high modifier) | Compact issue cards |
.feature-grid + .feature-card | Generic 4-column showcase grid with icon |
.reco-list + .reco-item (--p0 / --p1 / --p2) | Priority-ordered recommendations |
.badge (--high / --medium / --low / --success / --info / --neutral / --accent) | Severity / status labels |
.section-head / .section-intro | Per-section title row + framing paragraph |
.shell | Centered content shell with max-width and responsive padding |
.site-footer + .site-footer__grid / __legal | Provenance footer |
The auto-nav rail uses its own non-kernel classes (.auto-nav-rail,
.rail-link, .rail-section, etc.) defined in auto-nav.css so the
nav stays self-contained and a repo can adopt the rail without adopting
the kernel.
If your page needs a content component not in this table, you have two
choices — both legitimate, both documented in references/contributing.md:
components @layer, token-referenced values, BEM modifier variants.The fastest path: run the installer to bootstrap the pipeline scripts + a starter site, then iterate.
ROOT="$(cc-plugin-root html-showcase)"
# 1. Bootstrap the pipeline + starter site directory
bash "$ROOT/skills/page-template/scripts/install.sh" --site contractor-site
# 2. (Optional) Add one or more sections under contractor-site/
mkdir -p contractor-site/2026-05-02-first-section
ROOT="$(cc-plugin-root html-showcase)"
cp "$ROOT/skills/page-template/templates/section-index.html" \
contractor-site/2026-05-02-first-section/index.html
cp "$ROOT/skills/page-template/templates/index.html" \
contractor-site/2026-05-02-first-section/page-a.html
# 3. Fill {{ PLACEHOLDERS }} in the HTML, then build the sitemap + nav
scripts/site.sh nav contractor-site
# 4. Validate (lychee + orphan check)
scripts/site.sh check contractor-site
# 5. View — any page reaches every other via the rail
open contractor-site/index.html
open contractor-site/site-map.html
Or, if you'd rather copy the templates by hand without the installer:
ROOT="$(cc-plugin-root html-showcase)"
DEST=/path/to/your-site
mkdir -p "$DEST"
cp "$ROOT/skills/page-template/templates/index.html" "$DEST/"
cp "$ROOT/skills/page-template/templates/lychee.toml" "$DEST/"
python3 "$ROOT/skills/page-template/scripts/build-nav.py" --root "$DEST"
site.sh falls back to the plugin-shipped build-nav.py when no copy
is present in <repo>/scripts/, so even without the installer you can
push to myhost from any repo using the plugin-shipped script directly.
For the other three stances (Customizer, Contributor, Publisher), see
references/contributing.md. For the
publishing path to myhost via Tailscale, see
references/publishing.md.
The kernel URL pins to the @main branch during early iteration, then
to a tagged release once the kernel stabilizes:
@main → always-latest → use during development; jsDelivr cache flushed automatically on each release
@v<X.Y.Z> → immutable, content-locked → use for production-stable pages
@<sha> → immutable, commit-locked → use for forensic-grade pinning
The release flow auto-purges @main and smoke-tests @v<X.Y.Z> after each release. To force-refresh @main between releases (e.g., during heavy iteration on the kernel), run bash tasks/release/cdn-purge from the cc-skills repo root. To bypass cache entirely on a single page, append ?v=$(date +%s) to the kernel link.
The auto-nav assets (auto-nav.css, auto-nav.js) are generated locally
by build-nav.py and live next to your HTML — they are not CDN-served.
The ?v=N query string on those URLs is also a cache-bust knob; bump
--asset-version when you change the rail's CSS or JS body inside
build-nav.py.
These are baked into the kernel and templates; if you find yourself
wanting to break them, fix the kernel instead (see Stance 3 in
references/contributing.md).
<style> blocks.style="" attributes on HTML elements..metric-card, .badge--high), never atomic
(flex p-4 bg-blue-500).<!-- AUTO-NAV-START --> and <!-- AUTO-NAV-END -->.
Re-run scripts/build-nav.py after any structural change.After this skill completes, reflect before closing the task:
build-nav.py AND references/sitemap.md. If a principle was unclear, fix references/principles.md.templates/section-index.html.SKILL.md, the templates, and build-nav.py.Do NOT defer. The next invocation inherits whatever you leave behind.
references/contributing.md (opens in a new tab)references/principles.md (opens in a new tab)references/publishing.md (opens in a new tab)references/sitemap.md (opens in a new tab)scripts/build-nav.py (opens in a new tab)scripts/check-orphan-pages.py (opens in a new tab)scripts/install.sh (opens in a new tab)scripts/pre-push.template (opens in a new tab)scripts/site.sh (opens in a new tab)templates/index.html (opens in a new tab)templates/lychee.toml (opens in a new tab)templates/overrides.css.example (opens in a new tab)templates/section-index.html (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/html-showcase:page-templatefrom html-showcase
npx claudepluginhub terrylica/cc-skills --plugin html-showcase3 skills in this plugin
/interactive-json-formBuild a self-contained, single-file interactive HTML page (explanations + multiple-choice votes + rank + free-form comments) whose responses round-trip as downloadable/importable JSON — no backend, no tracking — and publish it privately on your own host behind noindex + an unguessable path./setupBootstrap the html-showcase pipeline into the current repo. Copies build-nav.py, check-orphan-pages.py, and site.sh into <repo>/scripts/,Other plugins' skills for the same job