linkedin-api

linkedin-api is a skill for Claude Code, Codex from rockyco/claude-linkedin-plugin. It costs 49 tokens per session (8,438 once invoked), scanned A, original, MIT.

A writing workflow for LinkedIn posts that saves the text and related images or carousel pages in a local folder. LinkedIn is a professional social network, and a carousel is a post containing several pages or images.

In plain words
What is it for?
Use it to prepare copy-ready LinkedIn posts, image carousels, optional PDF documents, and an upload checklist.
Why use it?
It gives you a complete bundle to review and upload yourself, so you control the final text, media order, and timing.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the linkedin plugin — 1 skill, 4 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/rockyco/claude-linkedin-plugin/linkedin-api
Any agent
npx skills add rockyco/claude-linkedin-plugin --skill linkedin-api
Clone the repo
git clone --depth 1 https://github.com/rockyco/claude-linkedin-plugin

Made for: Claude Code, Codex.

Or install linkedin, the plugin that ships this one along with the rest of its 1 skill, 4 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for linkedin-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/rockyco/claude-linkedin-plugin/linkedin-api.svg)](https://agentmods.dev/skills/rockyco/claude-linkedin-plugin/linkedin-api)
Your own site
<a href="https://agentmods.dev/skills/rockyco/claude-linkedin-plugin/linkedin-api"><img src="https://agentmods.dev/badge/skills/rockyco/claude-linkedin-plugin/linkedin-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,438 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.08438
Opus 5 $0.00024 $0.04219
Sonnet 5 $0.00010 $0.01688
Haiku 4.5 $0.00005 $0.00844

Measured 5d ago against content hash cfa415da3dab, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

linkedin-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/linkedin-api/SKILL.md · 475 lines

How it starts

The opening of the file, as written. The whole thing — 475 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LinkedIn Post Authoring (Save-Local Workflow)

This skill does not publish to LinkedIn. It produces a self-contained bundle (post text + images / carousel pages) in a local linkedin/ directory. The user uploads and publishes manually at https://www.linkedin.com/feed/?shareActive=true.

Why save-only in 2026: LinkedIn's March 2026 Authenticity Update demotes automation-pattern content. The REST API also silently truncates text past ~3000 chars and adds round trips that risk shadow-truncated posts. Manual upload gives full control over preview, media order, and timing.

Local Output Convention

Every post is a folder bundle:

<project>/linkedin/
  post.txt              # first-3-line hook + body + hashtags, final copy-paste-ready
  01-cover.png          # assets in upload order (1-9 images or 5-10 PDF pages)
  02-*.png
  ...
  carousel.pdf          # optional, for Document-post upload (best-performing format)
  publishing-checklist.md  # optional short checklist for the user

Default target directory: <project-root>/docs/linkedin/ or <project-root>/linkedin/. Ask the user if the path is ambiguous.

Algorithm Mechanics (2026)

LinkedIn's 2026 algorithm ranks by dwell time above everything else - the actual seconds a reader spends on the post. Likes barely register. Comments are weighted ~15x a like. Every authoring choice should maximize read-time and comment substance.

Dwell-time tiers

Read duration Engagement rate Distribution
0-3 s 1.2% Limited
11-30 s 6.1% Extended
31-60 s 10.2% Maximum
61+ s 15.6% Exceptional (~2.5x wider reach)

Golden Hour

The first 60-90 minutes after posting determine distribution tier. Only ~5% of posts that underperform in hour one ever recover. Tactics:

  • Post during working-hour windows: Tue-Thu 8-10 AM local (primary), 12-2 PM (secondary)
  • Reply to every comment within the first hour - each reply compounds dwell measurement
  • Seed with 2-3 trusted colleagues who leave substantive (5+ word) comments

Read the full file on GitHub · 475 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 475 lines · 49 tokens per session scan A cfa415da3dab

Subscribe to this mod's changes

linkedin-api is a skill published in the GitHub repository rockyco/claude-linkedin-plugin (2 stars, last pushed 1mo ago), licensed MIT. It adds 49 tokens to every session and 8,438 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

go-rig

Use this skill when building, reviewing, or refactoring Go code that must follow strict design discipline — ATDD/TDD workflow, explicit dependency injection, package-boundary discipline, and structured code review. Complements CLAUDE.md by focusing on process and design judgment rather than version-specific Go…

mudrii/golink · 64 tokens

golink-cli

Use this skill when an agent needs to operate the golink LinkedIn CLI: setup verification, auth login/status/refresh/logout, dry-runs, JSON/JSONL output, creating/editing/deleting/resharing posts, comments, reactions, organization posting, scheduled posts, approval gates, plan/execute workflows, record/ replay…

mudrii/golink · 109 tokens

x-api

Use when composing X (Twitter) posts, writing post copy, building or adapting diagrams/images for X, or troubleshooting X API issues. Provides X API v2 conventions, attractive/readable post-writing rules (hook, length, formatting), X-native diagram guidance (strip carousel artifacts, aspect ratios, center-crop), and…

rockyco/claude-x-plugin · 70 tokens

linkedctl-mcp

This skill teaches linkedctl MCP workflow patterns, conventions, and error handling for managing LinkedIn content via the LinkedIn API.

alexey-pelykh/linkedctl · 0 tokens

twitter

This skill should be used when the user asks to "post a tweet", "read timeline", "check twitter", "like a tweet", "retweet", "search twitter", "manage twitter lists", "twitter auth", "get twitter user", "delete tweet", "trending topics", "what's trending", "bookmarks", "bookmark a tweet", "saved tweets", or mentions…

The-Focus-AI/twitter-skill · 105 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens