kevinbadi/ai-os-skills · Archived

linkedin-connection-agent

Tracks LinkedIn connection requests sent via PhantomBuster and stores analytics in the database. Monitors acceptance rates, pending invites, and new connections. Trigger when asked about LinkedIn connection tracking, LinkedIn outreach analytics, or PhantomBuster LinkedIn results.

First seen Apr 8, 2026

Installation

$ npx skills add kevinbadi/ai-os-skills --skill linkedin-connection-agent

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from kevinbadi/ai-os-skills · top by installs.

npx skills add kevinbadi/ai-os-skills

Browse all from kevinbadi/ai-os-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 55
License MIT
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,512 B
  • docs SUMMARY.md 313 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 4 installs

SKILL.md

LinkedIn Connection Agent

Fetches LinkedIn connection request results from a PhantomBuster agent, calculates acceptance metrics, and stores analytics in the database. Runs as a daily cron job via Modal.

What It Does

  1. Calls PhantomBuster API to get latest LinkedIn connection results
  2. Downloads structured JSON profile data from S3
  3. Calculates metrics: total sent, accepted, pending, acceptance rate
  4. Stores aggregate stats and individual profiles in linkedinagentdata table
  5. Tracks status changes (e.g., "Invitation sent" → "Request accepted")

How to Run

Local

# View analytics only
python3 skills/linkedin-connection-agent/scripts/linkedin_connection_agent.py --analytics

# Store results in database
python3 skills/linkedin-connection-agent/scripts/linkedin_connection_agent.py --analytics --store

Modal Cron (Daily at 6 PM EST / 11 PM UTC)

modal deploy skills/linkedin-connection-agent/scripts/modal_linkedin_connections.py
modal run skills/linkedin-connection-agent/scripts/modal_linkedin_connections.py

Configuration

Environment Variables

PHANTOMBUSTER_API_KEY=xxx
PHANTOMBUSTER_AGENT_ID=685897070795556  # LinkedIn connections agent
DATABASE_URL=postgresql://...

Dependencies

pip install requests psycopg2-binary python-dotenv

Metrics Parsing (Important)

  • total_sent = profiles with invitationDate (we sent them an invite)
  • total_accepted = profiles with status = "Request accepted"
  • pending = profiles with status = "Invitation sent"
  • acceptancerate = totalaccepted / total_sent × 100

Do NOT count "Already connected" as accepted — those are pre-existing connections.

Important Notes

  • PhantomBuster daily limit: 20 connection requests
  • Agent ID 685897070795556 is required — it's the specific LinkedIn connections agent
  • Individual profiles tracked by unique linkedin_url for status updates
  • Aggregate stats stored daily for trend tracking

Scripts

File Purpose
linkedinconnectionagent.py Local analytics script
modallinkedinconnections.py Modal cron deployment