Tutorials

Install the AdaptlyPost Social Media Skill for Claude Code, Cursor and Codex

Taras Shynkarenko
•Updated: •7 min read
Install the AdaptlyPost Social Media Skill for Claude Code, Cursor and CodexInstall the AdaptlyPost Social Media Skill for Claude Code, Cursor and Codex

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.

What is an agent skill?

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.

What is in the AdaptlyPost social media skill?

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.

The adaptlypost/agent repository on GitHub, with the skills/adaptlypost folder that holds the skill.

PartWhat it holds
SKILL.md frontmatterName, description and allowed-tools: Bash(./scripts/adaptlypost.js:*), so the agent may run only that script
CLI commandsaccounts, post, posts, posts:publish, posts:retry, results, recurring, analytics, inbox, workspaces, members, invitations and more
API referenceEvery endpoint the script doesn't wrap, with request bodies
Automation guidelinesWhen 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.

A developer typing commands into a terminal on a laptop, matching the install steps for the skill.

How do you install the social media skill?

You install the skill with one npx command, then store an API key with the script's setup command. The agent needs Node.js to run the script.

  1. Install. In your project, run:
    npx skills add adaptlypost/agent
    Or copy skills/adaptlypost/ into your agent's skills folder by hand.
  2. Create an API key. Open API Tokens in AdaptlyPost, create a key and pick its role. Keys start with adaptly_.
  3. Store the key. Run the setup yourself, not through the agent:
    ./scripts/adaptlypost.js setup --key adaptly_xxxxx
    Add --local to store it for this project only.
  4. 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.

Where does the skill keep the API key?

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.

What can an agent do with the social media skill?

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:

RequestCommand
"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
"Schedule these 20 posts"adaptlypost.js posts:bulk --file posts.json
"What failed?"adaptlypost.js results --id <postId>
"Retry the failed ones"adaptlypost.js posts:retry --id <postId>
"Best posts last month"adaptlypost.js analytics:posts --from ... --to ... --sort VIEWS --limit 5

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.

A person carefully reviewing a checklist at a desk, standing for the confirm-before-posting rules that stop mistakes.

How does the skill keep an agent from posting by mistake?

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.

Should you use the skill or the MCP server?

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.

SkillMCP server
Installnpx skills add adaptlypost/agentAdd https://mcp.adaptlypost.com/mcp
Sign-inAPI keyOAuth, or an API key header
WorkspacesOne per keyEvery workspace you belong to
CallsShell commands, visible in the logTool calls
NeedsNode.jsAn 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.

What does the social media skill need to work?

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.

Frequently Asked Questions

What is a social media skill for AI agents?

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.

Which agents can use the AdaptlyPost skill?

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.

Is the AdaptlyPost social media skill free?

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.

How do I update the skill?

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/.

Can the skill post without asking me?

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.

Does the skill work in GitHub Actions or cron?

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.

Which social networks does the AdaptlyPost skill support?

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.

How do I limit what the skill can do?

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.

How many posts can the skill schedule at once?

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.

Should I use the skill or the MCP server?

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.

Was This Article Helpful?

Let us know what you think!

See us more often in Google

One click marks AdaptlyPost as a preferred source, so our articles sit higher in your Top Stories, AI Mode, and AI Overviews.

Related Articles