ask-matt
MAmattpocock/skills336k近 7 天新增 4,217 个 star
This skill should be used when the user asks to "agentize a website", "transform a website", "create an agentfront", "build a WWA app", "make an agent-first website", "turn a website into an agent experience", "agentizer", "wwa transform", or mentions "agentfront" in context of building one from a URL.
Transform any website into a custom AI-powered agentfront. The skill deeply analyzes the company — its market, products, value proposition, customers — then builds a tailored experience. NOT a template copy-paste.
Understand the company first, build second. Every company is different:
The agentfront must reflect what the company ACTUALLY is, not what Visa is.
./template/ relative to this SKILL.md — the skill directory (typically ~/.claude/skills/agentizer/ after install) contains the Next.js template. Content is generated custom per company. After cp -R, run the template's npx next build once to confirm nothing regressed in the template itself.
https://wwa.visa.codiris.app — live demo of a finished agentfront (payment card company). Source for the template is at https://github.com/Humiris/wwa-transform/tree/main/template.
If any template file looks incomplete or broken, inspect the live demo via WebFetch for visual reference, then apply the visaCards → productItems / VisaCard → ProductItem / annualFee → price renames — don't try to fix the template stub in place.
Use WebFetch on at minimum:
For EACH page, ask WebFetch:
Extract everything: brand name, tagline, ALL image URLs (full absolute),
colors (hex from buttons/headers/CSS), navigation items, products/features
with descriptions, pricing tiers, stats/numbers, customer logos,
testimonials, CTAs, form fields. Be exhaustive.
After crawling, THINK deeply about the company. Answer these questions BEFORE writing any code:
Market Understanding:
Product Understanding:
Content Structure:
Value Proposition:
Typography (CRITICAL — match brand aesthetic):
The template uses Geist by default. You MUST change fonts to match the brand:
| Brand Type | Fonts to Use | Implementation |
|---|---|---|
| Luxury fashion (Dior, Hermès, Chanel) | Playfair Display + Inter | Serif headings, clean body |
| Tech/SaaS (Stripe, Notion, Linear) | Inter or Geist | Modern sans-serif |
| Premium/Editorial (Apple, Aesop) | SF Pro / Helvetica Neue / system fonts | Clean, minimal |
| Fintech (Visa, Chase) | Geist / Inter | Professional sans |
| E-commerce (Amazon, Walmart) | Inter / Roboto | Readable, utilitarian |
Update src/app/layout.tsx:
import { Playfair_Display, Inter } from "next/font/google";
const serif = Playfair_Display({ variable: "--font-serif", subsets: ["latin"] });
const sans = Inter({ variable: "--font-sans", subsets: ["latin"] });
// In body: className={`${serif.variable} ${sans.variable} font-sans`}
Update src/app/globals.css:
:root {
--brand-primary: #000000; /* match brand color */
--brand-secondary: #C9A96E;
--font-serif-brand: var(--font-serif), "Didot", "Bodoni MT", "Georgia", serif;
}
h1, h2, .font-serif {
font-family: var(--font-serif-brand);
letter-spacing: -0.01em;
}
User Intent (CRITICAL — drives CTAs and modals): Analyze what users ACTUALLY do on this site. Map to correct CTA:
| Company Type | Primary Intent | CTA Text | Modal Type |
|---|---|---|---|
| E-commerce (Dior, Nike, Apple) | Shop / Buy products | "Shop Now" | Cart / Product detail |
| SaaS/API (Stripe, Notion) | Try / Book demo | "Start Free" or "Book a Demo" | Demo booking form |
| Enterprise (Salesforce) | Contact sales | "Contact Sales" | Sales form |
| Financial (Visa, banks) | Apply / Get card | "Apply Now" | Application form |
| Marketplace — Listings (Airbnb, Booking, Uber) | Search / Book | "Start Searching" | Search UI |
| Marketplace — C2C (Vinted, Depop, Etsy, eBay) | Sell AND Browse (dual intent) | "Sell Now" + "Start Browsing" | Seller signup modal (personal / pro) |
| Services (Consulting) | Contact / Meeting | "Book a Call" | Calendar booking |
| Content (Netflix, Spotify) | Subscribe / Try | "Start Free Trial" | Signup form |
NEVER use "Book a Demo" for e-commerce. E-commerce brands want you to SHOP, not schedule a meeting.
Update these files based on intent:
brand-config.ts → ctaPrimary and ctaSecondaryhero-section.tsx → button textsolution-detail-panel.tsx → button textbook-demo-modal.tsx → rename, change fields to match intent (e-commerce = Contact Client Services, Cart, or remove entirely)actions.ts system prompt → what the agent offers usersBased on your analysis, decide which sections the homepage should have. Choose from:
| Section | Use When | Example |
|---|---|---|
| Hero Carousel | Always | Rotating through top products/features |
| Stats Bar | Company has impressive numbers | "$1.9T processed", "99.999% uptime" |
| Product Grid | 3+ distinct products | API products, SaaS modules |
| Pricing Tiers | Clear pricing tiers exist | Free/Pro/Enterprise |
| Feature Showcase | Key differentiators | With images and descriptions |
| Customer Logos | Has notable customers | "Trusted by Amazon, Shopify..." |
| Solution Categories | Products grouped by use case | "For Startups", "For Enterprise" |
| Code Example | Developer-focused company | Interactive code snippet |
| Card Catalog | Sells cards/plans consumers browse | Credit cards, subscription plans |
| CTA Banner | Always | "Book a Demo" / "Get Started" / "Start Free" |
| World Map | Company has global presence story | Payment networks, logistics, international SaaS |
DO NOT include sections that don't apply:
handleShowMap a no-op in page.tsx)productItems array empty, the browse section won't renderMANDATORY. The agentfront is useless without real images.
❗ The single biggest bug in past transforms is shipping images from the wrong brand — a generic "sneaker" photo from Unsplash that happens to show a Nike Swoosh on an adidas site, or a "handbag" photo that's clearly Chanel on a Dior site. Mis-branded imagery destroys credibility instantly.
Rule: Every image that represents a specific named product or franchise (e.g. "Samba OG", "Air Max 90", "Lady Dior") MUST come from a source that lets you verify it shows the correct brand. Generic-category Unsplash photos are banned for these slots. They are OK only for brand-agnostic shots (lifestyle hero, category tiles with no named product, abstract backgrounds).
And every image MUST pass visual verification (Step 2.3) before you write its path into
cards.ts/solutions.ts.
mkdir -p ~/wwa.{domain}/public/images/cards
# Use browser headers to bypass CDN blocks
curl -L -o "public/images/{name}.jpg" "{url}" \
-H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36" \
-H "Referer: https://{domain}/" \
-H "Accept: image/*"
Download at minimum:
For e-commerce catalogs (fashion retailers, beauty retailers, online-only fashion), always try method 0 FIRST:
0. Scrape the brand's SSR catalog JSON via Chrome MCP — modern e-commerce sites (Zara, H&M, ASOS, Nordstrom, Sephora, etc.) ship the full product grid as a JSON blob inside a <script> tag on every category page. Server-side curl gets WAF-blocked, but Chrome MCP with an organic-looking tab has no trouble reading the DOM.
Two flavors to look for:
<script type="application/ld+json"> (cleanest — H&M, many schemas). Has @type: Product entries with name, image[], offers.price ready to JSON.parse.<script> that contains the brand's CDN hostname). Not always valid JSON; regex out the image URL pattern (e.g. /static\.zara\.net\/photos\/[^"'\s]+\.jpg/g or /products\/[a-z0-9-]+\/\d+-\d+[a-z0-9-]*/gi) and dedupe by product id.Pattern that works today (verified on Zara 259 · H&M 216 · ASOS 365 · Uniqlo 54 scrapes):
// In Chrome MCP, navigate to e.g. https://www.zara.com/uk/en/woman-dresses-l1066.html, then:
(() => {
const scripts = Array.from(document.querySelectorAll('script'));
// JSON-LD path (H&M-style): cleanest
const ld = document.querySelector('script[type="application/ld+json"]');
if (ld && ld.textContent.includes('"@type":"Product"')) {
return JSON.parse(ld.textContent);
}
// Raw-hydration path (Zara/ASOS): regex
const big = scripts.find(s => (s.textContent || '').includes('<brand-cdn-hostname>'));
const text = big.textContent;
// Adjust regex per brand URL shape
const urls = [...new Set((text.match(/https:\/\/static\.zara\.net\/[^"'\s]+\.jpg/g) || []))];
return urls;
})();
Then get the result out of Chrome via a Blob download:
const blob = new Blob([JSON.stringify(catalog)], { type: 'application/json' });
const a = Object.assign(document.createElement('a'), { href: URL.createObjectURL(blob), download: 'catalog.json' });
document.body.appendChild(a); a.click();
// File lands in ~/Downloads/catalog.json — move to project, feed to cards.ts rewrite
Hotlink don't download. Once you have the URLs, put them directly in cards.ts's image field — the browser will load them via <img src> (no CORS issue on img tags). No local copy needed. Server-side curl typically fails with 403 / 000 (WAF), but that doesn't matter because production serves from users' browsers.
For named products/franchises (Samba, Air Jordan 1, Stan Smith, Lady Dior, Birkin, etc.) where you need individual-product photos not a catalog:
commons.wikimedia.org/wiki/Category:{Brand}_{Product} has real, licensed product photos for every iconic sneaker, boot, bag, watch, perfume, etc.productItems if none of 1–3 yields a verified photo. A site with 6 real products is infinitely better than a site with 8 and two wrong-brand frauds.Unsplash is BANNED for named-product slots. It's OK only for: hero lifestyle shots (action/atmosphere, no named product), brand-agnostic category tiles, abstract backgrounds. If you use it, still run Step 2.3 verification — generic sneaker/bag photos on Unsplash very frequently show competitor logos.
Most premium brand sites (Dior, Apple, Notion, Vercel, Hermès) AGGRESSIVELY BLOCK curl. Do NOT waste time trying to download from the brand's CDN. Skip directly to the fallback.
Sportswear CDNs are hit-or-miss — Puma, Nike, Adidas, Asics, Under Armour, New Balance, Reebok sometimes serve real JPEGs on their public CDNs, but you have to know the exact style code and the match rate is worse than you'd expect. Observed on recent transforms:
assets.adidas.com) — returned 0 bytes on every style code tried (Apr 2026)static.nike.com) — works for some products, requires inspecting a product page's <img srcset> to get the right hashnb.scene7.com) — works with a Referer header, but style codes are hard to guess; ~50% hit rate even for the most popular modelsimages.puma.com) — most reliable of the sportswear CDNsRule of thumb: try the brand CDN once with a single well-known SKU. If it returns real bytes (>20KB), map your remaining products; if it 0-bytes or errors, drop straight to Wikimedia Commons. Don't spend 10 minutes guessing style codes.
| Brand | CDN pattern | How to get the {styleId} |
|---|---|---|
| Puma | https://images.puma.com/image/upload/f_auto,q_auto,w_800,h_800/global/{styleId}/01/sv01/fnd/PNA/fmt/png/{slug} | The number after /pd/slug/ on a product page |
| Nike | https://static.nike.com/a/images/t_PDP_1280_v1/f_auto,q_auto:eco/{hash}/{slug}.jpg | Inspect a product page's <img srcset> |
| Adidas | https://assets.adidas.com/images/w_600,f_auto,q_auto/{styleId}/{slug}.jpg | Often blocked — try once, fall back to Wikimedia |
| New Balance | https://nb.scene7.com/is/image/NB/{styleId}_nb_02_i?wid=1200&hei=1200 | Match the style id on the product page (e.g. m1906rcd) |
Always include -H "Referer: https://{brand-domain}/" — the Cloudinary-style CDNs behind most sportswear brands accept the request with referrer, 404 it without.
Remember: even when the CDN works, you still MUST run Step 2.3 visual verification on the downloaded bytes — CDNs occasionally return placeholder/blank images with a 200 status.
1. Brand's own CDN (always try first for sportswear/athletic; ~30% of premium luxury sites; skip straight to #3 for most editorial/luxury brands)
curl -sL -o public/images/{name}.jpg "{url}" \
-H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36" \
-H "Referer: https://{domain}/"
2. Wikipedia / Wikimedia Commons — works for famous brands, logos, iconic products
curl -sL -o public/images/brand-logo.svg \
"https://upload.wikimedia.org/wikipedia/commons/{path}/{file}.svg" \
-H "User-Agent: Mozilla/5.0"
Use WebSearch: "{brand} logo SVG wikimedia commons"
2.5. INDUSTRY PUBLICATIONS — USE THIS FOR FASHION BRANDS Fashion/luxury brands block their own CDN, but fashion PUBLICATIONS host real runway photos:
# WWD (Women's Wear Daily) — 2-3MB runway photos, works without auth
# Pattern: https://wwd.com/wp-content/uploads/{YYYY}/{MM}/{brand}-{collection}-{location}-GG-{01-80}.jpg
curl -sL -o public/images/runway.jpg \
"https://wwd.com/wp-content/uploads/2025/05/dior-cruise-2026-rome-GG-01.jpg" \
-H "User-Agent: Mozilla/5.0"
# Fragrantica CDN — real perfume bottle photos, works without auth
# Pattern: https://fimgs.net/mdimg/perfume/375x500.{perfume_id}.jpg
# Find IDs via WebSearch: "{perfume name} fragrantica"
curl -sL -o public/images/jadore.jpg \
"https://fimgs.net/mdimg/perfume/375x500.210.jpg" \
-H "User-Agent: Mozilla/5.0"
Other working fashion/beauty publication CDNs:
IMPORTANT: Sample a couple of images first (~2-3MB each). On macOS use sips -Z 1200 input.jpg -o output.jpg to resize before committing.
Many luxury brands have hero video loops that dramatically elevate the feel. Look for them:
# Brand-hosted videos often work with proper headers
curl -sL -o public/videos/hero.webm "{brand-video-url}" \
-H "User-Agent: Mozilla/5.0" \
-H "Referer: https://{domain}/"
Finding brand video URLs:
diorama.dam-broadcast.com/... — works publiclyapple.com/assets-www/... — often publicdam-broadcast or .cdn. video CDNs<video> or <source> tags with .webm / .mp4Implementation in hero-section.tsx:
<video autoPlay loop muted playsInline className="absolute inset-0 w-full h-full object-cover" poster="/images/hero-image.jpg">
<source src="/videos/hero.webm" type="video/webm" />
</video>
<div className="absolute inset-0 bg-gradient-to-b from-black/10 via-transparent to-black/70" />
Video hero is essential for luxury brands. Fall back to static image if video can't be obtained. Keep videos under 10MB (resize with ffmpeg if needed).
American heritage brands (Ralph Lauren, Levi's, L.L. Bean, J.Crew, Tommy Hilfiger) rarely expose public video CDNs. Plan for a static full-bleed runway or editorial hero with a subtle 1.04 scale-on-mount or parallax effect instead — don't waste time hunting for a video that isn't there.
3. Unsplash (MANDATORY FALLBACK — always works, real product photos)
# Search URL pattern: https://images.unsplash.com/photo-{id}?w=800&q=80
# DO NOT make up IDs — use these tested working IDs by category:
# Luxury perfume / fragrance bottle
curl -sL -o public/images/perfume.jpg "https://images.unsplash.com/photo-1541643600914-78b084683601?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Men's cologne / dark bottle
curl -sL -o public/images/cologne.jpg "https://images.unsplash.com/photo-1594035910387-fea47794261f?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Pink/feminine perfume
curl -sL -o public/images/miss.jpg "https://images.unsplash.com/photo-1592945403244-b3fbafd7f539?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Luxury handbag
curl -sL -o public/images/bag.jpg "https://images.unsplash.com/photo-1584917865442-de89df76afd3?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Canvas tote
curl -sL -o public/images/tote.jpg "https://images.unsplash.com/photo-1590874103328-eac38a683ce7?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Leather bag
curl -sL -o public/images/leather-bag.jpg "https://images.unsplash.com/photo-1548036328-c9fa89d128fa?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Red lipstick
curl -sL -o public/images/lipstick.jpg "https://images.unsplash.com/photo-1586495777744-4413f21062fa?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Foundation / makeup
curl -sL -o public/images/foundation.jpg "https://images.unsplash.com/photo-1512496015851-a90fb38ba796?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Skincare cream
curl -sL -o public/images/skincare.jpg "https://images.unsplash.com/photo-1556228720-195a672e8a03?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Luxury skincare bottles
curl -sL -o public/images/serum.jpg "https://images.unsplash.com/photo-1608248543803-ba4f8c70ae0b?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Gold jewelry / rings
curl -sL -o public/images/jewelry.jpg "https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Fashion / clothing
curl -sL -o public/images/fashion.jpg "https://images.unsplash.com/photo-1558769132-cb1aea458c5e?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Building / atelier (hero/about)
curl -sL -o public/images/building.jpg "https://images.unsplash.com/photo-1519643225200-94e79e383724?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# SaaS / tech product screenshot
curl -sL -o public/images/saas-ui.jpg "https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Abstract tech / code
curl -sL -o public/images/tech.jpg "https://images.unsplash.com/photo-1518770660439-4636190af475?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# ═══════ ATHLETIC / SPORTSWEAR (verified on Puma transform) ═══════
# Running / runner silhouette
curl -sL -o public/images/running.jpg "https://images.unsplash.com/photo-1508685096489-7aacd43bd3b1?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Training / gym / lifting
curl -sL -o public/images/training.jpg "https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Football / soccer
curl -sL -o public/images/football.jpg "https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Motorsport / racing
curl -sL -o public/images/motorsport.jpg "https://images.unsplash.com/photo-1504276048855-f3d60e69632f?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Kids athletic
curl -sL -o public/images/kids.jpg "https://images.unsplash.com/photo-1503944583220-79d8926ad5e2?w=800&q=80" -H "User-Agent: Mozilla/5.0"
# Athletic fashion / streetwear runner
curl -sL -o public/images/athleisure.jpg "https://images.unsplash.com/photo-1558769132-cb1aea458c5e?w=800&q=80" -H "User-Agent: Mozilla/5.0"
Unsplash ID format caveat: stick to the timestamp-hex pattern (
photo-1508685096489-7aacd43bd3b1). Modern Unsplash URLs use slug-style IDs (hEIHXXic3yI) that do NOT work withhttps://images.unsplash.com/photo-{slug}. If an ID you find is 11 random characters instead of the classic timestamp-hex form, you need the old numeric pattern or the image will 404.
Verify downloads: Check file size with ls -la. Files under 1KB are failures. Failed downloads return ~29 bytes (Unsplash not-found) or ~300 bytes (error page). Re-download with different ID if under 1KB.
4. Placehold.co — LAST RESORT ONLY if Unsplash also fails
curl -sL -o public/images/{name}.jpg "https://placehold.co/800x400/{hex_no_hash}/white?text={Product}"
Every project MUST have (minimum):
https://www.google.com/s2/favicons?domain={domain}&sz=64A thin catalog kills the demo. Every e-commerce, retail, or fashion brand transform MUST ship at least 100 real product items spread across the brand's natural segments. The agent needs enough depth to recommend and compare realistically; an 8-item catalog makes every filter / category / chat prompt dead-end immediately.
| Brand type | Minimum items | Split guidance |
|---|---|---|
| Fashion mono-brand (Zara, H&M, Uniqlo, Ralph Lauren, Dior RTW) | 100+ | 40 Woman / 30 Man / 15 Kids / 10 Accessories / 5 Home — adjust to brand reality |
| Fashion multi-brand retailer (Nordstrom, Net-A-Porter, Farfetch, Zalando) | 150+ | 50 Woman / 40 Man / 25 Kids / 20 Shoes / 15 Bags — plus 20+ brand catalogue entries |
| Beauty multi-brand retailer (Sephora, Ulta, LookFantastic) | 120+ | 30 Skincare / 30 Makeup / 25 Fragrance / 15 Hair / 10 Body / 10 Men — plus 20+ brands |
| Beauty mono-brand (L'Oréal, Estée Lauder, MAC) | 80+ | 25 Skincare / 25 Makeup / 15 Fragrance / 10 Hair / 5 Men |
| Outerwear / Technical (Canada Goose, Arc'teryx, Patagonia) | 60+ | 25 Men / 20 Women / 10 Kids / 5 Accessories — fewer items OK because parkas are expensive/curated |
| Luxury mono-brand (Hermès, Chanel — no RTW catalog online) | 50+ | Scale to what's published; bags + fragrance + leather small goods heavy |
| Sportswear (Nike, Puma, Adidas, Under Armour) | 100+ | 30 Men / 30 Women / 20 Kids / 15 Footwear / 5 Accessories |
| Marketplace listings (Airbnb, Booking) | 100+ stays × 40+ destinations | destinations.ts covers the cities, cards.ts covers the stays |
| Marketplace C2C (Vinted, Depop, Etsy) | 80+ feature tiles + category mock listings | cards.ts holds features/flows, not individual listings |
| Fintech / SaaS | 6-12 products is fine | Few products is brand-accurate (Visa has ~8 tiers, Stripe has ~10 products) |
How to reach 100+ on an e-commerce transform:
cards.ts MUST be a real-looking record with: name + price + segment (gender/category) + material/size + badge. Agent recommendations against a half-populated catalog feel hollow.Per-section rendering rule (NEW, critical — addresses "there's not a lot of items on Men's" feedback):
The catalog-size rule above covers cards.ts data depth. The rendering cap is a separate trap: template components often render homes.slice(0, 12) or similar, so even with 100+ items in data, the user sees a thin 8-tile grid.
inner-page.tsx (or equivalent), the category grid must productItems.filter(p => p.issuer === gender) without a trailing .slice(). If the page feels too long, use pagination / "Load more" — not a silent truncation.grep -rnE '\.slice\(0,\s*(6|8|12)' src/components/inner-page.tsx src/components/hero-section.tsx src/app/page.tsx — if caps are present on gender/category paths, they're bugs.Quality gate (add to Phase 4 verification):
curl https://wwa.{slug}.codiris.app/mcp -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_products","arguments":{}}}' → count: 100+ for any e-commerce brand type.<img tags for product tiles. Must be 30+ each (for mono-brand fashion) or 40+ (for multi-brand fashion). If below threshold, UI has a rendering cap that needs removal — the transform is incomplete.Post-deploy smoke check (catches stale-alias bugs): after vercel alias set, always re-verify that the alias points to the LATEST deploy. A common failure mode: you fix the code locally, run npx vercel --prod, but forget to re-alias — so wwa.{slug}.codiris.app continues pointing to the previous (broken) deploy. The Zara/Uniqlo/H&M/ASOS retrofit pass uncovered 4 stale aliases where the uncap code was already correct in git but not reflected live. Always run:
npx vercel --prod --yes 2>&1 | tee /tmp/deploy.log
DEPLOY_URL=$(grep -oE 'https://[a-z0-9-]+\.vercel\.app' /tmp/deploy.log | head -1)
npx vercel alias set "$DEPLOY_URL" wwa.{slug}.codiris.app
# Then verify:
curl -s https://wwa.{slug}.codiris.app/ | grep -c 'aspect-\[3/4\]\|aspect-\[4/5\]\|aspect-square' # rough product-tile count
MANDATORY: push API keys from a sibling project before declaring "deployed" (catches silent-AI-fallback bug): every brand-new Vercel project starts with zero env vars. Without GEMINI_API_KEY / GOOGLE_GENERATIVE_AI_API_KEY / OPENAI_API_KEY, the AI panel silently falls back to canned assistant-shared.tsx strings ("I can help you find..."), and the user thinks the AI is dumb. Caught on the Joivy deploy after the user complained the AI was "stupid". The 200-response on /api/gemini-key is the actual smoke check — until that endpoint returns a real key, the demo is broken even if every page renders correctly.
# Pull keys from any sibling project that already has them (wwa-vinted is reliable)
mkdir -p /tmp/sibling-env && cd /tmp/sibling-env && mkdir -p .vercel
cat > .vercel/project.json << 'EOF'
{"projectId":"prj_eoF8zwRk4i3blOS7Cy95N9Zn5I1s","orgId":"team_CVjPPr2WoqlNcN6zmRDjk04Q","projectName":"wwa-vinted"}
EOF
npx vercel env pull .env.production --environment=production --yes
# Push to the new project via Vercel API
TOKEN=$(python3 -c "import json; print(json.load(open('/Users/joel/Library/Application Support/com.vercel.cli/auth.json')).get('token',''))")
TEAM="team_CVjPPr2WoqlNcN6zmRDjk04Q"
PID=$(cat /tmp/wwa.{slug}/.vercel/project.json | python3 -c "import sys,json; print(json.load(sys.stdin)['projectId'])")
for k in GEMINI_API_KEY GOOGLE_GENERATIVE_AI_API_KEY OPENAI_API_KEY; do
v=$(grep "^${k}=" /tmp/sibling-env/.env.production | head -1 | cut -d= -f2- | sed 's/^"//;s/"$//')
curl -s -X POST "https://api.vercel.com/v10/projects/$PID/env?teamId=$TEAM" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d "$(python3 -c "import json,sys; print(json.dumps({'key':'$k','value':'$v','type':'encrypted','target':['production','preview','development']}))")"
done
# REDEPLOY + RE-ALIAS so the new envs take effect (env changes don't apply to existing builds)
cd /tmp/wwa.{slug} && npx vercel --prod --yes
# Then alias the new deploy.
# Smoke check — this is the line that proves the AI works:
curl -s -X POST https://wwa.{slug}.codiris.app/api/gemini-key -H "Content-Type: application/json" -w "\n%{http_code}\n"
# Must return {"key":"AIza..."} and HTTP 200. Anything else = AI is silently degraded.
| Company Type | Use These Photos |
|---|---|
| Luxury/Fashion (Dior, Hermès, LV) | Perfume + handbag + lipstick + jewelry + fashion |
| Cosmetics (Sephora, Fenty) | Lipstick + foundation + makeup brushes |
| Tech/SaaS (Stripe, Notion) | SaaS UI screenshots + tech + abstract |
| E-commerce (Amazon, Shopify) | Product shots + packaging + shopping |
| Fintech (Visa, Chase) | Cards + phone + wallet |
curl -L -o "public/favicon.ico" "https://www.google.com/s2/favicons?domain={domain}&sz=64"
cards.ts / solutions.tsYou are a multimodal model. You can see images. Use the Read tool on every downloaded file and visually inspect what it actually depicts. Do this BEFORE referencing the image from any data file.
Read file_path=/absolute/path/to/public/images/samba.jpg
For each image, verify the following before approving it:
solutions.ts (e.g. "Air Max"), does the shoe in the photo actually look like an Air Max (visible Air unit) vs. a random sneaker?If verification fails, in order:
productItems / that franchise from solutions rather than ship the bad image.Checklist to run at the end of Phase 2:
# List every image file with its size
ls -la public/images/*.jpg public/images/*.png public/images/*.svg 2>/dev/null
Then, for EACH non-logo image, use Read on it and log either VERIFIED: shows real <brand> <product> or REJECTED: shows <what-it-actually-is>. If any rejected image is still referenced from cards.ts / solutions.ts, you have failed this step — fix it before proceeding to Phase 3.
For sizing: if an image is ≥ 3MB, resize on macOS with sips -Z 1200 input.jpg -o output.jpg or sips -Z 1200 --setProperty formatOptions 80 input.jpg -o output.jpg to keep page weight reasonable.
# From inside the cloned skill (typically ~/.claude/skills/agentizer):
mkdir -p ~/wwa.{domain}
cp -R ./template/. ~/wwa.{domain}/
cd ~/wwa.{domain} && npm install
Do NOT copy from absolute maintainer paths like /Users/joel/wwa-skill/template/ — that path only exists on the maintainer's machine. Always copy ./template/. relative to the skill directory that contains this SKILL.md.
Template naming: The template uses ProductItem/productItems (not VisaCard/visaCards) as generic names for browsable items. The navbar component is brand-navbar.tsx, the map is world-map.tsx. All imports in page.tsx already use these names.
The template ships with Visa's blue (#1A1F71), navy hover (#141963), and light blue (#1434CB) hardcoded in ~8 components — solution-detail-panel.tsx, solution-slider.tsx, generated-view.tsx, agent-panel.tsx, account-panel.tsx, live-session-overlay.tsx, and others. Delegating component rewrites to parallel subagents always leaves some of these files unedited, and the Step 3.6 audit catches it every time. Save yourself the re-roll — run this sweep FIRST, right after cp -R ./template/.:
cd ~/wwa.{domain}
# Replace Visa blue (primary), navy (hover), and light blue (accent) with brand colors.
# Pick hex codes that match your brand-config.ts primary/secondary/accent.
find src -name "*.tsx" -o -name "*.ts" | xargs sed -i '' \
-e 's/#1A1F71/{BRAND_PRIMARY}/g' \
-e 's/#141963/{BRAND_PRIMARY_DARK}/g' \
-e 's/#1434CB/{BRAND_ACCENT}/g'
# Verify zero remaining
grep -rn "#1A1F71\|#141963\|#1434CB" src/
Example for a black-primary brand: replace with #000000, #000000, #CF0A2C. For Dior (gold on black): #0A0A0A, #000000, #C9A96E.
After the sweep, subagents can focus on rewriting content (copy, data) without worrying about color hunts. Re-run the grep at the end of Phase 3 to confirm nothing crept back in.
Write src/lib/brand-config.ts with ALL company data from Phase 1. This drives the entire app.
Write src/lib/solutions.ts — these are the company's ACTUAL products/services. Each must have:
Write src/lib/cards.ts — ONLY if the company sells browsable items (plans, cards, products with prices).
For API companies (Stripe, Twilio): Use pricing tiers as "cards" — Free, Growth, Enterprise For e-commerce (Nike, Apple): Use actual products as cards For SaaS (Salesforce, HubSpot): Use subscription plans as cards For companies with no browsable products: Leave the array EMPTY and the browse section won't show
CRITICAL: Do not sed-replace. REWRITE each file understanding the company.
src/components/hero-section.tsx — Rewrite completely:
src/components/inner-page.tsx — Rewrite ALL pages:
src/components/wwa-panel.tsx — Update:
src/components/assistant-shared.tsx — Rewrite ALL fallback responses:
src/app/actions.ts — Always a full rewrite, regardless of peer clone. Both the chat SYSTEM_PROMPT and the CODE_GEN_PROMPT bake brand knowledge in deep (named buildings, founding years, signature products, ambassadors, specific exhibition venues) that a simple grep "ralph\|polo" misses. Example: a Ralph Lauren → Zara peer clone caught the obvious brand names but left phrases like "Rhinelander Mansion", "1978 fragrance launches", "Jack Shainman Gallery" in the system prompt — these shipped silently until end-to-end prompt re-read. Re-read this file line-by-line after any peer clone.
src/app/page.tsx — Update:
src/components/book-demo-modal.tsx — Update:
For luxury e-commerce / heritage brands, rewrite the whole modal as "Request a Private Appointment" with three fields — the B2B fields (company size, revenue range, country dropdown, SKU picker) are inappropriate. Keep it short:
src/components/live-session-overlay.tsx — CRITICAL:
src/components/assistant-shared.tsx — CRITICAL:
EmptyState component shows welcome screen with brand logo<button onClick={onOpen}><img src="/images/brand-logo.svg" /></button>src/components/agent-panel.tsx — CRITICAL (often forgotten):
BRAND.mcpUrl + BRAND.mcpServerName automatically — no string edits needed here as long as brand-config is correct.src/app/mcp/route.ts — REAL MCP ENDPOINT (ships with template):
/mcp on the same origin as the agentfront. JSON-RPC 2.0, stateless, CORS-enabled.productItems (cards.ts) and solutions (solutions.ts): search_products, compare_products, get_product, get_solutions, recommend_product.mcpTools list shown in agent-panel.tsx is already synced with these 5 default tools.find_boutique for luxury, compare_tiers for financial, estimate_fees for SaaS): append to the TOOLS array and add a case in callTool. Mirror the addition in agent-panel's mcpTools list.mcpUrl: "https://wwa.{brand}.codiris.app/mcp" (same origin as deployed agentfront)mcpServerName: "{brand}-agent" (CLI identifier for claude mcp add)curl -X POST https://wwa.{brand}.codiris.app/mcp -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' — must return the tool list with 200.TOOLS in route.ts and to mcpTools in agent-panel.tsx):
get_heritage(yearFrom?, yearTo?) from src/lib/heritage.ts, find_flagship(city?, country?) from src/lib/flagships.tsget_houses(), get_house(id)find_restaurant(city?)estimate_cost(usage), check_availability(region)compare_tiers(tiers[])get_fragrance_notes(productId), find_boutique(city?)list_markets(region?), list_categories(), get_seller_flow(personal|pro), estimate_fees(price, category) — sellers and buyers want different info from the same API, and marketplaces have operational data (markets live, fee structure) that doesn't fit search/compare/recommend alone.search_stays(destination?, checkIn?, checkOut?, guests?, category?, priceMax?) returning mocked stay results with price/currency/rating/reviewCount (no need to hit real inventory APIs), list_destinations(region?, country?) backed by src/lib/destinations.ts, and optionally get_host_flow() for the host-onboarding path.search_rentals(city?, duration_months?, room_type?, max_rent?, available_from?) — different param shape from search_stays (months not nights, single move-in date not check-in/check-out range, room type not category). find_co_living(city?, age_range?) translation tool. book_viewing(propertyId, date) for tour scheduling — no "reserve" semantics. get_lease_terms(propertyId) — minimum lease, deposit, notice period, utilities included. list_destinations(country?) backed by destinations.ts. Skip search_stays / find_experience / find_boutique — wrong domain.search_stays(city?, checkIn?, checkOut?, guests?, unitType?, maxRent?, minNights?) — uses check-in/check-out range like Booking, NOT residential-style duration_months. Listings carry both per-night AND per-month prices (nightlyRent + monthlyRent fields). find_flex_living(preference) translation tool. book_stay(propertyId, checkIn, checkOut, guests) supports days OR months in one tool — NOT book_viewing. get_lease_terms(propertyId) repurposed for stay terms (free-cancellation window, min nights). get_living_spaces(propertyId) for amenities/common-area inventory (rooftop, café, gym, coworking). Skip search_rentals / find_co_living / book_viewing — those are residential-only, wrong domain.list_brands(category?, featuredOnly?) backed by src/lib/brands.ts, find_shade_match(undertone?, coverage?, finish?) for beauty, get_routine(skinType?, concern?, budget?) for skincare, get_fragrance_notes(productId) backed by src/lib/fragrances.ts. Extend search_products with a brand? arg — customers ask "foundations from Rare Beauty under €50" and the default signature doesn't support that.check_warmth(temperature_c, activity) — a translation tool (conditions → product); compare_parkas(ids[]) extended for fill-power/weight/TEI spec axes; get_heritage(yearFrom?, yearTo?) from heritage.ts; find_store(city?, country?) for flagships with note field carrying experiential-retail differentiator ("Cold Room", "Pinnacle Room", "Worn Wear repair"); get_sustainability(productId?) returning sourcing + materials detail. Extend search_products with gender? and tei? args.list_collections() — parallel capsule sub-lines from src/lib/collections.ts; find_fit(bodyShape?, occasion?, season?) translation tool (sibling to check_warmth); get_size_guide(category, gender) returning EU/UK/US matrices — new MCP tool pattern for any mass-fashion brand with real size charts. Skip for luxury (bespoke) and beauty (shades instead). Extend search_products with gender?, collection?, material?.search_products with a tech? arg for proprietary material technologies (HEATTECH / AIRism / Supima / Ultra Light Down / BlockTech for Uniqlo; CONSCIOUS / Recycled / Organic Cotton for H&M). Critical because customers ask "HEATTECH base layer for -10°C" and the natural query needs the tech axis to resolve — don't overload material with it.list_brands(category?, featuredOnly?) backed by src/lib/brands.ts; list_collections() for own-label sub-lines; find_fit(bodyShape?, occasion?, season?, sizeRange?) — extend with sizeRange for size-inclusive brands; get_size_guide(category, gender, sizeRange?) — per-range cut measurements (curve cut ≠ petite cut, not just number); check_delivery(postcode?, country?) — NEW translation tool for Premier/Prime/Saver eligibility (service-eligibility translator, sibling to check_warmth). Extend search_products with brand?, gender?, sizeRange? ("curve" | "petite" | "tall" | "maternity" | "standard").check_warmth(temp, activity) is the first. Other candidates across brand types: footwear check_fit(usSize, width, foot-shape); skincare check_compatibility(drug, pregnancy); luggage check_airline_allowance(airline, class). These are neither search nor recommend nor compare — they translate external conditions into product filters. Document as a sibling to the three classic MCP verbs.src/lib/brand-config.ts — Logo:
logoSvg: "" and logoImage: "/images/brand-logo.svg"src/components/world-map.tsx — Update stats or remove if not relevant
src/components/card-3d.tsx — ONLY for credit card companies (Visa, Mastercard).
cards-browse-panel.tsx and wwa-panel.tsx CardCarousel show product images with name/price overlay1-800-VISA customer-service phone. Even if the component is never rendered, the audit grep will still flag those strings. For non-card brands, either delete card-3d.tsx entirely or scrub the hardcoded Visa strings before running the audit.template/src/components/wwa-panel.tsx line ~68 still renders <Card3D card={card} size="sm" onClick={...} /> inside the CardCarousel component. Every non-card transform MUST replace that line with a photo tile (e.g. <img src={card.image} .../> wrapped in a button). Confirmed on Airbnb sim — the template ships with this leak and it has to be edited in-place.src/components/cards-browse-panel.tsx — PRODUCT DETAIL VIEW (non-credit-card companies):
The template has credit-card-specific labels throughout the detail view. You MUST rewrite ALL of these for non-card brands:
| Credit-card term | E-commerce/SaaS replacement |
|---|---|
| "Back to Cards" | "Back to Products" / "Back to Collection" |
| "Issued by" | "From" / remove for brand-native products |
| "Annual fee:" | "Price:" |
| "Card Tier" | "Collection" / "Tier" / "Plan" |
| "Card Highlights" | "Product Highlights" / "Features" |
| "Card Details" | "Details" / "Specifications" |
| "REWARDS / WELCOME BONUS / APR" | Remove entirely — not applicable |
| "Ready to apply?" | "Ready to shop?" / "Ready to get started?" |
| "Apply Now" | "Add to Bag" / "Buy Now" / "Subscribe" |
| "Compare Other Cards" | "Explore Collection" / "Continue Shopping" |
| "Application Submitted!" | "Order Confirmed!" / "Welcome!" |
| "Quick application with instant decision" | "Complete your purchase" / "Get started in seconds" |
| "Browse More Cards" | "Continue Shopping" / "Explore More" |
| "Annual Income *" | "Shipping Notes" / remove |
| "credit history" | Remove the credit check reference entirely |
{annualFee}/yr | {price} |
| "Secure Application" | "Secure Checkout" |
Also: the detail view renders the product with a dark gradient background and centered 3D card — change to a white background with image on left + details on right for product-style layout.
src/components/hero-section.tsx — VISUAL STYLE BY BRAND TYPE:
The default template uses a SaaS/tech aesthetic (split layout, colored gradient tiles, tech-y feature grid). This is WRONG for luxury/editorial brands. Adapt per brand:
LUXURY / EDITORIAL — FRENCH / EUROPEAN (Dior, Hermès, Chanel, Gucci, Aesop):
tracking-[0.3em] on uppercase labels, font-normal (not bold) on headingsFASHION — EDITORIAL MINIMALIST (Zara, COS, ARKET, & Other Stories, Massimo Dutti):
Mono-brand mono-color fashion with rapid-turn seasonal drops, no heritage narrative, maximal typography contrast. The pure-B&W editorial-gallery aesthetic. Distinct from its mass-market cousin (H&M / Uniqlo / Gap / Mango) which uses color-friendly pop aesthetics.
Big Shoulders Display, Oswald, Abril Fatface — pick the one that matches the brand's wordmark shape). Inter or Helvetica for body. The contrast between massive display headlines and tiny body copy is the brand signature — don't temper it.ADD or SHOP NOW → — never more.<select> dropdown, not a grid (Zara does this deliberately — minimalism)src/lib/collections.ts + a list_collections() MCP tool — these don't map onto gender/category axes.list_collections() — parallel capsule sub-lines from collections.tsfind_fit(bodyShape?, occasion?, season?) — translation tool (sibling to Canada Goose's check_warmth; conditions → curated picks)get_size_guide(category, gender) — EU/UK/US size matrix with measurements. This is a new MCP tool pattern for any mass-fashion brand with real size charts (Zara, Uniqlo, H&M, Gap, ASOS). Luxury brands skip it (bespoke); beauty retailers skip it (shades instead).find_store(city?, country?) — flagship physical presenceFASHION — MASS-MARKET POP (H&M, Uniqlo, Gap, Mango, Primark, Forever 21):
Cousin to editorial-minimalist but color-friendly and accessible. Distinguished from Zara/COS/ARKET by: bold brand accent color (H&M red, Uniqlo red, Gap navy), pop-magazine aesthetic (pink/olive/cream seasonal backgrounds, NOT pure B&W), entry-level pricing (£4.99–£14.99 basics vs Zara's £19.95 floor), youth-dedicated sub-line (H&M's Divided, Gap's Teen), and first-class Baby + Home categories.
#E50010, Uniqlo red #E30A18, Gap navy #00256C, Mango camel. Seasonal backgrounds use soft pink / olive / cream / camel — a color accent is expected and welcome (opposite of the Zara rule).search_products with a tech? arg so customers can filter by proprietary material tech ("HEATTECH base layer for -10°C"). Don't overload material with it.search_products extended with tech? arg (HEATTECH / Supima / CONSCIOUS / Organic Cotton / Recycled)list_collections() — Uniqlo's Main/U/C/J/+J/JW Anderson/Marimekko; H&M's Main/Studio/Divided/Conscious Exclusive + designer collabsFASHION MARKETPLACE — ONLINE (ASOS, Shein, Nasty Gal, Boohoo, Zalando):
Pure-play online retailers with substantial own-label catalogues + stocked external brands. Distinct from RETAIL — MULTI-BRAND (Sephora / Nordstrom / Net-A-Porter) which are primarily curated external-brand retailers. Distinct from marketplace-listings (Booking / Airbnb) which is host-traveler dynamics.
src/lib/brands.ts + list_brands(category?, featuredOnly?) MCP tool (same convention as multi-brand beauty retail — ASOS stocks 850+ brands).src/lib/collections.ts for own-label sub-lines (ASOS Design / Edition / 4505 / Weekend Collective / Made In / Topshop / Topman).search_products extended with brand?, sizeRange? ("curve" | "petite" | "tall" | "maternity" | "standard"), gender?list_brands(category?, featuredOnly?)list_collections()find_fit(bodyShape?, occasion?, season?, sizeRange?) — extended with sizeRangeget_size_guide(category, gender, sizeRange?) — UK/EU/US PLUS per-range cut measurements (curve cut differs from petite cut, not just the number)check_delivery(postcode?, country?) — NEW translation tool (conditions → Premier / Saver / Standard eligibility). Sibling to Canada Goose's check_warmth. General pattern: a translation tool for service eligibility is a third category beside product-search and product-recommend.LUXURY — AMERICAN HERITAGE / PREP (Ralph Lauren, Tommy Hilfiger, J.Crew, L.L. Bean, Brooks Brothers):
TECH / SAAS (Stripe, Notion, Linear):
CONSUMER (Apple, Nike, Spotify):
FINTECH / FINANCIAL (Visa, Chase, Robinhood):
MARKETPLACE / C2C (Vinted, Depop, Etsy, eBay, Poshmark):
#09B1BA, Depop red, Etsy orange, Poshmark pink). Use the brand color boldly — stats band, hero CTAs, feature icons.book-demo-modal in the classic B2B shape — see the marketplace variant in the book-demo-modal.tsx guidance below.MARKETPLACE / LISTINGS (Booking, Airbnb, VRBO, Trivago, Expedia, Hotels.com, Agoda):
Similar to C2C marketplaces but asymmetric — travellers/buyers are the primary audience, hosts/sellers are the B-side. Different hero + CTA pattern:
src/lib/cards.ts repurposing: the 9-15 productItems represent stay categories (Hotels/Apartments/Villas/etc.), NOT individual properties — the same repurposing convention as C2C features but with category shape.src/lib/destinations.ts: listings marketplaces almost always have a destinations catalog. Create this file with { id, city, country, region, heroImage, propertyCount }[] and wire a list_destinations(region?) MCP tool to it. Vinted uses list_markets(region?) for country markets; Booking uses list_destinations(region?) for cities; Uber would use list_cities(country?). Same shape, different primary axis.src/lib/experiences.ts (for brands that sell activities alongside stays — Airbnb Experiences, Klook, Viator, GetYourGuide, Hotels.com Spots): { id, city, title, type, price, duration, image }[]. Experiences aren't stays (no overnight axis) and aren't destinations (they're bookable events) — they need their own dataset. Wire a find_experience(city?, type?) MCP tool. Skip this file if the brand only sells stays.productItems[].tier field in the template captures the label but not the extras. If the premium tier matters to the brand story, create a premium-tier.ts with { features: string[], amenities: string[], support: string } and add a fifth MCP tool get_premium_tier(). Otherwise just flag the tier with a single card in productItems and accept the simplification.#003580, Airbnb red #FF5A5F, Expedia yellow #FFC72C) — the primary drives the search form, stats bar, and trending grid chrome.When transforming, EXPLICITLY adapt the hero and category grid to match the brand's visual DNA. Don't just update text — change the layout pattern.
MARKETPLACE / RENTALS — RESIDENTIAL (Joivy, Spotahome, HousingAnywhere, Uniplaces, The Student Hotel, Kabute, Casavo):
Distinct from listings-marketplace (Booking/Airbnb) — long-term residential rentals (1–24 months), not nightly stays. The vocabulary, pricing model, transaction flow, and visual surfaces are different enough that listings-marketplace guidance leads you wrong. Verified across the Joivy transform.
src/lib/cards.ts repurposing — DIFFERENT FROM LISTINGS: productItems represent rental categories (Studio · Co-living room · 1-bed apartment · 2-bed apartment · Student studio · Shared apartment · Family suite · Pro suite), NOT stay categories (Hotels/Villas). Field mapping:
issuer → city/country (not gender, not house — for residential the city is the primary filter)tier → lease duration ("Short-term 1-3 mo" / "Medium 3-6 mo" / "Long-term 6-12 mo" / "Annual 12+ mo")annualFee → monthly rent ("€650 / month")apr → utilities + furnishing ("Utilities included · Furnished" / "Bills excluded · Unfurnished")rewardRate → minimum lease ("3 month minimum")signUpBonus → onboarding offer ("First month -50%" / "No deposit" / "Free Wi-Fi" / "Move in same week")applyUrl → property URL on the brand's sitesrc/lib/destinations.ts stays useful — same shape as listings-marketplace, just propertyCount is larger (Joivy has ~5,000 rooms in Milan).search_rentals(city?, duration_months?, room_type?, max_rent?, available_from?) — instead of search_stays. Different param shape.find_co_living(city?, age_range?) — translation tool (sibling to check_warmth, find_fit, check_delivery). Conditions → property pick.book_viewing(propertyId, date) — schedule a tour, NOT a stay reservation.get_lease_terms(propertyId) — minimum lease, deposit, notice period, included utilities. Documenting the contract is the equivalent of Booking's "free cancellation" trust signal.get_property(propertyId), compare_properties(ids[]) — same as listings.search_stays, find_experience, find_boutique — wrong domain.#015962), forest green, terracotta, navy. NOT bright vacation-marketing colors (Booking blue, Airbnb red, Expedia yellow). The vibe is "your home", not "your getaway".MARKETPLACE / RENTALS — FLEX (Habyt Flex, Cove, Sonder, Mindspace Living, Outsite, Selina Co-Live):
Distinct from residential rentals (Joivy) — flex-living = stays for days OR months, not 1+ month minimum. Habyt's pitch is "a stay that moves with you" — book 3 nights or 8 months in the same building, with free cancellation. Verified across the Habyt transform.
€95/night) AND a per-month price (€1,450/mo). The PDP and the booking card need to surface both. Discount messaging: "Stay 7+ nights for X% off", "Stay 30+ nights for X% off". cards.ts should have monthlyRent AND nightlyRent fields (or a single priceTiers object).tier field becomes the stay-length tier — "Flex 1-3 nights" / "Short stay 7+ nights" / "Monthly stay" / "Long stay 6+ months" — instead of lease duration.comingSoon: true flags + a coming-soon UI badge.destinations.ts shape: add comingSoon: boolean and propertyCount: 0 for non-active cities. The world-map and city grid then render those with a muted "Coming soon" treatment instead of a fake property count.search_stays(city?, checkIn?, checkOut?, guests?, unitType?, maxRent?, minNights?) — uses check-in/check-out range like Booking, NOT duration_months like Joivy. Both nightly + monthly results in one response.find_flex_living(preference) — translation tool (sibling to find_co_living). Natural-language → property + unit pick. Includes nights vs. months parsing.book_stay(propertyId, checkIn, checkOut, guests) — supports days OR months in one tool. NOT book_viewing.get_lease_terms(propertyId) — repurposed for "stay terms" — free cancellation window (typically 24-48h before), minimum nights, deposit, what's included.get_living_spaces(propertyId) — list amenities + common spaces (rooftop pool, café, cinema room, gym, coworking — Habyt Vallecas style).get_property(propertyId), compare_properties(ids[]), list_destinations(country?) — same as residential.search_rentals, find_co_living, book_viewing, find_experience — wrong domain (residential or hotel).{} and hasTour() returns false; the PDP's 3D-tour pill must be conditional ({tourAvailable && <pill/>}) so it silently disappears, not breaks.Free cancellation · Flexible stay · Best price — these go above the price on the PDP booking card AND on listing tiles.#00271A + terracotta #572411 + cream #FFFBF1. NOT trust-warm teal (that's residential). The vibe is "boutique extended-stay hotel", not "your home" or "your getaway".RETAIL — MULTI-BRAND (Sephora, Nordstrom, Net-A-Porter, Farfetch, Selfridges, MatchesFashion):
Different from mono-brand luxury (Dior/Hermès) because they stock hundreds of external brands and have to surface those brands as first-class entities. Different from marketplace (Vinted/Airbnb) because they carry real inventory, not user listings.
src/lib/brands.ts — REQUIRED for multi-brand retail. { id, name, logo, origin, categories[], featured }[] + list_brands(category?, featuredOnly?) MCP tool. Sephora stocks 340+ brands and without this the agent can't answer "what brands do you stock from Korea".#DE1F29). Tom Ford / Charlotte Tilbury do black + gold. Farfetch does black + editorial color blocks.list_brands(category?, featuredOnly?) — filter 340+ brands by categoryfind_shade_match(undertone?, coverage?, finish?, skinTone?) — foundation/lipstick recommendationget_routine(skinType?, concern?, budget?) — 3-4 step skincare routineget_fragrance_notes(productId) — top/heart/base notes per fragrancesearch_products extended with brand? and skinType? argsOUTERWEAR / TECHNICAL (Canada Goose, Arc'teryx, Moncler, The North Face, Patagonia, Mammut):
Mono-brand, premium/luxury, with technical-spec-forward product detail. Sits at the intersection of American heritage (narrative-heavy, made-in-X provenance) and sportswear (gender/fit/activity filter axes). Neither the Dior shape nor the Sephora shape nor the Ralph Lauren shape fits cleanly — it's its own pattern.
heritage.ts); 4) "Built for explorers" — 4 story cards featuring real-world users (scientist, mountaineer, ranger, conservationist).check_warmth(temperature_c, activity) — a translation tool (conditions → product suggestion) that's neither search nor recommend nor compare. Pattern: customer asks "what works at -25°C hiking", tool returns TEI band + matching products. This shape is new — document it as a category, other brand types will need translation tools too (e.g. shoes "what fits size 10 UK narrow"; skincare "what's safe during pregnancy").compare_parkas(ids[]) — extended comparison exposing the technical-spec axes (fill power, weight, TEI, shell fabric).get_heritage(yearFrom?, yearTo?) — from heritage.ts.find_store(city?, country?) — flagship + experiential retail; use flagships.ts's note field for retail-differentiator metadata ("Cold Room try-on", "Arc'teryx Pinnacle Room", "Patagonia Worn Wear repair").get_sustainability(productId?) — sourcing + materials detail; customers ask this more than the other verticals.src/components/wwa-panel.tsx — ACCOUNT CREATION FLOW:
The template's account creation asks for "annual income" (makes sense for credit card applications, wrong for everything else). For non-financial brands, replace the income question with something contextually relevant:
| Brand Type | Replace "annual income" with |
|---|---|
| Luxury/Fashion | "What categories interest you most? (Fragrance, Bags, Fashion, Jewelry)" |
| E-commerce | "What styles do you prefer?" |
| SaaS | "What's your role/team size?" |
| Enterprise | "What's your company size?" |
| Content/Media | "What genres do you like?" |
| Financial | Keep "annual income" — it's relevant |
| Marketplace / C2C | "Are you mostly buying or selling?" + follow-up category interest. Ask BOTH because the primary flow branches on this. |
Also update:
lastAssistantMsg.includes("annual income") → check for the new question1A1F71 (Visa blue) → brand primary colorsrc/components/wwa-panel.tsx — BUY/CHECKOUT MESSAGES:
Replace credit-card phrasing in the buy intent responses:
src/components/world-map.tsx — REGIONAL STATS:
The template has credit-card network stats (merchants: "12M+", banks: "5,000+", cards: "800M+"). Replace with brand-appropriate stats:
| Brand Type | Regional Stats |
|---|---|
| Luxury/Fashion | Boutiques per region, artisans, flagship locations |
| SaaS | Data centers, enterprise customers, API regions |
| Retail | Stores, distribution centers, warehouses |
| Finance | Banks, merchants, cards (keep default) |
Also update GLOBAL_STATS: "4B+ Cards worldwide" must match the brand's reality.
src/components/card-comparison.tsx — TIER BENEFITS:
The template has 20+ Visa-specific credit card benefits (Zero Liability, Auto Rental CDW, Trip Delay, Global Entry Credit, etc). REMOVE all of these and write tier benefits that apply to the brand:
| Brand Type | Tier Benefit Examples |
|---|---|
| Luxury/Fashion | Free shipping, gift wrap, personalization, private shopping, birthday gift, archive access |
| SaaS | API calls/mo, support SLA, seats, priority features, dedicated account manager |
| Retail | Free shipping threshold, returns window, early access, member pricing |
| Subscription | Streaming quality, devices, downloads, family sharing, ad-free |
Tier names Traditional / Signature / Infinite are Visa-specific — rename to match the brand's tier system (e.g., Free/Pro/Enterprise for SaaS, Essentials/Signature/Élite for luxury).
Three comprehensive checks. ALL must pass before deploying:
# 0. RE-RUN Step 2.3 visual verification for every image referenced from cards.ts / solutions.ts.
# Open each file in Read and confirm it still shows the correct brand. Do not trust
# earlier verification — if an agent rewrote data files during Phase 3, image paths may
# have been shuffled. This check is fast (8-12 Read calls) and catches the #1 UX bug.
grep -oE '"/images/[^"]+"' src/lib/cards.ts src/lib/solutions.ts | sort -u
# For each path listed, Read it and confirm brand match.
# 1. Check for any Visa-brand text leaks
grep -rn "Visa\|visa\.\|#1A1F71\|#141963\|#1434CB" src/ --include="*.tsx" --include="*.ts" | grep -v visaCards | grep -v VisaCard
# 2. Check for credit-card terminology that doesn't fit non-card brands
grep -rn "annual fee\|annual income\|card tier\|Apply Now\|cardholder\|APR\|Reward Rate\|Sign-Up Bonus\|issued by\|Zero Liability\|credit check\|credit history\|Traditional, Signature, and Infinite\|Issuer opt\." src/ --include="*.tsx" --include="*.ts" -i | grep -v node_modules
Fix every remaining line before deployment. The card-3d.tsx component is allowed to keep credit-card text because it's only rendered for actual credit card brands (Visa/Mastercard).
These files ship in the template with Visa-shaped placeholders that the ordinary Phase 3 rewrites don't always catch. Verify each one explicitly before deploying:
| File | What to scrub |
|---|---|
src/components/book-demo-modal.tsx | Ships with B2B fields (CompanySize, AnnualRevenue, Country dropdown, SKU picker) AND an inline Visa wordmark SVG in the header. For luxury / e-commerce brands, rewrite as "Request a Private Appointment" per the luxury pattern above. For SaaS keep B2B but relabel products. For consumer, replace entirely with a newsletter/contact form. For marketplace / C2C brands, rewrite as "Open your seller account" — fields: name + email + username + preferred market (dropdown of the brand's live markets only, NOT all countries) + account type (Personal vs Pro) + main category + expected item volume. Drop B2B revenue/size fields entirely. For marketplace / Listings brands (Booking, Airbnb, VRBO, Expedia), rewrite instead as "List your property" — fields: contact name + email + phone + property type (Hotel / Apartment / Villa / B&B / Holiday home / Cabin) + number of rooms + destination (city/country) + property name + short description + partner-terms opt-in. Primary audience of this modal is hosts, not buyers — the buyer surface is the search form in the hero. Drop B2B revenue/size fields. For retail / multi-brand brands (Sephora, Nordstrom, Net-A-Porter, Farfetch), rewrite as a loyalty signup — fields: name + email + birthday (short format MM-DD for anniversary gifts) + preferred categories (multi-select chips: Makeup / Skincare / Fragrance / Hair / Men / Gifts) + occasion dropdown ("For myself" / "As a gift" / "Wedding" / "Event") + GDPR/marketing consent checkbox. The loyalty programme name and tiers go in the header copy (e.g. Sephora's Blanche/Or/Noire, Nordstrom's Nordy Club). Drop B2B revenue/size fields. In all cases, replace the header SVG with <img src={BRAND.logoImage} className="brightness-0 invert" />. The hero's main CTA opens this modal — an untouched modal ships the wrong form and the wrong logo on the most-clicked button. |
src/lib/cards.ts field repurposing per brand type | The ProductItem interface is finance-shaped (issuer/tier/annualFee/apr/rewardRate/signUpBonus/applyUrl) but the field names are stable — semantics repurpose per brand. Keep a comment block at top of cards.ts documenting the mapping so the next maintainer doesn't report them as Visa leaks. Per brand type: marketplace C2C → annualFee: "Free" / "€5 shipping", apr: "All markets", rewardRate: headline benefit, signUpBonus: incentive. Marketplace Listings → annualFee: "from €180/night", apr: "Entire place", rewardRate: "★ 4.9", signUpBonus: "Free cancellation". Retail Multi-brand Beauty → issuer: brand name (e.g. "Fenty Beauty"), tier: collection/line, annualFee: price (€), apr: shade / finish ("50 shades · Matte finish"), rewardRate: "★ 4.6 (1.2K reviews)", signUpBonus: badge ("Clean at Sephora" / "Award winner"), applyUrl: product URL. Luxury mono-brand → issuer: House name, tier: line (Lady Dior / Book Tote), annualFee: price, apr: material/size, signUpBonus: included (engraving / monogram). Outerwear / Technical → issuer: **gender line** ("Men's" / "Women's" / "Kids'" / "Unisex") — NOTE this is the inverse of beauty where issuer holds the brand name. For technical apparel the gender axis is the primary filter, so issuer carries it; the brand is implicit (mono-brand). tier: collection ("Expedition" / "Black Label" / "Lightweight"), annualFee: price, apr: warmth rating / weight ("TEI 4 · 2.05 kg"), rewardRate: fill-power ("625 fill"), signUpBonus: sustainability badge ("HUMANE DOWN" / "RECYCLED" / "MADE IN CANADA"). Fashion editorial-minimalist / fast-fashion → issuer: gender line ("Woman" / "Man" / "Kids" — same inversion as outerwear; mono-brand fashion uses issuer for gender, not brand). tier: collection sub-line ("Main" / "Studio" / "SRPLS" / "Origins" / "TRF" / "Limited Edition" / "Join Life"), annualFee: price, apr: material/composition ("100% linen" / "Wool blend"), rewardRate: size range ("XS – XXL"), signUpBonus: badge ("NEW" / "JOIN LIFE" / "LIMITED" / "BESTSELLER"). Also add src/lib/collections.ts for the parallel capsule sub-lines. Don't rename the interface properties unless you're willing to update ~12 component references. For listings marketplaces also create src/lib/destinations.ts; for multi-brand retail also create src/lib/brands.ts (brand catalogue) and optionally src/lib/fragrances.ts (notes + perfumer); for heritage + outerwear reuse the template's src/lib/heritage.ts + src/lib/flagships.ts stubs. |
src/components/assistant-shared.tsx EmptyState | The welcome-screen logo is the call button (clicking it starts the voice call). Ships with an inline Visa wordmark SVG — which means the FIRST FRAME a customer sees before any interaction shows a Visa logo. Replace the <svg><path d="..." /></svg> inside the EmptyState button with <img src={BRAND.logoImage} alt={BRAND.name} />. Without this fix, every brand transform launches on a Visa logo. |
src/components/live-session-overlay.tsx | Two inline SVG references render the Visa wordmark in the voice-call overlay (header + animated center). Replace with <img src={BRAND.logoImage} alt={BRAND.name} /> or swap the SVG path — otherwise the voice call shows Visa. Also rewrite the system-prompt text (role, CTAs, "local banks in 200+ countries") per brand, BUT keep the "TOOL USE IS MANDATORY" block verbatim — it's what makes Gemini Live actually drive the left panel. |
src/lib/gemini-live-client.ts | The show_card / show_solution tool descriptions include example IDs ('chase-sapphire-preferred', 'tap-to-pay'). Gemini Live reads these as strong hints about what valid IDs look like. If you leave them unchanged on a non-Visa brand, the voice call will refuse to invoke the tools or will call them with made-up IDs — and the left panel stays empty during the call. Replace both example IDs with real ids from your brand's cards.ts / solutions.ts (e.g. 'jadore-edp', 'cruise-2026'). This is the single most common reason voice calls "just talk" without updating the visible panel. |
src/components/agent-panel.tsx | The mock API key uses the prefix vsk_live_ (Visa-derived). Change to a brand-neutral api_live_ or a brand-specific prefix (hsk_, drk_, etc). Runs through Math.random().toString(36) — easy to miss. |
src/lib/cards.ts | The ProductItem interface fields (annualFee, apr, rewardRate, signUpBonus, issuer, applyUrl) all bias toward credit cards. For non-card brands, either repurpose them (document with a comment block at the top of cards.ts — e.g. annualFee → price, apr → material, rewardRate → craftsmanship) or rename the interface properly (updates ~12 components). The audit grep cannot tell a repurposed field from a leak. |
src/components/hero-section.tsx | Often still contains hardcoded STATS / CARD_TIERS arrays instead of reading from BRAND.stats. Replace with BRAND.stats.map(...) so stats come from brand-config. |
src/components/inner-page.tsx | Contains PersonalPage, BusinessPage, TravelPage route shapes that assume a payments-brand nav. Rename / re-shape to match BRAND.navItems or delete and let page.tsx route dynamically. |
Every transform MUST deploy under a project-* slug, not the raw brand name. Two reasons:
booking.codiris.app, apple.codiris.app, nike.codiris.app). Using project-<brand>-<unique> breaks that exact-match heuristic. This is a hard requirement for new transforms since the Booking incident (2026-04-21).The required slug shape:
project-<short-brand>-<4char-hex>
<short-brand> — 3-8 letters, lowercase, pointing at the brand but not the full domain. Drop the word most associated with the real brand if the full name is too recognizable. Examples:
booking.com → book24 (NOT booking)airbnb.com → abnbdior.com → dior is fine (not a phishing target yet)nike.com → nk or nike (borderline — prefer nk)chase.com → chs (fintech = high-risk — always obfuscate)<4char-hex> — generated from openssl rand -hex 2 (4 hex chars = 65,536 combinations). Never reuse.Generate at the start of Phase 4:
SHORT_BRAND="book24" # replace per brand
RANDOM_ID=$(openssl rand -hex 2)
SLUG="project-${SHORT_BRAND}-${RANDOM_ID}"
echo "Your slug: $SLUG"
# e.g. project-book24-a4f2
Save this value — you'll use it in brand-config.ts, as the Vercel project name, as the Cloudflare CNAME, and as the alias.
Collision check against the registry:
curl -s -o /tmp/claim.json -w "%{http_code}\n" "https://codiris.app/api/wwa/registry/$SLUG"
RANDOM_ID and try again.Update brand-config.ts so every runtime reference to the deploy URL is correct:
export const BRAND: BrandConfig = {
// ...
mcpUrl: `https://wwa.${SLUG}.codiris.app/mcp`, // replace ${SLUG} with your generated value
mcpServerName: `${SLUG}-agent`, // used in MCP server name + CLI install command
};
Exceptions (grandfathered): the original 7 brands on codiris.app/skills (visa, stripe, dior, ralphlauren, hermes, puma, vinted) still live at wwa.<brand>.codiris.app — they pre-date this policy. Do NOT add new transforms at raw-brand subdomains; every new one gets a project-* slug.
After a successful deploy, open a PR to public/wwa-registry.json in wwwtowwa adding your entry:
{
"slug": "{short-brand}",
"domain": "{brand}.com",
"deployed_url": "https://wwa.{slug-with-random}.codiris.app",
"mcp_url": "https://wwa.{slug-with-random}.codiris.app/mcp",
"type": "{luxury-french|luxury-heritage|fintech|saas|marketplace|marketplace-listings|sportswear|consumer}",
"color": "{brand primary hex}",
"first_claimed_at": "YYYY-MM-DD",
"owner": "{your-handle-or-email}"
}
Note: the registry slug field is the short brand (e.g. booking) so the showcase lookup groups all deploys of that brand together, while deployed_url carries the full project-<brand>-<hex> subdomain that's unique per transform.
npm run build
Fix ALL errors. Common: unterminated strings, missing images, type mismatches.
Create .env.local in your new project with the keys below. A stub .env.example ships in the template — cp .env.example .env.local and fill in your own values.
OPENAI_API_KEY=sk-… # from https://platform.openai.com (fallback chat model)
GEMINI_API_KEY=AIza… # from https://aistudio.google.com/apikey (primary)
GOOGLE_GENERATIVE_AI_API_KEY=AIza… # same value as GEMINI_API_KEY (the voice client reads this name)
The MCP endpoint renders wi
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
OBobra/superpowers331k近 7 天新增 5,030 个 star
AFaffaan-m/ECC314k近 7 天新增 3,503 个 star
AFaffaan-m/ECC314k近 7 天新增 3,503 个 star