Agent skill
social-media
Social media content, API integrations, scheduling. X, Facebook, Threads, LinkedIn, YouTube, TikTok. OAuth, rate limits, media uploads, engagement, threads.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/social-media-duc01226-softwaredevcareers
SKILL.md
Social Media Skill
Content creation, API integrations, and scheduling for X, Facebook, Threads, LinkedIn, YouTube, TikTok.
When to Use
- Create social media content (posts, threads, carousels)
- Implement API posting automation
- Build scheduling systems
- Handle OAuth authentication flows
- Manage media uploads and rate limits
Quick Reference
| Platform | Max Length | API | Best Times (UTC) |
|---|---|---|---|
| X/Twitter | 280/4000 | v2 OAuth 1.0a | Tue-Fri 9am-12pm |
| 3000 | REST v2 | Tue-Thu 8-10am | |
| 63,206 | Graph v20.0 | Mon-Fri 9am-1pm | |
| Threads | 500 | Graph v1.0 | Mon-Fri 11am-2pm |
| TikTok | 2000 | v2 | Tue-Thu 7-9pm |
| YouTube | 5000 (desc) | Data v3 | Thu-Sat 2-5pm |
References
Content & Strategy
references/platform-specs.md- Platform character limits, formatsreferences/posting-best-practices.md- Optimal posting strategiesreferences/thread-templates.md- Thread/carousel templatesreferences/engagement-templates.md- Engagement reply templatesreferences/hook-writing.md- Hook formulas for attention
API Workflows
references/x-twitter-workflow.md- X posting, threads, OAuth 1.0areferences/linkedin-workflow.md- Personal, company pages, PDF carouselsreferences/facebook-workflow.md- Pages, Reels, schedulingreferences/threads-workflow.md- Carousel, reply threadsreferences/tiktok-workflow.md- Video/photo postingreferences/youtube-workflow.md- Video upload, thumbnailsreferences/rate-limits-errors.md- API limits, retry strategiesreferences/unified-api-services.md- Ayrshare, Late.dev alternatives
Scripts
# Validate post content
node scripts/validate-post-content.js --platform x --content "Your post" --media "img.jpg"
node scripts/validate-post-content.js --platform x --premium --content "Long premium post..."
# Schedule posts with optimal timing
node scripts/schedule-post.js --suggest-time --platforms "x,linkedin,tiktok"
node scripts/schedule-post.js --platforms "x,linkedin" --content "Hello" --time "2026-01-21T10:00:00Z"
Core Workflows
Content Creation
- Define platform and goal
- Write platform-optimized copy (load
posting-best-practices.md) - Create hook using formulas (load
hook-writing.md) - Add visuals, hashtags
- Schedule optimal time
Thread Creation
- Choose type: educational, story, list, how-to
- Write hook (most important)
- Outline 5-15 posts
- End with CTA
API Posting
- Authenticate: OAuth 2.0 (most) or OAuth 1.0a (X)
- Upload media (chunked for large videos)
- Validate content via
validate-post-content.js - Create post with media IDs
- Handle errors with exponential backoff
Environment Variables
# X (Twitter)
X_API_KEY=
X_API_SECRET=
# LinkedIn
LINKEDIN_CLIENT_ID=
LINKEDIN_CLIENT_SECRET=
# Facebook/Threads (Meta)
FACEBOOK_APP_ID=
FACEBOOK_APP_SECRET=
# TikTok
TIKTOK_CLIENT_ID=
TIKTOK_CLIENT_SECRET=
# YouTube
YOUTUBE_CLIENT_ID=
YOUTUBE_CLIENT_SECRET=
# Unified APIs
AYRSHARE_API_KEY=
LATE_API_KEY=
Best Practices
- Content: Native content > cross-posted
- Timing: Test posting times for your audience
- Engagement: Respond within 1 hour
- Tokens: Refresh before expiry
- Rate Limits: Exponential backoff (5s, 10s, 20s...)
- Media: Resize images (<4MB), check video duration
Related Skills
video-production- Video content specscampaign-management- Multi-platform campaignscopywriting- High-converting copy
Agent Integration
Primary Agents: social-media-manager, content-creator, community-manager
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?