AGENT SKILL

web-design

Load before planning, designing, auditing or launching any website, landing page, cinematic hero, microsite or above-the-fold layout, or a prompt for Lovable, Bolt or v0 to build one, including regulated (prescription drug, health, finance), multilingual or market-specific launches. Covers page types (home, product, pricing, about, blog), conversion and ethical persuasion, responsive and fluid layouts, Core Web Vitals, SEO and structured data, localization and language-law requirements, stack and CMS choice (Astro, Next.js, WordPress, Webflow, Framer) and launch QA.

License 许可
MIT
最近更新
2026-11-10
Stars
★ 2
Forks
0

01 前言 Front Matter

name
web-design
license
MIT
metadata
{ "agent-attribution": "computer=vm; tool=Claude Code; version=2.1.321; timestamp=2026-11-10 03:00:00 UTC", "version-timestamp": "2026-11-10 03:00:00 UTC" }
description
Load before planning, designing, auditing or launching any website, landing page, cinematic hero, microsite or above-the-fold layout, or a prompt for Lovable, Bolt or v0 to build one, including regulated (prescription drug, health, finance), multilingual or market-specific launches. Covers page types (home, product, pricing, about, blog), conversion and ethical persuasion, responsive and fluid layouts, Core Web Vitals, SEO and structured data, localization and language-law requirements, stack and CMS choice (Astro, Next.js, WordPress, Webflow, Framer) and launch QA.

02 资源文件 11

03 SKILL.md 正文

Web design

An excellent website says what it offers and for whom within five seconds, proves it with specifics, makes the next step obvious, loads fast on a mid-range phone, works for everyone, and can be found. Its look comes from the chosen direction and brand tokens, never from the template every other site uses.

Defaults

Decision Default Change when
Breakpoints Mobile-first min-width at sm 640, md 768, lg 1024, xl 1280, 2xl 1536px (token contract) Content breaks earlier: add a component-level container query, not a new global breakpoint
Containers Page max --container-xl (1280px); text at --measure-body (66ch); side padding --gutter Editorial or luxury: wider canvas with narrower text
Body text 16-18px, line-height 1.5-1.65 (--line-height-normal to --line-height-relaxed) Long-form articles: 18-21px
Fluid type clamp() with rem + vw; max size no more than 2.5x min so 200% zoom still works Fixed sizes for UI controls
Section rhythm Vertical padding clamp(var(--space-12), 2rem + 5vw, var(--space-24)) (48px at 320 to 96px at 1280) Dense product pages: --space-8 to --space-16
Hero Headline of 6-12 words naming the outcome, one supporting sentence, one primary CTA, real product or proof visual Brand campaigns: image-led hero with a short line
CTAs One primary goal per page; verb + outcome labels ("Start free trial"); 44-48px tall Content pages: soft secondary CTA (newsletter) only
Core Web Vitals (p75, field) LCP 2.5 s or less, INP 200 ms or less, CLS 0.1 or less; design for LCP 2.0 s to keep margin Never relax
Budgets (starting points) JS 150 KB compressed on marketing pages; LCP image 200 KB or less; 2 font families, 4 font files or fewer App-like pages: JS up to about 300 KB, split by route
Images AVIF with WebP fallback in picture, srcset + sizes, explicit width/height, lazy below the fold, fetchpriority="high" on the LCP image Logos and icons: SVG
SEO Unique title (about 50-60 characters), meta description (about 120-160), one h1, JSON-LD for Organization and page type, canonical, XML sitemap Noindex utility and thin pages
Accessibility WCAG 2.2 AA; axe plus keyboard plus one screen reader before launch Public sector and EU services: add an accessibility statement
Stack Astro for marketing and content sites; Next.js for app-like sites; WordPress, Webflow or Framer when the client edits without developers See stack selection
Consent No non-essential cookies or tags before consent in the EU and UK; "Reject all" as prominent as "Accept all" Cookieless, consent-exempt analytics where the jurisdiction allows
Social cards Open Graph and Twitter card per page, image 1200x630

Workflow

Paths in commands are relative to this skill's directory; resolve them to absolute paths before running.

  1. Brief and discovery. Goal and KPI per site and per page, audiences and their top tasks, traffic sources, competitors, existing analytics and Search Console data. For a redesign, audit content, SEO, Core Web Vitals field data and accessibility first.
  2. Direction. If the look is not set, run the design-director skill. Query the atlas: python3 ../../library/scripts/atlas.py query "<industry, market, audience, tier> marketing website" and read the channel.marketing-website entry.
  3. Structure. Sitemap, page types and content model with ux-design information architecture; messaging hierarchy per page.
  4. Page architecture. Wireframe each page type section by section with real copy using page architecture and conversion.
  5. Visual design. Apply the direction's tokens; design at 375px and 1440px, then specify behavior at every breakpoint with responsive and fluid. Components and states come from ui-design.
  6. Choose the stack and CMS with stack selection, including hosting, consent and analytics.
  7. Build semantic HTML on the kit tokens (../../library/tokens/dist/tokens.css), the image pipeline, fluid type, and performance budgets per performance; SEO per SEO. For a cinematic landing page, hero or single-file showpiece, follow the cinematic landing workflow (decide, calibrate, media, spec, build from the technique recipes, look and fix, deliver); for a prompt to Lovable, Bolt, v0 or another builder, use builder prompts.
  8. Render and inspect. Screenshot every page type at 375, 768, 1280 and 1440px in light and dark; review with the design-critique skill (add --early 350 to render_review.mjs to catch a white first paint and broken media); run Lighthouse on mobile and axe on every template; fix before showing anyone.
  9. Launch with the launch checklist; recheck field Core Web Vitals and Search Console after 28 days.

Decisions that change the answer

  • Site type. Single-goal landing page: minimal navigation, one CTA repeated. Corporate multi-page: audience routing from the homepage. Content or editorial: reading comfort, search, related content. Commerce: product detail and checkout patterns from ui-design flows. Docs: search, versioning, code samples.
  • Traffic source. Paid traffic: message match between ad and page. Organic: depth of content and internal linking. Direct and returning: fast paths to sign-in and top tasks.
  • Industry and market. Atlas entries set trust signals, regulation and conventions; for a regulated industry, read its entry before laying out the first view (for a prescription drug site, pharma-biotech: fair balance, ISI in the first view, indication and Prescribing Information links). Market changes language and hreflang, legal pages (an Impressum in Germany and Austria), consent rules, payment methods and type support for the script.
  • Audience. audience.low-bandwidth-entry-devices: halve the budgets and test on a low-end Android device. audience.older-adults: 18px+ body, high contrast, no hover-only content. audience.b2b-buying-committee: pages for each role, pricing transparency, security and procurement content.
  • Price tier. Luxury: slower pacing, larger imagery, fewer words, but the same LCP budget. Value: price and proof up front, dense comparison.
  • Who edits after launch. Developers only: Astro or Next.js with Markdown or a headless CMS. Marketers daily: a visual CMS or a no-code builder with locked design tokens.

Common failures

  • The generic AI site: centered headline over a purple gradient blob, three icon cards, a logo strip and "Unlock your potential". Fix: a specific value proposition, real product proof, the direction's layout logic and copy with numbers.
  • A perfect Lighthouse score with poor field INP from tag managers and chat widgets. Fix: judge by CrUX or RUM at p75; facade or defer third parties.
  • Lazy-loading the hero image. Fix: eager load, fetchpriority="high", preload if discovered late.
  • Autoplaying hero video with no pause control. Fix: poster image, muted, a visible pause button (WCAG 2.2.2), no autoplay under reduced motion.
  • Cookie banners that hide "Reject", cover the CTA or trap focus. Fix: equal-weight buttons, bottom placement that does not obscure focus.
  • Eight "Learn more" buttons. Fix: one primary CTA per section with a specific label; descriptive links.
  • Staging noindex shipped to production, or no redirect map after a migration. Fix: the launch checklist.
  • Pure vw font sizes that do not scale with zoom. Fix: clamp() with a rem component.
  • Fake countdown timers and "Only 2 left" when untrue. Fix: the dark-pattern rules in conversion.

References

Catalog IDs covered: web-discovery, web-audit, web-migration, web-content-strategy, web-information-architecture, web-page-architecture, web-page-templates, web-search, web-art-direction, web-responsive, web-media, web-system-assembly, web-conversion, web-forms, web-copy-fit, web-storytelling, web-visual-review, web-frontend, web-astro, web-motion-library, web-cms, web-platform-adapters, web-integrations, web-privacy, web-fidelity, web-accessibility, web-performance, web-seo, web-browser-qa, web-analytics, web-release, web-maintenance, web-commerce, web-accounts, web-localization, web-directory, web-editorial, web-booking

04 同仓库更多 Skills

newmindsgroup
newmindsgroup/visual-design-kit

ux-design

Load before designing or reviewing any flow, form, onboarding, navigation or content for real users, especially low-literacy, older, neurodivergent, child or other specific audiences. Covers research and usability tests, heuristic reviews, personas and jobs to be done, journeys and service blueprints, information architecture, UX laws, SUS, SEQ and HEART metrics, plain language and reading level, and microcopy and error messages.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

ui-design

Load before designing or specifying any interface screen or component, even a quick one: forms, tables, navigation, dashboards, onboarding, auth and passkeys, pricing, checkout, search and filters, settings, empty, loading and error states, notifications, consent and age-appropriate flows, and AI chat and agent interfaces, all to WCAG 2.2 AA. Also picks React UI libraries (toasts, drawers, command menus). Gives component specs, state matrices, sizes, density and keyboard and accessibility behavior.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

typography

Choose, pair, size and set type for brand, web, app, print, slides, signage and motion: modular scales, fluid clamp() type, measure, leading, tracking, OpenType features, font licensing and web font loading, and multiscript setting for CJK, Arabic, Hebrew, Devanagari and Thai. Use when selecting or pairing fonts, building a type scale or type tokens, fixing weak hierarchy or bad line breaks, setting long-form text or numbers, loading web fonts, or localizing type for another market.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

reference-reconstruction

Reconstructs the observed interface and behavior of a supplied app, site or screenshot set using a screen index, measurements, state and command maps, reusable components and matched-condition comparisons. Use when asked to reverse engineer, clone, reproduce or match a reference product, then adapt it if requested.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

print-packaging-social

Load before any print, packaging, label, barcode, social, out-of-home, slide-deck or email design question, even a quick one, and before making finished collateral files. Specs: bleed, safe zones, 300ppi, CMYK, PDF/X preflight, dielines, barcodes, social formats with 9:16 safe areas, billboard letter heights, 16:9 decks, bulletproof email. Renders token-driven brand books, sell sheets, cards, carousels and decks to PDF and PNG with a Canva editable twin.

★ 2
newmindsgroup
newmindsgroup/visual-design-kit

native-app-design

Design macOS, iOS, iPadOS and Android interfaces: native windows and surfaces, navigation, keyboard and pointer, accessibility, appearance modes, platform tokens, app icons and SwiftUI/Compose handoff. Use for native app screens, flows, store assets, Mac utilities or cross-platform choices. Mac implementation uses the optional BAMA workflow; preserve existing project OS targets and approved brand tokens.

★ 2