← 返回
未分类 Key 中文

Neomano X (Tweet Publisher + Image)

Draft, revise, and publish X (Twitter) posts with an image using the X API. Use when the user asks for a tweet/post for X, wants to attach an image, and requ...
使用 X API 起草、修改并发布带图片的 X (Twitter) 帖子。当用户请求发推文并希望附加图片时使用。
elandivar
未分类 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 1
Stars
📥 397
下载
💾 0
安装
1
版本
#latest#media#oauth1#posting#twitter#x

概述

Safety / approval rule (mandatory)

  • Never publish unless the user explicitly replies with PUBLICAR or PUBLISH (uppercase).
  • Before publishing, always show the final text + the image you will use.

Credentials (do not hardcode)

Provide these as environment variables (recommended: ~/.openclaw/.env on the gateway machine):

  • X_API_KEY
  • X_API_SECRET
  • X_ACCESS_TOKEN
  • X_ACCESS_TOKEN_SECRET

One-time setup

1) Create the venv (once)

python3 {baseDir}/scripts/bootstrap_venv.py

Rationale: this avoids system-wide installs (PEP 668 / externally-managed Python) and keeps dependencies isolated to this skill.

Note: the .venv/ directory is intentionally not shipped in the skill package; each user creates it locally.

2) If you do NOT have Access Token Secret (UI changed)

Use the OAuth 1.0a 3‑legged flow to obtain X_ACCESS_TOKEN + X_ACCESS_TOKEN_SECRET.

Prereq: set an allowed callback URL in your X app settings (any HTTPS URL is fine, even a dummy page).

Recommended: set X_OAUTH_CALLBACK=https://example.com/callback (and whitelist it in the app).

Start:

# run inside the venv
python3 {baseDir}/scripts/run.py dry-run --text "(noop)"  # just to verify venv exists
{baseDir}/.venv/bin/python {baseDir}/scripts/oauth1_flow.py auth-start

Open the printed AUTH_URL, approve, then copy oauth_verifier from the browser redirect URL.

Finish:

{baseDir}/.venv/bin/python {baseDir}/scripts/oauth1_flow.py auth-finish \
  --oauth-token "..." \
  --oauth-token-secret "..." \
  --oauth-verifier "..."

Workflow

  1. Ask for: tweet text idea + the image (a local path or an inbound media file path).
  2. Produce a draft tweet (and alt-text suggestion for the image).
  3. Iterate revisions until the user is happy.
  4. When the user says PUBLICAR or PUBLISH:
python3 {baseDir}/scripts/run.py publish --text "..." --image "/path/to/image.jpg"

If the user did not approve, only run dry-run:

python3 {baseDir}/scripts/run.py dry-run --text "..." --image "/path/to/image.jpg"

Notes

  • Image upload uses the v1.1 media upload endpoint.
  • Tweet creation uses the v2 tweets endpoint.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-30 19:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Neomano Binance Assets (Read-only)

elandivar
安全只读币安余额查看器(现货钱包),使用只读权限 API 密钥。用于查看持仓/余额/资产。
★ 1 📥 482

Neomano Web Snapshot (Headless)

elandivar
以无头模式(无界面)截取任意网站的 PNG 截图,以验证其渲染/运行状态。当用户请求网站截图或运行状态检查时使用。
★ 1 📥 496

Neomano TTS (ElevenLabs)

elandivar
通过 ElevenLabs 实现文本转语音。当用户要求语音回复、生成文本的朗读版本,或提出相关语音请求时使用。
★ 2 📥 484