--- name: brand-website-drafts description: Use when making a site from an Instagram page. Draft first. version: 1.0.0 author: HamaratLabs license: MIT metadata: hermes: tags: - web - branding - mobile - instagram - hamaratlabs - orchestration related_skills: - agent-router - hamaratlabs-web-deploy - claude-design --- # Brand website drafts (Instagram page -> 3 drafts -> unlisted v1/v2/v3) ## When to Use Orchestrator workflow for "bu sayfa icin website yapalim" requests where the user sends an Instagram profile screenshot of a small business (e.g. bridal/couture shops). The orchestrator does not build: a web developer agent builds drafts, the website owner agent stages publishing, a security reviewer checks, the orchestrator pushes (with the user's approval) and verifies live. ## Standing requirements (the user's spec, apply every time) - Mobile UX first (390x844), thumb reach, sticky bottom "Randevu al" bar (WhatsApp `wa.me/90...` + call; if no phone in bio, Instagram DM `ig.me/m/`). - Own brand identity, derived from the logo (palette, type, line/motif). NOT a plain e-commerce page: no cart, price list, filter grid. Atelier / fashion-house storytelling: collections, handwork detail, rental/appointment process, location, Instagram link. - Artistic touches that stay fast: webp 640/1200, preloaded LCP, lazy rest, local OFL fonts, no external requests, `prefers-reduced-motion`. - Use the brand's own Instagram images only. No stock, no AI images. If fewer than ~12 usable, stop and ask the user for originals. - **Written permission first:** the brand's photos belong to the brand. Before any of them goes into a public repo or a public URL (even unlisted), the user must have the brand owner's written permission; until then keep drafts local or behind a private preview. Record where the permission is kept in `assets/instagram/KAYNAK.md`. - Theme may come from the brand name's meaning, but copy must never announce it ("Adımız ışık demek" was rejected as a loud marketing trick). Let the theme be felt visually; headlines use the brand's own product/service language. - Each new brand must look clearly different from earlier brands' drafts (palette, type, composition, motif), not a recolor. Earlier brands live in `/-web` repos; read each `docs/TESLIM-asama1.md` and list their fonts, palettes and motifs in the new brief as forbidden. - **Never cut a photo of a person into the motif.** Strips, arches or gaps made with `clip-path` across a bride's body read as a sliced, caged figure and the user rejects it on sight. The motif goes in the frame, the paper behind it or the background; every photo stays one piece with head and shoulders intact. Say this in the brief. - A bare Instagram screenshot with "ne yapacağını biliyosun" means: run this whole workflow, no clarifying questions. ## Procedure 1. **Facts first:** `web_extract https://www.instagram.com//` (public, no login; it can fail with "Nous Tool Gateway not available", then take facts from the screenshot and let the web developer agent verify via the agent browser) plus the screenshot: name, bio, phone, address, highlights, product range, own slogans, logo description. Check load/swap/disk (`uptime`, `sysctl vm.swapusage`, `df -h /System/Volumes/Data`) before launching; free idle mobile leftovers first if swap is near full (see `mac-storage-maintenance`). 2. **Repo:** `mkdir -p /-web/{docs,assets/instagram} && git init`, copy the screenshot to `docs/instagram-profil-ekran.jpg`. 3. **Brief the web developer agent** in `docs/is-tanimi-web-taslak-.md`: The user's words verbatim, brand facts, the standing requirements, "3 really different directions, home + one detail page each", no-login image collection via the shared agent browser (never the user's main Chrome) with `assets/instagram/KAYNAK.md`, point to the previous brand repo's `araclar/` to reuse tooling (not looks), relative paths and one self-contained folder per draft (`taslaklar/v1|v2|v3/`) so publishing is a copy. Deliverables: one combined PNG with big A/B/C labels (3 phone screens + desktop each), one PNG per draft, `docs/TESLIM-asama1.md` (one-line difference per draft, recommendation, image count, max 3 questions), local commits, no push. 4. **Launch:** `hermes -p chat --query-file --oneshot -Q --max-turns 300 --run-budget 5400 --in ` with `background=true, notify=true`, log in scratch. Takes ~40-70 min. 5. **If it exits 1 early:** read the agent log for `session_turn_lease_lost` (connection drop under load; the agent may still be running). Confirm via the `API call #` lines for its session id, then `hermes --resume -p chat -q ""`. A watcher loop that exits on the TESLIM file or 15 min of no new API calls avoids polling by hand. If the log ends in `rate-limited` / `Individual quota reached`, the whole fleet is out of quota: read the quota pools (your quota scripts, `agy -p=/usage`), resume the SAME session with a short `docs/devam-.md` (what is done, what remains) once a pool opens, and do not relaunch repeatedly; if nothing opens soon, schedule one one-shot cron (`schedule: "in m"`, minutes only) that checks quota, resumes and reports. A resume wrapper that logs `EXIT $?` itself exits 0: judge by the `EXIT` line and the log tail, not the notification. 6. **Review before showing:** read TESLIM, open the combined PNG and the recommended draft with vision; check overflow, overlap, face crops, sliced bodies, Turkish text, sameness with earlier brands, and source-photo flaws (brand watermark, cabin door or clutter at the edge) that a cleaner frame would fix. Send the user the combined PNG + recommended draft PNG with 3 one-line descriptions, one recommendation with a single reason, and one question (A/B/C or mix; "yayinla" to publish). Never call `hamaratlabs.com//vN/` live before the publish step: the site answers 200 with its generic shell for unknown paths, so check the ``/h1, not the status code. 7. **Visual feedback loop ("bu foto acayip duruyor"):** name the cause in one plain sentence, write `docs/duzeltme-<date>-<topic>.md` (the user's words verbatim, the problem, what to change, scope only the named draft, re-run tests and screenshots, separate local commit), resume the same web developer session with it, then look at the new phone screenshot yourself and send it as MEDIA with eski > yeni bullets. Say which checks you ran and which are the developer agent's self-report. ## Publishing drafts on hamaratlabs.com/<brand>/v1|v2|v3 (when the user says publish and the brand owner's written permission exists) - Default: **unlisted**. `noindex, nofollow` meta in every HTML, `X-Robots-Tag: noindex` for `/<brand>/*` in `public/_headers`, no card/menu/sitemap entry. Reason: third-party brand content must not pass as the brand's official site. Decide this yourself and tell the user. - Brief the website owner agent (`workspace/is-tanimi-<brand>-yayin-<date>.md`; reuse the previous one): copy `taslaklar/vN/` to `public/<brand>/vN/` byte-identical except the noindex line, only referenced files, build + eslint, diff limited to `public/<brand>/**` and `public/_headers`, grep proof (no local home-directory paths, `.map`, `.md`, originals; brand absent from sitemap/index/JS bundle), local 200 + size checks with `wrangler pages dev dist`, 390px screenshots, then security pre-check. No push. Reuse the previous, already merged and clean staging worktree with `git switch -c feat/<brand>-taslak origin/main`. - **The orchestrator pushes** after the security review passes and with the user's publish approval, from a clean push worktree: `git fetch && git rev-parse origin/main HEAD` (must match), `git diff --name-only origin/main..feat/<brand>-taslak | grep -vcE '^public/(<brand>/|_headers$)'` must be 0, `git merge --ff-only feat/<brand>-taslak && git push origin main`. - **Live verification:** `gh run watch <id> --exit-status` for the push SHA, then curl each `/<brand>/vN/` and detail page (200 + own h1), loop every non-HTML file in `dist/<brand>` comparing live `%{http_code} %{size_download}` to local size (expect 0 problems), `curl -sI` shows `x-robots-tag: noindex`, and older routes (previous brands' `/<brand>/vN/`) still 200. A small first response for one page right after deploy can be edge propagation; re-curl with a cache-buster before calling it broken. Use plain curl for live checks. - Tell the user: the site repo is PUBLIC, so the brand's photos (and any customer's name/photo) stay visible on GitHub permanently even though pages are noindex. Do not publish without the brand owner's written permission (see Standing requirements). ## Reporting style Short Turkish, no em dash, no jargon: what was built, the links, what was verified live, one risk note, one question. UI decisions always go with the image attached.