# Build a Website or Web App with Lilac Flow

Run the entire Lilac flow for a website or web app from one idea, with human approval gates and proof at every stage. The process includes ten stages, and you perform the work while `build.mjs` ensures accuracy and checks real tools.

**Canonical URL:** https://skillshunter.net/skills/discovered-3bb6e665f29e6deb752bacd5d5c59355a64c254a98281a15

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-3bb6e665f29e6deb752bacd5d5c59355a64c254a98281a15

**Markdown URL:** https://skillshunter.net/skills/discovered-3bb6e665f29e6deb752bacd5d5c59355a64c254a98281a15.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-3bb6e665f29e6deb752bacd5d5c59355a64c254a98281a15/download

**Category:** Software & Development

**Source URL:** https://github.com/DevPatel128/lilac-plugin/blob/7e77aadbd31442412fba6856e43e4a2d8b781a6d/skills/build/SKILL.md

**Source commit:** 7e77aadbd31442412fba6856e43e4a2d8b781a6d

**Listing approved at:** 2026-11-29

**Created at:** 2026-11-28T18:57:37.000000Z

**Updated at:** 2026-11-29T10:53:53.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Before starting, ensure the `CLAUDE_PLUGIN_ROOT` environment variable is set and the required dependencies are installed. The first step is to run `node "${CLAUDE_PLUGIN_ROOT}/scripts/build.mjs" init "<dir>" --idea "<idea>"` to initialize the project.

### When to use it

- Developing a website from an initial idea with structured stages
- Implementing a web app with human approval gates at each step
- Tracking progress and timing of each stage using `.lilac/progress.json`

## Skill instructions

---
name: build
description: Run the whole Lilac flow for a website or web app from one idea, with human approval gates and proof at every stage.
disable-model-invocation: false
---
# /lilac:build "<idea>"

One command, ten stages. You do the work. `build.mjs` keeps the truth and checks the real tools. Start: `node "${CLAUDE_PLUGIN_ROOT}/scripts/build.mjs" init "<dir>" --idea "<idea>"` (add `--severity <1-10>` when the user already chose). Right after init, call TaskCreate once per stage and gate that applies at this severity (`build.mjs status` lists them) and tick each as it passes; `.lilac/progress.json` holds the same steps and timings.

**At the start of EVERY turn run** `node "${CLAUDE_PLUGIN_ROOT}/scripts/build.mjs" status "<dir>"` (after an interruption run `resume` first). It prints the current stage and the exact next command. Do that command's job, nothing else.

Stages: 1 brief (human approves) -> 2 foundation (human approves) -> 3 funnel (human approves) -> 4 build -> 5 gates -> 6 fix loop -> 7 hosting (ASK) -> 8 preview (human approves) -> 9 deploy plan -> 10 handoff.

- Brief: skill `brief`, then `build.mjs approve <dir> brief --by --quote` with the human's own words.
- Foundation: skill `foundation`. Funnel: the funnel skill, then `approve <dir> funnel`.
- Build: write the site using `brand/tokens.css` and the blocks in `${CLAUDE_PLUGIN_ROOT}/blocks` if that folder exists. No invented facts: use `UNKNOWN` or SAMPLE.
- Gates: `build.mjs gates "<dir>"` runs the gates this severity needs (list: `scripts/gates.json`). Static gates run together; Chrome gates (qa-browser, controls-test, persona-test with 30 simulated visitors) run one at a time. Below severity 7 the Chrome gates are deferred: show the preview first, and run `gates "<dir>" --post` while the human looks. They must pass before deploy-plan. Then do the `ux-review` skill on the real pages.
- Fix loop, at most 5 rounds (3 once a severity is set): each round list what failed and what you changed, then run `gates "<dir>" --failed` (reruns only the failures). After the cap stop and ask the human. Only if they say go on, run `gates "<dir>" --continue`.
- Hosting: ask (1 Cloudflare default, 2 Vercel, 3 Cloudflare+Supabase, 4 Vercel+Supabase, 5 other). Code is on GitHub, not a question.
- Preview: `preview.mjs start`; record approval only after an explicit yes.
- Deploy plan: print it. Never run it. Handoff: `handoff.mjs`, then `build.mjs report`.

Rules
0. Every approval is the AskUserQuestion tool with Approve, Change something, Stop. Never type the question as text. At severity 6 or below ask brief, foundation and funnel in one call when they are adjacent. A PreToolUse hook (`approval-guard.mjs`) blocks site code while an approval is missing or stale; it is a guard, not proof a human clicked.
1. Never skip an approval stage. Never write a quote for the human or approve for them.
2. Never mark a stage done without evidence: `build.mjs done "<dir>" <stage> --evidence "<command> => <result line>"`. It re-runs the stage's own tool and refuses if it disagrees.
3. If blocked, run `block "<dir>" <stage> --reason "<why>"`, stop and ask the human.
4. Chrome tools must not overlap (the script serialises them). The floor never drops at any severity: no invented facts, secrets scan, no unlicensed assets, approval before deploy, no real-person imagery without consent.
5. Simulated visitors are not real users: say so every time.

