Scrape post engagers

From Othmane-Khadri/YALC-the-GTM-operating-system · View interactive version

Scrape post engagers is an AI agent skill from the GitHub repository Othmane-Khadri/YALC-the-GTM-operating-system. Pull the audience that engaged with a LinkedIn post — likers (reactors) and commenters — via Unipile, dedupe across endpoints, and persist them as a result set ready for qualification or campaign launch. Use when the user says 'scrape engagers from this post', 'who liked this LinkedIn post', 'who co

How to use this skill

Skill file

Scrape Post Engagers

I'll pull the people who engaged with a LinkedIn post (reactors + commenters) via Unipile, dedupe them across endpoints, and persist the result as a numbered result set you can hand off to qualify-leads or launch-linkedin-campaign.

When This Skill Applies

Use this skill when the user says:

NOT this skill (use qualify-leads instead):

NOT this skill (use personalize-message instead):

NOT this skill (use launch-linkedin-campaign instead):

What This Skill Does

  1. Validates the LinkedIn post URL (linkedin.com/posts/... or linkedin.com/feed/update/...).
  2. Shells out to npx tsx src/cli/index.ts leads:scrape-post --url <url>.
  3. The CLI calls Unipile under the hood, fetches reactors + commenters, dedupes them, writes them to the local SQLite DB as a fresh result set, and prints the result set id, totals, and output path.
  4. Renders a clean summary and offers to chain into the next step (qualify or launch).

What This Skill Does NOT

Workflow

Step 0: Ask for the LinkedIn post URL

If the user hasn't pasted a post URL, ask:

"What's the LinkedIn post URL? I need either the activity URL (linkedin.com/posts/<handle>_<slug>-activity-...) or the feed update URL (linkedin.com/feed/update/urn:li:activity:...)."

Don't proceed without a URL. Don't guess from screenshots, post titles, or partial slugs.

Step 1: Validate URL format

The CLI accepts any URL Unipile resolves, but the supported patterns are:

If the URL doesn't match either shape, ask the user to paste the canonical URL from the post's "Copy link" menu.

Step 2: Shell out to the CLI

From the gtm-os root (~/Desktop/gtm-os/):

npx tsx src/cli/index.ts leads:scrape-post --url <url>

Per the 0.13.0 benchmark, single-command side-effecting skills shell out unconditionally — the import-direct path saves ~10ms but doubles the maintenance surface.

Optional flags worth surfacing if the user asks:

Don't pass these flags unless the user asks.

Step 3: Parse the CLI output

The CLI prints a final block of the form:

✓ Scraped <N> engagers (<R> reactors, <C> commenters)
  Result set: <id>
  Output: <path>

Next: yalc-gtm leads:qualify --result-set <id>

Capture the result set id, total count, reactor count, commenter count, and output path.

Step 4: Render a clean summary

Use the format shown in references/example-output.md. At minimum:

Step 5: Offer follow-ups

After the summary, ask:

"Want me to:

(a) qualify these leads against your ICP via qualify-leads --result-set <id>?

(b) launch a LinkedIn outreach campaign to them via launch-linkedin-campaign?"

Don't run either without a clear yes.

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.