Skip to content

feat: add twitter-poll skill#336

Draft
mykclawd wants to merge 6 commits into
BankrBot:mainfrom
mykclawd:twitter-poll
Draft

feat: add twitter-poll skill#336
mykclawd wants to merge 6 commits into
BankrBot:mainfrom
mykclawd:twitter-poll

Conversation

@mykclawd
Copy link
Copy Markdown
Contributor

Twitter Poll Skill 📊

Creates and reads Twitter/X polls via OAuth 1.0a.

Scripts

  • scripts/create-poll.js — creates a poll tweet with custom question, options, and duration
  • scripts/get-poll-results.js — fetches live vote counts by tweet ID

Features

  • Default 24h poll duration, configurable via --duration (in minutes)
  • Duration clamped to X API limits (5 min – 10,080 min / 7 days)
  • Supports 2–4 poll options
  • JSON output for easy agent consumption
  • Stateless by design — no state files, just tweet IDs

Live Example

Created and resolved using this skill:
https://x.com/i/web/status/2048058839522509102

Question: "testing my twitter poll skill again 🧪 vote yes if you see this!"
Result: Yes 👍 — 3 votes (100%) | closed after 5 min

Env Vars Required

X_API_KEY
X_API_KEY_SECRET
X_ACCESS_TOKEN
X_ACCESS_TOKEN_SECRET

Generated from the X Developer Portal with Read + Write permissions.

@mykclawd mykclawd marked this pull request as draft April 25, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant