Agent skill

Design Loop Skill: Build a Whole Site Page by Page

The design-loop skill has an AI coding agent build a multi-page site one page at a time, passing a task file forward until the sitemap is complete.

Install
git clone https://github.com/jezweb/claude-skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the design-loop skill?

The design-loop skill is a SKILL.md in the frontend plugin of Jezweb's skills repository. It reads a baton file, .design/next-prompt.md, generates one HTML and Tailwind page, wires it into the site, checks it in a browser if one is available, then writes the next task so the loop continues.

The design-loop skill is a folder in Jezweb's skills repository that turns a site build into a relay. A file named .design/next-prompt.md holds the current task, and every pass ends by writing the next one.

That baton carries a page name, an optional layout and a prompt body. The agent builds the page, then picks what comes next from the roadmap in .design/SITE.md. When the baton reads page: _complete, the loop stops.

What one pass does

  • Reads the baton, then the sitemap in SITE.md, the design system in DESIGN.md and the newest page in site/public.
  • Writes one self-contained HTML file using the Tailwind CDN with no build step, copying the header, nav and footer verbatim from the previous page.
  • Adds the new page to the navigation of every existing page, replaces href="#" placeholders and checks internal links.
  • Takes desktop and mobile screenshots when Playwright CLI or a Chrome MCP is available, and skips that step when neither is.
  • Marks the page done in SITE.md and writes the next baton so the relay never stalls.

Two generation backends

By default the agent writes the HTML and Tailwind itself, with no dependencies. If the Google Stitch SDK is installed, a STITCH_API_KEY is set and .design/metadata.json exists, the loop generates screens through Stitch and then post-processes the HTML.

Stitch designs are saved to .design/designs and screenshots to .design/screenshots. Refinements use screen.edit instead of a full regeneration. For related Stitch skills in this hub, see stitch-loop and stitch-generate-design.

Who the design-loop skill is for

Best for

  • Building every page of a small brochure or marketing site from one brief, with a person saying next or keep going between pages.
  • Hands-off runs where the agent works through a roadmap until the site is complete, or a CI job triggered by changes to the baton file.
  • Projects that want a sitemap and a written design system kept on disk, so each pass starts from the same facts.

Not for

  • A single page or one component. The SITE.md and DESIGN.md scaffolding is overhead there. Try frontend-design instead.
  • Agents outside the one its frontmatter names. See the compatibility answer in the FAQ below.
  • Framework apps or CMS themes. The output is plain HTML files in site/public, not React components or a WordPress theme.
  • Sign-off without a browser tool. With none available, the visual check is skipped.

Use it with UiChemy

The loop ends with static HTML and Tailwind files in site/public. To move a finished build into WordPress, UiChemy AI to WordPress imports an AI build, and you can refine the result in UiChemy Composer. Click Get Started on uichemy.com.

If you already have a live site to match, extract its tokens first and feed them into DESIGN.md. See extract-design-system and design-md for that step.