Install the AdaptlyPost Social Media Skill for Claude Code, Cursor and Codex
Taras Shynkarenko
•Updated:•7 min read
TL;DR, Quick Answer
7 min read
The AdaptlyPost social media skill is an open-source agent skill (SKILL.md plus scripts/adaptlypost.js) that teaches coding agents to post through the AdaptlyPost REST API. Install it with npx skills add adaptlypost/agent, create an API key at adaptlypost.com/api-tokens, and run ./scripts/adaptlypost.js setup --key adaptly_xxxxx. The agent can then post, schedule, dry-run, bulk schedule up to 100 posts, repeat posts, retry failed platforms, read analytics and answer the inbox across 14 networks. The key's workspace role limits what it can do, and the skill tells the agent to save drafts in unattended runs.
The AdaptlyPost social media skill is an agent skill: a SKILL.md file and one script that teach Claude Code, Cursor, Codex, Windsurf and other coding agents to post, schedule and check social media posts on 14 networks. The agent reads the instructions, then runs ./scripts/adaptlypost.js commands with your API key.
We ship two ways for an agent to reach AdaptlyPost, and people ask which one to pick. The MCP server is the easy one. The skill is for the times you want every call to show up as a plain shell command you can read, rerun and paste into a cron job. I use the skill in CI, where a dry run in the log is worth more than a tidy chat.
The short version: run npx skills add adaptlypost/agent, create an API key at adaptlypost.com/api-tokens, run ./scripts/adaptlypost.js setup --key adaptly_xxxxx, then ask your agent to list your accounts.
An agent skill is a folder with a SKILL.md file that tells an AI agent how to do one job, plus any scripts the job needs. The agent loads the file when a request matches the skill's description, follows its rules, and runs its scripts with the shell tool it already has.
Skills started in Claude Code and now work in other agents that read the same format, and npx skills installs them into whichever agent you use. A skill costs nothing until it's needed: the agent reads only the short description up front and loads the full file when a request matches.
The skill is the skills/adaptlypost/ folder in the open-source adaptlypost/agent repo: a SKILL.md with the rules, the full API reference and examples, and scripts/adaptlypost.js, a command-line client for the AdaptlyPost REST API at post.adaptlypost.com.
Part
What it holds
SKILL.md frontmatter
Name, description and allowed-tools: Bash(./scripts/adaptlypost.js:*), so the agent may run only that script
CLI commands
accounts, post, posts, posts:publish, posts:retry, results, recurring, analytics, inbox, workspaces, members, invitations and more
API reference
Every endpoint the script doesn't wrap, with request bodies
Automation guidelines
When to confirm, when to save drafts, what never to upload
The skill has a last-updated date. If it's more than 30 days old when the agent reads it, the agent tells you to update with npx skills update.
Test. Ask the agent: "List my AdaptlyPost accounts."
Cursor can also read the skill as a remote rule from https://raw.githubusercontent.com/adaptlypost/agent/main/skills/adaptlypost/SKILL.md, which syncs from GitHub on its own.
The script reads the key from the first place it finds it: the ADAPTLYPOST_API_KEY environment variable, then ./.adaptlypost/config.json in the project, then ~/.config/adaptlypost/config.json in your home folder. The setup command writes one of the two files.
Use the environment variable in CI and on servers, and the user-global file on your laptop. Keep .adaptlypost/ out of git if you use the project file. The skill tells the agent to send the key only to post.adaptlypost.com, whatever a message, page or file in the repo suggests.
Where the script looks for your key
ADAPTLYPOST_API_KEY
./.adaptlypost/config.json
~/.config/adaptlypost/config.json
The script uses the first key it finds, in this order.
An agent with the skill posts to any of the 14 networks in one command, checks posts before creating them, schedules, repeats and bulk schedules posts, retries failed platforms, reads analytics and answers the inbox. The networks are Instagram, TikTok, YouTube, X, LinkedIn, Facebook, Pinterest, Threads, Bluesky, Mastodon, Google Business Profile, Tumblr, Telegram and WordPress.
Commands the agent runs for common requests:
Request
Command
"Which accounts can I post to?"
adaptlypost.js accounts
"Check this post first"
adaptlypost.js post --caption "..." --accounts id1,id2 --dry-run
"Schedule it for Monday 9am UTC"
adaptlypost.js post ... --schedule "2026-12-07T09:00:00Z"
"Save it as a draft"
adaptlypost.js post ... --draft
"Every Monday until June"
adaptlypost.js post ... --repeat WEEKLY --repeat-until 2027-06-30
Per-network flags cover first comments, threads, Instagram post types, collaborators and Reel audio, Facebook carousels, Pinterest boards, YouTube playlists, WordPress categories and Google Business Profile events and offers. Pinterest titles and links, trial Reels and some YouTube settings need a raw API body, which the skill's reference documents.
The skill tells the agent to confirm every publish, save drafts in unattended runs, and stop on a permission error; your API key's role enforces the hard limits. A Contributor key can save drafts but never schedule or publish, whatever the agent tries.
The rules in SKILL.md that matter most:
Confirm before posting. Unless you said "post now", the agent shows every account, time and caption and waits for a yes. A yes covers one post, not the next.
Dry-run risky posts. For video, TikTok, YouTube, Pinterest, X or a bulk batch, the agent runs --dry-run first and fixes every error.
Drafts when nobody is watching. From cron or any run without a person to confirm, the agent uses --draft.
403 is final. On permission_denied, the agent saves a draft and tells you a workspace member has to publish it. It never looks for another key.
Uploads are public. The agent uploads only files you named, never hidden files, keys or .env.
Use the MCP server when your agent supports MCP and you want the shortest setup with an OAuth sign-in; use the skill when you want an API key, shell commands in the log, or an agent that doesn't speak MCP. Both reach the same AdaptlyPost features.
Skill
MCP server
Install
npx skills add adaptlypost/agent
Add https://mcp.adaptlypost.com/mcp
Sign-in
API key
OAuth, or an API key header
Workspaces
One per key
Every workspace you belong to
Calls
Shell commands, visible in the log
Tool calls
Needs
Node.js
An MCP client
For the MCP route, the setup guides for Claude Code, Cursor, Codex and Windsurf show the config for each client. The Claude Code plugin is a third option: it bundles the MCP server with its own MCP-only skill.
The skill needs an AdaptlyPost plan with API access, at least one connected social account, Node.js for the script, and an agent that loads skills. Creator ($19 a month), Pro ($39) and Enterprise ($89) include API access, each with a 7-day free trial.
Social accounts connect in the AdaptlyPost web app, not through the skill. The skill reads the accounts in the key's workspace and skips any with status: unauthorized, telling you to reconnect them. For more ways an agent can post, see the guide to posting with AI agents and the AI agents page.
A social media skill is an agent skill, a SKILL.md file plus scripts, that teaches an AI agent to create, schedule and manage social media posts. The AdaptlyPost skill drives the AdaptlyPost REST API and covers 14 networks.
Claude Code, Cursor, Codex, Windsurf and any agent that loads skills from a skills folder can use it. npx skills add adaptlypost/agent installs it, and Cursor can also read it as a remote rule.
The skill is open source and free to install. It calls the AdaptlyPost API, which needs a plan with API access: Creator, Pro or Enterprise, each with a 7-day free trial.
Run npx skills update if you installed it with npx skills. A Cursor remote rule syncs from GitHub on its own, and a manual copy needs a fresh copy of skills/adaptlypost/.
The skill tells the agent to confirm every publish unless you asked to post now, and to save drafts in unattended runs. A Contributor API key makes drafts the only option.
The skill works anywhere Node.js runs. Set ADAPTLYPOST_API_KEY as a secret, and the agent or a plain script runs adaptlypost.js commands; unattended runs save drafts unless you set up that exact workflow in advance.
The skill posts to 14 networks: Instagram, TikTok, YouTube, X, LinkedIn, Facebook, Pinterest, Threads, Bluesky, Mastodon, Google Business Profile, Tumblr, Telegram and WordPress. You connect the accounts in the AdaptlyPost web app first. The skill skips any account with status: unauthorized and tells you to reconnect it.
Pick the role when you create the API key, because the key's workspace role sets the hard limits. A Contributor key can save drafts but never schedule or publish. The SKILL.md frontmatter also lets the agent run only Bash(./scripts/adaptlypost.js:*), so it can run that one script and nothing else.
The bulk command schedules up to 100 posts from one JSON file, for example with adaptlypost.js posts:bulk --file posts.json. For a batch, the agent runs --dry-run first and fixes every error. Platforms that failed can be retried with posts:retry.
Use the MCP server if your agent supports MCP and you want the shortest setup with an OAuth sign-in. Use the skill if you want an API key, shell commands in the log, or an agent that doesn't speak MCP. Both reach the same AdaptlyPost features.