twitter-automation
Post tweets, like, retweet on X/Twitter. Use for: social media automation, posting
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Post tweets, like, retweet on X/Twitter. Use for: social media automation, posting
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create multi-speaker dialogue audio. Use for: podcasts, conversations, audiobook scenes
Translate and dub audio/video to another language. Use for: localization, multilingual
Generate music from text description. Use for: background music, jingles, soundtracks
Generate sound effects from description. Use for: SFX, game audio, video soundscape
Transcribe audio to text, speech recognition. Use for: transcription, subtitles, dictation
Convert text to speech, narrate, voiceover. 32 languages, 22+ voices. Use for: TTS, audio
| name | twitter-automation |
| description | Post tweets, like, retweet on X/Twitter. Use for: social media automation, posting |
| allowed-tools | Bash(node *) |
| disable-model-invocation | true |
Post tweets, like, retweet, delete tweets, and get your own profile via X/Twitter API v2 using OAuth 1.0a HMAC-SHA1 authentication.
Required environment variables (4):
X_CONSUMER_KEY — API Key from X Developer PortalX_CONSUMER_SECRET — API Secret from X Developer PortalX_ACCESS_TOKEN — Access Token generated for your accountX_ACCESS_TOKEN_SECRET — Access Token SecretFree tier limitations: Write-only (~500 tweets/month). No reading of timeline, search, or user lookups without Basic tier ($200/month).
Supported operations:
| Action | Description |
|---|---|
post | Post a new tweet (text up to 280 chars) |
like | Like a tweet |
retweet | Retweet a tweet |
delete | Delete one of your own tweets |
me | Get your own profile (/2/users/me) |
Make sure all 4 environment variables are set before running:
if [ -z "$X_CONSUMER_KEY" ] || [ -z "$X_CONSUMER_SECRET" ] || [ -z "$X_ACCESS_TOKEN" ] || [ -z "$X_ACCESS_TOKEN_SECRET" ]; then
echo "ERROR: Missing X OAuth credentials."
echo "Required: X_CONSUMER_KEY, X_CONSUMER_SECRET, X_ACCESS_TOKEN, X_ACCESS_TOKEN_SECRET"
echo "Run /pocket-knife:setup to configure your API keys."
exit 1
fi
SKILL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SCRIPT="$SKILL_DIR/scripts/post-tweet.mjs"
Post a tweet:
ACTION="post" TWEET_TEXT="Hello from Pocket-Knife!" node "$SCRIPT"
Like a tweet:
ACTION="like" TWEET_ID="1234567890" USER_ID="123456789" node "$SCRIPT"
Retweet a tweet:
ACTION="retweet" TWEET_ID="1234567890" USER_ID="123456789" node "$SCRIPT"
Delete a tweet:
ACTION="delete" TWEET_ID="1234567890" node "$SCRIPT"
Get your profile:
ACTION="me" node "$SCRIPT"
The script returns JSON with the API response. Report it to the user.
| Endpoint | Limit |
|---|---|
| POST /2/tweets | ~17 requests per 24 hours, ~500/month |
| POST /2/users/:id/likes | ~17 per 24 hours |
| POST /2/users/:id/retweets | ~17 per 24 hours |
| DELETE /2/tweets/:id | ~50 per 24 hours |
| GET /2/users/me | ~15 per 15 minutes |
With Basic tier ($200/month), additional operations become available: