← 返回 Skills 市场
acidias

Clawpost

作者 Acidias · GitHub ↗ · v0.1.3
cross-platform ✓ 安全检测通过
650
总下载
2
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install clawpost-2
功能描述
AI-powered social media publishing for LinkedIn and X (Twitter) with algorithm optimization and scheduling.
使用说明 (SKILL.md)

Social Media Publisher Skill

ClawPost helps you create, manage, and publish content to LinkedIn and X (Twitter) — with AI-assisted writing, drafts, scheduling, and direct publishing via API.

Getting Started

If the user doesn't have an account or API key yet, walk them through these steps:

  1. Sign up at clawpost.dev — sign in with LinkedIn.
  2. Connect platforms — In the Dashboard, connect LinkedIn and/or X (Twitter) accounts.
  3. Add credits — Go to Dashboard → Billing and top up credits (minimum $5). Credits are used for AI generation features.
  4. Generate an API key — Go to Dashboard → Settings → API Keys → Generate New Key. The key starts with claw_.
  5. Set the environment variable:
    export CLAW_API_KEY="claw_your_key_here"
    

Setup

Required environment variable:

  • CLAW_API_KEY — your API key (starts with claw_). Generate one following the steps above.

Optional:

  • CLAW_API_URL — defaults to https://clawpost.dev. Only set this if using a self-hosted instance.

All endpoints are under {{CLAW_API_URL}}/api/claw/v1/ (default: https://clawpost.dev/api/claw/v1/).

Authentication

Every request needs the header:

Authorization: Bearer {{CLAW_API_KEY}}

Important: Passing JSON in shell commands

When sending JSON data with curl, always use a heredoc to avoid shell escaping issues with quotes and special characters:

curl -s -X POST URL \
  -H "Authorization: Bearer {{CLAW_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d @- \x3C\x3C'EOF'
{"key": "value"}
EOF

All examples below use this pattern. Do not use -d '{...}' with single quotes — it breaks when content contains quotes, newlines, or special characters.

Response Format

All responses follow this shape:

{
  "success": true,
  "message": "Human-readable summary",
  "data": { ... },
  "error": { "code": "ERROR_CODE", "details": "..." }
}

Always read the message field — it's designed to be relayed directly to the user.

Endpoints

Check Status

Verify your API key works and see what's connected.

curl -s {{CLAW_API_URL}}/api/claw/v1/status \
  -H "Authorization: Bearer {{CLAW_API_KEY}}"

List Connected Platforms

curl -s {{CLAW_API_URL}}/api/claw/v1/platforms \
  -H "Authorization: Bearer {{CLAW_API_KEY}}"

Check Credits

curl -s {{CLAW_API_URL}}/api/claw/v1/credits \
  -H "Authorization: Bearer {{CLAW_API_KEY}}"

List Posts

Filter by status (draft, published, scheduled, failed) and platform (linkedin, twitter).

curl -s "{{CLAW_API_URL}}/api/claw/v1/posts?status=draft&platform=linkedin&limit=10" \
  -H "Authorization: Bearer {{CLAW_API_KEY}}"

X Post History

Retrieve your X (Twitter) post history from the cached profile data. This is a read-only endpoint - no credits are used.

Query parameters:

  • type - posts, replies, or all (default: all)
  • limit - max results, 1-100 (default: 20)
  • period - 7d, 30d, 90d, or all (default: all)
curl -s "{{CLAW_API_URL}}/api/claw/v1/history/x?type=posts&period=30d&limit=10" \
  -H "Authorization: Bearer {{CLAW_API_KEY}}"

The response includes a summary object with aggregated metrics (totalPosts, totalReplies, totalLikes, totalRetweets, totalRepliesReceived, totalImpressions, topPost) and a posts array with individual tweet details, metrics, media, and reply context.

Get Single Post

curl -s {{CLAW_API_URL}}/api/claw/v1/posts/POST_ID \
  -H "Authorization: Bearer {{CLAW_API_KEY}}"

Each post includes an availableActions array (e.g., ["publish", "schedule", "update", "delete"]).

Post Object Fields

Every post includes a postType field:

  • "original" — a regular post composed by the user
  • "quote" — a quote tweet of another post (X only)
  • "reply" — a reply to another post (X only)
  • "remix" — an original tweet inspired by another post (X only)

When postType is "quote", "reply", or "remix", the post also includes a reference object with the original tweet's context:

{
  "postType": "quote",
  "content": "User's commentary text",
  "reference": {
    "tweetId": "1234567890",
    "text": "The original tweet text that was quoted",
    "author": "originalAuthor"
  }
}

This lets you see exactly what was quoted/replied to alongside the user's own text.

Create a Draft

curl -s -X POST {{CLAW_API_URL}}/api/claw/v1/drafts \
  -H "Authorization: Bearer {{CLAW_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d @- \x3C\x3C'EOF'
{"content": "Your post text here", "platform": "linkedin"}
EOF

Platform: "linkedin" or "twitter". Twitter content must be ≤ 280 characters.

Update a Draft

curl -s -X PUT {{CLAW_API_URL}}/api/claw/v1/posts/POST_ID \
  -H "Authorization: Bearer {{CLAW_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d @- \x3C\x3C'EOF'
{"content": "Updated post text"}
EOF

Delete a Draft

curl -s -X DELETE {{CLAW_API_URL}}/api/claw/v1/posts/POST_ID \
  -H "Authorization: Bearer {{CLAW_API_KEY}}"

Publish a Draft

curl -s -X POST {{CLAW_API_URL}}/api/claw/v1/posts/POST_ID/publish \
  -H "Authorization: Bearer {{CLAW_API_KEY}}"

Direct Publish (No Draft Step)

curl -s -X POST {{CLAW_API_URL}}/api/claw/v1/publish \
  -H "Authorization: Bearer {{CLAW_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d @- \x3C\x3C'EOF'
{"content": "Publishing this directly!", "platform": "linkedin"}
EOF

Schedule a Draft

curl -s -X POST {{CLAW_API_URL}}/api/claw/v1/posts/POST_ID/schedule \
  -H "Authorization: Bearer {{CLAW_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d @- \x3C\x3C'EOF'
{"scheduledAt": "2026-06-15T10:00:00Z"}
EOF

Direct Schedule (No Draft Step)

curl -s -X POST {{CLAW_API_URL}}/api/claw/v1/schedule \
  -H "Authorization: Bearer {{CLAW_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d @- \x3C\x3C'EOF'
{"content": "Scheduled post!", "platform": "linkedin", "scheduledAt": "2026-06-15T10:00:00Z"}
EOF

AI Generate Post

Let AI write a post based on your prompt. Optional: tone and platform.

curl -s -X POST {{CLAW_API_URL}}/api/claw/v1/ai/generate \
  -H "Authorization: Bearer {{CLAW_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d @- \x3C\x3C'EOF'
{"prompt": "Write about the importance of code reviews", "platform": "linkedin"}
EOF

AI Refine Post

Improve existing content with instructions.

curl -s -X POST {{CLAW_API_URL}}/api/claw/v1/ai/refine \
  -H "Authorization: Bearer {{CLAW_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d @- \x3C\x3C'EOF'
{"content": "Original post text...", "instructions": "Make it shorter and punchier", "platform": "linkedin"}
EOF

Workflow Tips

  1. Quick publish: Use /publish to post immediately without creating a draft.
  2. Review flow: Create a draft with /drafts, refine with /ai/refine, then publish with /posts/ID/publish.
  3. Cross-post: Make separate calls for LinkedIn and Twitter — each is a separate post.
  4. Check before publishing: Call /platforms to verify the target platform is connected.
  5. Twitter limit: Tweets must be ≤ 280 characters. The API will reject longer content with a clear message.

Error Codes

Code Meaning
UNAUTHORIZED Invalid or revoked API key
NOT_FOUND Post or resource doesn't exist
VALIDATION_ERROR Bad input (missing content, too long, invalid date)
CONFLICT Can't perform action (e.g., already published)
PLATFORM_NOT_CONNECTED Target social platform isn't linked
INSUFFICIENT_CREDITS Not enough credits for AI operations
NO_AI_KEY No AI API key configured
RATE_LIMITED Too many requests (60/min general, 10/min publish)
INTERNAL_ERROR Something went wrong server-side
安全使用建议
This skill appears coherent for managing and publishing posts through ClawPost. Before installing: verify you trust https://clawpost.dev (owner reputation, privacy policy, and billing), and confirm the API key's scope and permissions (posting/publishing can create or delete content). Use least-privilege: create a dedicated/test ClawPost account or API key you can revoke, test actions using drafts or a sandbox account, and avoid placing a highly privileged or shared credential in your environment. Note the registry metadata listed no homepage while SKILL.md references clawpost.dev — you may want to confirm that the skill source and the service domain are legitimate and match your expectations.
功能分析
Type: OpenClaw Skill Name: clawpost-2 Version: 0.1.3 The skill bundle is benign. All instructions and API calls in `SKILL.md` are directly related to the stated purpose of social media publishing via the ClawPost API. It uses `curl` to interact with `https://clawpost.dev` and requires a `CLAW_API_KEY` for authentication, which is standard practice. There is no evidence of data exfiltration, arbitrary command execution, persistence mechanisms, or malicious prompt injection attempts against the AI agent. The instructions are clear and helpful for the agent to perform its task.
能力评估
Purpose & Capability
The name/description (social media publishing for LinkedIn and X) align with the declared requirements: only curl is required and a single CLAW_API_KEY is needed to call clawpost.dev endpoints. No unrelated binaries, credentials, or system config paths are requested.
Instruction Scope
SKILL.md contains concrete curl examples and API endpoints under the clawpost domain and instructs the agent to use the CLAW_API_KEY in Authorization headers. It does not instruct reading other files, scanning system state, or exfiltrating data to third-party endpoints outside the specified API (aside from the documented sign-up flow at clawpost.dev).
Install Mechanism
This is an instruction-only skill with no install spec or bundled code, which minimizes footprint and disk writes. Required binary is only curl (reasonable for making HTTP requests).
Credentials
Only one required environment variable (CLAW_API_KEY), declared as the primary credential, is requested and is necessary to authenticate to the service. No additional unrelated secrets or credential patterns are requested.
Persistence & Privilege
The skill does not request always:true and is user-invocable (defaults). The agent can invoke the skill autonomously (platform default) — this is expected for an integration plugin but means the provided API key will be usable whenever the skill runs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawpost-2
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawpost-2 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.3
- Added new "X Post History" endpoint to retrieve and summarize cached X (Twitter) post history with aggregated metrics and detailed tweet data. - Updated the post object to include a "postType" field and a reference object for quotes, replies, and remixes on X. - No other changes made to the skill logic or requirements.
v0.1.2
- Added guidance on using heredoc syntax with curl to safely send JSON payloads in shell commands. - Updated all curl example commands to use heredoc for JSON data instead of single-quoted -d arguments. - Included a warning against using -d '{...}' with single quotes due to potential issues with quotes, newlines, or special characters.
v0.1.1
- Added version field ("0.1.1") to skill metadata. - Expanded metadata with structured fields: homepage, primaryEnv, env and bins requirements. - Moved homepage URL into metadata. - No changes to API functionality or documentation content.
v0.1.0
Initial release of ClawPost skill—AI-powered social media publishing for LinkedIn and X (Twitter). - Provides full API walkthrough for account setup, authentication, and posting/scheduling content. - Supports drafting, direct publishing, scheduling, and cross-posting to LinkedIn and X. - Includes AI-powered post generation and content refinement. - Details error codes and workflow tips for a smooth publishing experience. - Requires environment variable CLAW_API_KEY and curl for all API interactions.
元数据
Slug clawpost-2
版本 0.1.3
许可证
累计安装 0
当前安装数 0
历史版本数 4
常见问题

Clawpost 是什么?

AI-powered social media publishing for LinkedIn and X (Twitter) with algorithm optimization and scheduling. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 650 次。

如何安装 Clawpost?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawpost-2」即可一键安装,无需额外配置。

Clawpost 是免费的吗?

是的,Clawpost 完全免费(开源免费),可自由下载、安装和使用。

Clawpost 支持哪些平台?

Clawpost 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Clawpost?

由 Acidias(@acidias)开发并维护,当前版本 v0.1.3。

💬 留言讨论