Skills composio-composer-xskill
Enables posting tweets to Twitter/X through Composio's integration platform via HTTP and BeautifulSoup. Use when posting tweets or integrating with Composio.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/austindixson/composio-composer-xskill" ~/.claude/skills/clawdbot-skills-composio-composer-xskill && rm -rf "$T"
manifest:
skills/austindixson/composio-composer-xskill/SKILL.mdsource content
Composio Composer X Skill
This skill enables posting tweets to Twitter/X through Composio's integration platform. It uses HTTP requests with BeautifulSoup to interact with Composio's web interface, providing a
post_tweet function that can be called from OpenClaw.
Installation
-
Install dependencies:
pip install requests beautifulsoup4 python-dotenv -
Configure credentials in
file or environment.env -
Import and use the skill in your OpenClaw workflow
Tool Definitions
post_tweet
Posts a tweet to Twitter/X using Composio.
Function Signature:
def post_tweet(content: str, composio_auth_token: str) -> dict:
Parameters:
(str): The tweet content (max 280 characters)content
(str): The Composio authentication token for authorizationcomposio_auth_token
Returns:
: Contains:dict
(bool): Whether the tweet was posted successfullysuccess
(str): The posted tweet's ID (on success)tweet_id
(str): URL to view the tweet (on success)tweet_url
(str): Error message (on failure)error
Example:
result = post_tweet( content="Hello from OpenClaw! 🐾", composio_auth_token="your_composio_auth_token_here" ) print(f"Tweet posted: {result.get('tweet_url')}")
get_tweet
Retrieves a tweet by ID.
Function Signature:
def get_tweet(tweet_id: str, composio_auth_token: str) -> dict:
Parameters:
(str): The tweet ID to retrievetweet_id
(str): The Composio authentication tokencomposio_auth_token
Returns:
: Contains tweet data or error informationdict
delete_tweet
Deletes a tweet.
Function Signature:
def delete_tweet(tweet_id: str, composio_auth_token: str) -> dict:
Parameters:
(str): The tweet ID to deletetweet_id
(str): The Composio authentication tokencomposio_auth_token
Returns:
: Containsdict
(bool) and status messagesuccess
Configuration
The skill requires the following environment variables:
: Your Composio client IDCOMPOSIO_CLIENT_ID
: Your Composio API keyCOMPOSIO_API_KEY
: Your Composio session tokenCOMPOSIO_SESSION_TOKEN
: Your Composio bearer tokenCOMPOSIO_BEARER_TOKEN
: Your Composio user IDCOMPOSIO_USER_ID
Notes
- This implementation uses HTTP requests to emulate Composio interaction
- Direct API access through OpenClaw is currently unavailable
- Rate limits apply per Twitter/X and Composio policies
- Session tokens expire after 7200 seconds (2 hours)