social-post
Post to Twitter and Farcaster with text and images. Handles character limits, image uploads, and cross-platform posting.
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- social-post
- tags
- [ "twitter", "farcaster", "social", "posting", "automation", "threads" ]
- author
- 0xdas
- license
- MIT
- version
- 1.0.0
- metadata
- { "openclaw": { "requires": { "env": [ "X_CONSUMER_KEY", "X_CONSUMER_SECRET", "X_ACCESS_TOKEN", "X_ACCESS_TOKEN_SECRET" ], "bins": [ "bash", "curl", "jq", "python3" ] } } }
- description
- Post to Twitter and Farcaster with text and images. Handles character limits, image uploads, and cross-platform posting.
02 资源文件 9
- 参考文档_meta.json279 B
- 参考文档CHANGELOG.md1.7 KB
- 脚本lib/farcaster.sh5.6 KB
- 脚本lib/links.sh1.8 KB
- 脚本lib/threads.sh3.4 KB
- 脚本lib/twitter.sh3.9 KB
- 脚本lib/validate.sh1.7 KB
- 参考文档README.md3.0 KB
- 脚本scripts/post.sh7.9 KB
03 SKILL.md 正文
Social Post
Post to Twitter and/or Farcaster with automatic character limit validation and image upload handling.
Features
- ✅ Post to Twitter only
- ✅ Post to Farcaster only
- ✅ Post to both platforms simultaneously
- ✅ Character/byte limit validation
- ✅ Image upload support
- ✅ Thread support - automatically split long text into numbered posts
- ✅ Link shortening - compress URLs using TinyURL (saves characters)
- ✅ Auto-truncate on overflow (optional)
Platform Limits
- Twitter: 252 characters (280 with 10% safety buffer)
- Farcaster: 288 bytes (320 with 10% safety buffer)
Usage
Text only
# Post to both platforms
scripts/post.sh "Your message here"
# Twitter only
scripts/post.sh --twitter "Your message"
# Farcaster only
scripts/post.sh --farcaster "Your message"
With image
# Post to both platforms with image
scripts/post.sh --image /path/to/image.jpg "Your caption"
# Twitter only with image
scripts/post.sh --twitter --image /path/to/image.jpg "Caption"
# Farcaster only with image
scripts/post.sh --farcaster --image /path/to/image.jpg "Caption"
Options
--twitter- Post to Twitter only--farcaster- Post to Farcaster only--image <path>- Attach image--thread- Split long text into numbered thread--shorten-links- Shorten URLs to save characters--truncate- Auto-truncate if over limit--dry-run- Preview without posting
Examples
# Quick post to both
scripts/post.sh "gm! Building onchain ?"
# Twitter announcement with image
scripts/post.sh --twitter --image ~/screenshot.png "New feature shipped! ?"
# Farcaster only
scripts/post.sh --farcaster "Just published credential-manager to ClawHub!"
# Long text as thread (auto-numbered)
scripts/post.sh --thread "This is a very long announcement that exceeds the character limit. It will be automatically split into multiple numbered posts. Each part will be posted sequentially to create a thread. (1/3), (2/3), (3/3)"
# Shorten URLs to save characters
scripts/post.sh --shorten-links "Check out this amazing project: https://github.com/very-long-organization-name/very-long-repository-name"
# Combine thread + link shortening
scripts/post.sh --thread --shorten-links "Long text with multiple links that will be shortened and split into a thread if needed"
# Both platforms, auto-truncate long text
scripts/post.sh --truncate "Very long message that might exceed limits..."
Requirements
- Twitter credentials in
.env(X_CONSUMER_KEY, X_CONSUMER_SECRET, X_ACCESS_TOKEN, X_ACCESS_TOKEN_SECRET) - Farcaster credentials in
/home/phan_harry/.openclaw/farcaster-credentials.json - For images:
curl,jq
Image Hosting
- Twitter: Direct upload via Twitter API
- Farcaster: Uploads to imgur for public URL (embeds automatically)
Error Handling
- Shows character/byte count before posting
- Warns if exceeding limits
- Option to truncate or abort
- Validates credentials before attempting post
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.