The design language that makes your AI harness better at design.
JavaScript
Editorial wrappers for the remaining 7 skills
Paul Bakaus71a909f7da4d
diff --git a/content/site/skills/adapt.md b/content/site/skills/adapt.mdnew file mode 100644index 000000000..71786e04e--- /dev/null+++ b/content/site/skills/adapt.md@@ -0,0 +1,40 @@+---+tagline: "Make designs work across screens, devices, and contexts without amputating features."+---++## When to use it++`/adapt` is for taking a design built for one context and making it work in another. Mobile from desktop, tablet from mobile, print from web, embedded from standalone, email from dashboard. Reach for it when the source design is solid but falls apart at other breakpoints, on touch, or in a different container.++Not for building responsive from scratch. For that, start with `/impeccable` and shape the layout responsive-first. Adapt is for the "we never thought about mobile" backfill.++## How it works++The skill works through four dimensions of contextual fit:++1. **Breakpoints and fluid layout**: collapse multi-column to single, adjust clamp ranges, introduce new breakpoints where the design genuinely breaks.+2. **Touch targets**: minimum 44px hit areas, sufficient spacing between adjacent targets, larger tap zones than visual bounds where needed.+3. **Navigation patterns**: desktop sidebars become mobile bottom nav or slide-outs, dense toolbars collapse into menus, hover states get touch equivalents.+4. **Content priority**: decide what must be visible, what can collapse into disclosures, what can be removed entirely for that context.++The non-negotiable rule: adapt, do not amputate. Critical functionality cannot disappear on mobile just because it is inconvenient. Find a way to fit it, redesign the interaction, or reconsider whether it was really critical on desktop.++## Try it++```+/adapt the settings page for mobile+```++Expected changes:++- Three-column grid becomes single column with section headers acting as sticky dividers+- Sidebar nav moves to a horizontal scroller above the content+- Toggles gain 8px vertical padding so they meet 44px touch targets+- Inline help text moves to tap-to-reveal, not hover+- The "Danger zone" section expands fully on mobile instead of collapsing, because it contains irreversible actions and we want users to see them clearly++## Pitfalls++- **Amputating features.** If the mobile version hides things the desktop version can do, that is a regression, not an adaptation. Fight for the feature.+- **Treating mobile as "smaller desktop".** Mobile is a different context: thumbs, interruption, short sessions. Adapt to the context, not to the viewport width.+- **Skipping `/harden` afterward.** Responsive layouts reveal edge cases. Run hardening after adapt to catch the ones that only show up at 320px.diff --git a/content/site/skills/clarify.md b/content/site/skills/clarify.mdnew file mode 100644index 000000000..78593f650--- /dev/null+++ b/content/site/skills/clarify.md@@ -0,0 +1,42 @@+---+tagline: "Rewrite confusing UX copy so interfaces explain themselves."+---++## When to use it++`/clarify` is for interface text that makes people stop and think. Confusing labels, ambiguous button copy, error messages that blame the user, tooltips that repeat the label, empty states that say nothing useful. Use it when the problem is not the layout or the color, it is the words.++Good triggers: "users do not understand this field", "the error message is not helpful", "I cannot write good button copy", "this tooltip is a waste".++## How it works++The skill rewrites text across the surfaces where most UX copy problems live:++1. **Labels and field hints**: direct, specific, say what is expected.+2. **Button copy**: verb-first, describes the outcome, not the action. "Save changes" not "OK".+3. **Error messages**: explain what went wrong, whose fault it is, and what to do next. Never blame the user.+4. **Empty states**: orient the user, explain why the state is empty, offer a next step.+5. **Tooltips and helper text**: add information the label cannot carry, never restate it.+6. **Confirmation dialogs**: name the consequences, not the action.++The skill uses the audience and mental state from `.impeccable.md` to tune voice. Technical audience gets precise language. Consumer audience gets plain speech. Rushed users get short text. Anxious users (payment, delete) get reassurance.++## Try it++```+/clarify the billing form+```++Before and after, typical:++- Label "Billing address" → "Address on your card"+- Placeholder "Enter your VAT ID" → "VAT ID (optional, for business)"+- Error "Invalid input" → "This card number is 15 digits. You entered 14."+- Button "Submit" → "Charge $29 and subscribe"+- Empty state "No transactions yet" → "Your first charge will show up here after your first order."++## Pitfalls++- **Writing cleverer, not clearer.** Clarify is not for voice upgrades. If the copy is already clear, do not reach for this skill. Use `/delight` instead when you want personality.+- **Skipping the audience question.** Clarify needs to know who is reading. If `.impeccable.md` does not specify audience technical level, the rewrites will be generic.+- **Running clarify on marketing copy.** Clarify is for functional UX text: labels, errors, instructions. Marketing copy needs a different set of moves and a human writer.diff --git a/content/site/skills/extract.md b/content/site/skills/extract.mdnew file mode 100644index 000000000..963ad985f--- /dev/null+++ b/content/site/skills/extract.md@@ -0,0 +1,43 @@+---+tagline: "Pull reusable components, tokens, and patterns into the design system."+---++## When to use it++`/extract` is for the moment your codebase has accidentally become a design system. Repeated button styles in 12 places. Three variants of the same card. Hex colors scattered throughout. Hand-rolled spacing that accidentally matches a scale. Reach for it when you want to consolidate this drift into reusable primitives.++Use it after a product has shipped enough features to reveal the patterns. Premature extraction creates abstractions that do not match reality.++## How it works++The skill discovers the design system structure first, then identifies extraction opportunities:++1. **Tokens**: find repeated literal values (colors, spacing, radii, shadows, font sizes). Propose token names, add to the token system, replace usages.+2. **Components**: find UI patterns that repeat with minor variation (buttons, cards, inputs, modals). Extract into a single component with variants, migrate callers.+3. **Composition patterns**: find layout or interaction patterns that repeat (form rows, toolbar groups, empty states). Extract into composition primitives.+4. **Type styles**: find repeated font-size + weight + line-height combinations. Extract into text styles.+5. **Animation patterns**: find repeated easing, duration, or keyframe combinations. Extract into motion tokens.++The skill is cautious. It only extracts things used three or more times, with the same intent. It never extracts "because it might be reused later". Premature abstraction is worse than duplication.++## Try it++```+/extract the button styles+```++Expected output:++- Found 14 button instances across 8 files+- 4 distinct variants: primary (filled accent), secondary (bordered), ghost (text-only), destructive (filled red)+- All 4 variants use the same size scale (small, default, large)+- Extracted into `<Button variant="primary" size="default">` with token-driven styles+- Migrated 14 call sites, removed ~180 lines of duplicated CSS+- Added 3 missing tokens: `--button-radius`, `--button-padding-y`, `--button-padding-x`++## Pitfalls++- **Extracting too early.** Two usages are not a pattern. Three might be. Wait until the pattern is obvious.+- **Over-generalizing.** The extracted component should match the current use cases closely, not anticipate every possible future one. You can always add variants later.+- **Forgetting the migration.** Extraction without migration leaves the old duplicated code around and creates a third way of doing the same thing. Always migrate in the same pass.+- **Extracting things that differ in intent.** Two buttons that look similar but serve different purposes (primary action vs link styled as button) should probably stay separate.diff --git a/content/site/skills/normalize.md b/content/site/skills/normalize.mdnew file mode 100644index 000000000..30187f9f1--- /dev/null+++ b/content/site/skills/normalize.md@@ -0,0 +1,41 @@+---+tagline: "Pull drifted UI back into the design system."+---++## When to use it++`/normalize` is for the page that looks almost right but is not. Hard-coded colors where tokens should be, one-off spacing, a custom button that should have been the shared button, component markup that drifted during a rushed feature. Use it when consistency has decayed and you want to pull the feature back in line with the design system.++Good triggers: "this page uses a different button", "the spacing feels wrong compared to the rest of the app", "why is this blue different from the other blue".++## How it works++The skill audits the target against the design system, then fixes the drift:++1. **Tokens**: find every hard-coded color, spacing, radius, or shadow. Replace with the right token. Flag cases where no token fits (usually a sign the token system needs extending).+2. **Components**: find custom implementations of things the library already provides. Replace with the shared component, preserving functionality.+3. **Patterns**: find layouts that deviate from the standard patterns (form layouts, card grids, page headers). Align with the convention.+4. **Spacing and rhythm**: align to the spacing scale, fix any random pixel values.+5. **Typography**: make sure type styles come from the system, not one-off font-size/weight combinations.++Normalize is conservative. It does not redesign. It makes the feature match what the rest of the app already does.++## Try it++```+/normalize the billing page+```++Typical diff:++- 14 hard-coded hex values replaced with `var(--color-*)` tokens+- 6 one-off spacing values (13px, 27px, 11px) aligned to 8 / 16 / 24 / 32+- Custom "Upgrade" button replaced with `<Button variant="primary">` from the shared library+- Form layout restructured to use the shared `FormRow` component+- Font weight for section headings unified (was mixing 500 and 600 across similar headings)++## Pitfalls++- **Using normalize to redesign.** If you find yourself wanting to change how things look, not just make them consistent, you want `/polish` or `/arrange`. Normalize enforces consistency with what exists.+- **Skipping the token gap analysis.** When normalize flags "no token fits", that is signal. Extend the token system before shipping, or the drift will come back.+- **Running normalize on a prototype.** If the feature is still exploring, consistency is premature optimization. Normalize ships-ready features.diff --git a/content/site/skills/onboard.md b/content/site/skills/onboard.mdnew file mode 100644index 000000000..d081bdf9a--- /dev/null+++ b/content/site/skills/onboard.md@@ -0,0 +1,40 @@+---+tagline: "Design first-run experiences, empty states, and paths to value."+---++## When to use it++`/onboard` is for the moments that decide whether a new user sticks around: the first screen, the empty state, the setup flow, the product tour, the "what do I do now" gap. Reach for it when activation is weak, when new users drop off before reaching value, or when your product has empty states that say "no items yet" and stop there.++## How it works++The skill starts from one question: what is the aha moment, and how fast can a new user get there. Every design decision points at that moment.++It works across the surfaces that shape first impressions:++1. **First-run experience**: the moments immediately after sign-up. Should the user see a tour, a blank canvas, a filled example, or nothing at all. Pick the approach that matches the product.+2. **Empty states**: every zero-data screen gets oriented. Where am I, why is this empty, what do I do next, what will it look like once it is full.+3. **Setup and installation**: required configuration is minimized, defaults are smart, each step explains why it matters.+4. **Progressive disclosure**: advanced features stay out of the way until they are earned.+5. **Activation events**: the moment a user first experiences the core value is instrumented and celebrated, quietly.++The skill resists two common failure modes: over-tutorialized onboarding where users click through a carousel before they can touch anything, and zero-onboarding where users are dropped into an empty app and expected to figure it out.++## Try it++```+/onboard the editor+```++Typical output:++- First-run: replaces empty editor with a filled example document the user can modify. Cancel button discards the example, edit replaces the content with the user's work.+- Empty state on document list: "No documents yet. Create your first, or import from Notion, Google Docs, or Markdown."+- Setup: reduced from 6 required fields to 1 (workspace name). Everything else has a smart default and can be edited later in settings.+- Activation: the first time a user saves a document, a quiet toast says "Saved. Your work is in the cloud now." One-time, not repeated.++## Pitfalls++- **Adding a product tour as the default answer.** Most products do not need a tour. They need a better first screen. Tours are a crutch.+- **Designing onboarding without defining the aha moment.** If you cannot say in one sentence what the user should feel in the first 60 seconds, go back to `/shape` first.+- **Running onboard on a broken flow.** Fix the flow first. Onboarding cannot rescue a product where the core action is broken.diff --git a/content/site/skills/optimize.md b/content/site/skills/optimize.mdnew file mode 100644index 000000000..15b49905e--- /dev/null+++ b/content/site/skills/optimize.md@@ -0,0 +1,56 @@+---+tagline: "Diagnose and fix UI performance from LCP to bundle size."+---++## When to use it++`/optimize` is for interfaces that feel slow. First paint takes forever, scrolling janks, images pop in late, interactions feel laggy, the bundle ships 800KB of JavaScript. Use it when the Web Vitals are bad or when users are complaining that things are sluggish.++Do not use it as premature optimization. If LCP is 1.1s and INP is 80ms, stop. The design work matters more.++## How it works++The skill works through five perf dimensions:++1. **Loading and Web Vitals**: LCP, INP, CLS. Identify what is blocking the first paint, what is delaying interaction, what is shifting layout.+2. **Rendering**: unnecessary re-renders, missing memoization, expensive reconciliation, layout thrash in loops.+3. **Animations**: is anything animating layout properties, are transforms and opacity the only thing touched, does `will-change` help or hurt here.+4. **Images and assets**: lazy loading, responsive images (`srcset`, `sizes`), modern formats (WebP, AVIF), dimensions set to prevent CLS.+5. **Bundle size**: unused imports, oversized dependencies, missing code-splitting, dead code.++The skill measures before and after. Every fix gets quantified. If a change does not move a metric, it gets rolled back.++## Try it++```+/optimize the homepage+```++Expected shape:++```+LCP: 3.2s → 1.4s+ - Hero image preloaded (-800ms)+ - Removed render-blocking font stylesheet (-240ms)+ - Deferred analytics script (-180ms)++INP: 240ms → 90ms+ - Debounced scroll handler+ - Memoized expensive list render+ - Removed synchronous layout read in event loop++CLS: 0.18 → 0.02+ - Set dimensions on hero image and logo+ - Reserved space for async header badge++Bundle: 340KB → 180KB+ - Removed unused lodash import (52KB)+ - Code-split the playground route (78KB)+ - Dropped deprecated icon set (30KB)+```++## Pitfalls++- **Optimizing before measuring.** Without baseline metrics, you cannot tell what helped. Run `/optimize` with specific Web Vitals numbers, not vibes.+- **Chasing tiny wins.** A 20ms improvement in INP that takes a week is rarely worth it. Optimize has diminishing returns; know when to stop.+- **Forgetting to re-measure after every change.** The build could have made things worse in a way the skill did not predict. Verify.diff --git a/content/site/skills/overdrive.md b/content/site/skills/overdrive.mdnew file mode 100644index 000000000..ce76ce2e6--- /dev/null+++ b/content/site/skills/overdrive.md@@ -0,0 +1,44 @@+---+tagline: "Push an interface past conventional limits. Shaders, physics, 60fps, cinematic transitions."+---++## When to use it++`/overdrive` is for the moments where you want to impress. A hero that uses WebGL. A table that handles a million rows. A dialog that morphs out of its trigger element. A form that validates in real-time with streaming feedback. A page transition that feels cinematic. Use it when the project budget allows for technical ambition and the outcome needs to feel extraordinary.++Do not use it on operator tools, dashboards, or anything where reliability beats spectacle. Overdrive burns complexity for effect, and that trade-off is only worth it on moments that matter.++## How it works++The skill starts by picking the one moment to make extraordinary, not spreading effort across the whole interface. Then it reaches for technically ambitious implementations that most AI-generated UIs never touch:++- **Shaders and WebGL** for hero visuals and background effects+- **Spring physics** (react-spring, framer-motion springs) instead of CSS transitions for elements the user drags, flicks, or directly manipulates+- **Scroll-driven animations** using Scroll Timeline API, not scroll listeners+- **View transitions** for cinematic page changes+- **Canvas and SVG animation** for custom visualizations that actually interact+- **GPU-accelerated filters** (backdrop-filter, SVG filters) used with purpose+- **60fps everywhere**: every animation budgeted, profiled, and tested++The skill output is announced with `──── ⚡ OVERDRIVE ────` so you know you are entering a more ambitious mode. Expect larger diffs, new dependencies, and implementation depth beyond what other skills produce.++## Try it++```+/overdrive the landing hero+```++Expected additions might include:++- A WebGL shader background driven by mouse position and scroll+- Display headline with a mask reveal on scroll using Scroll Timeline+- Featured product image with a 3D tilt effect on pointer move+- A View Transition on the CTA that morphs into the next page+- Full reduced-motion fallback that swaps all of it for a static composition++## Pitfalls++- **Using it everywhere.** Overdrive works because it is rare. If every page has cinematic moments, none of them are cinematic.+- **Shipping without reduced-motion fallbacks.** Non-negotiable. Overdrive adds them automatically; do not remove them.+- **Ignoring performance.** Extraordinary moments still need to hit 60fps. If the effect drops frames, cut it or optimize. Slow spectacle is worse than simple done well.+- **Running overdrive before the base interface is solid.** Spectacle on a broken foundation reads as distraction, not delight.