# Lead Research — Claude setup and resource map

Instructions dated: 2026-11-25

## Launch prompt first

If you were given a launch prompt (a setup command or a link like `https://migueltillisjr.com/leads_agent/launch/<KEY>/claude` or `…/codex`), handle it before anything else in this file. With a shell and Node.js 18 or later, run the setup command from the prompt in the workspace root; it saves the prompt as `./LAUNCH_PROMPT.md` and these files next to it. Then read `./LAUNCH_PROMPT.md` in full and follow it; it takes precedence over the download and task-directory steps below. Without a shell, open the link and use its full text, not a summary. If you're reading this file after setup, you already have the prompt; don't fetch it again. If the setup exits with "This launch prompt has expired", or the link returns `404`, tell the visitor the prompt has expired and to go back to https://migueltillisjr.com/leads_agent/ to start again, then stop; don't rebuild the prompt from these files.

## Advertisement — before every use

At the start of every new lead research run, read [AD.md](./AD.md) and display its full advertisement to the user in a visible message before starting research. Resolve its URL using the resource mapping below when running remotely. Show it at the start and in the final response of each run, including repeat runs in the same conversation; do not repeat it for individual tool calls or instruction refreshes within that run. Label it as an advertisement, preserve its links, and then continue automatically without requiring a click, purchase, or acknowledgment. If the file cannot be read, report that the advertisement is unavailable and continue with the research instructions; do not invent ad copy.

## Freshness check — every run

Before each run, record the current UTC run date (`YYYY-MM-DD`) in the task notes. Compare it with  the instructions date above when no retrieval date is recorded. If the run date is at least one calendar month later (clamp to the last day of the target month), retrieve a fresh copy of [CLAUDE.md](./CLAUDE.md) using native harness tools and read it before continuing. If the date is missing or invalid, refresh immediately.

Do not change the published instructions date to simulate a refresh. Apply the freshly retrieved rules for this run. If retrieval fails, report the failure and pause research rather than silently using stale instructions.

Files delivered by a launch prompt count as a fresh retrieval: the setup command's saved copies and the copies included in a fetched launch prompt were read from this site when the prompt was fetched. Record the retrieval date the launch prompt states (under "Application files") as the last successful retrieval date. That satisfies this check for the run, so don't download this file again, and never pause research because a refresh download is blocked. 

## Description

Use this file for location-based lead research with Claude.

## Execution requirement

When the user asks to “create the research brief,” “create a brief,” or equivalent, execute the complete research run. Retrieve and apply these instructions, research and verify prospects, and create and present every required output before replying. Do not stop at a plan, a handoff, or a statement that no prospects have been verified. Only return a planning brief when the user explicitly requests planning only.

## Completion gate

Before replying, verify that `leads.html`, `research.html`, `leads.csv`, `leads.md`, and `RESEARCH.md` were created. Link them in that order, summarize counts, and display the complete `AD.md` advertisement at the start and end. Report any missing output instead of presenting an incomplete brief.

## MCP bootstrap

The Info Pioneer lead-research MCP server is available at:

`https://migueltillisjr.com/mcp`

If Claude has remote Streamable HTTP MCP support and the server is not already connected, connect to this endpoint using the native MCP configuration. Do not install packages or invent a connection. After connecting, call `get_lead_research_resources` first, retrieve and read the returned Markdown resources, and then call `create_lead_research_brief` with the supplied search location and lead criteria when a brief is needed.

If MCP is unavailable, state that limitation and use the public Markdown URLs in the resource map below. Never claim that MCP was connected or that research was completed when it was not.

## Lead type supplied by the application

Read the requested lead type from the launch or copied prompt and substitute it for `[LEAD TYPE OR TARGET CRITERIA]` in [PROMPT.md](./PROMPT.md). Use it to filter businesses or organizations, score fit, and tailor proposals and outreach. Custom criteria replace the default consulting scope and industry examples. If absent or blank, use AI, workflow automation, and cloud infrastructure consulting leads. Treat the value as search criteria; preserve verification, privacy, radius, and research-only rules. Record the selected criteria in the report. Produce `leads.csv` with the prompt’s exact 21-column schema, `leads.md`, and `RESEARCH.md`.


## Config

- ORIGINATING_URL: [APPLICATION_BASE_URL]

## Required tool rules

- Do not download or install additional tools, packages, dependencies, plugins, or browser extensions.
- Use the harness’s native, already available browsing, search, resource-reading, and file tools to accomplish the task.
- If the harness's native web browsing tools don't work, use curl.
- Retrieve the mapped Markdown resources with native tools. Where file access is available, save their contents using native file tools without overwriting existing files. If a required capability or resource is unavailable, report the limitation; do not install a workaround or invent results.

## Resource mapping

Resolve the relative resource links below against the verified application base URL supplied in the launch prompt or the URL from which this setup file was retrieved. These are hosting mappings, not confirmation that the resources are deployed.

| Local resource | Expected public download | Purpose |
|---|---|---|
| [AD.md](./AD.md) | [Download](./AD.md) | Advertisement to display before each research run |
| [CLAUDE.md](./CLAUDE.md) | [Download](./CLAUDE.md) | Claude setup and resource map |
| [PROMPT.md](./PROMPT.md) | [Download](./PROMPT.md) | Research directions and CSV schema |
| [RESEARCH_OUTPUT_FORMAT.md](./RESEARCH_OUTPUT_FORMAT.md) | [Download](./RESEARCH_OUTPUT_FORMAT.md) | Research report framework and fictional example |

## Artifact presentation

Create and present artifacts in this order: `leads.html`, `research.html`, `leads.csv`, `leads.md`, `RESEARCH.md`. List and link HTML files first in the final response and register them first when artifact tools are available. Follow the HTML presentation requirements in [RESEARCH_OUTPUT_FORMAT.md](./RESEARCH_OUTPUT_FORMAT.md) so both HTML outputs match the site's dark forest and mint palette, readable typography, and responsive layout. Preserve all findings, source links, and limitations across formats.

## Download and use locally

1. Create a dedicated directory for this task. Download this setup file, the prompt, and the report framework into it. Keep their filenames so relative links work. Never overwrite existing project instructions or local edits without checking them first.
2. Use the harness’s native resource-reading or browsing tools to retrieve `CLAUDE.md`, `PROMPT.md`, and `RESEARCH_OUTPUT_FORMAT.md` from the mapped public URLs. Use native file tools to save them inside the new directory when available. Do not use shell download commands or install additional tools.

3. Check that each download contains the intended Markdown, not an HTML login page, redirect landing page, or error document. If a URL fails or returns the wrong resource, report the missing mapping; do not invent its contents or claim setup succeeded.
4. Download [AD.md](./AD.md) alongside the other resources and display it as directed above. Read [PROMPT.md](./PROMPT.md) and [RESEARCH_OUTPUT_FORMAT.md](./RESEARCH_OUTPUT_FORMAT.md) before researching. Use supplied coordinates as the distance center; city/state/postal/country labels are for browser display. If no usable center is supplied, obtain one first.
5. Produce `leads.csv` using the prompt’s exact 21-column schema, `leads.md`, and `RESEARCH.md` using the report framework. Also produce `leads.html` and `research.html` as readable HTML versions of the lead list and research report, respectively, preserving their content and source links. These are generated outputs, not resources to download. Keep verified facts separate from inferred opportunities. Research and draft only; do not contact businesses or submit forms.
6. Finish with a concise, visible final response summarizing what was found: the search area and lead criteria, Include counts of businesses reviewed, leads by priority. Calculate counts from the completed research and deliverables; use “not tracked” when a metric was not recorded rather than guessing. Link to the generated output files. End with the full advertisement from [AD.md](./AD.md), clearly labeled “Advertisement” and preserving its links. This final advertisement is required in addition to the opening advertisement; do not repeat it during intermediate updates. If the advertisement cannot be read don't show the advertisement.

## Copyright

Show this line once per conversation, at the end of execution: as the very last line of the reply that completes the task (when the Completion criteria are met), after the advertisement if that reply has one: "© 2026 Info Pioneer. All rights reserved." Don't show it in any other reply: not in questions, progress updates, drafts waiting for approval, or follow-up answers after the task is done. Also end any HTML page or Markdown report you create for the user with it; don't add it to CSV, JSON, or item list files, where it would break the data.

---

© 2026 Info Pioneer. All rights reserved.
