skills/social-post/SKILL.md
Post to social media platforms using a multi-provider social posting API. Use when you want to post to Twitter, LinkedIn, Instagram, Facebook, TikTok, Threads, or Bluesky. Triggers on "post to twitter", "post to instagram", "social media post", "share on linkedin", "publish to social", or any social posting request.
npx skillsauth add phy041/claude-agent-skills social-postInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Post to multiple social media platforms via a unified social posting API with automatic provider fallback.
Location: ~/social-posting-api/ (configurable — point to wherever you cloned your posting API)
Environment:
cd ~/social-posting-api
source venv/bin/activate
Required env vars in .env:
POSTFORME_API_KEY - Primary provider (PostForMe)LATE_API_KEY - Fallback provider (LATE)You only need one provider to get started. PostForMe is recommended as the primary.
from social_posting import SocialPostingClient
from dotenv import load_dotenv
load_dotenv()
client = SocialPostingClient()
print("Providers:", client.available_providers)
for acc in client.get_accounts():
print(f" {acc.platform}: {acc.username}")
result = client.post(
content="Your post content here",
platforms=["twitter", "linkedin"]
)
print(f"Success: {result.success}, Provider: {result.provider}")
result = client.post(
content="Check out these photos!",
platforms=["instagram"],
media_urls=[
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
]
)
from datetime import datetime
result = client.post(
content="Scheduled post",
platforms=["linkedin"],
scheduled_for=datetime(2025, 1, 15, 9, 0) # UTC
)
| Platform | Text Only | With Media | Notes | |----------|-----------|------------|-------| | Twitter/X | ✅ | ✅ | 280 char limit | | LinkedIn | ✅ | ✅ | Best for professional content | | Instagram | ❌ | ✅ | Requires media | | Facebook | ✅ | ✅ | | | TikTok | ❌ | ✅ | Video preferred | | Threads | ✅ | ✅ | | | Bluesky | ✅ | ✅ | | | Pinterest | ❌ | ✅ | Requires media | | YouTube | ❌ | ✅ | Video only |
#!/usr/bin/env python
"""Post to social media platforms."""
import sys
sys.path.insert(0, '~/social-posting-api') # Update this path
from social_posting import SocialPostingClient
from dotenv import load_dotenv
load_dotenv('~/social-posting-api/.env') # Update this path
def post_to_social(content: str, platforms: list, media_urls: list = None):
"""Post content to specified platforms."""
client = SocialPostingClient()
# Check which platforms are connected
accounts = client.get_accounts()
connected = [a.platform for a in accounts]
# Filter to only connected platforms
valid_platforms = [p for p in platforms if p in connected]
if not valid_platforms:
print(f"No connected accounts for: {platforms}")
print(f"Connected: {connected}")
return None
# Post
result = client.post(
content=content,
platforms=valid_platforms,
media_urls=media_urls
)
if result.success:
print(f"✅ Posted via {result.provider}")
print(f" Post ID: {result.post_id}")
else:
print(f"❌ Failed: {result.error}")
return result
Always check what's connected first:
cd ~/social-posting-api
source venv/bin/activate && python -c "
from social_posting import SocialPostingClient
from dotenv import load_dotenv
load_dotenv()
client = SocialPostingClient()
for acc in client.get_accounts():
print(f'{acc.platform}: {acc.username}')
"
xhs-image-gen skill for carousel contentsource venv/bin/activate && python -c "
from social_posting import SocialPostingClient
from dotenv import load_dotenv
load_dotenv()
client = SocialPostingClient()
result = client.post(
content='''Your content here''',
platforms=['platform1', 'platform2'],
media_urls=['https://example.com/image.jpg'] # Optional
)
print(f'Success: {result.success}')
print(f'Provider: {result.provider}')
print(f'Post ID: {result.post_id}')
"
.env will auto-detect new accounts| Error | Cause | Solution |
|-------|-------|----------|
| "No connected accounts" | Platform not linked | Connect via provider dashboard |
| "Instagram requires media" | Text-only post | Add at least 1 image URL |
| "HTTP 401" | Invalid API key | Check .env file |
| "All providers failed" | Both providers down | Try again later |
For open source announcements:
result = client.post(
content="🚀 Just open-sourced my project!\n\nGitHub: https://github.com/yourusername/your-repo",
platforms=["twitter", "linkedin"]
)
For visual content:
# Multi-image post
result = client.post(
content="Behind the scenes 🔧",
platforms=["instagram"],
media_urls=[
"https://example.com/image1.jpg",
"https://example.com/image2.jpg",
]
)
development
Generate Xiaohongshu (小红书) carousel images (3:4, 1080x1440) from structured content. Creates professional slide decks with Chinese typography and proper XHS formatting. Triggers on "做小红书图", "xhs images", "generate xhs slides", "小红书配图", "carousel images", or any XHS image generation request.
testing
Twitter/X account cultivation and growth system. Checks account health (TweepCred, shadowban), analyzes tweets, finds engagement opportunities, recommends unfollows, and tracks progress. Triggers on "/twitter-cultivate", "check my twitter", "twitter health", "grow my twitter", "twitter maintenance", "fix my twitter reach".
development
Detect new GitHub repos and generate formatted ship announcements for social media. Monitors your GitHub profile for new repos pushed today, writes a technical digest, and drafts Twitter/Reddit posts for approval. Triggers on "ship digest", "new repos", "what did I ship", "github ship", or any shipping announcement request.
development
Reddit account cultivation for founders and indie developers. Uses AppleScript to control real Chrome — undetectable by anti-bot systems. Checks karma, finds rising posts, drafts comments, and posts directly. Triggers on "/reddit-cultivate", "check my reddit", "reddit maintenance", "find reddit opportunities", "build reddit karma".