社交媒体自动驾驶:多平台发布管理 - Openclaw Skills

作者:互联网

2026-04-17

AI教程

什么是 社交媒体自动驾驶?

社交媒体自动驾驶是一款专业级自动化工具,旨在简化数字内容的生命周期。通过利用 Openclaw Skills,该工具使开发人员和内容创作者能够直接从统一的工作空间管理他们在 X、LinkedIn 和 In@stagram 上的存在。它通过提供用于内容编排的集中指挥中心,消除了手动切换平台的需要。

此技能专注于通过结构化工作流维护品牌完整性和运营效率。用户可以撰写内容、管理视觉日历并实施强制审批关口,确保每条帖子在触达受众之前都符合质量标准。这些 Openclaw Skills 对于任何希望在不增加手动工作量的情况下扩大社交媒体影响力的人来说都是必不可少的。

下载入口:https://github.com/openclaw/skills/tree/main/skills/reighlan/social-media-autopilot

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install social-media-autopilot

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 social-media-autopilot。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

社交媒体自动驾驶 应用场景

  • 通过同步帖子编排跨平台产品发布。
  • 使用自动调度管理高容量内容日历。
  • 为 AI 生成的社交内容实施人工参与的审批工作流。
  • 跟踪互动指标并生成每周绩效报告。
  • 使用模板在不同社交渠道中保持一致的品牌声音。
社交媒体自动驾驶 工作原理
  1. 通过 CLI 或代理界面撰写内容,捕获文本、媒体和目标平台。
  2. 系统将草稿存储在本地 JSON 结构中,分配唯一的 ID 和状态。
  3. 用户或经理通过审批工作流脚本审查草稿。
  4. 获得批准后,帖子将移至内容日历中的活动计划中。
  5. 在预定日期,该技能会自动根据平台特定限制(如字符限制和媒体规格)调整内容。
  6. 内容通过安全的 API 集成发布,成功的元数据将被存档以供将来参考。

社交媒体自动驾驶 配置指南

要开始使用这些 Openclaw Skills,请配置包含 X、LinkedIn 和 In@stagram 必要 API 凭据的环境。然后,初始化您的本地工作区:

# 初始化目录结构
./scripts/init-workspace.sh

确保您的 .env 文件包含所需的令牌,如 LINKEDIN_ACCESS_TOKENINSTAGRAM_BUSINESS_ID。设置将在您的工作区内创建一个专用的 social-media 目录,用于管理草稿、模板和分析。

社交媒体自动驾驶 数据架构与分类体系

该技能使用以下结构在 ~/.openclaw/workspace/social-media/ 中组织数据:

组件 格式 描述
calendar.json JSON 所有待处理和过去帖子的主计划表。
drafts/ JSON 文件 等待审查或调度的单个帖子对象。
published/ JSON 文件 已发送帖子的存档,包括平台特定 ID。
templates/ JSON 文件 带有变量占位符的可重用内容结构。
analytics/ 数据文件 用于绩效跟踪的原始和处理后的互动指标。
name: social-media-autopilot
description: "Schedule, compose, and publish social media posts across X (T@witter), LinkedIn, and In@stagram from OpenClaw. Manage a content calendar, queue posts with approval workflows, track engagement analytics, and maintain brand voice consistency. Use when: (1) scheduling or publishing social media posts, (2) managing a content calendar, (3) drafting posts for multiple platforms, (4) reviewing post performance/analytics, (5) setting up automated posting workflows, or (6) maintaining a social media presence."

Social Media Autopilot

Multi-platform social media management from your OpenClaw agent. Schedule posts, manage a content calendar, get approval before publishing, and track performance.

Setup

Required API Credentials

Configure in your environment or .env file:

  • X (T@witter): Requires xurl skill or X API v2 credentials (X_BEARER_TOKEN, X_API_KEY, X_API_SECRET, X_ACCESS_TOKEN, X_ACCESS_SECRET)
  • LinkedIn: LINKEDIN_ACCESS_TOKEN (OAuth 2.0 — see references/linkedin-setup.md)
  • In@stagram: INSTAGRAM_ACCESS_TOKEN + INSTAGRAM_BUSINESS_ID (Meta Graph API — see references/instagram-setup.md)

Content Directory

All content lives in ~/.openclaw/workspace/social-media/:

social-media/
├── calendar.json        # Scheduled posts
├── drafts/              # Posts awaiting approval
├── published/           # Archive of sent posts
├── templates/           # Reusable post templates
└── analytics/           # Performance data

Run scripts/init-workspace.sh to create this structure.

Core Workflows

1. Draft & Schedule Posts

To create a post:

  1. Run scripts/draft-post.sh --platform --text "Post content" [--media path/to/image] [--schedule "2026-02-25 09:00 PST"]
  2. Post saves to drafts/ as a JSON file with metadata
  3. If --schedule is set, it's added to calendar.json
  4. Without --schedule, it queues for immediate review

Draft JSON format:

{
  "id": "uuid",
  "platforms": ["x", "linkedin"],
  "text": "Post content here",
  "media": [],
  "scheduled_at": "2026-02-25T17:00:00Z",
  "status": "draft",
  "created_at": "2026-02-23T22:00:00Z",
  "approved": false,
  "tags": ["product-launch"],
  "thread": false
}

2. Approval Workflow

Before any post goes live:

  1. Agent presents the draft to the user with platform previews
  2. User approves, edits, or rejects
  3. Only approved posts get published
  4. Use scripts/approve-post.sh or scripts/reject-post.sh --reason "..."

Never auto-publish without explicit approval unless the user has configured auto_approve: true in social-media/config.json.

3. Publishing

Run scripts/publish-post.sh to publish an approved post.

The script:

  • Validates the post is approved
  • Adapts content per platform (character limits, hashtag style, media format)
  • Posts via each platform's API
  • Saves response data (post IDs, URLs) to published/
  • Updates calendar.json status

Platform-specific adaptations:

  • X: 280 char limit, auto-thread if longer, image upload via media endpoint
  • LinkedIn: 3000 char limit, supports articles and documents
  • In@stagram: Requires media (image/video), caption limit 2200 chars

4. Content Calendar

View and manage scheduled content:

  • scripts/calendar.sh --week — Show this week's schedule
  • scripts/calendar.sh --month — Monthly overview
  • scripts/calendar.sh --gaps — Find gaps in posting schedule
  • scripts/calendar.sh --reschedule "new-datetime" — Move a post

5. Analytics

Pull engagement data for published posts:

  • scripts/analytics.sh --last 7d — Last 7 days performance
  • scripts/analytics.sh --post — Single post performance
  • scripts/analytics.sh --report weekly — Generate weekly report

Metrics tracked: impressions, engagements, clicks, replies, reposts, likes, followers gained.

6. Templates & Brand Voice

Store reusable templates in templates/:

{
  "name": "product-announcement",
  "platforms": ["x", "linkedin"],
  "template": "?? {product_name} is here!

{description}

{link}

{hashtags}",
  "variables": ["product_name", "description", "link", "hashtags"],
  "voice_notes": "Excited but professional. No ALL CAPS."
}

When composing posts, reference social-media/brand-voice.md for tone guidelines if it exists.

Cron Integration

Add to OpenClaw cron for automated workflows:

  • Publish scheduled posts: Check calendar.json every 15 min, publish any due approved posts
  • Daily digest: Summarize yesterday's analytics each morning
  • Gap alerts: Notify if no posts scheduled for next 48h

Error Handling

  • API rate limits: Back off and retry with exponential delay
  • Failed posts: Move to drafts/ with status: "failed" and error message
  • Expired tokens: Alert user to re-authenticate

References

  • references/linkedin-setup.md — LinkedIn OAuth setup guide
  • references/instagram-setup.md — In@stagram/Meta Graph API setup guide
  • references/platform-limits.md — Character limits, media specs, rate limits per platform