{"success":true,"name":"brimind-demo-site","description":"Build a speculative demo website for a prospect (a lead from client-finder or the Maps scraper) and put it live on a subdomain of offer.brimind.pro through the brimind-tunnel wildcard dispatcher. Use when asked to \"make a site for this lead / these businesses\", \"show them what their site could look like\", or to deploy any static site to the tunnel.","category":"unitary","path":"unitary/brimind-demo-site/SKILL.md","file":"SKILL.md","content":"---\nname: brimind-demo-site\ndescription: Build a speculative demo website for a prospect (a lead from client-finder or the Maps scraper) and put it live on a subdomain of offer.brimind.pro through the brimind-tunnel wildcard dispatcher. Use when asked to \"make a site for this lead / these businesses\", \"show them what their site could look like\", or to deploy any static site to the tunnel.\n---\n> Imported from [PRIVATE_HOST] `~/unitary/.claude/skills/brimind-demo-site`. Paths are relative to `[PRIVATE_HOST]:[PATH]`; run commands there via `ssh [PRIVATE_HOST] 'cd ~/unitary && ...'`. Owner send rules from skill i7-remote-ops still apply.\n\n\n# Demo site for a prospect\n\n**Read `brimind-house-style` first** — it carries the owner's standing rules on design\nboldness, required sections, the closing CTA, the BRIMIND footer credit and the\nanimation baseline. This skill is the mechanics; that one is the standard.\n\nTurn one or more leads into a live demo site at `https://<slug>.offer.brimind.pro/`.\nEvery demo is a route of ONE Next.js app, `clients/multisite` (owner 2026-10-03,\nsee step 3).\n\n**Where the folder goes.** Every client project lives under `clients/projects/<name>/`,\nnever at the repo root — the root is for tools we reuse across clients. See\n`clients/README.md`. Reach sibling tools by walking up to the repo root (look for a\nmarker folder like `brimind-tunnel/wildcard`), never by counting `..` segments.\n\n## 1. Get the leads\n\n**Run the `brimind-client-recon` skill first** — it gathers every detail the repo's tools can\nreach and writes the dossier this build reads from. The steps below are the short\nversion of it.\n\nReal, verifiable facts only — name, rating, address, phone:\n\n```bash\nnpm run maps --silent -- \"car repair garage Bantry West Cork\" --max 4 > /tmp/leads.json\n```\n\nJSON shape is `{ query, count, businesses: [...] }`. Everything else on the page is\nproposal copy you write. Prefer prospects with **no website or a Facebook page only** —\nthat is the pitch.\n\n## 2. Design — ui-ux-pro-max only\n\nDo not freestyle the visual direction. Invoke the `ui-ux-pro-max` skill and take the\npalette, pattern and type pairing from it:\n\n```bash\npython3 ~/.claude/skills/ui-ux-pro-max/scripts/search.py \"<product type> <industry> <keywords>\" \\\n  --design-system -p \"Project Name\" --variance 4 --motion 3 --density 4 -f markdown\n```\n\nPush the dials. Variance 4 on a trade business returned a pale corporate-blue layout the\nowner called ugly; variance 8 returned \"Hero-Centric Design\" / Brutalism — near-black,\naction red, sharp corners, type as the hero — which is what shipped. Adapt sensibly (it suggested\nPlayfair Display as *body* — use it for headings, Inter for body).\n\nNon-negotiables: a trade favicon per prospect (house-style 6b —\n`scripts/make-favicon.mjs`, never the browser globe), inline SVG icons (never emoji), 44×44px touch targets, visible focus\nrings, 4.5:1 contrast, `prefers-reduced-motion`, and the phone number one tap away on\nevery screen (sticky call bar under 860px).\n\n## 2b. Get their real photo — this is the difference between ugly and good\n\nA flat colour hero looks like a template. The business's own listing photo does not:\n\n```bash\nnpm run place -- \"<maps_url from step 1>\" --photos 8    # → photos[0].large\n```\n\nDownload it into `public/photos/<slug>.jpg` and use it full-bleed behind the hero with a\ndark veil. **Take the whole gallery, not one shot** — on a MÉTHODE 03 folder that is one\ncommand, and the template's `<Gallery />` section renders it:\n\n```bash\nnode agents/method/photos.mjs <slug> --write     # skill: brimind-maps-photos\n```\n Some listings only have a Street View thumbnail (the scraper mangles that URL) —\ndesign a typographic fallback hero for those instead of shipping a broken image.\n\n## 3. Build — inside the ONE Next.js app (`clients/multisite`)\n\n**All demo sites live in one Next.js app.** Owner, 2026-10-03 20:09Z: \"Make them all\nin one nextjs as I told Dali before\" — this replaces the 2026-09-01 \"one prospect, one\nproject\" rule. One app (`clients/multisite`, tenant `clients`, port 4030), one process,\none route per prospect: the Host header `<slug>.offer.brimind.pro` picks the client,\nso one prospect's page still never shows under another's domain (a cross-host request\nis a 404). Read `clients/multisite/README.md`.\n\nTwo ways to add a prospect, both served by that same app:\n\n- **Config site (default):** write `clients/projects/<slug>/site.config.js` (MÉTHODE 03\n  shape) + `public/photos/`; the template renders it.\n- **Hand-built (bespoke):** a page that needs its own design — `app/page.jsx`,\n  `app/layout.jsx` (title, `<html lang>`), `app/globals.css`, `data/`, `public/photos`\n  and `public/icons` in `clients/projects/<slug>/`. It is imported whole into\n  `sites/<slug>/` and keeps its own CSS. No `next/font`, no `'use client'` in the layout.\n\nEither way, one command imports, builds beside the live app, swaps, routes the\nsubdomain and proves 200 through the wildcard:\n\n```bash\nnode clients/multisite/scripts/publish.mjs <slug>[,<slug>…]\n```\n\nNever `npm run build` a clone on its own, never a new static tenant, never a new\nVercel project for a prospect. Every page footer must say it is a demo the business\nhas not commissioned.\n\n## 4. Deploy\n\n`publish.mjs` above is the deploy. The site is live only while the laptop, the wildcard\ndispatcher (:4444) and the tunnel agent are up.\n\n## Gotchas learned the hard way\n\n- **The site is live only while the laptop and the agent are up.** Say so when sharing\n  the link. `npm run install-service` in `brimind-tunnel/` makes it survive a reboot.\n- A `curl` of `000` on the public URL means the tunnel agent is down, not the site.\n- `npm run tunnel:status` shows whether `:4444` is actually forwarded.\n- Node entry-point guards written as ``import.meta.url === `file://${process.argv[1]}` ``\n  break in this repo — the space in \"Unitary tools\" URL-encodes and the process exits\n  silently. Use `pathToFileURL(process.argv[1]).href`. (Fixed in `wildcard/src/server.js`.)\n\n## 5. Give it a price to say yes to\n\nThe closing CTA does **not** point at one invoice for one price — see\n`brimind-house-style` rule 6. Write the prospect an **offer page** and point it there:\n\n```bash\ncd pay-invoicer && npm run offer -- \\\n  --name \"<business>\" --city \"<town>\" --country <ISO> --lang en|fr --currency EUR \\\n  --demo https://<slug>.offer.brimind.pro --maps \"<their listing>\" \\\n  --price go-live=100 --price retouch=200 --recommended retouch --sender <you>\n```\n\nIt prints `pay.brimind.pro/choix/<id>`. Put that in the site's data file as `offerUrl`\nand make the closing button open it. The prospect then sees what it costs to keep the\npage as it is, to have it reworked first, or to commission a full site — in euro,\ndollar or dinar — and picking one writes the devis. **You choose the numbers**: what an\nIrish garage will pay and what a Tunis garage will pay are different, and `--price`\nis where that judgement goes. Details in the root `README.md`.\n\n## After it is live\n\n**Verify it, don't assume it.** `sitewatch` notices the new folder on its own and\nchecks the site about a minute later, but do not leave the shift on that: ask for\nthe verdict now, and read it.\n\n```bash\nnode sitewatch/cli.mjs check <slug>     # exit 0 = live, exit 1 = it is not\n```\n\nA 200 with a nearly empty body counts as **down** — that is exactly what a\nhalf-finished export looks like, and it is the failure this check exists to catch\nbefore a prospect does. From then on the site is watched hourly, and Dali is called\nif it ever stops answering.\n\nRegister the folder in the root `README.md` table, `USAGE.md` and\n`clients/README.md`, add `<name>` / `<name>:build` scripts to the root `package.json`\nwith the full `clients/projects/<name>` path, and hand the leads to `dealflow` if the\ndemo is going to be used as outreach.\n\n## Build gotcha on this machine\n\nThe Telegram assistant worker inherits `NODE_ENV=development` and Next's own runtime\nvars (`NEXT_RUNTIME`, `__NEXT_PROCESSED_ENV`, `__NEXT_PRIVATE_ORIGIN`) from the dashboard\nprocess. Under those, `next build` dies prerendering `/_global-error` with\n`TypeError: Cannot read properties of null (reading 'useContext')` — and it is not your\ncode: an empty scaffold fails the same way. Strip them in the build script:\n\n```\nenv -u NEXT_RUNTIME -u __NEXT_PROCESSED_ENV -u __NEXT_PRIVATE_ORIGIN \\\n    -u NEXT_PRIVATE_TRACE_ID NODE_ENV=production next build\n```\n\n(`clients/projects/garage-sites/package.json` already does this — copy it for the next site.)\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}