Automates LinkedIn operations (profile/company scraping, search, messaging, connection management, posting, Sales Navigator) via CLI for scripting and AI agent workflows. Returns structured JSON; each command takes 30s–minutes.
Ships in 10-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
当你要从脚本或 AI Agent 编排 LinkedIn 操作(而非手点网页 UI)时使用本技能:
不该用的边界:
linkedin 不可用,安装:npm install -g @linkedapi/linkedin-clilinkedin setup --linked-api-token=TOKEN --identification-token=TOKEN。--json -q,便于机器解析。success 字段判断动作是否真的成功;非 0 退出码代表基础设施错误。全局标志(建议每条命令都带):
| 标志 | 说明 |
|---|---|
--json | 结构化 JSON 输出 |
--quiet / -q | 抑制 stderr 进度信息 |
--fields name,url,... | 仅输出指定字段 |
--account "Name" | 指定账号执行本命令 |
输出格式:成功 { "success": true, "data": {...} };失败 { "success": false, "error": { "type": "personNotFound", "message": "..." } }。
退出码:0 成功(仍需查 success);1 一般错误;2 token 缺失/无效;3 需订阅/套餐;4 LinkedIn 账号问题;5 参数无效;6 限流;7 网络错误;8 workflow 超时(返回 workflowId 供恢复)。
核心命令一览:
linkedin person fetch <url> [--experience --education --skills --languages --posts --posts-limit N --comments --reactions] --json -q(按需加标志,每个标志都增加耗时)linkedin person search --term ... [--locations --industries --current-companies --previous-companies --schools --position --limit] --json -qlinkedin company fetch <url> [--employees --dms --posts],员工过滤需配合 --employees(如 --employees-position、--employees-locations)linkedin company search --term ... [--sizes "11-50,51-200" --locations --industries] --json -qlinkedin message send <person-url> '<text>' --json -q(文本 ≤1900 字符,单引号包裹)linkedin message get <person-url> [--since TIMESTAMP] --json -q(首次会触发后台同步、较慢)connection status|send|list|pending|withdraw|remove,如 connection send <url> [--note '...'] [--email ...];withdraw 默认会同时取关,加 --no-unfollow 保留关注post fetch <url> [--comments --comments-sort mostRecent --comments-replies --reactions];post create '<text>' [--company-url --attachments "url:type:name"];post react <url> --type like|love|support|celebrate|insightful|funny;post comment <url> '<text>'(评论 ≤1000 字符)stats ssi / stats performance / stats usage --start ... --end ...navigator person fetch|search、navigator company fetch|search、navigator message send <url> '<text>' --subject '<subject>'(InMail,正文 ≤1900、主题 ≤80)、navigator message getlinkedin workflow run --file workflow.json --json -q(或 stdin/inline);workflow status <id> [--wait]account list / account switch "Name" / account rename "Name" --name "New" / reset [--all]# 抓取个人资料 + 工作与教育经历
linkedin person fetch https://www.linkedin.com/in/username --experience --education --json -q
# 按公司与职位搜索人
linkedin person search --current-companies "Google" --position "Engineer" --limit 20 --json -q
# 抓公司的决策者和最近 10 条动态
linkedin company fetch https://www.linkedin.com/company/name --dms --posts --posts-limit 10 --json -q
# 发消息(单引号包裹文本)
linkedin message send https://www.linkedin.com/in/username 'Hey, loved your latest post!' --json -q
# 带文档附件发帖
linkedin post create 'Our Q4 report' \
--attachments "https://example.com/report.pdf:document:Q4 Report" --json -q
# Sales Navigator 发 InMail
linkedin navigator message send https://www.linkedin.com/in/username \
'Would love to chat about API integrations' --subject 'Partnership Opportunity' --json -q
limitExceeded 错误代表已达上限。https://www.linkedin.com/... 且无尾部斜杠。null 或 [],不会被省略。lark-im、lark-contact 等 lark-* 技能(不同平台,能力不互通)。采编自 sickn33/antigravity-awesome-skills(MIT)。
What SKILL.md sets; muted values are Claude Code's defaults
/10-platform:linkedin-cli-automationfrom 10-platform
npx claudepluginhub findscripter/everything-skills --plugin 10-platform66 skills in this plugin
/agentmail-email-infra当 AI 智能体需要真实邮箱完成注册/验证码/事务通信时使用;通过 AgentMail REST API 开通账号、收发邮件、注册 Webhook、查询 karma 余额并产出可执行调用;不适用于自建/企业 SMTP/IMAP 或个人邮箱代收。触发词:AgentMail、智能体邮箱、theagentmail.net/agentphone-voice-sms-agents当需要给 AI 代理配备电话号码、发起/接听语音通话、收发短信、查看通话转写或配置 Webhook 时使用;调用 AgentPhone REST API(base=https://api.agentphone.to/v1)完成代理/号码/通话/短信/Webhook/用量的全生命周期管理,产出可直接执行的 curl 与 Webhook 处理代码;不适用于自建 Twilio/SIP/STUN 等底层电信栈或非 AgentPhone 平台。触发词:电话代理、语音通话、短信、号码、Webhook、转写。/ai-native-cli-design当设计/改造供 AI 智能体调用的命令行工具时使用;按 core/recommended/ecosystem 三层产出 JSON 优先、可校验的 CLI 契约(默认 JSON、结构化错误、退出码、护栏、agent/ 目录与自描述);不适用于纯人类交互 CLI、GUI 或库 API 设计;触发词:agent CLI、AI 友好命令行、CLI JSON 输出、退出码规范、agent/ 目录Other plugins' skills for the same job