{"success":true,"name":"brimind-chained-search","description":"Find everything about a list of named things (radios, schools, businesses, people) one name at a time — take a hint, verify it is the right entity, collect every contact detail (phones, emails, website, socials, image URLs) from the site AND from elsewhere (Facebook, Instagram, LinkedIn, directories), save it, then move to the next name. Use whenever a task says \"find the contacts / numbers / emai","category":"unitary","path":"unitary/brimind-chained-search/SKILL.md","file":"SKILL.md","content":"---\nname: brimind-chained-search\ndescription: Find everything about a list of named things (radios, schools, businesses, people) one name at a time — take a hint, verify it is the right entity, collect every contact detail (phones, emails, website, socials, image URLs) from the site AND from elsewhere (Facebook, Instagram, LinkedIn, directories), save it, then move to the next name. Use whenever a task says \"find the contacts / numbers / emails of …\", when a directory or Maps gives names without numbers, and before calling a prospect list complete.\n---\n> Imported from [PRIVATE_HOST] `~/unitary/.claude/skills/brimind-chained-search`. 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# Chained search: hint → verify → collect → save → next\n\nOwner, 2026-10-12: *\"find any hint, make sure its right, take all possible details that can help in the task like\nphone numbers and emails. then save that details, then go search for next named thing. if you are searching for\nimages, add images in the details, not binary but urls and links.\"*\n\n## The loop (one name at a time, never batch-guess)\n\n1. **Hint** — start from what you have: a name, a frequency, a Maps row, a directory line, a logo.\n2. **Verify it is the right one** before taking any detail from it. Two independent matches out of:\n   same name + same city, same phone on two sources, the site links to the social page (or back), same logo,\n   same address. A namesake in another city/country is **not** a match: drop it and say so.\n3. **Collect everything useful for the task**, each fact with its source URL:\n   - official website (check it answers, and that it is theirs: name/logo/footer match)\n   - phones from the site (header, footer, /contact, /about, `tel:` links) — mark mobile vs landline\n   - emails from the site (`mailto:`, footer, /contact); drop template junk (example.com, wixpress, sentry, @martin.com-style placeholders)\n   - **elsewhere**: Facebook page (About / Intro: phone, email, WhatsApp button), Instagram bio, LinkedIn company\n     page, YouTube \"About\", Google Maps listing, national directories (pagesjaunes.com.tn, regulator lists such as HAICA for radios)\n   - named people (director, marketing, programme lead) with their public role and source\n   - **images as URLs only** (logo, building, studio, team) — never binary in the record; when it must last, put a\n     copy on storage.brimind.pro (`cd storage-uploader && node src/cli.js <url> --name <id>-<n>.jpg`, the name needs an extension)\n4. **Save** before moving on: one JSON per entity in the run folder (`client-finder/results/<run>/dossiers/<id>.json`),\n   fields `name, verifiedBy[], website, phones[{n,type,source}], emails[{e,source}], socials{}, people[], images[{url,durable?,source}], notes`.\n   A field you could not find is written as empty **with the reason** (`\"emailsNote\": \"site has only a form\"`).\n5. **Next name.** Keep a `progress.tsv` (name · status · phones · emails) so a killed run resumes where it stopped.\n\n## One command (owner, 2026-10-12: \"you should create that tools as well\")\n`node agents/method/contact-hunt.mjs --in names.tsv --out <dir> --mobile-only --people 5 --agent <you>`\n(names.tsv: name⇥city⇥site⇥known phone). Resumable; exit 3 = some names still without a (mobile) number.\nPieces, usable alone (read-only, rail Chrome :9223/:9224 where the owner is logged in):\n- `cd browser-opener && node examples/fb-find-page.js \"<name city>\"` → the right Facebook page\n- `node examples/fb-about.js '{\"Name\":\"<fb url>\"}' out.json` → phones / WhatsApp / emails from the About tab\n- `node examples/linkedin-people.js --n 5 \"<company>\"` → staff whose headline names the company\n**Lesson 2026-10-12 (radios):** in Tunisia the mobile is on the Facebook About tab, almost never on the site or\nin search engines. Web search + 4 researchers found 1 mobile for 17 radios; the rail Facebook found 6 in minutes.\nA number on a page without a contact word next to it is usually a code/ID: never keep it.\nThe owner's own number/email show inside Facebook's chrome when logged in: never record them as the page's.\n\n## Tools, cheapest first\n- Fetch the page directly (`fetch`/`curl`) and regex `tel:`, `mailto:`, `\\+?216\\s?\\d{2}\\s?\\d{3}\\s?\\d{3}`.\n- `omni search \"<name> <city> contact\"` for leads to other pages (free).\n- Maps: `npm run maps -- \"<query>\" --max N` — takes several minutes: always run it **in the background**\n  (a 120 s foreground limit kills it), on the **[PRIVATE_HOST]**.\n- Facebook/Instagram need the rail browser (claude-in-chrome) when a plain fetch gets a login wall.\n\n## Done means\nEvery name has: verified yes/no with its evidence, every phone and email found with sources, image URLs,\nand the reason for each empty field. Report counts (names · verified · with mobile · with email).\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}