The design language that makes your AI harness better at design.
JavaScript
Extend docs-browser shell to detail pages, tighten sidebar, ban em dashes
Paul Bakaus80d75027379c
diff --git a/content/site/partials/header.html b/content/site/partials/header.htmlindex 2a9963836..2c9cf3df5 100644--- a/content/site/partials/header.html+++ b/content/site/partials/header.html@@ -12,7 +12,7 @@<a href="/tutorials" data-nav="tutorials">Tutorials</a><a href="/gallery" data-nav="gallery">Gallery</a></nav>- <a href="https://github.com/pbakaus/impeccable" class="site-header-github" target="_blank" rel="noopener" aria-label="Impeccable on GitHub — 17k stars">+ <a href="https://github.com/pbakaus/impeccable" class="site-header-github" target="_blank" rel="noopener" aria-label="Impeccable on GitHub, 17k stars"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/></svg><span class="site-header-github-label">17k</span><svg class="site-header-github-star" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2l2.76 6.36L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l7.24-.91L12 2z"/></svg>diff --git a/public/cheatsheet.html b/public/cheatsheet.htmlindex f49521c72..242709274 100644--- a/public/cheatsheet.html+++ b/public/cheatsheet.html@@ -179,7 +179,7 @@<a href="/tutorials" data-nav="tutorials">Tutorials</a><a href="/gallery" data-nav="gallery">Gallery</a></nav>- <a href="https://github.com/pbakaus/impeccable" class="site-header-github" target="_blank" rel="noopener" aria-label="Impeccable on GitHub — 17k stars">+ <a href="https://github.com/pbakaus/impeccable" class="site-header-github" target="_blank" rel="noopener" aria-label="Impeccable on GitHub, 17k stars"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/></svg><span class="site-header-github-label">17k</span><svg class="site-header-github-star" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2l2.76 6.36L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l7.24-.91L12 2z"/></svg>diff --git a/public/css/sub-pages.css b/public/css/sub-pages.cssindex a91019a6e..fa01ce588 100644--- a/public/css/sub-pages.css+++ b/public/css/sub-pages.css@@ -258,13 +258,16 @@ main#main {display: block;}-.sub-page-content,-.skill-detail {+.sub-page-content {max-width: 820px;margin: 0 auto;padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) 6rem;}+.skill-detail {+ max-width: 720px;+}+.sub-page-header {margin-bottom: clamp(2.5rem, 6vw, 4rem);}@@ -302,7 +305,7 @@ main#main {:root {--site-header-height: 62px;- --skills-sidebar-width: 260px;+ --skills-sidebar-width: 200px;}.skills-layout-page main#main {@@ -351,30 +354,35 @@ main#main {padding-right: var(--spacing-md);}+/* Label at the top of the sidebar — hidden visually, kept for a11y tree. */.skills-sidebar-label {- font-family: var(--font-mono);- font-size: 0.625rem;- font-weight: 600;- text-transform: uppercase;- letter-spacing: 0.14em;- color: var(--color-ash);- margin-bottom: var(--spacing-md);- padding-left: var(--spacing-sm);+ position: absolute;+ width: 1px;+ height: 1px;+ padding: 0;+ margin: -1px;+ overflow: hidden;+ clip: rect(0, 0, 0, 0);+ border: 0;}.skills-sidebar-group {- margin-bottom: var(--spacing-lg);+ margin-bottom: 1.5rem;+}++.skills-sidebar-group:last-child {+ margin-bottom: 0;}.skills-sidebar-group-title {- font-family: var(--font-body);- font-size: 0.6875rem;+ font-family: var(--font-mono);+ font-size: 0.625rem;font-weight: 600;text-transform: uppercase;- letter-spacing: 0.1em;- color: var(--color-ink);- margin-bottom: 6px;- padding: 0 var(--spacing-sm);+ letter-spacing: 0.14em;+ color: var(--color-ash);+ margin-bottom: 4px;+ padding: 0 10px;}.skills-sidebar-list {@@ -389,27 +397,26 @@ main#main {.skills-sidebar-list a {display: block;- padding: 6px var(--spacing-sm);+ padding: 3px 10px;font-family: var(--font-mono);font-size: 0.8125rem;font-weight: 500;+ line-height: 1.5;color: var(--color-charcoal);text-decoration: none;- border-radius: 4px;+ border-left: 2px solid transparent;transition: color var(--duration-fast) var(--ease-out),- background var(--duration-fast) var(--ease-out);+ border-color var(--duration-fast) var(--ease-out);}.skills-sidebar-list a:hover {color: var(--color-accent);- background: var(--color-cream);}.skills-sidebar-list a[aria-current="page"] {color: var(--color-ink);font-weight: 600;- background: var(--color-cream);- box-shadow: inset 2px 0 0 var(--color-accent);+ border-left-color: var(--color-accent);}/* ============================================diff --git a/public/gallery.html b/public/gallery.htmlindex 730ccd3c0..95eb8f83f 100644--- a/public/gallery.html+++ b/public/gallery.html@@ -3,12 +3,12 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <title>Gallery of Shame — AI Anti-Patterns in the Wild | Impeccable</title>+ <title>Gallery of Shame | AI Anti-Patterns in the Wild | Impeccable</title><meta name="description" content="A curated collection of the most common AI-generated UI anti-patterns. Learn to spot them, laugh at them, then fix them."><link rel="icon" type="image/svg+xml" href="./favicon.svg"><link rel="canonical" href="https://impeccable.style/gallery">- <meta property="og:title" content="Gallery of Shame — AI Anti-Patterns | Impeccable">+ <meta property="og:title" content="Gallery of Shame | AI Anti-Patterns | Impeccable"><meta property="og:description" content="A curated collection of the most common AI-generated UI anti-patterns. Learn to spot them, laugh at them, then fix them."><meta property="og:url" content="https://impeccable.style/gallery"><meta property="og:image" content="https://impeccable.style/og-image.jpg">@@ -201,7 +201,7 @@<a href="/tutorials" data-nav="tutorials">Tutorials</a><a href="/gallery" data-nav="gallery" aria-current="page">Gallery</a></nav>- <a href="https://github.com/pbakaus/impeccable" class="site-header-github" target="_blank" rel="noopener" aria-label="Impeccable on GitHub — 17k stars">+ <a href="https://github.com/pbakaus/impeccable" class="site-header-github" target="_blank" rel="noopener" aria-label="Impeccable on GitHub, 17k stars"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/></svg><span class="site-header-github-label">17k</span><svg class="site-header-github-star" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2l2.76 6.36L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l7.24-.91L12 2z"/></svg>diff --git a/public/index.html b/public/index.htmlindex b057e6abc..7bb523925 100644--- a/public/index.html+++ b/public/index.html@@ -62,7 +62,7 @@<a href="/tutorials" data-nav="tutorials">Tutorials</a><a href="/gallery" data-nav="gallery">Gallery</a></nav>- <a href="https://github.com/pbakaus/impeccable" class="site-header-github" target="_blank" rel="noopener" aria-label="Impeccable on GitHub — 17k stars">+ <a href="https://github.com/pbakaus/impeccable" class="site-header-github" target="_blank" rel="noopener" aria-label="Impeccable on GitHub, 17k stars"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/></svg><span class="site-header-github-label">17k</span><svg class="site-header-github-star" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2l2.76 6.36L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l7.24-.91L12 2z"/></svg>@@ -287,7 +287,7 @@<h2 class="section-title">Visual Mode</h2></div><div class="visual-mode-content">- <p class="section-lead" data-reveal>See design issues highlighted directly on the page. No screenshots, no guesswork — Impeccable’s overlay shows you exactly what’s wrong and where.</p>+ <p class="section-lead" data-reveal>See design issues highlighted directly on the page. No screenshots, no guesswork. Impeccable’s overlay shows you exactly what’s wrong and where.</p><div class="visual-mode-demo" data-reveal><div class="visual-mode-preview">@@ -414,7 +414,7 @@<svg class="install-step-arrow" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><path d="M9 6l6 6-6 6"/></svg></summary><div class="install-step-body">- <p class="install-path-desc">Anti-pattern detection from the terminal. Scans HTML, CSS, JSX/TSX, Vue, and Svelte — perfect for CI, pre-commit hooks, and one-off audits.</p>+ <p class="install-path-desc">Anti-pattern detection from the terminal. Scans HTML, CSS, JSX/TSX, Vue, and Svelte. Perfect for CI, pre-commit hooks, and one-off audits.</p><div class="install-cmd-block"><div class="install-cmd-line">@@ -441,7 +441,7 @@<svg class="install-step-arrow" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><path d="M9 6l6 6-6 6"/></svg></summary><div class="install-step-body">- <p class="install-path-desc">One-click anti-pattern detection on any live page — yours, staging, production, or anyone else's. Same detection engine as <code>/critique</code>, in your browser.</p>+ <p class="install-path-desc">One-click anti-pattern detection on any live page: yours, staging, production, or anyone else's. Same detection engine as <code>/critique</code>, in your browser.</p><p class="install-step-status">Currently in Chrome Web Store review.</p><p class="install-path-link"><a href="https://impeccablestyle.substack.com" target="_blank" rel="noopener">Get notified when it lands →</a></p></div>@@ -527,7 +527,7 @@</div><ul class="changelog-items"><li>3 new skills: <code>/typeset</code> (fix typography), <code>/arrange</code> (fix layout & spacing), <code>/overdrive</code> (technically extraordinary effects, beta)</li>- <li>Skills now auto-gather design context via <code>.impeccable.md</code> — run <code>/teach-impeccable</code> once, all skills benefit</li>+ <li>Skills now auto-gather design context via <code>.impeccable.md</code>. Run <code>/teach-impeccable</code> once, all skills benefit</li><li>Deep linking to commands (<code>#cmd-overdrive</code>, etc.)</li></ul></div>@@ -551,7 +551,7 @@</div><ul class="changelog-items"><li>Added Kiro support (<code>.kiro/skills/</code>)</li>- <li>Restored prefix toggle — download <code>i-</code> prefixed bundles to avoid naming conflicts</li>+ <li>Restored prefix toggle: download <code>i-</code> prefixed bundles to avoid naming conflicts</li><li>Audit and critique skills only suggest real, installed commands</li></ul></div>@@ -562,7 +562,7 @@<span class="changelog-date">March 4, 2026</span></div><ul class="changelog-items">- <li>Unified skills architecture — commands are now skills with <code>user-invocable: true</code></li>+ <li>Unified skills architecture: commands are now skills with <code>user-invocable: true</code></li><li>Added VS Code Copilot and Google Antigravity support (<code>.agents/skills/</code>)</li><li>New install flow: <code>npx skills add</code> as primary, universal ZIP as fallback</li><li>Added universal ZIP containing all 5 provider directories</li>@@ -599,7 +599,7 @@<details class="faq-item"><summary class="faq-question">Where do I put the downloaded files?</summary><div class="faq-answer">- <p>The easiest way is <code>npx skills add pbakaus/impeccable</code> — it auto-detects your AI harness and places files correctly.</p>+ <p>The easiest way is <code>npx skills add pbakaus/impeccable</code>, which auto-detects your AI harness and places files correctly.</p><p>If you downloaded the <strong>universal ZIP</strong>, extract it to your <strong>project root</strong> (same level as your <code>package.json</code> or <code>src/</code> folder). It creates hidden folders for each supported tool: <code>.cursor/</code>, <code>.claude/</code>, <code>.gemini/</code>, <code>.codex/</code>, and <code>.agents/</code>.</p><p>Project-level installation takes precedence and lets you version control your skills.</p></div>@@ -613,7 +613,7 @@<li><strong>Claude Code plugin:</strong> Open <code>/plugin</code>, go to the Discover tab, and update from there</li><li><strong>Manual ZIP:</strong> Download the latest ZIP from above and extract to your project root, overwriting existing files</li></ul>- <p>Your <code>.impeccable.md</code> design context file (created by <code>/impeccable teach</code>) is never overwritten — your project context is preserved across updates.</p>+ <p>Your <code>.impeccable.md</code> design context file (created by <code>/impeccable teach</code>) is never overwritten. Your project context is preserved across updates.</p></div></details>@@ -621,7 +621,7 @@<summary class="faq-question">Commands or skills aren't appearing. What do I do?</summary><div class="faq-answer"><p><strong>For commands:</strong> Type <code>/</code> in your AI harness and look for commands like <code>/audit</code>, <code>/polish</code>, etc. If they don't appear, double-check the files are in the correct location.</p>- <p><strong>For skills:</strong> Skills are applied automatically when relevant. To verify, explicitly mention "use the impeccable skill" in your prompt—this forces the AI to acknowledge and apply it.</p>+ <p><strong>For skills:</strong> Skills are applied automatically when relevant. To verify, explicitly mention "use the impeccable skill" in your prompt. This forces the AI to acknowledge and apply it.</p><p><strong>Tool-specific setup:</strong></p><ul><li><strong>Cursor:</strong> Requires Nightly channel + Agent Skills enabled in Settings → Rules</li>diff --git a/public/privacy.html b/public/privacy.htmlindex 1d54d2cea..b9ac8e840 100644--- a/public/privacy.html+++ b/public/privacy.html@@ -37,7 +37,7 @@<a href="/tutorials" data-nav="tutorials">Tutorials</a><a href="/gallery" data-nav="gallery">Gallery</a></nav>- <a href="https://github.com/pbakaus/impeccable" class="site-header-github" target="_blank" rel="noopener" aria-label="Impeccable on GitHub — 17k stars">+ <a href="https://github.com/pbakaus/impeccable" class="site-header-github" target="_blank" rel="noopener" aria-label="Impeccable on GitHub, 17k stars"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/></svg><span class="site-header-github-label">17k</span><svg class="site-header-github-star" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2l2.76 6.36L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l7.24-.91L12 2z"/></svg>diff --git a/scripts/build-sub-pages.js b/scripts/build-sub-pages.jsindex aff0a8b1d..9c4243bf5 100644--- a/scripts/build-sub-pages.js+++ b/scripts/build-sub-pages.js@@ -145,8 +145,8 @@ ${list/*** Render the /skills overview main column content (not the sidebar).- * This is the orientation piece — what are skills, how to pick one,- * the six categories explained with inline cross-links to the detail pages.+ * This is the orientation piece: what skills are, how to pick one,+ * the six categories explained with inline cross-links to detail pages.*/function renderSkillsOverviewMain(skillsByCategory) {const totalSkills = Object.values(skillsByCategory).reduce(@@ -185,12 +185,12 @@ ${skillChips}<header class="skills-overview-header"><p class="sub-page-eyebrow">${totalSkills} commands</p><h1 class="sub-page-title">Skills</h1>- <p class="sub-page-lede">One skill (<a href="/skills/impeccable">/impeccable</a>) teaches your AI design. Twenty more commands steer the result. Each one is a small, opinionated tool that knows how to fix one specific thing — pick the one that matches the moment.</p>+ <p class="sub-page-lede">One skill, <a href="/skills/impeccable">/impeccable</a>, teaches your AI design. Twenty commands steer the result. Each command does one job with an opinion about what good looks like.</p></header><section class="skills-overview-howto"><h2 class="skills-overview-howto-title">How to pick one</h2>- <p>Every skill is named after the intent you bring to it. If you’re reviewing something, reach for <a href="/skills/critique">/critique</a> or <a href="/skills/audit">/audit</a>. If you’re improving type, reach for <a href="/skills/typeset">/typeset</a>. If you want a last-mile pass before shipping, reach for <a href="/skills/polish">/polish</a>. The categories below group them by the job you’re doing.</p>+ <p>Skills are named after the intent you bring to them. Reviewing something? <a href="/skills/critique">/critique</a> or <a href="/skills/audit">/audit</a>. Fixing type? <a href="/skills/typeset">/typeset</a>. Last-mile pass before shipping? <a href="/skills/polish">/polish</a>. The categories below group skills by the job.</p></section><div class="skills-overview-categories">@@ -234,12 +234,12 @@ export async function generateSubPages(rootDir) {const generated = [];- // Skills index — docs-browser layout with sticky sidebar.+ // Skills index: docs-browser layout with sticky sidebar.{const sidebar = renderSkillsSidebar(data.skillsByCategory, null);const main = renderSkillsOverviewMain(data.skillsByCategory);const html = renderPage({- title: 'Skills — Impeccable',+ title: 'Skills | Impeccable',description:'21 commands that teach your AI harness how to design. Browse by category: create, evaluate, refine, simplify, harden, system.',bodyHtml: wrapInDocsLayout(sidebar, main),@@ -252,17 +252,19 @@ export async function generateSubPages(rootDir) {generated.push(out);}- // Skills detail pages+ // Skills detail pages: same docs-browser shell as the overview.for (const skill of data.skills) {- const bodyHtml = renderSkillDetail(skill, data.knownSkillIds);- const title = `/${skill.id} — Impeccable skill`;+ const sidebar = renderSkillsSidebar(data.skillsByCategory, skill.id);+ const main = renderSkillDetail(skill, data.knownSkillIds);+ const title = `/${skill.id} | Impeccable`;const description = skill.editorial?.frontmatter?.tagline || skill.description;const html = renderPage({title,description,- bodyHtml,+ bodyHtml: wrapInDocsLayout(sidebar, main),activeNav: 'skills',canonicalPath: `/skills/${skill.id}`,+ bodyClass: 'sub-page skills-layout-page',});const out = path.join(outDirs.skills, `${skill.id}.html`);fs.writeFileSync(out, html, 'utf-8');diff --git a/scripts/build.js b/scripts/build.jsindex 61fb22724..7bd683a7f 100644--- a/scripts/build.js+++ b/scripts/build.js@@ -159,6 +159,63 @@ function validateAntipatternRules(rootDir) {return errors;}+/**+ * Scan user-facing copy for em dashes (— or —).+ * Em dashes in project copy are a known anti-pattern here; flag them loudly.+ * Only scans files where we author copy, not vendored or generated output.+ *+ * Returns the number of occurrences found.+ */+function validateNoEmDashes(rootDir) {+ const targets = [+ 'content/site',+ 'public/index.html',+ 'public/cheatsheet.html',+ 'public/gallery.html',+ 'public/privacy.html',+ 'scripts/build-sub-pages.js',+ 'scripts/lib/sub-pages-data.js',+ ];+ const extensions = new Set(['.html', '.md', '.js', '.mjs', '.css']);+ const emDashPatterns = [/—/g, /—/gi, /—/gi, /—/gi];+ let errors = 0;++ const scan = (absPath, rel) => {+ const stat = fs.statSync(absPath);+ if (stat.isDirectory()) {+ for (const entry of fs.readdirSync(absPath)) {+ scan(path.join(absPath, entry), path.join(rel, entry));+ }+ return;+ }+ if (!extensions.has(path.extname(absPath))) return;+ const src = fs.readFileSync(absPath, 'utf-8');+ const lines = src.split('\n');+ lines.forEach((line, i) => {+ for (const re of emDashPatterns) {+ if (re.test(line)) {+ console.error(` ❌ ${rel}:${i + 1}: em dash in copy → ${line.trim().slice(0, 120)}`);+ errors++;+ break;+ }+ re.lastIndex = 0;+ }+ });+ };++ for (const target of targets) {+ const full = path.join(rootDir, target);+ if (fs.existsSync(full)) scan(full, target);+ }++ if (errors === 0) {+ console.log(`✓ No em dashes in project copy`);+ } else {+ console.error(`\n❌ ${errors} em dash(es) in project copy. Use commas, colons, or parentheses.`);+ }+ return errors;+}+/*** Validate that every hand-authored HTML page carries the shared site header.* The partial is stamped with `<!-- site-header v1 -->` so drift is loud.@@ -538,7 +595,10 @@ async function build() {// Verify every hand-authored HTML page carries the shared site headerconst headerErrors = validateSiteHeader(ROOT_DIR);- if (countErrors > 0 || validationErrors > 0 || headerErrors > 0) {+ // Scan user-facing copy for em dashes+ const emDashErrors = validateNoEmDashes(ROOT_DIR);++ if (countErrors > 0 || validationErrors > 0 || headerErrors > 0 || emDashErrors > 0) {process.exit(1);}diff --git a/scripts/lib/sub-pages-data.js b/scripts/lib/sub-pages-data.jsindex 9009f7f5b..d283ed6cd 100644--- a/scripts/lib/sub-pages-data.js+++ b/scripts/lib/sub-pages-data.js@@ -25,7 +25,7 @@ const EXCLUDED_SKILLS = new Set([/*** Hand-curated category map for user-invocable skills.- * Mirrors public/js/data.js commandCategories. Validated below — the+ * Mirrors public/js/data.js commandCategories. Validated below: the* generator fails if any user-invocable skill is missing from this map.*/const SKILL_CATEGORIES = {@@ -70,11 +70,11 @@ export const CATEGORY_LABELS = {};export const CATEGORY_DESCRIPTIONS = {- create: 'Start something new — from a blank page to a working feature.',+ create: 'Build something new, from a blank page to a working feature.',evaluate: 'Review what you have. Score it, critique it, find what to fix.',- refine: 'Improve one dimension at a time — type, layout, color, motion.',+ refine: 'Improve one dimension at a time: type, layout, color, motion.',simplify: 'Strip complexity. Remove what does not earn its place.',- harden: 'Get it production-ready. Edge cases, performance, polish.',+ harden: 'Make it production-ready. Edge cases, performance, polish.',system: 'Setup and tooling. Design system work, extraction, organization.',};