# X & LinkedIn Auto-Publisher: Posts, Threads & Media

> Format, auto-split X threads, preview safely by default, and publish directly to X API v2 and LinkedIn REST /rest/posts with approval gates.

X & LinkedIn Auto-Publisher: Posts, Threads & Media is a paid AI agent skill on Agensi by Hamza Shaikh, in Social Media. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $2 (one-time purchase)
- Creator: [Hamza Shaikh](https://www.agensi.io/creators/hamzashaikhai)
- Category: [Social Media](https://www.agensi.io/skills/social-media)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/x-linkedin-auto-publisher-posts-threads-media
- Tags: social-media, workflow-automation, marketing-seo

## About this skill

Go beyond writing drafts — format, verify, and actually publish developer announcements to X (Twitter) and LinkedIn straight from your coding agent.

**Included Working Automation:**
- **Smart Dry-Run Preview by Default:** Validates 280-char X boundaries and 3,000-char LinkedIn limits, automatically splits long updates into word-safe numbered threads `(1/N)`, and waits for explicit approval.
- **Live X API v2 Dispatch:** Posts single tweets or chained reply-threads when `--confirm` is passed and returns live post IDs and status URLs.
- **Live LinkedIn REST Publishing:** Publishes `PUBLIC` or `CONNECTIONS` commentary and article cards, auto-resolving your member URN if omitted.
- **Bundled API Schemas:** Includes complete X and LinkedIn capability manifests for media uploads and polls.

## Requires

- Node.js 18+
- X API v2 or LinkedIn OAuth token

## Known limitations

Requires your own X API v2 user-context Bearer token or LinkedIn OAuth 2.0 token (with w_member_social). Does not generate platform API keys automatically.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the X & LinkedIn Auto-Publisher: Posts, Threads & Media skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Will this post automatically without asking me?

Never. Running without --confirm always stops in dry_run_preview mode so your agent must ask you first.

### Does it actually call the X and LinkedIn APIs or just output text?

Both. It builds validated payloads/threads and includes real fetch handlers for X tweets and LinkedIn posts.

### Do I need npm install?

No. Zero external npm dependencies; runs cleanly on built-in Node 18+ fetch.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
