/harlan-agent-kit:nuxt-frontend-design [component/page/area]from harlan-agent-kit
Builds or polishes Nuxt UI v4+ pages and design systems. Handles setup, page creation, and refinement for landing pages, dashboards, and tokens.
Ships in harlan-agent-kit. 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.
Full lifecycle frontend skill: setup, build, polish. Detects the right phase from project state.
Before any edit, follow the worktree isolation contract.
Job artifacts, contract format, dev server, checkpointing, and the handoff schema live in references/workflow.md. Read it before Phase 2 or Phase 3.
!bash "${CLAUDE_SKILL_DIR}/scripts/project-state.sh"
$ARGUMENTS is the text after the invocation, e.g. /nuxt-frontend-design frost landing page → "frost landing page". Parse it for both a theme name and an action; that example means ensure the frost theme, then build the landing page.
IS_NUXT=false: this skill needs a Nuxt project (nuxt.config.ts). Say so and stop.
| State | Phase |
|---|---|
| HAS_COLORS / HAS_THEME / HAS_GUIDELINES all false | Phase 1 (setup) |
| Mixed (some true, some false) | Phase 1 (repair a corrupted setup) |
$ARGUMENTS names a theme the design system doesn't use | Phase 1 with that theme |
| PRIOR_REVIEW with FAIL verdict | Repair pass (below) |
$ARGUMENTS asks for new pages | Phase 2 (build) |
$ARGUMENTS asks to refine/polish, or existing pages need work | Phase 3 (polish) |
| No arguments, design system exists | Phase 3 (audit existing pages) |
Repair pass: read the full {JOB_DIR}/review-report.md, not just the verdict line. Fix every [HARD REJECT] and [RUBRIC] item at its referenced file:line, then re-emit the handoff with updated contract_criteria_status. Reuse the existing job ID.
Phase 2 depends on a complete design system. If any of the three indicators is missing, run Phase 1 first and tell the user you're doing so.
After Phase 1, emit the handoff and continue into Phase 2 when pages were asked for. Offer a fresh conversation with /nuxt-frontend-design {page} only after repair passes or for multi-page builds.
Apply across Phase 2 and Phase 3. Review treats violations as hard rejects.
Each visible element does one job:
DESIGN.md registers as a brand asset.If an element has no job, delete it. Noise is any element that fails this test.
Show, don't tell. If a sentence describes what the UI does, show the UI doing it with a real component, real data, or a working demo. This applies to dashboards and empty states too.
No text decoration. These fail the test unless DESIGN.md registers them as brand:
If a section reads flat after removal, fix it with separation, scale, or layout. Do not add the decoration back. Sanctioned replacements: a data line below the heading, a hairline with a directional action, numbering where order is real, emphasis on one lead item.
Start with less. Build the first version with the fewest elements. Each addition names its job. Never pad with placeholder sections, dummy stats, filler copy, icon grids, or logo bars. Ask before you add content the contract did not name.
Subtraction pass. Before handoff, list each visible element with its job. Delete the ones with none. Show before and after screenshots.
Hard rejections unless the user explicitly asked for them:
system-ui / sans-serif fallback as the only fontA labelled placeholder beats a bad attempt at the real thing.
600×400 hero image, not a hand-drawn SVG mountainhttps://api.dicebear.com/9.x/initials/svg?seed={name} or https://ui-avatars.com/api/?name={name}https://logo.clearbit.com/{domain} for real brands, otherwise a labelled boxNever leave broken <img> tags or unstyled fallback boxes. Placeholders should look intentional.
Scope: placeholders suit internal tools, dashboards, and prototypes. Landing and marketing pages want real product demos, screenshots, and named logos per "Show, don't tell" above; a labelled grey box on a hero kills the sale. Fall back to placeholders only when real assets genuinely don't exist yet.
Surface these in the build contract as testable criteria.
Establish the visual foundation. Needed when no design system exists or a new theme is requested. No job ID: design system artifacts are shared, not job-scoped.
Commit to an aesthetic direction that serves the content before coding. Define one design principle as a tradeoff statement: "We prioritize X over Y" (e.g. "readability over visual impact", "tactile depth over minimalism"). Record it in DESIGN.md.
app.config.ts--font-* in @theme@nuxt/icon--ui-bg, --ui-text, --ui-radius for light/darkapp.config.ts slots/variantsnuxt.config.tsOverride, don't invent. Use Nuxt UI's existing tokens (bg-muted, text-default, --ui-bg, --ui-radius) and Tailwind's built-in utilities (shadow-md, rounded-xl). Customize by overriding those in app.config.ts and main.css rather than creating generic duplicates. Before naming a new token, check whether an existing --ui-* variable or Tailwind utility already covers it.
Theme signature tokens are the exception: when a theme's voice depends on an effect Tailwind can't express (--shadow-brutal, --shadow-clay, --shadow-paper, --shadow-glass, mesh/glow variables), define it. The ban targets generic duplicates (--shadow-soft, --radius-card), not theme-specific voice.
Available themes: frost, clay, blueprint, nebula, zen, neon, teenage-engineering, kinetic-paper, flow, devtool, monograph (the live list is injected above).
Read exactly one theme file: ${CLAUDE_SKILL_DIR}/references/themes/{chosen-theme}.md. Reading several for comparison burns context without improving the choice. With no theme specified, default to frost for dark mode projects and zen for light mode; ask only when the choice is genuinely ambiguous.
Emit DESIGN.md at the project root after writing app.config.ts, main.css, and nuxt.config.ts:
DESIGN.md exists, ask before overwriting. Offer to merge (keeping the decisions log) or abort.{colors.primary}, {rounded.md}) over restating hex/px values.DESIGN.md at the project root.grep -cE '\{\{|TODO|placeholder' DESIGN.md returns 0. (Single-brace {colors.primary} token refs are legitimate and stay.)pnpm dlx @google/design.md lint DESIGN.md without hiding stderr or piping away its exit status. Require a successful exit and zero reported errors. If the linter crashes, preserve the diagnostic and repair its input before retrying. For raw.match is not a function, quote floats and convert rgba() values to 8-digit hex. Record intentional button-primary contrast tradeoffs in docs/design-decisions.md.DESIGN.md is at or under 300 lines, and every section is at or under 40. The caps and the audit live in the root docs contract.Modifying an existing design system: update DESIGN.md in place.
DESIGN.md binds craft-rules.md to the project's components. It never restates those rules.
DESIGN.md owns the pixels. It does not own the words, and a page built with no decision about
its words ships whatever sentence each agent liked that day.
After emitting DESIGN.md, check for COPY.md at the project root. If the project has
user-visible strings and no COPY.md, say so and offer to run the
installed Brundlefly copywriting Skill init workflow. Do not write one from inside
this skill: it bootstraps from the strings that already ship, and that is a different harvest
from the one done here.
When COPY.md exists, read it before writing a single label, heading, empty state or error, and
keep DESIGN.md pointing at it rather than restating voice rules. DESIGN.md's Voice section
is one line: which file owns this.
Phase 1 failing mid-setup (build error, malformed config) means fixing the config before anything else. Verify all three indicators pass (colors: in app.config.ts, @theme in main.css, DESIGN.md with no placeholders) before moving to Phase 2. A DESIGN.md with unfilled template sections is worse than none.
colors.primary plus button.defaultVariants.variant: 'solid' in app.config.ts. Secondary actions (icon triggers, overflow menus, table row actions) can use ghost or outline; see components/feedback.md.Compose pages and UI patterns with Nuxt UI v4+. Requires a design system.
Run the dev server setup and contract steps in references/workflow.md before the first smoke test.
Build recovery: build-progress.md present without build-handoff.json means a previous build was interrupted. Read the progress file for which pages completed and which criteria remain, resume from the last incomplete page, and re-run dev server setup since the old process is gone.
If not already in context from Phase 1:
DESIGN.md core.COPY.md.GLOSSARY.md for each noun you will render. Do not read it whole.main.css, app.config.ts or nuxt.config.ts only to look up a token you need.Every string the page renders comes from COPY.md and GLOSSARY.md, in that order: the noun
from the glossary, the sentence around it from the copy file. Inventing either while building a
component is how a product ends up describing itself four ways.
Use the project's semantic tokens, fonts, and component overrides. Never hardcode colors, shadows, or radii that bypass the design system. For a design variation, override an existing Nuxt UI token rather than introducing a new one.
Load the reference matching what you're building. Loading several before writing any code costs context without improving the first page; pull the next one when you reach a new component type.
| Building… | Reference |
|---|---|
| Landing / marketing page | pages/landing.md |
| Dashboard / admin | pages/dashboard.md |
| Forms | components/forms.md |
| Data tables | components/tables.md |
| Navigation | components/navigation.md |
| Feedback / overlays | components/feedback.md |
| Charts, dashboards, sparklines, stat cards | polish/data-viz.md |
| Lists, tables, async states, custom CSS classes | craft-rules.md |
For 2+ options of the same page or component, vary across concrete dimensions rather than producing near-duplicates. Pick at least three of:
Start the first variation by-the-book, then escalate: each successive variation pushes further on one or two axes. Three variations differing only in accent colour are the same design three times.
Expose variations via route (/pages/index-a.vue, /pages/index-b.vue) or a ?variant= query param with v-if blocks so the user can A/B them in one tab.
Framework traps that grep won't reveal:
ButtonGroup → UFieldGroup, PageMarquee → UMarquee. Old names silently render nothing.UPageHero needs a parent section: wrap in UPageSection or a max-width container.UForm with Zod validates on blur by default. validate-on="input" for inline.UTable empty state: without an explicit empty slot, an empty table shows nothing.ClientOnly, not entire page sections.app/components/Foo.vue claims app-wide ownership (global auto-import, rename blast radius, collision risk). Default to colocating as _Foo.vue next to its page; the _ prefix opts out of auto-import. Promote to app/components/ once ≥2 unrelated features consume it. Review hard-rejects single-caller globals.Review's hard rejection list is the authoritative rubric; see /nuxt-frontend-review.
Refine existing interfaces against the project's own design system, not generic best practices. If $ARGUMENTS names an area (typography, motion, color), go straight to that reference.
Read the foundation files from Phase 2 if they aren't in context.
Missing tokens cause inconsistency downstream. Fix gaps before elevating.
| Token category | Where defined | What to check |
|---|---|---|
| Colors | app.config.ts colors | primary and neutral set? Additional theme colors registered? |
| Fonts | @theme --font-* | At least --font-sans? Display/mono if used? |
| Semantic overrides | :root / .dark --ui-* | --ui-bg, --ui-text, --ui-border customized? |
| Component overrides | app.config.ts ui.* | Key components themed? defaultVariants set? |
| Unnecessary tokens | @theme | Custom tokens duplicating Tailwind builtins or --ui-*? Remove and use the existing token. |
Polish modifies an existing voice. Read 2-3 key .vue files first and state what the interface is currently saying: copy tone, shadow and card treatment, density, hover and focus states, animation style, rhythm between sections. The goal is to match and elevate that vocabulary. Not being able to describe the existing voice in one sentence means you are not ready to polish.
Review's mechanical checks are the authoritative list (hardcoded hex/rgb, slate-/gray-/zinc-/stone- outside the configured neutral, bg-white/text-black, banned font families, custom @theme tokens duplicating --ui-*). See harlan-agent-kit:nuxt-frontend-review → references/mechanical-checks.md. Fix hits before handoff; review re-grades the same patterns.
Lead with the class-token inventory, the same command review runs:
pnpm dlx @ripast/cli css-class-scan --glob 'app/**' --sort count-desc --json
Look for:
bg-gray-100 + bg-slate-100 + bg-zinc-100 all filling one semantic role (bg-muted). Each cluster is a conformity fix.With an obvious token map, apply it via ripast css-class-rename --map tokens.json --apply (dry-run first) rather than hand-editing call sites.
Beyond the mechanical list: inconsistent shadow/radius choices across similar components (pick one per component type in app.config.ts), inline style=, raw HTML where a Nuxt UI component exists, and anything in DESIGN.md the implementation contradicts.
Present findings before changing anything:
**Audit findings:**
Token issues (will fix):
1. Hardcoded `bg-slate-100` in HeroSection.vue:42 → should use `bg-muted`
Aesthetic observations (need your input):
2. Hero text feels small for a landing page → increase size? [intentional / fix]
3. Cards all use identical treatment → add hierarchy? [intentional / fix]
docs/design-decisions.md, or ## Design Decisions in DESIGN.md if the repo has not split. Anything already ruled on is settled; present only new observations. If all of them are covered, fix the token issues and move to Elevate.After confirmation, append each "intentional" choice to docs/design-decisions.md with a date. If it changes a standing rule, edit that rule in DESIGN.md in one sentence. Never add dated text to DESIGN.md. Follow the root docs budgets.
Fix only approved items.
Once foundation and consistency are solid and the audit is confirmed. Read by symptom:
| Symptom | Reference |
|---|---|
| Feels flat/static | polish/interactions.md |
| No entrance animations | polish/motion.md |
| Typography feels generic | polish/typography.md |
| Layout cramped or boring | polish/spatial.md |
| Colors dull or inconsistent | polish/color.md |
| Not responsive enough | polish/responsive.md |
| Copy unclear or generic | polish/ux-writing.md |
| Reaching for JS/custom tokens for native CSS work | polish/css-toolkit.md |
| Chart/dashboard noisy, dishonest, or low data-ink | polish/data-viz.md |
For "make it better" or "polish everything": start with interactions.md + motion.md + color.md (highest impact), add spatial.md, typography.md, responsive.md, ux-writing.md only where the audit found issues, and consult css-toolkit.md whenever you are about to invent a token, add a JS scroll observer, or hand-code a popover, since the native CSS equivalent is usually one line.
With $DEV_PORT / $DEV_LOG allocated (see workflow reference):
curl -sf "http://localhost:$DEV_PORT/{route}" > /dev/null && echo OK || echo FAIL
grep -nE '^\s*(\[error\]|\[warn\]|ERROR|WARN|✖|✘|Hydration |Cannot find|Failed to (resolve|compile))' "$DEV_LOG" \
|| echo "dev server log clean"
That is the whole self-verification at this stage. Visual and interaction verification is review's job; duplicating it here wastes context.
ClientOnly wrapper or onMounted for entrance animations@supports fallback for older Safari@importcontainer-type: inline-size on the parentPolish work emits the same handoff as a build; see references/workflow.md.
For components Nuxt UI doesn't cover, or where it is too prescriptive, use Reka UI: unstyled, accessible Vue primitives you style with Tailwind.
references/components/feedback.md (opens in a new tab)references/components/forms.md (opens in a new tab)references/components/navigation.md (opens in a new tab)references/components/tables.md (opens in a new tab)references/craft-rules.md (opens in a new tab)references/design-system.md (opens in a new tab)references/pages/dashboard.md (opens in a new tab)references/pages/landing.md (opens in a new tab)references/polish/color.md (opens in a new tab)references/polish/css-toolkit.md (opens in a new tab)references/polish/data-viz.md (opens in a new tab)references/polish/interactions.md (opens in a new tab)references/polish/motion.md (opens in a new tab)references/polish/responsive.md (opens in a new tab)references/polish/spatial.md (opens in a new tab)references/polish/typography.md (opens in a new tab)references/polish/ux-writing.md (opens in a new tab)references/themes/blueprint.md (opens in a new tab)references/themes/clay.md (opens in a new tab)references/themes/devtool.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
maxnpx claudepluginhub harlan-zw/harlan-agent-kit --plugin harlan-agent-kit35 skills in this plugin
/adversarial-reviewReview one pull request adversarially, hand permitted defects to Repair, verify the remote head, and publish the Harlan Agent Kit bot status. Use for rigorous pre-merge PR review./agent-feedbackImprove one Agent skill from explicit Review feedback. Use only for the agent-feedback Routine./agent-retroWeekly retro of Harlan GitHub Agent sessions. Group transcripts by goal, find repeated and wasted work, and rank fixes to the controller, prompts, skills, or model. Use for agent retro, session review, agent efficiency, or self-improvement runs./brand-labExplore brand directions for a product on one private HTML page: a logo and small UI motifs, three or more variations each, with picks and rationale. Use when the user wants to rethink or strengthen a brand, logo, or brand motif, compare brand variations side by side, or says the branding feels basic./browserUse Harlan's browsers with the correct identity. Use before browser testing, signed-in automation, screenshots, or Chrome connection recovery. Covers prompt-free Clients and Agent Chrome, shared Harlan Chrome, dev-browser, and tab cleanup./ci-reviewInspect GitHub Actions logs for warnings and errors, triage their causes, and repair actionable findings. Use for the ci-review Routine and its Issue work.Other plugins' skills for the same job