social-publisher
affaan-m/ECC
使用 SocialClaw 在 13 個平台上排程並發布社群媒體貼文,並支援媒體檔案上傳、活動驗證及發佈監控。
...展開全部Social Publisher (SocialClaw)
將 Claude Code 與 SocialClaw 連接,透過單一工作區 API 金鑰,實現跨 13 個平台的代理程式驅動式社群媒體發佈。
何時啟用
- 將內容發佈至 X、LinkedIn、Instagram、TikTok 或其他平台
- 一次排程跨多平台的貼文活動
- 上傳媒體檔案以用於社群貼文
- 在貼文上線前驗證排程
- 監控發佈進度狀態與觸及分析
設定
# 必備:來自 https://getsocialclaw.com/dashboard 的工作區 API 金鑰
export SC_API_KEY=""
# 驗證存取權限
printf 'header = "Authorization: Bearer %s"\n' "$SC_API_KEY" |
curl -sS -K - https://getsocialclaw.com/v1/keys/validate
# 安裝 CLI(非必要但建議)
npm install -g [email protected]
socialclaw login --api-key
核心工作流程
1. 列出已連線的帳戶
socialclaw accounts list --json
若尚未連線:
socialclaw accounts connect --provider x --open
socialclaw accounts connect --provider linkedin --open
2. 上傳媒體檔案(可選)
socialclaw assets upload --file ./image.png --json
# → { "asset_id": "..." }
3. 建立 schedule.json
{
"posts": [
{
"provider": "x",
"account_id": "",
"text": "在此處輸入貼文內容",
"scheduled_at": "2026-06-01T10:00:00Z"
}
]
}
可選的 X/Twitter 證據包
在建立 X 排程之前,若該活動依賴即時受眾訊號(而非僅依賴草稿),請先收集來源封包。
對於已在依賴項政策中批准 TweetClaw 的 OpenClaw 使用者,請將固定包用作獨立的證據來源:
openclaw plugins install npm:@xquik/[email protected]
可用於公開推文搜尋、回覆搜尋、追蹤者匯出、使用者查詢、媒體審查、監測或贈獎活動的證據蒐集。 將輸出結果保留作為schedule.json 的研究輸入;SocialClaw 仍負責驗證、排程、發布及傳送狀態。請將 TweetClaw 憑證儲存於其外掛程式設定中,而非SC_API_KEY、排程檔案或活動資產中。請勿將其安裝為預設的 ECC 或 SocialClaw 依賴項。
4. 發布前進行驗證
socialclaw validate -f schedule.json --json
5. 發布
socialclaw apply -f schedule.json --json
# → { "run_id": "..." }
6. 監控
socialclaw status --run-id --json
socialclaw posts list --json
支援的服務供應商
| 服務供應商 | 金鑰 |
|---|---|
| X (Twitter) | x |
| LinkedIn 個人檔案 | LinkedIn |
| LinkedIn 頁面 | linkedin_page |
| Instagram 商業帳號 | instagram_business |
| Instagram 獨立版 | instagram |
| Facebook 專頁 | Facebook |
| TikTok | TikTok |
| YouTube | YouTube |
Reddit |
|
| WordPress | WordPress |
| Discord | Discord |
| Telegram | Telegram |
Pinterest |
安全性
- 外發請求僅會發送至
getsocialclaw.com - 服務供應商的 OAuth 設定位於 SocialClaw 儀表板中 — 不會將各服務供應商的機密金鑰暴露給代理程式
SC_API_KEY為工作區範圍的金鑰
相關技能
x-api— 直接執行 X/Twitter API 操作social-graph-ranker— 用於外展目標鎖定的社交網絡分析TweetClaw— 在 SocialClaw 排程前,可選用經核准的 OpenClaw X/Twitter 來源憑證
來源
- npm:
npm install -g [email protected] - 儀表板:SocialClaw 儀表板
---
name: social-publisher
description: Schedule and publish social media posts across 13 platforms using SocialClaw, with support for media uploads, campaign validation, and delivery monitoring.
---
# Social Publisher (SocialClaw)
Connects Claude Code to [SocialClaw](https://getsocialclaw.com) for agent-driven social media publishing across 13 platforms through a single workspace API key.
## When to Activate
- publish content to X, LinkedIn, Instagram, TikTok, or other platforms
- schedule a post campaign across multiple platforms at once
- upload media for use in social posts
- validate a post schedule before going live
- monitor publishing run status and delivery analytics
## Setup
```bash
# Required: workspace API key from https://getsocialclaw.com/dashboard
export SC_API_KEY="<workspace-key>"
# Verify access
printf 'header = "Authorization: Bearer %s"\n' "$SC_API_KEY" |
curl -sS -K - https://getsocialclaw.com/v1/keys/validate
# Install CLI (optional but recommended)
npm install -g [email protected]
socialclaw login --api-key <workspace-key>
```
## Core Workflow
### 1. List connected accounts
```bash
socialclaw accounts list --json
```
If not connected:
```bash
socialclaw accounts connect --provider x --open
socialclaw accounts connect --provider linkedin --open
```
### 2. Upload media (optional)
```bash
socialclaw assets upload --file ./image.png --json
# → { "asset_id": "..." }
```
### 3. Build schedule.json
```json
{
"posts": [
{
"provider": "x",
"account_id": "<account-id>",
"text": "Post text here",
"scheduled_at": "2026-06-01T10:00:00Z"
}
]
}
```
### Optional X/Twitter evidence packet
Before building an X schedule, collect a source packet when the campaign depends on live audience signals rather than the draft alone.
For OpenClaw users who have already approved TweetClaw in their dependency policy, use the pinned package as a separate evidence source:
```bash
openclaw plugins install npm:@xquik/[email protected]
```
Use it for public tweet search, reply search, follower export, user lookup, media review, monitors, or giveaway evidence. Keep the output as research input for `schedule.json`; SocialClaw remains responsible for validation, scheduling, publishing, and delivery status. Store TweetClaw credentials in its plugin config, not in `SC_API_KEY`, schedule files, or campaign assets. Do not install it as a default ECC or SocialClaw dependency.
### 4. Validate before publishing
```bash
socialclaw validate -f schedule.json --json
```
### 5. Publish
```bash
socialclaw apply -f schedule.json --json
# → { "run_id": "..." }
```
### 6. Monitor
```bash
socialclaw status --run-id <run-id> --json
socialclaw posts list --json
```
## Supported Providers
| Provider | Key |
|----------|-----|
| X (Twitter) | `x` |
| LinkedIn profile | `linkedin` |
| LinkedIn page | `linkedin_page` |
| Instagram Business | `instagram_business` |
| Instagram standalone | `instagram` |
| Facebook Page | `facebook` |
| TikTok | `tiktok` |
| YouTube | `youtube` |
| Reddit | `reddit` |
| WordPress | `wordpress` |
| Discord | `discord` |
| Telegram | `telegram` |
| Pinterest | `pinterest` |
## Security
- Outbound requests go to `getsocialclaw.com` only
- Provider OAuth is in the SocialClaw dashboard — no per-provider secrets exposed to the agent
- `SC_API_KEY` is a workspace-scoped key
## Related Skills
- `x-api` — direct X/Twitter API operations
- `social-graph-ranker` — network analysis for outreach targeting
- `TweetClaw` - optional approved OpenClaw X/Twitter source evidence before SocialClaw scheduling
## Source
- npm: `npm install -g [email protected]`
- Dashboard: [SocialClaw dashboard](https://getsocialclaw.com/dashboard)
所有檔案
1 個檔案安裝 social-publisher
請下載並將技能檔案解壓縮至您的 .claude/skills/ 目錄中。
下載 ZIP複製儲存庫並將技能檔案複製到您的專案中。
git clone https://github.com/affaan-m/ECC/tree/main/skills/social-publisher # Copy SKILL.md to your .claude/skills/ directory
複製





首頁
