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: Complete the social media automation suite by adding Threads, Instagram, and Pixelfed integration to the existing publish_social.py engine.
Architecture: Extend the current modular Python script. For Meta platforms (Threads/Instagram), utilize the official Graph API which requires two-step container publishing and publicly accessible media URLs. For Pixelfed, leverage the ActivityPub/Mastodon-compatible API. Maintain existing image optimization and error-handling patterns.
Tech Stack: Python 3.x, requests, Pillow, Mastodon.py, GitHub Actions, GitHub Secrets.
scripts/publish_social.py
Responsibility: Add publish_threads, publish_instagram, and publish_pixelfed functions. Update the main execution loop..github/workflows/publish_social.yml
Responsibility: Map new secrets for Threads, Instagram, and Pixelfed to environment variables.AGENTS.md
Responsibility: Update supported platforms documentation.README.md
Responsibility: Update key features list.Files:
scripts/publish_social.py, .github/workflows/publish_social.ymlTest: manual dry-run and workflow_dispatch
publish_threads in scripts/publish_social.py
graph.threads.net/v1.0.POST /{id}/threads).https://gurupanguji.com to local paths.POST /{id}/threads_publish) after a 10s safety delay for media processing..github/workflows/publish_social.yml for Threads
THREADS_ACCESS_TOKEN and THREADS_USER_ID to env.python3 scripts/publish_social.py --date 2026-03-15 --dry-run to verify parsing.workflow_dispatch to verify production posting.Files:
scripts/publish_social.py, .github/workflows/publish_social.ymlTest: manual dry-run and workflow_dispatch
publish_instagram in scripts/publish_social.py
graph.facebook.com/v19.0 (or latest).hero_image (local or fallback).POST /{id}/media) with image_url and caption.POST /{id}/media_publish)..github/workflows/publish_social.yml for Instagram
INSTAGRAM_ACCESS_TOKEN and INSTAGRAM_ACCOUNT_ID to env.Files:
scripts/publish_social.py, .github/workflows/publish_social.ymlTest: manual dry-run and workflow_dispatch
publish_pixelfed in scripts/publish_social.py
Mastodon.py logic but pointed at the Pixelfed base URL.main() loop due to instance setup issues..github/workflows/publish_social.yml for Pixelfed
PIXELFED_ACCESS_TOKEN and PIXELFED_API_BASE_URL to env.Files:
README.md, AGENTS.mdDelete: scripts/find_linkedin_urn.js
scripts/find_linkedin_urn.js.main after verification.Status: Approved
Notes: