Loading...
Loading...
Read and publish on Substack (substack.com) with the user's own login cookies (BYOC) — show who they are and their primary publication, list their published posts with stats, and publish a new post / newsletter. Use when the user mentions Substack, "my Substack", their newsletter, or publishing a post to Substack.
npx skill4agent add acedatacloud/skills substackurllibpython-substackSUBSTACK_COOKIESsubstack.sidsubstack.lliscripts/substack.pySUB=$SKILL_DIR/scripts/substack.py
python3 $SUB whoami # who is logged in + primary publication
python3 $SUB articles --limit 20 # my published posts + statspython3 $SUB whoami
# → {"user_id": ..., "name": "...", "handle": "...", "publication": "...", "publication_url": "https://<sub>.substack.com"}--confirmpublish#######```>-*1.---code[links](url)https://…--confirm--confirm# dry-run (shows the plan, writes nothing)
python3 $SUB publish --title "Title" --content-file post.md
# private draft (visible only in the user's dashboard)
python3 $SUB publish --title "Title" --content-file post.md --draft-only --confirm
# go LIVE on the web (does NOT email subscribers)
python3 $SUB publish --title "Title" --content-file post.md --confirm
# go LIVE and email subscribers (use only when the user explicitly asks)
python3 $SUB publish --title "Title" --content-file post.md --send-email --confirm--draft-onlyedit_url--send-email--send-email--subtitle--audienceeveryoneonly_paidfoundingonly_free--draft-only--send-emailSUBSTACK_COOKIESpublish_artifactpublish_artifact(kind="article", channel="substack", title="<title>", url="<the REAL returned URL>", status="delivered")status="failed"_shared/artifacts.md