linkedin-cli
A bird-like LinkedIn CLI for searching profiles, checking messages, and summarizing your feed using session cookies.
About this skill
This AI agent skill provides programmatic access to LinkedIn's official API v2, specifically for posting content. It leverages OAuth tokens for secure authentication, ensuring that posts are only made under explicit user instruction or predefined schedules, respecting LinkedIn's rate limits and usage policies. Agents can use `linkedin-cli` to automate the sharing of blog posts, project updates, news, or other relevant content directly to a user's LinkedIn profile or company page. It's particularly useful for content creators, marketers, or developers who want to keep their professional network informed with minimal manual intervention. Users would employ this skill to maintain an active and professional presence on LinkedIn, ensuring timely and consistent content delivery. It offloads the repetitive task of manual posting to an AI agent, allowing the user to focus on content creation while the agent handles publication logistics, all while adhering to security best practices and API guidelines.
Best use case
The primary use case for `linkedin-cli` is automating content publication to LinkedIn. It is most beneficial for individuals and organizations who regularly share updates, articles, or news and wish to streamline their social media presence, enabling AI agents to manage professional outreach efficiently and securely.
A bird-like LinkedIn CLI for searching profiles, checking messages, and summarizing your feed using session cookies.
Users can expect their specified content to be successfully posted to LinkedIn via the official API, with confirmation of the action.
Practical example
Example input
Can you post an update to LinkedIn about my new blog post 'Mastering AI Agents' available at example.com/blog/ai-agents? Tag it with #AIagents #coding #newblog.
Example output
Successfully posted to LinkedIn. Post ID: `urn:li:share:123456789`
When to use this skill
- When explicitly asked by the user to post content to LinkedIn.
- For automating scheduled social media posts to LinkedIn.
- To share project updates, blog posts, or professional news on LinkedIn.
- When needing to programmatically interact with the LinkedIn posting API via an agent.
When not to use this skill
- For speculative content drafting or unsolicited posting without user consent.
- If you don't have a LinkedIn developer app configured with appropriate permissions.
- To bypass LinkedIn's rate limits or engage in spam-like activities.
- If you prefer manual control over every single LinkedIn post.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/linkedin-cli/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How linkedin-cli Compares
| Feature / Agent | linkedin-cli | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | medium | N/A |
Frequently Asked Questions
What does this skill do?
A bird-like LinkedIn CLI for searching profiles, checking messages, and summarizing your feed using session cookies.
How difficult is it to install?
The installation complexity is rated as medium. You can find the installation instructions above.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
Best AI Agents for Marketing
A curated list of the best AI agents and skills for marketing teams focused on SEO, content systems, outreach, and campaign execution.
Best AI Skills for ChatGPT
Find the best AI skills to adapt into ChatGPT workflows for research, writing, summarization, planning, and repeatable assistant tasks.
SKILL.md Source
# LinkedIn CLI (lk)
A witty, punchy LinkedIn CLI inspired by the `bird` CLI. It uses session cookies for authentication, allowing for automated profile scouting, feed summaries, and message checks without a browser.
## Setup
1. **Extract Cookies**: Open LinkedIn in Chrome/Firefox.
2. Go to **DevTools (F12)** -> **Application** -> **Cookies** -> `www.linkedin.com`.
3. Copy the values for `li_at` and `JSESSIONID`.
4. Set them in your environment:
```bash
export LINKEDIN_LI_AT="your_li_at_value"
export LINKEDIN_JSESSIONID="your_jsessionid_value"
```
## Usage
- `lk whoami`: Display your current profile details.
- `lk search "query"`: Search for people by keywords.
- `lk profile <public_id>`: Get a detailed summary of a specific profile.
- `lk feed -n 10`: Summarize the top N posts from your timeline.
- `lk messages`: Quick peek at your recent conversations.
- `lk check`: Combined whoami and messages check.
## Dependencies
Requires the `linkedin-api` Python package:
```bash
pip install linkedin-api
```
## Authors
- Built by Fido 🐶Related Skills
---
name: article-factory-wechat
humanizer
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
小红书长图文发布 Skill
## 概述
openclaw-youtube
YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.
openclaw-media-gen
Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key.
Cold Email Writer
Writes personalized cold emails that actually get replies
Presentation Mastery — Complete Slide Design & Delivery System
You are a Presentation Architect. You help build presentations that persuade, inform, and move people to action. You cover the full lifecycle: audience analysis → narrative structure → slide design → delivery coaching → post-presentation follow-up.
ai-humanizer
Rewrites AI-generated content to sound natural, human, and undetectable. Removes robotic patterns, adds voice variety, and preserves meaning.
Employee Handbook Generator
Build a complete, customized employee handbook for your company. Covers policies, benefits, conduct, leave, remote work, DEI, and compliance — ready for legal review.
afrexai-copywriting-mastery
Write high-converting copy for any medium — landing pages, emails, ads, UX, sales pages, video scripts, and brand voice. Complete methodology with frameworks, templates, scoring rubrics, and swipe files. Use when writing or reviewing any user-facing text.
afrexai-conversion-copywriting
Write high-converting copy for any surface — landing pages, emails, ads, sales pages, product descriptions, CTAs, video scripts, and more. Complete conversion copywriting system with research methodology, 12 proven frameworks, swipe-file templates, scoring rubrics, and A/B testing protocols. Use when you need to write or review any copy meant to drive action.
seo-assistant
A client-facing SEO assistant grounded in Google's official SEO Starter Guide. Use this skill whenever a user mentions SEO, search rankings, Google visibility, meta descriptions, title tags, page titles, alt text, sitemaps, duplicate content, URL structure, or asks how to improve their website's presence in search results. Also trigger when a user shares a URL or webpage content and wants feedback, or asks for help writing any web content that needs to perform well in search. This skill covers auditing, content writing, and answering SEO questions — use it proactively even if the user only hints at wanting more website traffic or better Google rankings.