--- name: rental-site-launch description: Launch a small rental business online with a CEO-led AI agent team: turn the owner's ads, photos and leases into a fact-checked, bilingual, search-friendly website with its own domain, a live dashboard, QA rounds and a go-live with rollback. Use when someone wants a website for rooms, apartments or other rentals and wants agents to do the work. --- # Rental site launch (CEO-led agent team) You are the **team lead**. The person asking is the **CEO**, and the property owner may be someone else. Real example: My Place MTL (myplacemtl.com), 12 furnished rooms in Montréal, launched in one working day. ## 0. Ground rules (put them in the project's CLAUDE.md as HARD RULES) 1. **Facts come only from the owner's documents** (signed leases first, then the owner's words, then old ads). Ads and old contracts often contradict the current leases: the lease wins, and every unconfirmed fact is marked `[CONFIRM]` and kept off the site. 2. **Fair housing.** Never state or imply who may apply (students only, gender, origin, age, children, income source). Schools appear only as travel destinations. 3. **Privacy.** Tenant names, IDs and lease contents never enter the project or the site. Read signed leases to extract business facts, then delete the extracted text. 4. **Money, accounts, terms, passwords, OAuth grants and the final production push need the CEO's own OK.** Fill forms up to the pay or approve button and stop. 5. **Releases:** preview → QA with evidence → CEO OK → live, with a written rollback line. 6. **Timestamps** always from `date -u`, never estimated. ## 1. Intake (first hour) - Collect the photo folders, the current ads, the listing texts, a lease template and 2–5 signed leases. - Build `data/inventory.json`: one row per rentable unit, with photo paths. Separate room-only photos from shared-area photos by hashing the files, since duplicates across folders are common areas. - Write `data/listing-voice.md`, the owner's tone and the facts to keep, plus a list of every mistake in the current ads (wrong address, "pet friendly" against a no-pets lease, "5 min walk" that is really 10, "utilities included" when the lease says otherwise). ## 2. Team (spawn in parallel with clear file ownership) | Role | Owns | Delivers | |---|---|---| | Developer | `site/` code | Next.js static export, FR/EN routes, sitemap, hreflang, JSON-LD, "price on request" when the rent is unknown | | Photo editor | `public/photos`, `photos.json` | 640/960/1200/1600 px variants, EXIF/GPS stripped, cover choice, FR/EN alt text, photo notes on what each room really contains | | Copywriter | `content/` | Per-unit copy built only from photo notes and facts, a `confirm` list per file | | Researcher | `research/` | Comparable rents with links, transit times, local rental law, SEO keywords | | Market researcher | `research/brand-names.md` | Name shortlist checked on domain (RDAP), every social handle, trademarks, local conflicts, language law | | Agent architect | `drafts/agents/` | Playbooks for leasing, screening, lease, rent and maintenance agents with approval points | | QA | `reports/qa-*.md` | Rounds with evidence: crawl, facts scan, fair-housing scan, Lighthouse, phone screenshots | Two writers never share a file. When agents share one git tree, sequence their pushes. ## 3. Build order 1. Static site with no client JS first (fast, crawlable). Add small vanilla JS later for real features, under CSP `script-src 'self'`. 2. Every page: one H1, unique title (≤ 60 characters) and description, canonical, hreflang, JSON-LD (an `Offer` only where a price is published). 3. QA round 1 → fix → round 2. Expect issues like unconfirmed amenities, a generic furniture list that doesn't match every room, and "call for the price" next to a published price. ## 4. Name and domain - Check each candidate on: .com/.ca via `rdap.org` (404 = free), Instagram, TikTok, X, YouTube, Facebook and GitHub public profile pages, the national trademark register (real records, not just the top hit), and local businesses. - Respect local language law. In Québec the business name must be French, or carry a French generic word. - The CEO decides. Record the decision, and don't reopen it. ## 5. Go live - Accounts are owned by the business: a GitHub organization, the Cloudflare account and domain. The CEO pays and approves. - Cloudflare Pages connected to the GitHub repo: build `npm run build`, output `out`, preview pages marked `noindex` via `_headers`. - Custom domains for the apex and www, plus a redirect rule `http*://www./*` → `https:///${2}` (one hop). - Verify on the live domain: no noindex, 301s keep path and query, the sitemap loads, Lighthouse SEO 100. ## 6. Keep the CEO informed - A live dashboard artifact (team-dashboard skill) with status tiles, one-tap decisions, to-dos with exact steps, team state and chat. - Plain-language reports. Ask one decision at a time. ## 7. After launch - Independent QC by a reviewer who hasn't seen the build, then fix, retest and push. - An improvement plan aimed at one number: **empty days per unit**. - A redesign on a branch preview, with QA on the preview and shipping only after QA re-confirms. ## 8. Package and share - Visitor stats: Cloudflare Web Analytics (cookie-free). Allow `static.cloudflareinsights.com` in script-src and `cloudflareinsights.com` in connect-src, and add a privacy note in the FAQ (Québec Law 25). - Write `reports/improvement-plan.md`, `reports/status.md` (CEO brief + change log with a rollback line for every live change) and `reports/qa-*.md` (every round with evidence). - Optional: publish an anonymised case study. No client names, phone numbers or lease details, and no private code. ## Pitfalls seen in the real run - Projects in iCloud-synced folders get " 2" duplicate files that corrupt build caches. Clean `.next`/`out` before each build, with retries. - Cloudflare injects an analytics beacon that a strict CSP blocks. Either allow it or switch it off, and record the decision. - Moving the language switch into a phone's horizontally scrolling menu hides it. Keep FR/EN in the top bar. - Rents, inclusions and furniture in old ads were wrong. The leases were the truth. - A name that looks free can be a registered trademark from last month. Read the trademark record. - Cache `/js/*` with `max-age=0, must-revalidate`, or version the file names. With a day-long cache, returning visitors run old scripts against new pages. - After a QA FAIL, QA must re-confirm the fixes before shipping. Teammates checking their own fixes is not enough. - Merging a big redesign into the live branch needs the CEO's explicit OK. Small fixes after a QA pass can ship under the lead's authority. - Agents sharing one git working tree can lose commits during each other's rebases. Have them take turns pushing, or give each its own worktree. - Trust claims must stay true to the business: if "landlord" is not exactly right, say "a local team you can call directly".