/ayrshare:errorsfrom Ayrshare - Unified Social Media API for AI Agents
Translates Ayrshare error codes into plain-English causes, classifications, and fixes. Activates when any Ayrshare MCP tool returns a structured error or the user asks about a social-posting error code.
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.
None: SKILL.md is the whole skill.
One tool, the canonical way to decode any Ayrshare error code:
mcp__ayrshare__explain_error — looks up an error code in the Ayrshare error catalog and returns a plain-English cause, a classification, and a short resolution hint.It is the cross-cutting helper every other group skill points to: when a tool call fails with a structured error code (e.g. Error 156: ...), translate it here before surfacing anything to the user.
| Tool | Purpose | Method + Endpoint | Required inputs | Optional inputs |
|---|---|---|---|---|
mcp__ayrshare__explain_error | Explain an Ayrshare error code from the canonical error catalog | GET /error-explainer | code (string of digits, or a number) | platform (a platform identifier) |
The response gives three things:
developer-fix (your code/config/input is wrong), user-action (the end user or their linked account must act, e.g. re-auth, permissions, content rules), or network (a transient/platform-side issue).The classification is derived from the error's HTTP status, not from the meaning of the message: 401/402/403 → user-action, 5xx → network, and every other 4xx (including 400) → developer-fix. So a relink-required error such as 156 ("…is not linked") or 272 (X/Twitter authorization issue) — both HTTP 400 — is labeled developer-fix even though the real fix is an end-user relink. Treat the label as a coarse routing hint and always read the cause and resolution text; a developer-fix can still carry an instruction meant for the end user.
This tool is reached over the same authenticated connection as every other Ayrshare MCP tool. explain_error is account-level: it decodes an error code and does not take a profileKey argument (it is one of the few tools excluded from per-call profile selection). Its only inputs are code and platform (no passthrough object). See Which tools accept profileKey in ../getting-started/SKILL.md.
create_post, add_comment, get_platform_history, or any other Ayrshare MCP tool returns a structured error code (e.g. Error 156: ...), call explain_error with that code (pass the failing platform if you have it) and surface the explanation. Do not echo the raw error or guess at the meaning.platform when you have it. The same numeric code can mean different things per network; supplying the platform identifier (e.g. the platform that the failed call targeted) sharpens the cause and fix.code accepts a string of digits or a number. Pass the bare code from the error (e.g. 156, "272"). Strip any surrounding text.developer-fix → usually the input/config/code is wrong; fix it before retrying (do not blindly re-call the failing tool). But because this bucket is just "a 4xx that isn't 401/402/403", it also catches end-user issues that happen to return 400 (e.g. an account relink, like codes 156/272) — read the resolution and relay it to the end user when that is what it says.user-action → the end user or their linked social account must do something (re-authenticate, grant a permission, change content); relay the resolution hint to them.network → transient/platform-side; a single retry after a short delay is reasonable (matching the global 429/transient rule), but don't loop.explain_error only decodes the code. After understanding it, address the root cause and re-run the original tool deliberately — don't auto-retry the failed write.explain_error and every other Ayrshare tool are missing, ask the user to run /mcp first: if it shows the Ayrshare server as failed or disconnected, the problem is the connection, not the key, and they can reconnect it there. Otherwise the plugin's API key setting is most likely empty, so Claude Code did not start the server (or Claude Code is older than 2.1.119). This is the normal state right after updating from plugin version 0.2.2 or earlier, which read the key from an environment variable. Then tell the user to run /ayrshare:setup; do not ask for the key in the chat. See Missing credentials in ../getting-started/SKILL.md.Error 272 is unhelpful. Always run it through explain_error and present the cause + fix.developer-fix or user-action error will not resolve on retry — only network-class errors warrant the single transient retry. Never auto-retry a failed write on a 4xx just because you decoded it.platform for accuracy. Omitting it still works but may give a more generic explanation when the code is platform-specific.explain_error takes no profileKey argument. It is account-level (one of the few tools excluded from per-call profile selection); the profile-scoped tools do accept a profileKey argument (see getting-started).explain_error is itself a read. If the lookup call fails (rare), surface it plainly; don't loop. (Mirrors the global retry-safety rule in ../getting-started/SKILL.md.)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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`.
/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.
/historyPost history for the Ayrshare MCP server — list past and scheduled posts, optionally filtered by recency, platform, and status. Use whenever someone wants to see what's been posted: "show my recent posts", "what did we publish last week", "history for this client", "did that scheduled post go out", "list our LinkedIn posts", or to look up a post id for analytics. Also the verification step after onboarding a client — confirming their accounts linked — and the way to find a NATIVE Social Post ID for analytics on a post that wasn't created through Ayrshare. Trigger when calling `mcp__ayrshare__get_post_history` or `mcp__ayrshare__get_platform_history`, and even without the word "Ayrshare" — if the user wants a log of social posts through an AI assistant, this is the skill. For the shared auth model and the full onboarding sequence, see `../getting-started/SKILL.md`.
Other plugins' skills for the same job