| name | social-publisher |
| description | Publish content to multiple social media platforms (Facebook, Instagram, LinkedIn, WhatsApp). Use when user asks to 'publish', 'post', 'share on social media', 'distribute content', or wants to send marketing messages. |
Social Publisher
Publish content to multiple social media platforms from a single command.
Workflow: Content Adaptation
When the user provides a message to publish, ALWAYS:
- Adapt the message for each platform based on these rules:
- Present all versions to the user for approval
- Ask which platforms to publish to
- Publish only after confirmation
Platform Adaptation Rules
| Platform | Max Length | Tone | Format |
|---|
| Facebook | 2000+ chars | Personal, storytelling | Full paragraphs, emojis OK |
| LinkedIn | 1300 chars | Professional, insights | Business value, no slang |
| Twitter/X | 280 chars | Punchy, hook | One key insight, hashtag optional |
| Instagram | 2200 chars | Casual, visual | Emojis, hashtags at end |
| YouTube | 5000 chars | Descriptive | Timestamps, links |
Adaptation Examples
Original message about AI agents:
Facebook:
ืื ืืขืืืื ืฉืืื ืงืฉืืจื ืืืืฉื - ืชืขืฆืจื.
[Full story, personal experience, emotional]
ืื ืืืื ืืืจืื ื ืฉื ืืกืืื ืื. ๐ค
LinkedIn:
The "Agent Turing Test" - Can AI agents truly replace human workers?
[Professional insight, business implications]
After a week of intensive work with autonomous agents, I've seen tasks completed end-to-end without intervention.
The productivity implications are significant.
Twitter/X:
ืฉืืืข ืขื ืกืืื ื AI ืืืืื ืืืืื.
ืืชืคืืงื? ืืืื ืคื 10.
ืืืคืชื: ืืฉืืืืช ืืงืฆื ืืงืฆื.
ืื ืืืื ืืืจืื ื ืืืืฉ. ๐ค
Instagram:
๐ค ืืืื ืืืจืื ื ืฉื ืืกืืื ืื
ืื "ืืื ืื ื ืฉืืข ืื ืืฉื?"
ืืื "ืืื ืื ืืืขืื ืืื ืขืืื?"
ืืชืฉืืื: ืื. ืืื ืงืืจื ืขืืฉืื.
#AI #Automation #Productivity #AIAgents #ClaudeCode
Supported Platforms
| Platform | API | Features |
|---|
| Facebook | Ayrshare | Posts, images, links |
| Instagram | Ayrshare | Posts, images, reels |
| LinkedIn | Ayrshare | Posts, images, articles |
| Twitter/X | Ayrshare | Tweets, threads |
| YouTube | Ayrshare | Community posts |
| WhatsApp | Green API | Messages, images to groups |
Setup
1. Install Dependencies
cd /Users/aviz/architect-workshops/.codex/skills/social-publisher/scripts
npm install
2. Configure APIs
Create .env file:
# Ayrshare (for FB, IG, LinkedIn, Twitter, YouTube)
AYRSHARE_API_KEY=your_ayrshare_api_key
# Green API (for WhatsApp)
GREEN_API_INSTANCE_ID=your_instance_id
GREEN_API_TOKEN=your_api_token
Usage
Standard Flow (Recommended)
User provides a message, Claude:
- Adapts for all platforms
- Shows formatted versions
- Asks which to publish
- Publishes selected
Example:
User: ืชืคืจืกื ืืช ืื: "ืืืขืชื ื-10x productivity ืืฉืืืข ืขื ืกืืื ื AI"
Claude: ืื ื ืืืจืกืืืช ืืื ืคืืืคืืจืื:
๐ **Facebook:**
ืืืขืชื ื-10x productivity ืืฉืืืข ืขื ืกืืื ื AI...
[expanded version]
๐ผ **LinkedIn:**
This week I achieved 10x productivity using AI agents...
[professional version]
๐ฆ **Twitter/X:**
10x productivity ืขื ืกืืื ื AI.
ืื ืืืืค. ืืฆืืืืช. ๐
๐ธ **Instagram:**
๐ 10x productivity
[visual version with hashtags]
ืืืืื ืคืืืคืืจืืืช ืืฉืืื?
Direct Publish (Skip Adaptation)
npx ts-node publish.ts --facebook --message "Your message" --no-adapt
Options
| Option | Description |
|---|
--all | Publish to all connected platforms |
--facebook | Publish to Facebook |
--instagram | Publish to Instagram (requires image) |
--linkedin | Publish to LinkedIn |
--twitter | Publish to Twitter/X |
--whatsapp | Send to WhatsApp |
--message <text> | Post/message text |
--image <path> | Image file path |
--group <id> | WhatsApp group ID |
--dry-run | Preview without posting |
Response Format
When presenting adapted content, use this format:
๐ฑ **ืืจืกืืืช ืืืชืืืืช ืืคืจืกืื:**
---
๐ **Facebook** (ืืืื ืืฉืืืื)
[content]
---
๐ผ **LinkedIn** (ืืืื ืืฉืืืื)
[content]
---
๐ฆ **Twitter/X** (280 ืชืืืื)
[content]
---
๐ธ **Instagram** (ืืืจืฉ ืชืืื ื)
[content]
---
**ืืืืื ืคืืืคืืจืืืช ืืฉืืื?**
1. ืืืื
2. Facebook + LinkedIn
3. Twitter ืืืื
4. ืืืจ (ืฆืืื)
Integration with Other Skills
- marketing-copy: Generate content, then adapt and publish
- nano-banana-poster: Generate poster, then publish with image
- workshop-updates: Mark "published" in pipeline