agentleFS
ConnectSafelyAIConnectSafelyAI/connectsafely-cookbook/skills/prospect-researcher/SKILL.md

prospect-researcher

Skill0 starsChanged 7 months agoMITView on GitHub

Research a LinkedIn prospect from their profile URL. Returns a structured Markdown brief with their current role, recent posts, and conversation hooks. The calling agent (Claude, GPT, etc.) should write the actual outreach message based on the hooks and recent posts. Use when the user provides a LinkedIn profile URL and asks for context, talking points, or wants to draft a personalized opener for cold outreach, sales prospecting, or recruiting.

  • Reads credentials
  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. sami2919/SignalForce★ 9same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When Claude (or any agent) invokes this skill, the workflow is:

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

prospect-researcher

Turn any LinkedIn URL into a structured research brief in two API calls. The skill returns research data — current role, recent posts, conversation hooks. Writing the actual DM is the calling agent's job, because the agent has more context than this script ever will (your tone, your product, prior messages, the user's goal).

Required env vars

VariablePurpose
CONNECTSAFELY_API_KEYYour ConnectSafely API key. Get one.
CONNECTSAFELY_ACCOUNT_IDOptional. Defaults to the default account on your key.

Quickstart

cp ../../.env.example ../../.env       # then paste your CONNECTSAFELY_API_KEY
python3 -m pip install -r requirements.txt
python3 example.py https://www.linkedin.com/in/williamhgates/

The script auto-loads .env from this folder or any parent (so a single .env at the repo root covers every skill). You can also export CONNECTSAFELY_API_KEY=… directly in your shell — real environment variables always win over .env.

Pass --json to emit machine-readable output instead of Markdown:

python3 example.py https://www.linkedin.com/in/williamhgates/ --json

How an agent should use this

When Claude (or any agent) invokes this skill, the workflow is:

  1. Skill returns the brief — snapshot, background, recent posts, conversation hooks.
  2. Agent reads the brief in its context.
  3. Agent writes the personalized DM using the hooks and post snippets as raw material.

The brief gives the agent what it can't get on its own (current role, recent activity); the agent provides what the brief can't (your tone, your product, conversation history).

Expected output

A Markdown brief with these sections:

  • Snapshot — name, headline, location, current company, connection degree, follower count.
  • Background — top three roles from experience.
  • Recent activity — last five posts with engagement counts and links.
  • Conversation hooks — three openers grounded in their posts and role.

See sample-output.md for a real run.

Customization

  • --posts N — number of recent posts to fetch (1–20, default 5).
  • --json — emit JSON instead of Markdown.
  • --pretty — render the Markdown with ANSI styling (bold headers, cyan rules, italic blockquotes). Auto-disabled when stdout isn't a terminal, so pipes and redirects still produce clean Markdown.
  • --copy — copy the brief to your system clipboard (uses pbcopy on macOS, wl-copy/xclip/xsel on Linux, clip on Windows). Combine with --pretty to see the styled version on screen while the raw Markdown lands in your clipboard.
  • --include-skills / --include-education — pull additional sections from the profile (no extra rate-limit cost; same call).

Endpoints used

Both endpoints accept a profileId (the URL slug, e.g. williamhgates from linkedin.com/in/williamhgates/). The script extracts this from the URL automatically.

Tier notes

API access requires a paid plan ($10/month Ultimate Outreach is the entry tier). New accounts get a trial. There is no free API tier — the "free" plan on the pricing page is for the post-boosting product only. See docs/pricing.md.

Failure modes handled

  • Missing CONNECTSAFELY_API_KEY → exit 2 with a link to get one.
  • Malformed LinkedIn URL → exit 2 with the expected format.
  • 401 (bad key) → exit 1 with "your API key was rejected".
  • 429 (rate limited) → exit 1 with the reset time from X-RateLimit-Reset.
  • 403 (trial expired / no subscription) → exit 1 with the upgrade link.
  • Any other non-2xx → exit 1 with the response body.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.