For agentic workers: REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (
- [ ]) syntax for tracking.
Goal: Extend the social media automation suite by adding X (Twitter) and Nostr integration.
Architecture:
tweepy library to interact with X API v2. Media uploads will utilize the v1.1 endpoint (as required by X for media IDs) before posting the tweet via v2.nostr-sdk library to publish Kind 1 (text) notes to a set of default relays.workflow_dispatch only during the integration phase.Tech Stack: Python 3.x, tweepy, nostr-sdk, requests, GitHub Actions, GitHub Secrets.
scripts/publish_social.py
Responsibility: Add publish_x and publish_nostr functions. Update main loop and platform filtering..github/workflows/publish_social.yml
Responsibility: Map new secrets for X and Nostr. Update platform input options.requirements.txt
Responsibility: Add tweepy and nostr-sdk dependencies.tweepy to requirements.txt.publish_x in scripts/publish_social.py
tweepy.Client for v2 posting.tweepy.API (OAuth 1.0a) for media uploads..github/workflows/publish_social.yml
X_CONSUMER_KEY, X_CONSUMER_SECRET, X_ACCESS_TOKEN, X_ACCESS_TOKEN_SECRET to env.workflow_dispatch using --platform X.nostr-sdk to requirements.txt.publish_nostr in scripts/publish_social.py
nostr_sdk (async).wss://relay.damus.io and wss://nos.lol..github/workflows/publish_social.yml
NOSTR_PRIVATE_KEY to env.workflow_dispatch using --platform Nostr.