Communitygithub.com

brainzcode/premium-landing

Build a complete premium landing page, either replicated from a reference screenshot/URL or designed from a written brief, in HTML, React, Next.js or Astro. Use when asked to build, design, replicate or clone a landing page, marketing page, or one-page site; when handed a design screenshot or Figma/Pinterest reference to turn into code; or when a landing page needs a full premium pass. Covers design tokens, section patterns, the layout traps that silently break grids and marquees, and screenshot-based responsive verification from 320px to 1920px.

What is premium-landing?

premium-landing is a Claude Code agent skill that build a complete premium landing page, either replicated from a reference screenshot/URL or designed from a written brief, in HTML, React, Next.js or Astro. Use when asked to build, design, replicate or clone a landing page, marketing page, or one-page site; when handed a design screenshot or Figma/Pinterest reference to turn into code; or when a landing page needs a full premium pass. Covers design tokens, section patterns, the layout traps that silently break grids and marquees, and screenshot-based responsive verification from 320px to 1920px.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/brainzcode/premium-landing/tree/HEAD/plugins/premium-landing/skills/landing-page

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Premium landing page

A landing page is finished when it survives three checks: it matches its reference or brief, it holds together at every width from 320 to 1920, and nothing on it is accidental. Most of the work is the third one.

Decide the mode first

Reference mode — the user supplied a screenshot, PDF, URL, or "replicate this". Accuracy is the goal and "close enough" is failure. Measure the reference numerically before writing any CSS. Load reference-replication.

Brief mode — the user described a business, an audience, or a feeling, with no picture. Composition is yours to choose; the house rules and section library set the quality floor.

If both are present, reference wins for anything it covers and the brief fills the gaps. If neither is clear, ask — a landing page built for the wrong mode is wasted.

Ask only what changes the build

Do not interrogate. Four things actually alter the output:

  1. Stack — HTML / React / Next / Astro. Scaffold from templates/<stack>/.
  2. Brand basics — name, and either a palette or "pull it from the reference".
  3. Locale — drives currency, date format, UK vs US spelling. Ask once, stay consistent.
  4. Sections — only if neither a reference nor an obvious page type implies them.

Everything else has a defensible default. Use it and say what you assumed.

Build order

Working out of order causes rework, because the hero's height constrains everything above the fold and the design tokens constrain every section.

  1. Tokens — surfaces, ink, lines, accent, radii, easing, one fluid type scale. references/design-system.md.
  2. Hero — the most-corrected element on every build. 100svh, rhythm in vh. references/house-rules.md.
  3. Sections, in reference order. references/sections.md. Any slot needing a photograph: source it now, do not leave a grey box — ../stock-imagery/SKILL.md.
  4. Footer, then the finishing sequence below.
  5. Verify. Not optional — see below.

The traps

Read references/traps.md before writing grid, marquee, SVG-icon or full-bleed-image code. Six failures in there are silent: valid CSS, no error, wrong layout somewhere else. They cost hours each the first time and minutes with the reference open.

Verification is part of the build

A landing page that has not been screenshotted at real widths is not finished. Run the bundled harness:

scripts/verify.sh <url> --sweep          # overflow 320→1920 + hero fit
scripts/verify.sh <url> --shot 390x844   # a single viewport

It handles the macOS 500px window clamp that silently fakes every mobile screenshot. Details and the manual fallback: references/verification.md.

Three checks must pass:

  • No horizontal overflow at any width from 320 to 1920.
  • Hero fits one screen at 390×844, 414×896 and 1600×900, or grows deliberately.
  • Reduced motion still renders every section — no element left mid-animation.

Finishing sequence

Requested on every real build. This is the definition of done, not a nice-to-have:

  1. lenis-smooth-scroll
  2. premium-mobile-menu
  3. social-share-favicons
  4. build-credit
  5. README.md about the page — its sections, tokens, breakpoints, deploy steps — not about the tooling that made it
  6. .gitignore; commit message with no AI co-author line unless asked
  7. Deploy notes (GitHub Pages needs .nojekyll when any path begins with _)

What "premium" actually means here

It is not gradients and glass. It is: type that scales fluidly instead of jumping at breakpoints; motion that only ever touches transform and opacity; spacing measured against the axis it lives on; no dead bands; and a mobile layout that was designed rather than inherited from the desktop one. Every one of those is checkable, which is why they are the standard.

References

FileRead it when
references/house-rules.mdalways — the corrections that recur on every build
references/traps.mdbefore grid, marquee, SVG icons, full-bleed images
references/design-system.mdsetting up tokens and the type scale
references/sections.mdbuilding hero, marquee, accordion, card rail, footer
references/verification.mdverifying, or a screenshot looks wrong
../reference-replication/SKILL.mda reference image or URL was supplied
../stock-imagery/SKILL.mdthe page needs photography and none was supplied

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

brainzcode/premium-landing

Add a studio or agency build credit to a website footer — "Site by <Studio>" linking to the studio's site. Use when finishing or shipping a site, adding a footer, or when asked for an agency credit, build credit, designed-by line, or attribution. Covers wording, placement opposite the client's copyright, markup for each stack, styling from the host site's tokens, and the sitewide-footer-link SEO footprint when the same credit runs across many client sites.

brainzcode/premium-landing

Add Lenis smooth scrolling to a site correctly — setup, anchor offsets for sticky headers, scroll locking for modals and menus, reduced-motion handling. Use when asked for smooth scroll, Lenis, momentum/eased scrolling, or when smooth scroll broke a sticky header, a modal lock, or anchor links. Includes the sticky-position trap that only appears at non-zero scroll.

brainzcode/premium-landing

Build true Apple-style liquid glass in the browser — real refraction via SVG displacement maps, chromatic dispersion, specular edges. Use when asked for liquid glass, glassmorphism, frosted/glass cards, glass navbars, or when a blur-based "glass" effect looks flat. Includes the performance trap that makes backdrop-filter stutter on scroll and the contrast trap that makes text unreadable on glass.

brainzcode/premium-landing

Build a premium mobile nav — a hamburger button that morphs into a close X, a full-screen overlay panel with staggered link reveal, scroll lock, focus trap, and reduced-motion handling. Use when asked for a mobile menu, hamburger/burger button, nav drawer, off-canvas menu, or when a menu loses scroll position, still scrolls behind on iOS, leaks Tab focus to the page underneath, or the close button stops responding. Includes the z-index trap that swallows the close button and the iOS rubber-band trap.

brainzcode/premium-landing

Rebuild a design accurately from a supplied reference — a screenshot, PDF page, mockup or live URL — by measuring it numerically instead of eyeballing it. Use when asked to replicate, clone, match or rebuild a design "exactly", "1 to 1" or "with no mistakes", or when a build drifts from its reference. Covers extracting the true content box from a padded screenshot, deriving element positions as percentages, solving object-fit framing, and knowing when a reference cannot be matched.

brainzcode/premium-landing

Ship link previews and favicons that actually work - Open Graph and Twitter card tags, a correctly framed 1200x630 share image, and a full favicon set (SVG, ICO, apple-touch, maskable manifest icons). Use when asked for social sharing, OG image, open graph, twitter card, link preview, share image, favicon, app icon, apple touch icon, or web manifest. Also use when a shared link previews blank, shows the wrong image, or a favicon will not appear. Includes the absolute-URL trap that silently blanks every preview and the font trap that breaks SVG favicons on other machines.

brainzcode/premium-landing

Source free, licence-clear photography for a site from Unsplash — searching by mood rather than noun, sizing and cropping for the slot, honouring the API's hotlink and download-tracking requirements, and writing real alt text. Use when a page needs a hero image, section photography, avatars or card art and none was supplied; when placeholder greys need replacing with real imagery; or when asked to find, pick or swap photos for a design.

Related Skills