/ayrshare:postfrom Ayrshare - Unified Social Media API for AI Agents
Validates, publishes, schedules, edits, fetches, and retries social media posts across multiple platforms via the Ayrshare MCP server.
Ships in Ayrshare - Unified Social Media API for AI Agents. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The validate/write/read/lifecycle tools for individual social posts: validate, create or schedule, fetch, update, and retry. All operate on the profile selected by the optional profileKey argument or the connection's Profile-Key header (the argument wins when both are set).
https://api.ayrshare.com/apitwitter, facebook, instagram, linkedin, tiktok, youtube, pinterest, reddit, telegram, gmb, bluesky, snapchat, threads — full table with notes in references/platforms.md.| Tool | Purpose | Method + Endpoint | Required inputs | Optional inputs |
|---|---|---|---|---|
mcp__ayrshare__validate_post | Dry-run a post: check platform-specific issues (char limits, unsupported media) WITHOUT publishing | POST /validate/post | post (text), platforms (array of enum) | mediaUrls, scheduleDate (ISO 8601), and the full content/scheduling/platform-options surface — see references/create-post-schema.md |
mcp__ayrshare__create_post | Create or schedule a post | POST /post | post (text), platforms (array of enum) | mediaUrls, scheduleDate (ISO 8601), and the full content/scheduling/platform-options surface — see references/create-post-schema.md |
mcp__ayrshare__get_post | Fetch a post's details/status | GET /post/:id | id | — (none) |
mcp__ayrshare__update_post | Update a PENDING post (edit/approve/reschedule) | PATCH /post | id + at least one of the optional fields | scheduleDate, approved (bool), notes (string), disableComments (bool; on update, Instagram/LinkedIn only, and disabling on LinkedIn deletes existing comments), scheduledPause (bool), youTubeOptions (object; reuses the create-side schema where title is required, so re-send the existing title even when changing only visibility/description/categoryId) |
mcp__ayrshare__retry_post | Retry a post in status error, once, if the error was retryable | PUT /post/retry | id | — (none) |
Full create_post/validate_post input schema and example payloads are in references/create-post-schema.md and references/examples.md.
The Business API key (Authorization: Bearer <key>) is configured when the MCP server is installed. See ../getting-started/SKILL.md for installation and the full auth model; don't re-derive it here. Profile scoping is the optional profileKey tool argument or the Profile-Key connection header (the argument wins when both are set). To act as a different client profile, pass its profileKey on the call or reconfigure the connection's Profile-Key; with neither, calls act under the account's primary/Business profile.
mcp__ayrshare__validate_post first to dry-run the content/platforms for issues (character limits, unsupported media) without publishing. Surface any issues and ask how to proceed. Then show the user a summary (content, platforms, scheduled time) and get explicit confirmation. Only then call mcp__ayrshare__create_post. On any per-platform failure in the result, call mcp__ayrshare__explain_error and surface the plain-language explanation.mcp__ayrshare__create_post. Omit scheduleDate to post immediately; include it (ISO 8601, a future time) to schedule. There is no separate "schedule" tool. create_post is synchronous and returns per-platform postIds.mcp__ayrshare__update_post with the returned id and at least one editable field: scheduleDate (reschedule), approved (approve), notes, disableComments, scheduledPause, or youTubeOptions. Two update_post gotchas worth knowing up front: youTubeOptions reuses the create-side schema, so title is required even for a visibility-only change (re-send the existing title or the call returns a 400); and disableComments on update applies only to Instagram and LinkedIn, where disabling on LinkedIn deletes existing comments.mcp__ayrshare__get_post with the id first to read its status, then decide between update or retry.mcp__ayrshare__retry_post re-attempts a post in status error, ONCE, and only if the error was retryable. It is not a generic "send again" — to recover a failure, use retry_post, NOT a second create_post. See Gotchas.mediaUrls. Validate them first — sequencing in Gotchas, full media workflow in ../media/SKILL.md.id returned by create_post. Get/update/retry all key off it; without it you can't manage the post later.mcp__ayrshare__validate_post → confirm → mcp__ayrshare__create_post. Skipping validation lets avoidable per-platform rejections (over-limit text, unsupported media) reach publish time.profileKey argument or Profile-Key header. Each post tool takes an optional profileKey argument (it wins over the Profile-Key connection header). With neither set, every call acts under the account's primary/Business profile. To target a client profile, pass its profileKey on the call or set the connection header. (Shared rule, see getting-started.)platforms enum value. platforms accepts only the 13 values listed above. Common misses: x or X instead of twitter; google, google_business, or googlebusiness instead of gmb; fb/ig/li shorthands. One bad value rejects the call — see references/platforms.md.scheduleDate must be ISO 8601. e.g. 2026-06-05T14:30:00Z. Omit the field entirely to post now — do not pass an empty string or a human phrase like "Friday". Convert relative dates to an absolute ISO timestamp yourself before calling.mediaUrls entry that is unreachable or the wrong format fails the post. Check media first via ../media/SKILL.md (mcp__ayrshare__validate_media, which HEAD-checks a URL is reachable and reports its content type), then pass the confirmed URLs into create_post.passthrough. create_post/validate_post accept far more than post/platforms/mediaUrls/scheduleDate: firstComment, autoSchedule, autoRepost, autoHashtag, unsplash, disableComments, shortenLinks, requiresApproval, notes, idempotencyKey, and 12 per-platform option objects (e.g. youTubeOptions.title, required for YouTube; redditOptions.title + subreddit, required for Reddit). Set them directly as top-level fields. There is no passthrough/escape-hatch field — unknown keys are dropped. Full list in references/create-post-schema.md.retry_post is error-only and one-shot. It re-attempts a post in status error, exactly once, and only if the error was retryable. It is not a way to duplicate a successful post. Calling it on a non-error post won't behave like "post again". Check status with mcp__ayrshare__get_post if unsure.mcp__ayrshare__explain_error to translate the API error to plain language, then surface it. Never auto-retry create/update on a 4xx (bad input, wrong key, missing permission) — retrying a write can duplicate a post. A 429 gets at most one retry after a short delay. (Mirror of the global retry-safety rule — full version in getting-started.)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ayrshare/ayrshare-social-media-api-claude-plugin --plugin ayrshare13 skills in this plugin
/analyticsSocial media analytics for the Ayrshare MCP server — metrics for a specific post, and account/network-level analytics on a connected social network (followers, impressions, reach, demographics). Use whenever someone wants performance data: "how did my post do", "engagement on that tweet", likes/comments/shares/views/impressions/reach for a post, follower counts, reach or impressions for an account, "analytics for our LinkedIn", "how is our Instagram growing", or comparing networks. Also use when pulling analytics for a post that was NOT created through Ayrshare (by its native Social Post ID). Trigger when calling `mcp__ayrshare__get_post_analytics`, `mcp__ayrshare__get_post_analytics_by_social_id`, or `mcp__ayrshare__get_social_network_analytics`, and even without the word "Ayrshare" — if the user wants social media stats for a post or a network through an AI assistant, this is the skill. For the shared auth model and retry rules, see `../getting-started/SKILL.md`.
/commentsUse whenever someone wants to read, add, or reply to comments on a social media post through the Ayrshare MCP server — the `mcp__ayrshare__get_comments`, `mcp__ayrshare__add_comment`, and `mcp__ayrshare__reply_comment` tools. Trigger on phrasings like "leave a comment on that post", "reply to that commenter", "respond to the top comment", "what are people saying on my LinkedIn post", "pull the comments", or "answer the question someone left on Instagram" — even if the user never says "Ayrshare", "MCP", or names a tool. Also trigger when a user wants to engage with an audience under an existing post rather than create a new post. For installing/configuring the server and the auth model, this skill cross-links to `../getting-started/SKILL.md`. To create the post being commented on, see `../post/SKILL.md`.
/draft-in-brand-voiceDraft social posts that match a brand's established voice for the Ayrshare MCP server: first pull the profile's own past posts (history) to read tone, format, and what performed, then write platform-appropriate copy in that voice and validate it before anything publishes. Use whenever someone wants on-brand content rather than generic copy: "write a post the way we usually post", "draft this in our brand voice", "match our tone", "write like our LinkedIn", or any time content is created for a profile whose established style should be matched. Trigger even without the word "Ayrshare": if the user wants content that sounds like an existing account, this is the skill. It pulls history (`get_post_history` / `get_platform_history`), optionally `get_post_analytics` for what worked, drafts via `generate_post` or your own copy, then checks with `validate_post`. It produces DRAFTS only and never publishes; publishing is the explicit `create_post` step in `../post/SKILL.md`.
/errorsError explanation for the Ayrshare MCP server: translate an Ayrshare error code into a plain-English cause, a classification, and a fix. Use whenever a code or numeric error needs decoding: "what does Ayrshare error 156 mean", "why did that post fail with code 272", "explain this error", "what is error code 110 on Instagram", "how do I fix this Ayrshare error". Trigger when calling `mcp__ayrshare__explain_error`, and even without the word "Ayrshare": if the user surfaces a social-posting error code and wants to know what it means or how to fix it, this is the skill. CRITICAL: whenever ANY OTHER Ayrshare MCP tool returns a structured error code (for example `Error 156: ...`), look the code up here and explain or fix it rather than echoing the raw error back. For the shared auth model and the global retry-safety rule, see `../getting-started/SKILL.md`.
/generateAI content generation for the Ayrshare MCP server — draft post copy and suggest hashtags. Use whenever someone wants help WRITING social content rather than publishing it: "write me a post about our product launch", "draft a tweet announcing the sale", "generate a caption for this image", "give me a LinkedIn post about X", "what should I caption these photos", "suggest hashtags for sustainable fashion", "recommend trending hashtags for ...". Trigger when calling `mcp__ayrshare__generate_post` or `mcp__ayrshare__recommend_hashtags`, and even without the word "Ayrshare" — if the user wants AI-written social copy or hashtag ideas through an assistant, this is the skill. These tools produce DRAFTS ONLY; they never publish. The natural next step is `mcp__ayrshare__validate_post` then `mcp__ayrshare__create_post` (see `../post/SKILL.md`). For the shared auth model and retry rules, see `../getting-started/SKILL.md`.
/getting-startedFoundation skill for the Ayrshare MCP server: auth model, installation, client onboarding, and retry safety. Use it when installing, configuring, or wiring up the Ayrshare MCP plugin or server in Claude Code; when an Ayrshare tool returns 401/403 or "unauthorized", or no Ayrshare tools appear; when it is unclear WHICH credential to use (Business API key vs Profile-Key, how to act as a client); when onboarding a client profile; or when the user has no Ayrshare account or API key yet. Trigger even without the word "Ayrshare" if tools named `mcp__ayrshare__*` are involved, or the user asks how to set up an MCP server for social posting or connect a client's social accounts through an AI assistant. Every other Ayrshare skill cross-links here for the shared auth and retry rules.
Other plugins' skills for the same job