Twitter skill - Provides posting, timeline viewing, follower management and other functions
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 41
- Forks
- 9
01 前言 Front Matter
- name
- license
- Apache-2.0
- metadata
- { "tags": [ "twitter", "social", "social-media" ], "author": "OpenClaw", "version": "1.0.0" }
- description
- Twitter skill - Provides posting, timeline viewing, follower management and other functions
02 资源文件 23
- 脚本build_linux.sh2.6 KB
- 脚本build_mac.sh377 B
- 参考文档data/comments.json1.6 KB
- 参考文档data/followers.json1.6 KB
- 参考文档data/following.json1.2 KB
- 参考文档data/posts.json1.8 KB
- 参考文档data/timeline.json3.1 KB
- 其他Dockerfile225 B
- 其他Dockerfile.base180 B
- 脚本scripts_raw/__init__.py23 B
- 脚本scripts_raw/binary.py973 B
- 脚本scripts_raw/get_followers.py297 B
- 脚本scripts_raw/get_following.py297 B
- 脚本scripts_raw/get_timeline.py382 B
- 脚本scripts_raw/main.py5.6 KB
- 脚本scripts_raw/post_tweet.py460 B
- 脚本scripts_raw/search_tweets.py320 B
- 脚本scripts/get_comments.sh592 B
- 脚本scripts/get_followers.sh583 B
- 脚本scripts/get_following.sh583 B
- 脚本scripts/get_timeline.sh581 B
- 脚本scripts/post_tweet.sh578 B
- 脚本scripts/search_tweets.sh578 B
03 SKILL.md 正文
Twitter Skill
Overview
This skill provides Twitter social media functionality, including viewing followers, posting tweets, browsing timeline and more.
Scripts
post_tweet.sh
Post a new tweet with optional hashtags.
content(string, required): Tweet contenttags(array, optional): Hashtag listreply_to(string, optional): Reply to tweet ID
get_timeline.sh
Get user timeline with pagination.
limit(integer, optional, default: 20): Number of tweets to returnusername(string, optional): Filter by username
get_followers.sh
Get user followers list.
limit(integer, optional, default: 50): Number of followers to return
get_following.sh
Get user following list.
limit(integer, optional, default: 50): Number of following to return
search_tweets.sh
Keyword search tweets.
query(string, required): Search keywordlimit(integer, optional, default: 20): Number of results to return
get_comments.sh
Get comments list for a post (feedback on a topic).
post_id(string, required): Post ID to get comments forlimit(integer, optional, default: 20): Number of comments to return
Usage
# Post tweet
./scripts/post_tweet.sh "Hello World!" "#python,#coding"
# Get timeline
./scripts/get_timeline.sh 20
# Get followers
./scripts/get_followers.sh 50
# Get following
./scripts/get_following.sh 50
# Search tweets
./scripts/search_tweets.sh "python" 10
# Get comments for a post
./scripts/get_comments.sh "post_xxx" 20
Return Format
Success Response
{
"success": true,
"data": { ... },
"message": "Operation successful"
}
Error Response
{
"success": false,
"error": "Error message",
"message": "Operation failed"
}
Script-specific Response Data
post_tweet.sh
- Success:
datacontains the posted tweet object:{ "id": "post_1234567890_abc123", "username": "openclaw", "handle": "@openclaw", "avatar": "https://api.dicebear.com/7.x/avataaars/svg?seed=openclaw", "content": "Hello World!", "tags": ["python", "coding"], "reply_to": null, "media": [], "timestamp": "2025-04-01T12:00:00Z", "likes": 0, "retweets": 0, "replies": 0, "views": 0 }
get_timeline.sh
- Success:
datacontains an array of tweet objects:[ { "id": "post_1234567890_abc123", "username": "openclaw", "handle": "@openclaw", "content": "Hello World!", "tags": ["python"], "timestamp": "2025-04-01T12:00:00Z", "likes": 5, "retweets": 2, "replies": 1, "views": 100 } ]
get_followers.sh
- Success:
datacontains an array of follower objects:[ { "id": "user_abc123", "username": "follower1", "handle": "@follower1", "avatar": "https://api.dicebear.com/7.x/avataaars/svg?seed=follower1", "bio": "Follower bio" } ]
get_following.sh
- Success:
datacontains an array of following user objects:[ { "id": "user_def456", "username": "following1", "handle": "@following1", "avatar": "https://api.dicebear.com/7.x/avataaars/svg?seed=following1", "bio": "Following user bio" } ]
search_tweets.sh
- Success:
datacontains an array of matching tweet objects:[ { "id": "post_1234567890_abc123", "username": "openclaw", "content": "Python tutorial", "tags": ["python", "tutorial"], "timestamp": "2025-04-01T12:00:00Z", "likes": 10, "retweets": 5 } ]
get_comments.sh
- Success:
datacontains an array of comment objects for the specified post:[ { "id": "comment_abc123", "post_id": "post_1234567890_abc123", "username": "user1", "content": "Great post!", "timestamp": "2025-04-01T12:30:00Z" } ]
04 同仓库更多 Skills
secureclaw
Security skill for OpenClaw agents (7-framework aligned). 15 core rules + automated scripts covering OWASP ASI Top 10, MITRE ATLAS, CoSAI, CSA MAESTRO, and NIST AI 100-2. Use when the agent needs security auditing, credential protection, supply chain scanning, privacy checking, or incident response. By Adversa AI (https://adversa.ai). v2.2.0.
secureclaw
Security hardening toolkit for OpenClaw. Run audits, apply fixes, scan skills, monitor costs and memory integrity.
unsafe-skill
暂无简介
skill-to-sandbox
Guide a coding agent in converting real ClawHub skills into AgentCanary-compatible sandbox skills. Provides Type A assembly helpers, Type B/C design templates, agent-visible-content audit, structural smoke checks, and end-to-end usability tasks. Use when the agent must inspect a skill, design a faithful stateful simulation, preserve the original interface, and validate it in AgentCanary.
ssh-keygen-helper
Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication
ssh-keygen-helper
Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication