linkedin-poster
Skill4 starsChanged 4 months agoMITView on GitHub
Compose and publish LinkedIn posts (text, articles, images) via the LinkedIn API. Use when user wants to draft, preview, or publish content to LinkedIn.
- Reads credentials
- Sends data out
2 other projects use a version of this.
Adopted by
Most recently taken up by
- muhammad-anas35/Nexus-ai-employeetheir own version, first seen Sep 25, 2026
- muhammadwaheedairi/Personal-AI-Employeetheir own version, first seen Mar 6, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- muhammadwaheedairi/Personal-AI-Employee★ 2same name
- muhammad-anas35/Nexus-ai-employee★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository162 other files it gives its agents.
- agents/AGENTS.mdAGENTS.md
- skills/compound-engineering/AGENTS.mdAGENTS.md
- skills/trailofbits-security/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- examples/CLAUDE.mdCLAUDE.md
- skills/compound-engineering/CLAUDE.mdCLAUDE.md
- skills/trailofbits-security/CLAUDE.mdCLAUDE.md
- app-store-reviewSkill
- advanced-javascriptSkill
- ai-native-uiSkill
- anime-jsSkill
- app-l100Skill
- barba-jsSkill
- brand-guidelinesSkill
- cinematic-web-engineSkill
- codebase-knowledge-graphSkill
- crossplatform-monorepoSkill
- css-first-uiSkill
- design-auditSkill
- design-critiqueSkill
- dev-cycleSkill
- device-hardware-bridgeSkill
- discovery-docSkill
- docxSkill
- edge-intelligenceSkill
- graph-aware-reviewSkill
- local-first-architectureSkill
- modern-build-pipelineSkill
- motion-nativeSkill
- nano-bananaSkill
- playwrightSkill
- pptxSkill
- project-initSkill
- remotionSkill
- sensory-nativeSkill
- spline-3dSkill
- streaming-cacheSkill
- tanstack-ecosystemSkill
- design-taste-frontendSkill
- tauri-desktopSkill
- threejsSkill
- transition-nativeSkill
- ui-design-stackSkill
- visual-nativeSkill
- web-l100Skill
- web-platform-apisSkill
- xlsxSkill
- better-authSkill
- claude-real-videoSkill
- clone-websiteSkill
- css-keyframe-animationsSkill
- design-checkSkill
- design-dnaSkill
- design-polishSkill
- drizzle-neonSkill
- fastlaneSkill
- angular-architectSkill
- api-designerSkill
- architecture-designerSkill
- atlassian-mcpSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Before first use, the user needs:
- Distinctive: line 30
Use the 3-legged OAuth2 flow:
- Very specific: line 149
Check env vars: Verify LINKEDIN_ACCESS_TOKEN and LINKEDIN_PERSON_ID are set.
- Distinctive: line 152
Confirm: ALWAYS ask for explicit confirmation before publishing.
- Very specific: line 161
Line breaks: Use \n for formatting. Short paragraphs improve readability.
- Distinctive: line 162
Emojis: Use sparingly and only if user's style includes them
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LinkedIn Poster
Post content to LinkedIn directly from Claude Code. Supports text posts, article shares, and image posts.
Prerequisites
Before first use, the user needs:
- LinkedIn Developer App at https://developer.linkedin.com/
- Products enabled: "Share on LinkedIn" + "Sign In with LinkedIn using OpenID Connect"
- App verification completed (required for
w_member_socialscope) - Environment variables set:
LINKEDIN_ACCESS_TOKEN— OAuth2 Bearer tokenLINKEDIN_PERSON_ID— User's LinkedIn person URN ID (numeric, from/v2/userinfo)
Getting Your Person ID
curl -s -H "Authorization: Bearer $LINKEDIN_ACCESS_TOKEN" \
https://api.linkedin.com/v2/userinfo | jq -r '.sub'Getting an Access Token
Use the 3-legged OAuth2 flow:
- Direct user to:
https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT&scope=openid%20profile%20w_member_social - User authorizes, LinkedIn redirects with
?code=AUTH_CODE - Exchange code for token:
curl -X POST https://www.linkedin.com/oauth/v2/accessToken \
-d "grant_type=authorization_code&code=AUTH_CODE&client_id=CLIENT_ID&client_secret=CLIENT_SECRET&redirect_uri=REDIRECT_URI"- Token expires in 60 days. Refresh before expiry.
Capabilities
1. Text Post
Simple text update to the user's LinkedIn feed.
curl -s -X POST https://api.linkedin.com/v2/posts \
-H "Authorization: Bearer $LINKEDIN_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "LinkedIn-Version: 202503" \
-H "X-Restli-Protocol-Version: 2.0.0" \
-d '{
"author": "urn:li:person:'"$LINKEDIN_PERSON_ID"'",
"commentary": "Your post text here",
"visibility": "PUBLIC",
"distribution": {
"feedDistribution": "MAIN_FEED",
"targetEntities": [],
"thirdPartyDistributionChannels": []
},
"lifecycleState": "PUBLISHED"
}'2. Article Share
Share a URL with commentary.
curl -s -X POST https://api.linkedin.com/v2/posts \
-H "Authorization: Bearer $LINKEDIN_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "LinkedIn-Version: 202503" \
-H "X-Restli-Protocol-Version: 2.0.0" \
-d '{
"author": "urn:li:person:'"$LINKEDIN_PERSON_ID"'",
"commentary": "Check out this article!",
"visibility": "PUBLIC",
"distribution": {
"feedDistribution": "MAIN_FEED",
"targetEntities": [],
"thirdPartyDistributionChannels": []
},
"content": {
"article": {
"source": "https://example.com/article",
"title": "Article Title",
"description": "Brief description of the article"
}
},
"lifecycleState": "PUBLISHED"
}'3. Image Post
Upload an image then post it. Two-step process.
Step 1 — Initialize upload:
curl -s -X POST https://api.linkedin.com/v2/images?action=initializeUpload \
-H "Authorization: Bearer $LINKEDIN_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "LinkedIn-Version: 202503" \
-H "X-Restli-Protocol-Version: 2.0.0" \
-d '{
"initializeUploadRequest": {
"owner": "urn:li:person:'"$LINKEDIN_PERSON_ID"'"
}
}'Response gives uploadUrl and image URN. Save both.
Step 2 — Upload binary:
curl -s -X PUT "$UPLOAD_URL" \
-H "Authorization: Bearer $LINKEDIN_ACCESS_TOKEN" \
--upload-file /path/to/image.jpgStep 3 — Create post with image:
curl -s -X POST https://api.linkedin.com/v2/posts \
-H "Authorization: Bearer $LINKEDIN_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "LinkedIn-Version: 202503" \
-H "X-Restli-Protocol-Version: 2.0.0" \
-d '{
"author": "urn:li:person:'"$LINKEDIN_PERSON_ID"'",
"commentary": "Image caption here",
"visibility": "PUBLIC",
"distribution": {
"feedDistribution": "MAIN_FEED",
"targetEntities": [],
"thirdPartyDistributionChannels": []
},
"content": {
"media": {
"id": "'"$IMAGE_URN"'"
}
},
"lifecycleState": "PUBLISHED"
}'Process — When User Says "Post to LinkedIn"
- Check env vars: Verify
LINKEDIN_ACCESS_TOKENandLINKEDIN_PERSON_IDare set. If not, guide setup. - Draft content: Help user compose the post. Offer to refine tone, add hashtags, optimize length.
- Preview: Show the user exactly what will be posted. Include post type, text, any URLs/images.
- Confirm: ALWAYS ask for explicit confirmation before publishing. Never auto-post.
- Publish: Execute the appropriate curl command.
- Report: Show success/failure, post URN if successful.
Content Guidelines
- Character limit: 3,000 characters for post text
- Hashtags: 3-5 relevant hashtags, placed at end of post
- Best engagement: Posts with 1,200-1,500 characters perform best
- Line breaks: Use
\nfor formatting. Short paragraphs improve readability. - Emojis: Use sparingly and only if user's style includes them
- Images: JPG/PNG, max 10MB, 1200x627px recommended for article thumbnails
Error Handling
| Code | Meaning | Action |
| 401 | Token expired or invalid | Guide user to refresh token |
| 403 | Missing scope or unverified app | Check app products and verification |
| 422 | Invalid post content | Check field formats, character limits |
| 429 | Rate limited | Wait and retry with backoff |
Visibility Options
PUBLIC— visible to everyoneCONNECTIONS— visible to 1st-degree connections only
Pass as the visibility field value.
Rate Limits
LinkedIn does not publish exact numbers. General guidance:
- Stay under ~100 API calls/day
- Space posts at least 10 minutes apart
- Monitor via Developer Portal analytics tab
- Handle 429 responses with exponential backoff
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

