socialclaw
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSocialClaw
SocialClaw
SocialClaw is a workspace-scoped social publishing service at .
https://getsocialclaw.comThis 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 CLI if it is already installed
socialclaw
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
- 了解各平台及账号类型的注意事项
- 若已安装,可选择使用独立的CLI工具
socialclaw
本技能无需CLI即可运行。CLI仅作为同一托管服务的可选客户端工具。
当用户需要完成以下操作时,可使用本技能:
- 在SocialClaw工作区中连接或断开社交媒体账号
- 上传媒体并获取SocialClaw托管的分发URL
- 验证、预览、应用或查看已调度的帖子和营销活动
- 查看已连接账号的功能、发布设置、操作、任务、健康状态或分析数据
请勿使用本技能编辑SocialClaw代码库本身。本技能仅用于操作已部署的SocialClaw工作区。
Defaults
默认配置
- Base URL:
https://getsocialclaw.com - Auth: workspace API key in
Authorization: Bearer <key> - Preferred interface: CLI when installed
socialclaw - Fallback interface: SocialClaw HTTP API
- 基础URL:
https://getsocialclaw.com - 认证方式:工作区API密钥,格式为
Authorization: Bearer <key> - 首选交互方式:若已安装则使用CLI
socialclaw - 备选交互方式:SocialClaw HTTP API
Runtime requirements
运行环境要求
- Required env:
SC_API_KEY - Hosted base URL:
https://getsocialclaw.com - Optional CLI: or
socialclawif already installedsocial - 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工具:若已安装则使用或
socialclawsocial - 工作区状态:通过工作区密钥执行CLI/API操作需要激活试用版或付费套餐
Optional CLI
可选CLI工具
SocialClaw has a separate npm CLI package named .
socialclawPrefer 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 socialclawSocialClaw有一个独立的npm CLI包,名为。
socialclaw若已安装该工具,或用户需要命令行示例,优先使用它。CLI是托管式SocialClaw服务的客户端,可完成以下操作:
- 在本地存储工作区API密钥
- 启动账号连接流程
- 上传资源
- 验证、预览和应用调度任务
- 查看帖子、运行记录、分析数据、使用情况和工作区健康状态
- 通过安装打包好的Claude Code命令
socialclaw install --claude
如果用户明确需要使用CLI但尚未安装:
bash
npm install -g socialclawQuick start
快速开始
If the user does not have a workspace API key yet:
bash
open https://getsocialclaw.com/dashboardTell 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 , , , , or , direct the user to:
plan_requiredsubscription_inactivesubscription_past_duesubscription_pausedsubscription_canceledhttps://getsocialclaw.com/pricinghttps://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_requiredsubscription_inactivesubscription_past_duesubscription_pausedsubscription_canceledhttps://getsocialclaw.com/pricinghttps://getsocialclaw.com/dashboard
Operating rules
操作规则
- Start by confirming the user has a SocialClaw workspace API key.
- If the user does not have a key yet, send them to to sign in with Google and create one.
https://getsocialclaw.com/dashboard - 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.
- Never ask the user for provider app secrets. End users connect accounts inside SocialClaw.
- 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
- If a provider workflow is not supported, say so directly instead of inventing a workaround.
- Treat Pinterest product, collection, and idea surfaces as capability-gated or beta unless account capabilities or actions explicitly advertise them.
- Avoid echoing full API keys back into chat.
- 首先确认用户拥有SocialClaw工作区API密钥。
- 若用户没有密钥,引导其访问,使用Google账号登录并创建密钥。
https://getsocialclaw.com/dashboard - 仅拥有工作区API密钥不足以执行操作。若出现账单相关错误,引导用户查看定价页面或仪表盘账单板块,而非重试命令。
- 切勿向用户索要平台应用密钥。终端用户需在SocialClaw内部完成账号连接。
- 优先使用明确的平台和账号类型表述:
- Facebook主页,而非Facebook个人资料
- 关联Facebook主页的Instagram企业账号
- 独立的Instagram专业账号
- LinkedIn个人资料和LinkedIn主页是不同的平台
- Pinterest以看板为核心;在假设支持分区、目录或高级功能前,先查看账号功能和可用操作
- 若某平台的工作流不被支持,直接告知用户,而非自行创造解决方案。
- 除非账号功能或操作明确说明支持,否则将Pinterest的产品、合集和创意板块视为受功能限制或处于测试阶段。
- 避免在聊天中完整回显API密钥。
Main workflow
主要工作流
- Confirm the user has a workspace API key.
- If needed, direct the user to the dashboard to sign in with Google and create a key.
- Validate workspace access.
- List accounts or start a connection flow.
- Inspect capabilities and settings for the target account.
- Upload media if needed.
- Validate or preview the post or campaign.
- Apply it.
- Inspect posts, runs, analytics, or retry or reconcile if needed.
- 确认用户拥有工作区API密钥。
- 若需要,引导用户访问仪表盘,使用Google账号登录并创建密钥。
- 验证工作区访问权限。
- 列出账号或启动连接流程。
- 查看目标账号的功能和设置。
- 若需要,上传媒体资源。
- 验证或预览帖子或营销活动。
- 应用调度任务。
- 查看帖子、运行记录、分析数据,或在需要时重试或核对状态。
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 when the user wants TikTok to choose recommended music. TikTok's Content Posting API does not expose selecting a specific sound.
settings.autoAddMusic: true - Avoid setting a visible /title unless the user explicitly wants one. For TikTok posts, put user-facing copy in
name; otherwise dashboards or previews may show an unwanted title field.description - After posting a TikTok photo gallery, do not assume means it is visible. Reconcile the post after a short delay:
providerStatus: accepted
bash
socialclaw posts reconcile --post-id <post-id> --jsonTreat with as the stronger success signal. If reconciliation returns , regenerate resized/padded images, upload those corrected assets, and reschedule.
providerStatus: publishedreconciliationStatus: confirmedpicture_size_check_failedTikTok图片/图集帖子比视频帖子要求更严格。在调度或应用TikTok图片帖子前:
- 帖子仅使用图片资源;请勿混合图片和视频。
- 每个图集的图片数量需符合TikTok账号的功能限制,通常最多35张图片。
- 上传前将图片调整为TikTok兼容的尺寸。垂直图片幻灯片优先使用1080x1920像素的JPEG格式,或其他标准TikTok兼容的宽高比/尺寸。过大或非常规尺寸的图片可能通过SocialClaw验证并被TikTok初步接受,但后续会因失败。
picture_size_check_failed - 对于图片图集,若用户希望TikTok选择推荐音乐,请设置。TikTok的内容发布API不支持选择特定音效。
settings.autoAddMusic: true - 除非用户明确要求,否则不要设置可见的/标题。对于TikTok帖子,将面向用户的文案放在
name中;否则仪表盘或预览可能会显示不必要的标题字段。description - 发布TikTok图片图集后,不要认为意味着帖子已可见。短暂延迟后核对帖子状态:
providerStatus: accepted
bash
socialclaw posts reconcile --post-id <post-id> --json将且视为更可靠的成功信号。若核对返回,重新生成调整尺寸/添加边距的图片,上传修正后的资源并重新调度。
providerStatus: publishedreconciliationStatus: confirmedpicture_size_check_failedCLI reference
CLI参考
Authentication
认证
bash
socialclaw login --api-key <workspace-key>Install the packaged command file:
bash
socialclaw install --claudebash
socialclaw login --api-key <workspace-key>安装打包好的命令文件:
bash
socialclaw install --claudeAccounts
账号管理
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> --jsonbash
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> --jsonMedia
媒体资源
bash
socialclaw assets upload --file ./image.png --json
socialclaw assets delete --asset-id <id> --retention-days 7 --jsonbash
socialclaw assets upload --file ./image.png --json
socialclaw assets delete --asset-id <id> --retention-days 7 --jsonSchedules 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 --jsonbash
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 --jsonPosts 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 terminalbash
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 terminalAnalytics 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 --jsonbash
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 --jsonHTTP 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 (). Personal profiles are not publish targets.
facebookInstagram Business () — professional/business accounts linked to a Facebook Page only. Requires media.
instagram_businessInstagram standalone () — standalone professional accounts through Instagram Login. Separate from . Requires media.
instagraminstagram_businessX — text posts, up to four images or one video, reply steps in campaign flows.
LinkedIn profile () — text and native image or video. Up to twenty images or one video per post.
linkedinLinkedIn page () — separate from member profiles. Same media limits.
linkedin_pagePinterest () — 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.
pinterestTikTok () — one video or one photo gallery per post. Photo galleries support up to 35 images, , and ; selecting a specific TikTok song or sound is not exposed by TikTok's API. uploads to the account's TikTok drafts (inbox) instead of publishing; the creator finishes the post in the TikTok app (needs the scope — older connections must reconnect once).
tiktokautoAddMusicphotoCoverIndexsettings.tiktokPostMode: "draft"video.uploadTelegram () — bot-based posting. Connected manually with a bot token and or , not via OAuth. One optional image or video per post.
telegramchat_id@channelusernameDiscord () — channel posting via webhook URL. Connected manually, not via OAuth. One optional image or video per post.
discordYouTube () — channel video uploads. One video per post. Community posts and Shorts-specific flows are not supported.
youtubeReddit () — self posts and link posts. Requires a setting. Native media upload is not supported.
redditsubredditWordPress () — WordPress.com or Jetpack-connected sites. SocialClaw uploads remote media before publishing.
wordpressLegacy Meta () — older workspaces only. Prefer explicit and for new workspaces.
metafacebookinstagram_businessFacebook — 仅支持Facebook主页()。个人资料不可作为发布目标。
facebookInstagram企业账号() — 仅支持关联Facebook主页的专业/企业账号。必须包含媒体资源。
instagram_business独立Instagram账号() — 通过Instagram登录的独立专业账号。与相互独立。必须包含媒体资源。
instagraminstagram_businessX — 支持文字帖子、最多4张图片或1个视频,以及营销活动流程中的回复步骤。
LinkedIn个人资料() — 支持文字和原生图片或视频。每个帖子最多可包含20张图片或1个视频。
linkedinLinkedIn主页() — 与个人资料相互独立。媒体资源限制相同。
linkedin_pagePinterest() — 以看板为核心。支持标准图钉、视频图钉、多图图片钉。使用发现操作查看看板、分区和目录。产品、合集和创意板块受功能限制或处于测试阶段。
pinterestTikTok() — 每个帖子支持1个视频或1个图片图集。图片图集最多支持35张图片,支持和;TikTok的API不支持选择特定歌曲或音效。会将帖子上传至账号的TikTok草稿箱(收件箱)而非直接发布;创作者需在TikTok应用中完成帖子编辑(需要权限 — 旧连接需重新连接一次)。
tiktokautoAddMusicphotoCoverIndexsettings.tiktokPostMode: "draft"video.uploadTelegram() — 基于机器人的发布方式。需使用机器人令牌和或手动连接,不支持OAuth。每个帖子可包含1个可选图片或视频。
telegramchat_id@channelusernameDiscord() — 通过Webhook URL发布至频道。需手动连接,不支持OAuth。每个帖子可包含1个可选图片或视频。
discordYouTube() — 支持频道视频上传。每个帖子支持1个视频。不支持社区帖子和Shorts专属流程。
youtubeReddit() — 支持自发帖和链接帖。需要设置。不支持原生媒体上传。
redditsubredditWordPress() — 支持WordPress.com或Jetpack连接的站点。SocialClaw会在发布前上传远程媒体资源。
wordpress旧版Meta() — 仅适用于旧工作区。新工作区优先使用明确的和。
metafacebookinstagram_businessRead 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。