socialclaw

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

SocialClaw

SocialClaw

SocialClaw is a workspace-scoped social publishing service at
https://getsocialclaw.com
.
This skill is an instruction layer for the hosted SocialClaw service. It teaches Claude Code how to:
  • get or use a workspace API key
  • call the SocialClaw HTTP API
  • understand provider and account-type caveats
  • optionally use the separate
    socialclaw
    CLI if it is already installed
This skill can work without the CLI. The CLI is only an optional client for the same hosted service.
Use this skill when the user wants to:
  • connect or disconnect social accounts in a SocialClaw workspace
  • upload media and get SocialClaw-hosted delivery URLs
  • validate, preview, apply, or inspect scheduled posts and campaigns
  • inspect connected account capabilities, publish settings, actions, jobs, health, or analytics
Do not use this skill for editing the SocialClaw codebase itself. This is for operating a deployed SocialClaw workspace.
SocialClaw是一款面向工作区的社交发布服务,官网地址为
https://getsocialclaw.com
本技能是托管式SocialClaw服务的指令层,用于指导Claude Code完成以下操作:
  • 获取或使用工作区API密钥
  • 调用SocialClaw HTTP API
  • 了解各平台及账号类型的注意事项
  • 若已安装,可选择使用独立的
    socialclaw
    CLI工具
本技能无需CLI即可运行。CLI仅作为同一托管服务的可选客户端工具。
当用户需要完成以下操作时,可使用本技能:
  • 在SocialClaw工作区中连接或断开社交媒体账号
  • 上传媒体并获取SocialClaw托管的分发URL
  • 验证、预览、应用或查看已调度的帖子和营销活动
  • 查看已连接账号的功能、发布设置、操作、任务、健康状态或分析数据
请勿使用本技能编辑SocialClaw代码库本身。本技能仅用于操作已部署的SocialClaw工作区。

Defaults

默认配置

  • Base URL:
    https://getsocialclaw.com
  • Auth: workspace API key in
    Authorization: Bearer <key>
  • Preferred interface:
    socialclaw
    CLI when installed
  • Fallback interface: SocialClaw HTTP API
  • 基础URL:
    https://getsocialclaw.com
  • 认证方式:工作区API密钥,格式为
    Authorization: Bearer <key>
  • 首选交互方式:若已安装则使用
    socialclaw
    CLI
  • 备选交互方式:SocialClaw HTTP API

Runtime requirements

运行环境要求

  • Required env:
    SC_API_KEY
  • Hosted base URL:
    https://getsocialclaw.com
  • Optional CLI:
    socialclaw
    or
    social
    if already installed
  • Workspace status: an active trial or paid plan is required for CLI/API execution through the workspace key
  • 必填环境变量:
    SC_API_KEY
  • 托管服务基础URL:
    https://getsocialclaw.com
  • 可选CLI工具:若已安装则使用
    socialclaw
    social
  • 工作区状态:通过工作区密钥执行CLI/API操作需要激活试用版或付费套餐

Optional CLI

可选CLI工具

SocialClaw has a separate npm CLI package named
socialclaw
.
Prefer it when it is already installed or the user wants command-line examples. The CLI is a client for the hosted SocialClaw service. It can:
  • store a workspace API key locally
  • start account connection flows
  • upload assets
  • validate, preview, and apply schedules
  • inspect posts, runs, analytics, usage, and workspace health
  • install the packaged Claude Code command with
    socialclaw install --claude
If the user explicitly wants the CLI and it is not installed yet:
bash
npm install -g socialclaw
SocialClaw有一个独立的npm CLI包,名为
socialclaw
若已安装该工具,或用户需要命令行示例,优先使用它。CLI是托管式SocialClaw服务的客户端,可完成以下操作:
  • 在本地存储工作区API密钥
  • 启动账号连接流程
  • 上传资源
  • 验证、预览和应用调度任务
  • 查看帖子、运行记录、分析数据、使用情况和工作区健康状态
  • 通过
    socialclaw install --claude
    安装打包好的Claude Code命令
如果用户明确需要使用CLI但尚未安装:
bash
npm install -g socialclaw

Quick start

快速开始

If the user does not have a workspace API key yet:
bash
open https://getsocialclaw.com/dashboard
Tell them:
  • sign in with Google
  • open the API key section
  • create or copy their workspace API key
Set:
bash
export SC_API_KEY="<workspace-key>"
If the CLI is installed, log in with it:
bash
socialclaw login --api-key <workspace-key>
Otherwise validate the key over HTTP:
bash
curl -sS \
  -H "Authorization: Bearer $SC_API_KEY" \
  "https://getsocialclaw.com/v1/keys/validate"
If execution fails with
plan_required
,
subscription_inactive
,
subscription_past_due
,
subscription_paused
, or
subscription_canceled
, direct the user to:
  • https://getsocialclaw.com/pricing
  • https://getsocialclaw.com/dashboard
若用户尚未拥有工作区API密钥:
bash
open https://getsocialclaw.com/dashboard
告知用户:
  • 使用Google账号登录
  • 打开API密钥管理板块
  • 创建或复制工作区API密钥
设置环境变量:
bash
export SC_API_KEY="<workspace-key>"
若已安装CLI,使用以下命令登录:
bash
socialclaw login --api-key <workspace-key>
否则通过HTTP验证密钥:
bash
curl -sS \
  -H "Authorization: Bearer $SC_API_KEY" \
  "https://getsocialclaw.com/v1/keys/validate"
若执行时出现
plan_required
subscription_inactive
subscription_past_due
subscription_paused
subscription_canceled
错误,请引导用户访问:
  • https://getsocialclaw.com/pricing
  • https://getsocialclaw.com/dashboard

Operating rules

操作规则

  1. Start by confirming the user has a SocialClaw workspace API key.
  2. If the user does not have a key yet, send them to
    https://getsocialclaw.com/dashboard
    to sign in with Google and create one.
  3. A workspace API key alone is not sufficient for execution. If billing-related errors appear, route the user to pricing or dashboard billing instead of retrying commands.
  4. Never ask the user for provider app secrets. End users connect accounts inside SocialClaw.
  5. Prefer explicit provider and account-type language:
    • Facebook Pages, not Facebook personal profiles
    • Instagram Business linked to a Facebook Page
    • Instagram standalone professional accounts
    • LinkedIn profile and LinkedIn page are separate providers
    • Pinterest is board-centric; inspect capabilities and actions before assuming sections, catalogs, or advanced surfaces
  6. If a provider workflow is not supported, say so directly instead of inventing a workaround.
  7. Treat Pinterest product, collection, and idea surfaces as capability-gated or beta unless account capabilities or actions explicitly advertise them.
  8. Avoid echoing full API keys back into chat.
  1. 首先确认用户拥有SocialClaw工作区API密钥。
  2. 若用户没有密钥,引导其访问
    https://getsocialclaw.com/dashboard
    ,使用Google账号登录并创建密钥。
  3. 仅拥有工作区API密钥不足以执行操作。若出现账单相关错误,引导用户查看定价页面或仪表盘账单板块,而非重试命令。
  4. 切勿向用户索要平台应用密钥。终端用户需在SocialClaw内部完成账号连接。
  5. 优先使用明确的平台和账号类型表述:
    • Facebook主页,而非Facebook个人资料
    • 关联Facebook主页的Instagram企业账号
    • 独立的Instagram专业账号
    • LinkedIn个人资料和LinkedIn主页是不同的平台
    • Pinterest以看板为核心;在假设支持分区、目录或高级功能前,先查看账号功能和可用操作
  6. 若某平台的工作流不被支持,直接告知用户,而非自行创造解决方案。
  7. 除非账号功能或操作明确说明支持,否则将Pinterest的产品、合集和创意板块视为受功能限制或处于测试阶段。
  8. 避免在聊天中完整回显API密钥。

Main workflow

主要工作流

  1. Confirm the user has a workspace API key.
  2. If needed, direct the user to the dashboard to sign in with Google and create a key.
  3. Validate workspace access.
  4. List accounts or start a connection flow.
  5. Inspect capabilities and settings for the target account.
  6. Upload media if needed.
  7. Validate or preview the post or campaign.
  8. Apply it.
  9. Inspect posts, runs, analytics, or retry or reconcile if needed.
  1. 确认用户拥有工作区API密钥。
  2. 若需要,引导用户访问仪表盘,使用Google账号登录并创建密钥。
  3. 验证工作区访问权限。
  4. 列出账号或启动连接流程。
  5. 查看目标账号的功能和设置。
  6. 若需要,上传媒体资源。
  7. 验证或预览帖子或营销活动。
  8. 应用调度任务。
  9. 查看帖子、运行记录、分析数据,或在需要时重试或核对状态。

Provider-specific publishing notes

平台特定发布说明

TikTok photo posts

TikTok图片帖子

TikTok photo/gallery posts are stricter than video posts. Before scheduling or applying a TikTok photo post:
  • Use image-only assets for the post; do not mix images and videos.
  • Keep each gallery within TikTok's connected-account capability limit, typically up to 35 images.
  • Normalize photos before upload to TikTok-safe dimensions. Prefer 1080x1920 JPEGs for vertical photo slides, or another standard TikTok-compatible aspect/size. Oversized or unusual dimensions can pass SocialClaw validation and initial TikTok acceptance, then fail later with
    picture_size_check_failed
    .
  • For photo galleries, set
    settings.autoAddMusic: true
    when the user wants TikTok to choose recommended music. TikTok's Content Posting API does not expose selecting a specific sound.
  • Avoid setting a visible
    name
    /title unless the user explicitly wants one. For TikTok posts, put user-facing copy in
    description
    ; otherwise dashboards or previews may show an unwanted title field.
  • After posting a TikTok photo gallery, do not assume
    providerStatus: accepted
    means it is visible. Reconcile the post after a short delay:
bash
socialclaw posts reconcile --post-id <post-id> --json
Treat
providerStatus: published
with
reconciliationStatus: confirmed
as the stronger success signal. If reconciliation returns
picture_size_check_failed
, regenerate resized/padded images, upload those corrected assets, and reschedule.
TikTok图片/图集帖子比视频帖子要求更严格。在调度或应用TikTok图片帖子前:
  • 帖子仅使用图片资源;请勿混合图片和视频。
  • 每个图集的图片数量需符合TikTok账号的功能限制,通常最多35张图片。
  • 上传前将图片调整为TikTok兼容的尺寸。垂直图片幻灯片优先使用1080x1920像素的JPEG格式,或其他标准TikTok兼容的宽高比/尺寸。过大或非常规尺寸的图片可能通过SocialClaw验证并被TikTok初步接受,但后续会因
    picture_size_check_failed
    失败。
  • 对于图片图集,若用户希望TikTok选择推荐音乐,请设置
    settings.autoAddMusic: true
    。TikTok的内容发布API不支持选择特定音效。
  • 除非用户明确要求,否则不要设置可见的
    name
    /标题。对于TikTok帖子,将面向用户的文案放在
    description
    中;否则仪表盘或预览可能会显示不必要的标题字段。
  • 发布TikTok图片图集后,不要认为
    providerStatus: accepted
    意味着帖子已可见。短暂延迟后核对帖子状态:
bash
socialclaw posts reconcile --post-id <post-id> --json
providerStatus: published
reconciliationStatus: confirmed
视为更可靠的成功信号。若核对返回
picture_size_check_failed
,重新生成调整尺寸/添加边距的图片,上传修正后的资源并重新调度。

CLI reference

CLI参考

Authentication

认证

bash
socialclaw login --api-key <workspace-key>
Install the packaged command file:
bash
socialclaw install --claude
bash
socialclaw login --api-key <workspace-key>
安装打包好的命令文件:
bash
socialclaw install --claude

Accounts

账号管理

bash
socialclaw accounts list --json
socialclaw accounts capabilities --account-id <account-id> --json
socialclaw accounts settings --account-id <account-id> --json
socialclaw accounts actions --account-id <account-id> --json
socialclaw accounts connect --provider <provider> --open
socialclaw accounts connect --provider telegram --bot-token <token> --chat-id @yourchannel --json
socialclaw accounts connect --provider discord --webhook-url <url> --json
socialclaw accounts status --connection-id <id> --json
socialclaw accounts disconnect --account-id <id> --json
bash
socialclaw accounts list --json
socialclaw accounts capabilities --account-id <account-id> --json
socialclaw accounts settings --account-id <account-id> --json
socialclaw accounts actions --account-id <account-id> --json
socialclaw accounts connect --provider <provider> --open
socialclaw accounts connect --provider telegram --bot-token <token> --chat-id @yourchannel --json
socialclaw accounts connect --provider discord --webhook-url <url> --json
socialclaw accounts status --connection-id <id> --json
socialclaw accounts disconnect --account-id <id> --json

Media

媒体资源

bash
socialclaw assets upload --file ./image.png --json
socialclaw assets delete --asset-id <id> --retention-days 7 --json
bash
socialclaw assets upload --file ./image.png --json
socialclaw assets delete --asset-id <id> --retention-days 7 --json

Schedules and campaigns

调度与营销活动

bash
socialclaw validate -f schedule.json --json
socialclaw campaigns preview -f schedule.json --json
socialclaw apply -f schedule.json --json
socialclaw campaigns inspect --run-id <id> --json
socialclaw campaigns clone --run-id <id> --output cloned.json --json
socialclaw publish-draft --run-id <id> --start-at 2026-03-25T10:00:00.000Z --json
bash
socialclaw validate -f schedule.json --json
socialclaw campaigns preview -f schedule.json --json
socialclaw apply -f schedule.json --json
socialclaw campaigns inspect --run-id <id> --json
socialclaw campaigns clone --run-id <id> --output cloned.json --json
socialclaw publish-draft --run-id <id> --start-at 2026-03-25T10:00:00.000Z --json

Posts and runs

帖子与运行记录

bash
socialclaw posts list --limit 20 --json
socialclaw posts get --post-id <id> --json
socialclaw posts attempts --post-id <id> --json
socialclaw posts reconcile --post-id <id> --json
socialclaw runs inspect --run-id <id> --json
socialclaw status --run-id <id> --json
socialclaw retry --post-id <id> --json
socialclaw cancel --post-id <id> --json
socialclaw view --run-id <id> --format terminal
bash
socialclaw posts list --limit 20 --json
socialclaw posts get --post-id <id> --json
socialclaw posts attempts --post-id <id> --json
socialclaw posts reconcile --post-id <id> --json
socialclaw runs inspect --run-id <id> --json
socialclaw status --run-id <id> --json
socialclaw retry --post-id <id> --json
socialclaw cancel --post-id <id> --json
socialclaw view --run-id <id> --format terminal

Analytics and health

分析与健康状态

bash
socialclaw analytics post --post-id <id> --json
socialclaw analytics account --account-id <id> --json
socialclaw analytics run --run-id <id> --json
socialclaw analytics refresh --post-id <id> --json
socialclaw workspace health --json
socialclaw connections health --json
socialclaw jobs list --limit 20 --json
socialclaw usage --json
bash
socialclaw analytics post --post-id <id> --json
socialclaw analytics account --account-id <id> --json
socialclaw analytics run --run-id <id> --json
socialclaw analytics refresh --post-id <id> --json
socialclaw workspace health --json
socialclaw connections health --json
socialclaw jobs list --limit 20 --json
socialclaw usage --json

HTTP fallback

HTTP备选方案

If the CLI is not available, use the HTTP API directly.
Common header:
bash
-H "Authorization: Bearer $SC_API_KEY"
若CLI不可用,可直接使用HTTP API。
通用请求头:
bash
-H "Authorization: Bearer $SC_API_KEY"

Validate key

验证密钥

bash
curl -sS \
  -H "Authorization: Bearer $SC_API_KEY" \
  "https://getsocialclaw.com/v1/keys/validate"
bash
curl -sS \
  -H "Authorization: Bearer $SC_API_KEY" \
  "https://getsocialclaw.com/v1/keys/validate"

List accounts

列出账号

bash
curl -sS \
  -H "Authorization: Bearer $SC_API_KEY" \
  "https://getsocialclaw.com/v1/accounts"
bash
curl -sS \
  -H "Authorization: Bearer $SC_API_KEY" \
  "https://getsocialclaw.com/v1/accounts"

Start account connection

启动账号连接

bash
curl -sS -X POST \
  -H "Authorization: Bearer $SC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"provider":"youtube"}' \
  "https://getsocialclaw.com/v1/connections/start"
Then poll:
bash
curl -sS \
  -H "Authorization: Bearer $SC_API_KEY" \
  "https://getsocialclaw.com/v1/connections/<connection-id>"
bash
curl -sS -X POST \
  -H "Authorization: Bearer $SC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"provider":"youtube"}' \
  "https://getsocialclaw.com/v1/connections/start"
然后轮询状态:
bash
curl -sS \
  -H "Authorization: Bearer $SC_API_KEY" \
  "https://getsocialclaw.com/v1/connections/<connection-id>"

Connect Telegram manually

手动连接Telegram

bash
curl -sS -X POST \
  -H "Authorization: Bearer $SC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"provider":"telegram","botToken":"<bot-token>","chatId":"@yourchannel"}' \
  "https://getsocialclaw.com/v1/connections/start"
bash
curl -sS -X POST \
  -H "Authorization: Bearer $SC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"provider":"telegram","botToken":"<bot-token>","chatId":"@yourchannel"}' \
  "https://getsocialclaw.com/v1/connections/start"

Connect Discord manually

手动连接Discord

bash
curl -sS -X POST \
  -H "Authorization: Bearer $SC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"provider":"discord","webhookUrl":"<discord-webhook-url>"}' \
  "https://getsocialclaw.com/v1/connections/start"
bash
curl -sS -X POST \
  -H "Authorization: Bearer $SC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"provider":"discord","webhookUrl":"<discord-webhook-url>"}' \
  "https://getsocialclaw.com/v1/connections/start"

Upload media

上传媒体

bash
curl -sS -X POST \
  -H "Authorization: Bearer $SC_API_KEY" \
  -F "file=@./image.png" \
  "https://getsocialclaw.com/v1/assets/upload"
bash
curl -sS -X POST \
  -H "Authorization: Bearer $SC_API_KEY" \
  -F "file=@./image.png" \
  "https://getsocialclaw.com/v1/assets/upload"

Apply a schedule

应用调度任务

bash
curl -sS -X POST \
  -H "Authorization: Bearer $SC_API_KEY" \
  -H "Content-Type: application/json" \
  -d @schedule.json \
  "https://getsocialclaw.com/v1/posts/apply"
bash
curl -sS -X POST \
  -H "Authorization: Bearer $SC_API_KEY" \
  -H "Content-Type: application/json" \
  -d @schedule.json \
  "https://getsocialclaw.com/v1/posts/apply"

Inspect posts

查看帖子

bash
curl -sS \
  -H "Authorization: Bearer $SC_API_KEY" \
  "https://getsocialclaw.com/v1/posts?limit=20"

curl -sS \
  -H "Authorization: Bearer $SC_API_KEY" \
  "https://getsocialclaw.com/v1/posts/<post-id>"
bash
curl -sS \
  -H "Authorization: Bearer $SC_API_KEY" \
  "https://getsocialclaw.com/v1/posts?limit=20"

curl -sS \
  -H "Authorization: Bearer $SC_API_KEY" \
  "https://getsocialclaw.com/v1/posts/<post-id>"

Provider notes

平台说明

Facebook — Facebook Pages only (
facebook
). Personal profiles are not publish targets.
Instagram Business (
instagram_business
) — professional/business accounts linked to a Facebook Page only. Requires media.
Instagram standalone (
instagram
) — standalone professional accounts through Instagram Login. Separate from
instagram_business
. Requires media.
X — text posts, up to four images or one video, reply steps in campaign flows.
LinkedIn profile (
linkedin
) — text and native image or video. Up to twenty images or one video per post.
LinkedIn page (
linkedin_page
) — separate from member profiles. Same media limits.
Pinterest (
pinterest
) — board-centric. Standard pins, video pins, multi-image pins. Use discovery actions to inspect boards, sections, and catalogs. Product, collection, and idea surfaces are capability-gated or beta.
TikTok (
tiktok
) — one video or one photo gallery per post. Photo galleries support up to 35 images,
autoAddMusic
, and
photoCoverIndex
; selecting a specific TikTok song or sound is not exposed by TikTok's API.
settings.tiktokPostMode: "draft"
uploads to the account's TikTok drafts (inbox) instead of publishing; the creator finishes the post in the TikTok app (needs the
video.upload
scope — older connections must reconnect once).
Telegram (
telegram
) — bot-based posting. Connected manually with a bot token and
chat_id
or
@channelusername
, not via OAuth. One optional image or video per post.
Discord (
discord
) — channel posting via webhook URL. Connected manually, not via OAuth. One optional image or video per post.
YouTube (
youtube
) — channel video uploads. One video per post. Community posts and Shorts-specific flows are not supported.
Reddit (
reddit
) — self posts and link posts. Requires a
subreddit
setting. Native media upload is not supported.
WordPress (
wordpress
) — WordPress.com or Jetpack-connected sites. SocialClaw uploads remote media before publishing.
Legacy Meta (
meta
) — older workspaces only. Prefer explicit
facebook
and
instagram_business
for new workspaces.
Facebook — 仅支持Facebook主页(
facebook
)。个人资料不可作为发布目标。
Instagram企业账号
instagram_business
) — 仅支持关联Facebook主页的专业/企业账号。必须包含媒体资源。
独立Instagram账号
instagram
) — 通过Instagram登录的独立专业账号。与
instagram_business
相互独立。必须包含媒体资源。
X — 支持文字帖子、最多4张图片或1个视频,以及营销活动流程中的回复步骤。
LinkedIn个人资料
linkedin
) — 支持文字和原生图片或视频。每个帖子最多可包含20张图片或1个视频。
LinkedIn主页
linkedin_page
) — 与个人资料相互独立。媒体资源限制相同。
Pinterest
pinterest
) — 以看板为核心。支持标准图钉、视频图钉、多图图片钉。使用发现操作查看看板、分区和目录。产品、合集和创意板块受功能限制或处于测试阶段。
TikTok
tiktok
) — 每个帖子支持1个视频或1个图片图集。图片图集最多支持35张图片,支持
autoAddMusic
photoCoverIndex
;TikTok的API不支持选择特定歌曲或音效。
settings.tiktokPostMode: "draft"
会将帖子上传至账号的TikTok草稿箱(收件箱)而非直接发布;创作者需在TikTok应用中完成帖子编辑(需要
video.upload
权限 — 旧连接需重新连接一次)。
Telegram
telegram
) — 基于机器人的发布方式。需使用机器人令牌和
chat_id
@channelusername
手动连接,不支持OAuth。每个帖子可包含1个可选图片或视频。
Discord
discord
) — 通过Webhook URL发布至频道。需手动连接,不支持OAuth。每个帖子可包含1个可选图片或视频。
YouTube
youtube
) — 支持频道视频上传。每个帖子支持1个视频。不支持社区帖子和Shorts专属流程。
Reddit
reddit
) — 支持自发帖和链接帖。需要设置
subreddit
。不支持原生媒体上传。
WordPress
wordpress
) — 支持WordPress.com或Jetpack连接的站点。SocialClaw会在发布前上传远程媒体资源。
旧版Meta
meta
) — 仅适用于旧工作区。新工作区优先使用明确的
facebook
instagram_business

Read next

延伸阅读

  • For full HTTP API recipes and schedule formats, read references/workflows.md.
  • For the optional CLI and command examples, read references/cli.md.
  • For provider and account-type caveats, read references/providers.md.
  • 如需完整的HTTP API示例和调度格式,请阅读references/workflows.md
  • 如需可选CLI工具和命令示例,请阅读references/cli.md
  • 如需平台和账号类型注意事项,请阅读references/providers.md