CommunityImagegithub.com

MD412/agentic-build-intro

Adds a first-visit intro to a static or plain-HTML site. A start screen shows the owner's name, title and location; on start, a scan traces the real page layout and labeled cursor agents draw boxes, type text and reveal images to build the actual page, which ends flat and normal. Use when asked to add an "agentic build" intro, start screen or build animation to a website.

What is agentic-build-intro?

agentic-build-intro is a Cursor agent skill that adds a first-visit intro to a static or plain-HTML site. A start screen shows the owner's name, title and location; on start, a scan traces the real page layout and labeled cursor agents draw boxes, type text and reveal images to build the actual page, which ends flat and normal. Use when asked to add an "agentic build" intro, start screen or build animation to a website.

Works with~Claude Code~Codex CLI✓Cursor✓Antigravity
npx skills add https://github.com/MD412/agentic-build-intro/tree/HEAD/skills/agentic-build-intro

Installed? Explore more Image skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Ask in your favorite AI

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

Documentation

Agentic Build Intro

A start screen, a scan of the real page, then a build of the real page by labeled cursor agents. No framework, no build step. Two files: assets/layers.js and assets/layers.css.

Files

  • assets/layers.js: the runtime. Reads config, shows the gate, runs the scan and the build.
  • assets/layers.css: all styles, themed through --lx-* custom properties.
  • assets/head-snippet.html: the three tags every page needs in its head.
  • references/gate-design.html, references/scan-design.html: the original standalone designs. Use them as the starting point if the owner wants a new gate or scan design.

Steps

  1. Back up the site. Then copy layers.js and layers.css into it (default paths /js/layers.js and /css/layers.css; adjust the snippet if the site uses others).

  2. Add the head tags to every page. Paste assets/head-snippet.html into each page's <head>. The inline script hides the page before paint only when the intro will run, and unhides it after 4s if the runtime never loads.

  3. Set the gate copy. Use data-* attributes on the script tag or a window.AgenticBuildIntro object set before the script loads. The object wins over attributes.

    KeyAttributeDefault
    namedata-namedocument.title
    initialsdata-initialsfirst letters of name
    titledata-titlehidden when empty
    locationdata-locationhidden when empty
    timezonedata-timezonevisitor's local time
    clockdata-clocktrue
    ctadata-ctaInitiate Portfolio Build
    skipdata-skipSkip to site
    agentsdata-agents30 desktop, 14 phone
    colorsdata-colorsbuilt-in palette (comma list)

    Use only facts the owner gave you. Never invent a name, title or location. Any extra copy is neutral UI text.

  4. Match the site's design system. Read the site's CSS variables and fonts, then override the --lx-* tokens on :root in the site's own stylesheet: --lx-bg, --lx-surface, --lx-stroke, --lx-text, --lx-muted, --lx-soft, --lx-ink, --lx-accent-1 to --lx-accent-4, --lx-font-display, --lx-font-body. The kit does not load fonts. Keep the site's own colors and pick vibrant agent colors that read on its background.

  5. Do not change how the scan works. The scan outlines come from the same element list the build uses, so outlines sit exactly where the real content lands and the scan agents hand off to the build agents at the same spots, colors and labels. Never swap in a generic wireframe.

  6. Keep these behaviors.

    • Boxes drag out with handles and W x H labels, text types with a caret, guide lines flash while agents work.
    • Images reveal over about 1.7s with a stepped top-down wipe, scan line, faint stripes and a grayscale to color settle.
    • Pacing defaults are smooth but brisk, all with a soft ease-in-out: cursors travel 0.5 to 0.7s, boxes drag out over 0.6 to 0.8s, text types at about 15ms per character with long blocks capped near 1.4s, and each agent pauses about 150ms between tasks. Speed is set from page size up front and eases up during the build if it falls behind a goal of about 23 seconds on desktop and 20 on phones, letting agents start further below the fold when needed. Agents always build every element down to the footer. A 45 second failsafe is the only hard stop.
    • Follow is on by default: when the next build target falls below about 65% of the viewport, the page eases down in one slow move so the work sits about 30% from the top. It never scrolls back to the top at the end. With reduced motion it jumps instead of easing.
    • Runs once per session. ?build=1 replays, ?build=0 skips. Enter starts, Esc skips the gate; wheel, click, touch or any key skips a running intro.
    • Works down to 390px wide with fewer agents on phones. prefers-reduced-motion skips the intro.
  7. Code rules. No code comments, no em dashes in copy, no AI-generated human figures.

  8. Verify by recording. Run node --check on the JS. Serve the site and record Playwright video at 1280x800 and 390x844: open ?build=1, click the start button, record 20 to 60s. Pull frames for the gate, scan, handoff, build and end state, check for page errors, and fix what you see. Confirm every existing page still returns 200.

  9. Report with the live link, a gate screenshot and the recording.

Related Skills