content-matrix
Scannednpx machina-cli add skill jrr996shujin-png/content-matrix-skills/content-matrix --openclawContent Matrix — Cross-Platform Content Distribution
Trigger
Activate when user mentions:
- "distribute content", "cross-platform", "content matrix"
- "post to LinkedIn / X / Reddit / Xiaohongshu"
- "generate social media versions"
- "multi-platform publishing"
- "发帖", "内容分发", "跨平台"
Quick Start
Generate content for all platforms
python3 {baseDir}/skills/content_adapter.py "Your mother content here"
Generate for specific platforms
python3 {baseDir}/skills/content_adapter.py "Content" --platforms x,reddit,linkedin
Preview cost before generating
python3 {baseDir}/skills/content_adapter.py "Content" --plan
Publishing
LinkedIn (Free — API)
# First-time setup
python3 {baseDir}/skills/publishers/linkedin_publisher.py --setup
# Publish
python3 {baseDir}/skills/publishers/linkedin_publisher.py --text "Your post"
X / Twitter (~$0.01/tweet)
# Requires: TWITTER_API_KEY, TWITTER_API_SECRET, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_SECRET
python3 {baseDir}/skills/publishers/x_publisher.py "Your tweet"
# Thread
python3 {baseDir}/skills/publishers/x_publisher.py --thread "Tweet 1" "Tweet 2" "Tweet 3"
Reddit (Free — Browser Automation, macOS only)
# Requires: Chrome with "Allow JavaScript from Apple Events" + logged into Reddit
python3 {baseDir}/skills/publishers/reddit_publisher.py --check-login
python3 {baseDir}/skills/publishers/reddit_publisher.py --title "Title" --body "Body" --subreddit test
Note: New Reddit accounts trigger CAPTCHA. Use reddit-cultivate skill to build karma first.
AI Model Support
# OpenAI (default, ~$0.01)
python3 {baseDir}/skills/content_adapter.py "Content"
# DeepSeek (cheapest, ~$0.001)
python3 {baseDir}/skills/content_adapter.py "Content" --base-url https://api.deepseek.com --model deepseek-chat
# Claude
python3 {baseDir}/skills/content_adapter.py "Content" --provider anthropic
# Ollama local (free)
python3 {baseDir}/skills/content_adapter.py "Content" --base-url http://localhost:11434/v1 --model llama3
Configuration
Personal Style (important!)
Edit {baseDir}/configs/my_style.json — paste your old posts so AI learns your voice.
Platform Rules
{baseDir}/configs/platform_rules.json — content rules per platform. Usually no need to edit.
Publish Timing
{baseDir}/configs/publish_timing.json — best posting times and order.
Engagement Tracking
python3 {baseDir}/skills/engagement_tracker.py add --platform reddit --url "https://reddit.com/r/..."
python3 {baseDir}/skills/engagement_tracker.py check
python3 {baseDir}/skills/engagement_tracker.py report
Dependencies
- Python 3.8+
- openai (
pip install openai) - tweepy (
pip install tweepy) — for X publishing - requests (
pip install requests) — for LinkedIn publishing
Source
git clone https://github.com/jrr996shujin-png/content-matrix-skills/blob/main/content-matrix/SKILL.mdView on GitHub Overview
Content Matrix automates creating platform-native posts for X, LinkedIn, Reddit, and Xiaohongshu from a single input, then auto-publishes via API or browser automation. It streamlines multi-platform campaigns and ensures posts fit each platform’s format and rules.
How This Skill Works
Input content is converted into platform-native versions by content_adapter.py. You can publish via dedicated publishers (linkedin_publisher.py, x_publisher.py, reddit_publisher.py) or just preview costs with --plan. The flow uses platform rules and AI-model support to produce compliant, native posts for each platform.
When to Use It
- Distributing a single message across X, LinkedIn, Reddit, and Xiaohongshu from one draft
- Repurposing a blog post into platform-native social posts with optimized formats
- Running a multi-platform publishing workflow for a campaign with automated posting
- Previewing costs before generating content to estimate spend
- Automating posts via API or browser automation to maintain consistency across platforms
Quick Start
- Step 1: Generate content for all platforms
- python3 {baseDir}/skills/content_adapter.py "Your mother content here"
- Step 2: Generate for specific platforms
- python3 {baseDir}/skills/content_adapter.py "Content" --platforms x,reddit,linkedin
- Step 3: Preview cost before generating
- python3 {baseDir}/skills/content_adapter.py "Content" --plan
Best Practices
- Start with a base draft that clearly conveys your core message
- Define platform-specific rules in {baseDir}/configs/platform_rules.json and let the tool enforce them
- Do a dry run with --plan to estimate cost before publishing
- Ensure you have valid credentials and setup for each publisher (e.g., API keys for LinkedIn/X, login for Reddit)
- Review and tailor each platform post for tone and character limits before publishing
Example Use Cases
- Launch a product announcement simultaneously on X, LinkedIn, Reddit, and Xiaohongshu
- Repurpose a webinar recap into platform-native posts with optimized length and visuals
- Publish a multi-platform post thread on X and a long-form LinkedIn update from the same content
- Cross-post a user guide snippet on Reddit with a subreddit-appropriate intro
- Execute a time-based campaign across platforms using publish_timing configurations