Communitygithub.com

shippable-frontend

Use when building or reshaping any UI — component, page, redesign, polish pass, landing or marketing site. Skip for pure backend and one-line tweaks. Detects marketing vs app surface and branches density, viewport and copy rules accordingly; verifies with screenshots at both viewports before declaring done.

O que é shippable-frontend?

shippable-frontend is a Claude Code agent skill that use when building or reshaping any UI — component, page, redesign, polish pass, landing or marketing site. Skip for pure backend and one-line tweaks. Detects marketing vs app surface and branches density, viewport and copy rules accordingly; verifies with screenshots at both viewports before declaring done.

Funciona com✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alessio-create/claude-code-os/tree/HEAD/skills/shippable-frontend

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Shippable Frontend

Builds frontend code that does not look AI-generated. Hard rules synthesized from 12 AI coding-tool system prompts (~/.claude/skills/skill-forge/logs/shippable-frontend-sources.md, not shipped in this kit), then corrected by 14 logged uses.

When to use

Any frontend or UI task — component, page, redesign, polish pass, landing page, dashboard view — including when the user asks for something "beautiful", "modern" or "polished", or names a reference design.

Not for pure backend / API / infra work with no UI surface, or one-line CSS and copy tweaks. On a blank brief with no visual direction, run frontend-design first for aesthetic direction, then this skill to build, verify and log.

Inputs

The user's request, free-form, plus the repo — package.json and 2–3 existing components, read before writing anything.

Procedure

brief (skip by default) → read context → copy ladder → build → verify → self-check → report + log

1. Brief — ask at most 2 questions, and only if the request leaves them open

Most requests arrive concrete or spec-driven. Default is skip and state your defaults; let the user redirect. Ask only what the request genuinely left open:

  1. Audience & vibe — editorial / brutalist / playful / technical.
  2. Reference or metaphor — a site, a screenshot, OR a stated metaphor ("Tooled Metal", "newsroom"). A well-chosen metaphor anchors as well as a screenshot.

Never exceed 2. If you need more, pick defensible defaults and name them in the report.

2. Read context — no questions, no permission needed

  • Read package.json. Identify framework + styling stack. Never import anything not already there — install it first or pick an alternative.
  • Glob 2–3 existing components in the same area. Match their conventions.
  • Read the theme/token file and main CSS. Reuse existing tokens; introduce none unless asked. If you rename tokens with sed, grep the old brand hex afterwards — sed misses hex and rgba() inside box-shadow and gradients.
  • Check what already exists against the request before writing. Repos are often half-built, and an auto-fix linter may be reshaping code mid-session; write utility-first and let it settle rather than fighting it.
  • Reference capture — pick one branch:
    • Screenshots provided → extract palette, hierarchy, copy voice, section structure by inspection. No fetch.
    • URL named → WebFetch with a design-language prompt. It returns palette, hierarchy, voice and section order — better than pixels for this. Use a browser only when pixel-level fidelity is the explicit goal.
    • Nothing given → proceed on the vibe variant alone.
    • Match the visual language; never copy verbatim.
  • Detect the surface type. "landing", "hero", "pricing", "site", "marketing" → Marketing. "dashboard", "editor", "settings", "admin", "app" → App. Neither → ask once.
  • Verify token contrast at design time if you define or modify color tokens — WCAG AA (4.5:1 body, 3:1 large/UI) on every plausible pair. Fixing later means re-touching every component.

3. Draft the copy ladder — before any JSX

For any hero-bearing section, write it as plain text first, as a comment block at the top of the component:

  1. Eyebrow — 2–5 words, position / who-for. 2. Headline — ≤10 words, concrete promise.
  2. Subhead — ≤25 words, proof or specifics, never a restatement. 4. CTA — ≤3 words, verb-led.
  3. Trust line — ≤15 words, named and concrete, or omitted entirely.

Grep the draft against the forbidden-phrase list in references/copy-rubric.md and rewrite any hit. For headlines use a contrast formula — "X at Y, not in Z", "Verb + concrete unit", "Named pain + relief" — naming the concept, not a competitor.

App surfaces use the same discipline in short form: function-led, no ladder theatre ({N} things in flight. not Welcome back!).

4. Build — apply the hard rules

Defaults. Override only when the user asks for the opposite.

RuleSource
No raw color values (text-white, bg-white, hex in JSX). Semantic tokens / CSS vars only.v0, Lovable, Leap.new
No abstract decorative shapes — no gradient circles, blurry squares, blobs.v0
Gradients ≤20% of viewport. Never on buttons, text or small UI. Exception: a subtle gradient as a depth substitute on a single surface, in lieu of shadow.Emergent + use #1/#3
Avoid purple / indigo / blue defaults — they read as "AI SaaS".Same.dev, Emergent
No system-UI fonts. Max 2 intentional families, one heading one body. Body line-height 1.4–1.6.Emergent, v0
Mobile-first for marketing surfaces. App surfaces: desktop-first unless mobile scope is stated. Flexbox for most layouts, grid for 2D only.v0 + use #7
State the grid before the first JSX line, then break it once on purpose — an asymmetric hero, a full-bleed band, an offset image, a row that spans. Sections that are all one centered column read as a template no matter how good the type is.Your rules
text-balance on display titles; text-pretty on body.v0
Whitespace as luxury on marketing surfaces — 2–3× more than feels comfortable. App surfaces: intentional density is fine when the job is to scan or edit many items. The bar: density must read as considered, never accidental.Emergent + use #1
Micro-animations on every interaction — hover, transition, focus, on specific properties. Never transition-all. Animate transform/opacity/filter, never width/height/top/left. Wrap in @media (prefers-reduced-motion: no-preference).Emergent, Leap.new
One orchestrated motion moment per marketing page — on sober sites a time-based entrance sequence (never scrubbed), on expressive ones a scroll-linked or sticky moment. Tier and budget: ~/.claude/skills/skill-forge/program.md § Your rules. Patterns to copy: references/motion.md. Never hide content behind an animation that may not run.Your rules + research :51
Depth through layering — shadows, overlaps, glass. Restraint. ⚠️ backdrop-filter makes an element a containing block: a glass header will clip position:fixed children. Give the child explicit top/height, or portal it out.Emergent + use #13
Semantic elements (<header>, <main>, <nav>, <section>), real <button>/<a>, labelled inputs. Not all <div>.v0, Lovable
Mimic existing project code style and patterns before inventing.Devin, Trae, Augment
Do NOT do more than the user asked. No bonus features.Augment

Vibe variants (applied after the hard rules). Motion and layout are part of the vibe, not a separate decision:

VibeType & shapeMotionLayout
Editorialserif heading (Fraunces, GT Sectra, Tiempos), line-height ≥1.6, 65–75ch measure, small-caps eyebrowsslow fades ≤300ms, no travel on body text, one scroll-linked rule or progress lineasymmetric columns, wide margins, one full-bleed image or quote
Brutalistheavy display sans (Geist, Inter Tight, Space Grotesk black), tight tracking, monochrome + one electric accenthard cuts, near-instant hovers, no soft easing, a marquee if anythingdeliberate grid violations, overlap, type running to the edge
Playfulsoft shadows, 12–20px radii, playful microcopystaggered entrances, overshoot easing, motion on hero + CTAcard grids that break rhythm, offset and rotated elements
Technicalmonospace eyebrow and inline accents (JetBrains Mono, IBM Plex Mono), 2–4px radii, sparse colorstate changes only, ≤150ms, no entrance choreographydense info grid, visible rules and dividers, aligned baselines

Polish details — pick 1–2, never all: grain or noise overlay on hero backgrounds (4–8% opacity; below 4% is invisible on dark); custom ::selection matching the accent; layered depth.

Charts: recharts ResponsiveContainer renders at width 0 under headless capture. Use a token-driven SVG kit for anything that must screenshot reliably.

Images: default to none — a type-only hero is more distinctive than stock. If needed: real product screenshots, or a real customer with permission. Never stock-photo smiling people, default purple illustrations, or picsum/loremflickr placeholders.

5. Verify — screenshots, then types

  1. Start the dev server in the background, matching package.json.
  2. Screenshot at 1440×900. Marketing surfaces also at 390×844 — non-negotiable, it is the most-skipped step in this skill's history — and measure horizontal overflow at 360 and 320 (scrollWidth > clientWidth): 390 hides a 16px overflow that 360 and 375 phones show, and the usual cause is a white-space: nowrap CTA wider than its column, which inflates every 1fr track it sits in (use #14). App surfaces with declared desktop-first scope: at least 1024×768 to catch tablet breakage.
  3. Tool: Playwright MCP when it attaches. It frequently does not — locked user-data-dir, profile held by the user's browser, or no MCP on this platform. Fall back to headless Chrome/Edge at the same viewports and say so in the report and the log. A missing screenshot is a failure; a fallback screenshot is not.
  4. Run tsc -b --noEmit. It catches more than the eye does.
  5. Motion check — marketing surfaces. Capture the same route twice, at scrollY=0 and after scrolling ~60%: the reveal must actually fire and nothing may stay stuck at opacity: 0. Then reload under page.emulateMedia({ reducedMotion: 'reduce' }): every word must be visible and still. Motion that exists only in the source is not verified.
  6. Look at the screenshots. Fix overflow, broken layout, missing assets, generic-AI look. Loop at most 3 times.

6. Self-check — fix anything that answers "no"

  • No transition-all; motion targets transform/opacity, sits behind a prefers-reduced-motion guard, and no content is hidden by default that only an animation can bring back.
  • text-balance on display titles, text-pretty on body paragraphs.
  • No raw hex / text-white / bg-white in JSX — tokens only.
  • Body contrast ≥4.5:1; large text and UI ≥3:1.
  • Every interactive element has a visible :focus-visible (a Tailwind 4 outline-ring/50 base layer counts).
  • Every <img> has descriptive alt; decorative icons are aria-hidden.
  • Tab order matches visual order; nothing clickable is unreachable.
  • Every import exists in package.json.
  • tsc -b --noEmit clean.
  • Swap test: substitute 3 competitor names into the copy. If any reads unchanged, it is generic — rewrite.
  • Scope matches the request. No bonus features.

This list checks hygiene, not taste. It has passed twice on work the user then rejected as reading like a prototype. On marketing surfaces, hand the result to design-critic before declaring done.

7. Report + log use

Report: one sentence — what you built, which vibe, which viewports passed, and whether the screenshot tool fell back. Include the copy ladder so microcopy can be edited without reading code. Do not summarize the diff.

Log to ~/.claude/skills/skill-forge/logs/shippable-frontend-uses.md — this is now the skill's only feedback mechanism. Without the entry, the skill cannot learn.

## YYYY-MM-DD — <one-line request summary>
- Surface / vibe: <app | marketing> / <editorial | brutalist | playful | technical>
- Files: <path>, …
- Copy ladder: <eyebrow> / <headline> / <subhead> / <CTA> / <trust>
- Verified: <tool> @ <viewports>
- Notes: <pushback, surprise, or a rule that got in the way>

Anti-patterns

  • Skipping the visual check. Why: code that type-checks is not a design that ships. Apply: screenshots at the surface's required viewports, every time — fall back rather than skip.
  • Silent tool substitution. Why: five sessions quietly ran headless Chrome instead of Playwright and the skill never learned it. Apply: when you deviate from the prescribed tool, name it in the report and the log.
  • Inventing libraries. Why: importing something absent from package.json crashes the dev server and forces a recovery loop. Apply: read it first; install or substitute.
  • Drifting back to LLM defaults on second use. Why: without the rules table front-of-mind the model regresses to gradient hero + three feature cards + purple CTA. Apply: re-read the table at the start of every build, not just the first.
  • Treating the self-check as a taste gate. Why: it has scored a pass on work the user called a prototype. Hygiene and product-feel are different questions. Apply: design-critic for the second one.
  • Accessibility as afterthought. Why: a beautiful page at 2.8:1 with outline-none ships an exclusion. Apply: the a11y items are non-negotiable; fix before reporting, not after.

Example

Technical vibe, no reference named, tokens already in the theme. Every hard rule is visible in the output:

// ladder: For Claude builders / Compose skills, prompts, and agents — visually /
//   An editor for the Claude Code skill format. Lives in your repo, not a SaaS. / See it work
export function Hero() {
  return (
    <section className="px-6 py-32 md:py-40">         {/* semantic, mobile-first, generous py */}
      <div className="max-w-2xl">                     {/* measure capped, not center-aligned */}
        <p className="font-mono text-xs uppercase tracking-widest text-accent">v0.1 — for Claude agents</p>
        <h1 className="mt-6 text-balance text-5xl font-semibold leading-tight text-ink">
          Compose skills, prompts, and agents — visually
        </h1>
        <p className="mt-5 text-pretty text-lg leading-relaxed text-ink/70">
          An editor for the Claude Code skill format. Lives in your repo, not a SaaS.
        </p>
        <a href="/app" className="group mt-10 inline-flex items-center gap-2 rounded-[4px] bg-ink px-5 py-3
             text-paper motion-safe:transition-[color,transform] motion-safe:duration-200 hover:-translate-y-px">
          See it work
          <ArrowRight className="size-4 transition-transform group-hover:translate-x-0.5" aria-hidden />
        </a>
      </div>
    </section>
  );
}

Plus one polish detail, global: ::selection { background: var(--accent); color: var(--paper); }.

What is not there: no hex or text-white, no gradient, no emoji icon, no transition-all, no system font-sans; the decorative icon is aria-hidden.

Reference

  • references/copy-rubric.md — forbidden phrases, headline formulas, CTA rules, the swap test.
  • references/motion.md — the eight motion patterns, native CSS, copy-pasteable, with the tier budgets and the two gotchas that have already cost a session.

Habilidades Relacionadas