/marketing:social-crosspostfrom marketing
Cross-post videos from the user's own Instagram Business/Creator account to YouTube (incl. Shorts) and TikTok (X optional) using official APIs and free self-run scripts. Use when the user asks to repost, cross-post, share or sync Instagram reels/videos to other platforms, check what's new on their Instagram, or set up / troubleshoot this pipeline.
Ships in marketing. 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; scripts run unread.
Free, self-run replacement for paid cross-posting tools. Python scripts in scripts/
call each platform's official API with the user's own developer apps. No scraping.
Run from the skill folder. Private data lives in .data/ beside the scripts (git-ignored);
packages in .pylib/ (pip install --target .pylib -r requirements.txt).
assets/crosspost.yml runs it on a schedule (see setup guide).The account's ad access was restricted once after an automated Meta setup. Never again:
instagram_business_basic,
app in Development mode, the Instagram account added as tester. No Facebook Page, no
business portfolio, no Facebook Login for Business configuration, no ads/messaging/
publishing permissions, no business verification or app review.crosspost.py cooldown).If python3 scripts/crosspost.py doctor shows platforms not ready, follow
references/setup.md one platform at a time. Rules:
bash scripts/save-token.sh <KEY> in Terminal. Non-secret IDs
(client key/ID, IG_USER_ID) Claude may write to .data/.env directly.auth.py start <platform> prints a link; after approving, the user
copies the landing address and runs bash scripts/save-signin.sh; then Claude runs
auth.py finish "$(cat .data/landed_url.txt)" and clears the file.baseline once so the back catalog isn't reposted. Ask first if the user
wants older videos posted.python scripts/crosspost.py doctor. Only use platforms that are ready.python scripts/crosspost.py list. Each row has the caption,
permalink, downloadable, and the platforms still pending.
downloadable: false means Instagram withheld the file (usually licensed music).
Tell the user; offer to post from their original file instead.{"<ig_media_id>": {
"youtube": {"title": "≤100 chars, searchable", "description": "caption + context"},
"tiktok": {"title": "caption with 3–5 hashtags"},
"x": {"text": "≤280 chars, no links"}}}
Keep the user's voice and meaning; only adapt length, hashtags and hooks. Omit a
platform to fall back to the Instagram caption.python scripts/crosspost.py run --ids <id> --overrides overrides.json.
Show the user a short plan: which video, which platforms, the exact text, YouTube
privacy, TikTok mode, and the X cost (~$0.015 per post; $0.20 if it contains a link).--publish (add --cleanup to delete the local copy).--publish. Publish later only
when the user replies yes in that chat.#Shorts added. Uploads from an unaudited Google project may be forced to private until
the project passes YouTube's API audit; the result's privacy field shows what happened.TIKTOK_MODE=inbox (default) sends a draft to the TikTok app inbox; the user
taps to publish within 24h, at most 5 pending drafts per 24h. direct publishes
automatically, but before TikTok's app audit it is forced to private and the account must
be private. Suggest switching to direct once the audit passes.
buffer (recommended for personal accounts) hands the reel to Buffer's free plan, an
audited TikTok partner, which publishes it publicly. TikTok's audit is not granted to
personal "upload to my own account" tools, so direct will stay private. Never automate
the TikTok website instead: TikTok bans bots, and it would put the account at risk.scripts/snapchat_pack.py
builds a weekly folder (Kings episodes + ≤160-char Spotlight captions + suggested times)
for the user to schedule in Snapchat Profile Manager. OAuth app "Kings Reels Sync" exists;
SNAP_CLIENT_ID / SNAP_CLIENT_SECRET and the refresh token are in .data on the Mac.X_STRIP_LINKS=true)
because a link raises the price. Videos over 140s are skipped (X_MAX_SECONDS).| Symptom | Likely cause | Fix |
|---|---|---|
invalid_grant / refresh failed | Refresh token revoked or expired (Google "Testing" apps expire in 7 days) | Re-run auth.py <platform>; publish the Google OAuth app to Production |
| Instagram 190 error | Token older than 60 days without refresh | Generate a new token, auth.py instagram-exchange |
TikTok unaudited_client_can_only_post_to_private_accounts | Direct mode before audit | Use TIKTOK_MODE=inbox or set the account private |
TikTok spam_risk_too_many_pending_share | 5 inbox drafts waiting | User publishes or deletes drafts in the app |
Buffer post status error: "TikTok flagged this post as potential spam" | TikTok blocked the API post (often pending inbox drafts, or many posts in a short time) | verify puts it back in line and pauses TikTok for 24h (TIKTOK_SPAM_PAUSE_HOURS), then it resumes on its own. TikTok captions are trimmed to the story line + 5 hashtags (no "follow for…" lines) because stuffed captions get flagged. cooldown --clear tiktok resumes early |
| X 402/403 on post | No credits, or token missing media.write | Add credits; re-run auth.py x |
YouTube uploadLimitExceeded | Channel's daily upload cap | Wait 24h |
Files: scripts/crosspost.py (main), scripts/instagram.py, youtube.py, tiktok.py,
x_twitter.py, auth.py, common.py; references/setup.md; assets/.env.example,
assets/crosspost.yml.
assets/crosspost.yml (opens in a new tab)references/setup.md (opens in a new tab)requirements.txt (opens in a new tab)scripts/auth.py (opens in a new tab)scripts/buffer.py (opens in a new tab)scripts/common.py (opens in a new tab)scripts/crosspost.py (opens in a new tab)scripts/instagram.py (opens in a new tab)scripts/push-secrets.sh (opens in a new tab)scripts/save-signin.sh (opens in a new tab)scripts/save-token.sh (opens in a new tab)scripts/snapchat_check.py (opens in a new tab)scripts/snapchat_pack.py (opens in a new tab)scripts/tiktok.py (opens in a new tab)scripts/x_twitter.py (opens in a new tab)scripts/youtube.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/brand-reviewReview content against your brand voice, style guide, and messaging pillars, flagging deviations by severity with specific before/after fixes. Use when checking a draft before it ships, when auditing copy for voice consistency and terminology, or when screening for unsubstantiated claims, missing disclaimers, and other legal flags./campaign-planGenerate a full campaign brief with objectives, audience, messaging, channel strategy, content calendar, and success metrics. Use when planning a product launch, lead-gen push, or awareness campaign, when you need a week-by-week content calendar with dependencies, or when translating a marketing goal into a structured, executable plan./competitive-briefOther plugins' skills for the same job
npx claudepluginhub majabri/claudeskills --plugin marketing