{"success":true,"name":"brimind-client-recon","description":"Gather every detail this repo's tools can find about a prospect — Google Maps listing, photos, existing web presence, socials, contact channels — and write it to one dossier before any site is designed or any outreach is drafted. Use before `brimind-demo-site`, before client-finder outreach, and whenever asked to \"find everything about this business\".","category":"unitary","path":"unitary/brimind-client-recon/SKILL.md","file":"SKILL.md","content":"---\nname: brimind-client-recon\ndescription: Gather every detail this repo's tools can find about a prospect — Google Maps listing, photos, existing web presence, socials, contact channels — and write it to one dossier before any site is designed or any outreach is drafted. Use before `brimind-demo-site`, before client-finder outreach, and whenever asked to \"find everything about this business\".\n---\n> Imported from [PRIVATE_HOST] `~/unitary/agents/skills/brimind-client-recon`. 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# Client recon — gather first, build second\n\n**Run this before designing anything.** A page built on real details (the Eircode, the\nplus code, the category Google lists them under, their own photo) reads as *yours*\nto the owner. A page built on guesses reads as a template, and every invented line is\nsomething they have to correct before they can say yes.\n\nRule for the whole dossier: **record only what a tool actually returned.** Mark\neverything else `unknown` — never fill a gap with a plausible guess. What the tools\ncould not find is itself the pitch (\"no website\", \"hours not published\").\n\n## 1. Find the business — Maps search\n\n```bash\nnpm run maps --silent -- \"<trade> <town> <region>\" --max 6 > leads.json\n```\n\nReturns `{ query, count, businesses: [...] }` with name, category, rating, address,\nphone, website and `maps_url`. Run it once per town rather than one broad query — a\nrural region returns better results split up. Keep every `maps_url`: step 2 needs it.\n\n## 2. Full listing detail — one call per prospect\n\n```bash\nnpm run place -- \"<maps_url>\" --photos 8 --lang en\n```\n\nThis is the richest single source. It gives category, exact rating, address, Eircode /\npostcode, phone, website, **plus code**, **coordinates**, canonical Maps URL, the\n`place_ref`, and photos as public no-auth URLs (`url` / `large` / `thumb`).\n\nKnown limits — state them as limits, do not paper over them:\n- `reviews_count`, `price_range` and `service_options` come back empty for logged-out\n  sessions. They are missing, not zero.\n- **Opening hours are only ever one day.** Google's logged-out panel exposes a single\n  row; clicking the week expander in a headless browser returns the same one row for\n  every business, which is a tell that it is a default and not their real hours. Record\n  the one verified line and mark the rest unknown.\n- A listing with no owner photo falls back to a Street View thumbnail. The scraper\n  used to mangle those URLs; **Dali fixed that on 2026-08-31** (`photoVariants()` in\n  `browser-opener/lib/maps-place.js`, 8 tests in `npm test`), so `place` now returns\n  working Street View URLs and there is no manual step. Credit the photo as Street View.\n- **Street View URLs sit behind a User-Agent DENYLIST, and the trap is the\n  opposite of what you would expect.** Google blocks a list of tokens anywhere in\n  the UA string — HTTP clients (`curl`, `wget`, `python-urllib`,\n  `python-requests`, `Go-http-client`, `axios`) **and crawler words**: `bot`\n  (case-insensitive), `spider`, `crawler`, `robot`. A token match fails even with\n  `Mozilla/5.0` in the string. Measured 2026-09-01:\n  - **403** — `curl/8.x`, `python-urllib/3.13`, `Mozilla/5.0 curl`,\n    `Mozilla/5.0 bot`, `Mozilla/5.0 BrimindBot/1.0`\n  - **200** — no UA header at all, `Mozilla/5.0`, `foo`, `python`, `node`,\n    `Mozilla/5.0 scraper`, `Mozilla/5.0 (compatible; Brimind/1.0)`\n  It is a token list, not a judgement about intent — `scraper` passes and `bot`\n  does not. **Treat the list as a diagnosis, not a boundary.** We found it by\n  probing, it narrowed three times in one night, and nothing says it is complete\n  — assume token eleven exists. Do not build a UA-sanitiser from these ten; the\n  eleventh will bite, and it will look exactly like a dead photo URL.\n  **The rule that survives every future narrowing is the safe direction, not the\n  enumeration: send a plain browser User-Agent, and never conclude a URL is dead\n  from a 403 alone.** **So an honest self-identifying UA blocks you**: name a tool\n  `BrimindBot` and every photo fetch 403s. Use `Mozilla/5.0`, and if you want to\n  self-identify, avoid the crawler words entirely.\n  **Python is affected** — `urllib.request.urlopen()` 403s on its default UA.\n  `fetch` in node escapes only because undici sends no UA at all. A `Referer`\n  changes nothing.\n  The trap underneath: a denied fetch returns 403 whether the URL is right or\n  wrong, so it lies convincingly about a photo URL that is perfectly fine. Never\n  record a photo as dead on a 403 alone.\n\n- **Maps does not expose the same photos on every run.** A re-scrape returning\n  fewer photos than last time is not necessarily a regression — same listing,\n  different harvest. Record \"nothing to recover\" on the dossier rather than\n  leaving a gap that reads as an oversight, and do not go chasing it.\n- Street View panoramas cap at **1024px on the long edge**. Asking for w=1600 or\n  w=2048 returns 1024 either way, so `url` and `large` are the same request — there is\n  no bigger original to fetch.\n- These listings carry **one** photo each — there is no gallery to walk. Check the\n  aria-labels on the place page (\"Photo of X\", \"Street View\"); if no \"All photos\" button\n  exists, one hero image plus Street View is the whole harvest.\n\nDownload any usable photo locally rather than hotlinking Google.\n\n## 3. What they already have online\n\n- `website` from step 2 — if it is a Facebook URL, that *is* the finding: no site.\n- Audit an existing site before pitching a replacement:\n  `npm run errors-detector` (port 3050) crawls one URL and reports technical, visual,\n  accessibility and content problems with screenshots — the strongest possible opener.\n- `cd client-finder && npm run clients:test` scores a lead's site on down / missing /\n  no HTTPS / not mobile-friendly / SEO basics.\n- Need something no predefined feature covers (a directory page, a Facebook about box)?\n  `browser-opener` is an abstract driver: open any page, click by selector or visible\n  text, extract JSON per a declarative schema. Write a one-off script rather than\n  copying by hand.\n\n## 4. Widen it — more sources, no API key\n\n`cd client-finder && npm run clients:search -- \"<niche>\" \"<city>\"` queues one prompt\nper source (14 available, `--list-sources`) — Maps, Facebook, regional directories.\nYou paste each prompt into any AI chat with web access and bring the JSON back;\n`npm run clients:ingest` merges everything found by several sources into one lead,\nmatched on phone / domain / name+city, with the union of the details: phones, emails,\nWhatsApp, socials, gallery images, hours, review quotes.\n\n### A negative from a search engine is not a negative from a source\n\n**If a source is named as checked, it must have been fetched.** Ruled by Sinda\n2026-09-01 after I wrote `notFoundOn: irish-pages.ie` for a business that\nirish-pages.ie was in fact listing, with a phone number, on a page I never\nopened. The search engine had not indexed it; the page had the answer.\n\nSits next to **null never demotes** because it is the same failure: our ignorance\nrecorded as a fact about the business. An empty search result is a fact about the\nindex, not about the world.\n\n- Fetch the source's own listing page before writing it into `notFoundOn`.\n- Quote what the page says, verbatim, next to the URL.\n- \"Searched and found nothing\" and \"fetched the page and it is not there\" are\n  different sentences. Only the second is evidence.\n\n## 5. Write the dossier\n\nOne file per prospect, next to the work that will use it (for a demo site, that is the\n`data/` module the pages read). Include, each marked verified or unknown:\n\n- business name exactly as listed, and the category Google files them under\n- rating, and whether a review count was obtainable\n- address, Eircode/postcode, plus code, coordinates\n- phone, and any other channel found\n- existing web presence, or explicitly \"Google listing only\"\n- photo: local path, or none and why\n- hours: the one verified line, rest unknown\n- the canonical Maps URL and `place_ref`, so the next run starts where this one stopped\n\nThen hand it to `brimind-demo-site` to build the page, or to `dealflow` for outreach.\n\n## What this buys you\n\nThe demo can end with a panel titled *\"What Google knows about you\"* listing all of it.\nThat panel is what proves the page was built for **this** business — and it is honest,\nbecause every line in it came from a tool, not from you.\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}