Agent skill · writing content · guanyang
toutiao-publisher
Publish or prepare articles for Toutiao/头条号, check or restore shared login state, fill Markdown drafts with inline images and covers, and optionally complete final publishing. Use for requests such as 发布到头条、检查头条登录、填充头条草稿、上传图文、人工审核 or explicitly authorized automatic publishing.
Why this skill is useful
Adds specific scripts for publishing articles to Toutiao that automate the login and publishing process, which the AI wouldn't reliably generate on its own.
What it needs
Requires python3 installed locally. Requires toutiao account access. About 2k tokens when loaded. Last updated 2026-07-16. 28 stars on the source repository.
What this skill does
Toutiao Publisher Use the scripts from this Skill directory. Resolve the directory containing this SKILL.md first and set its absolute path as SKILLDIR; do not assume the caller's working directory is the Skill directory. Safety rules Default to --mode manual. Leave Chrome open for the user to review and click Publish. Use --mode auto only when the user explicitly authorizes final publishing. Run clear --yes or reauth --yes only after the user confirms that all local Agents may lose the shared Toutiao session. Do not bypass input validation or treat an unconfirmed publish click as success. Preflight authentication Check the protected Toutiao page before asking the user to scan a QR code: If the result status is notauthenticated, open the interactive login flow: The shared profile lives under ~/.super-publisher/toutiao-publisher/ by default. Codex, Kiro, Antigravity, and direct CLI runs by the same system user reuse it. Set SUPERPUBLISHERDATADIR to override the location; relative values resolve from the user home directory. Prepare and publish an article Validate inputs without opening Chrome: After validation succeeds, fill the draft and wait for manual review: Use direct text only through --content-text. --content remains an alias for --content-file; a missing path is an error rather than literal article text. Markdown supports headings, links, ordered and unordered lists, block quotes, tables, fenced code, inline code, emphasis, and local inline images. Resolve relative image paths from the Markdown file. If the body contains images, skip explicit cover upload. Use --no-cover only when the body has no image and no cover is supplied. For explicitly authorized automatic publishing: Automatic publishing succeeds only after Toutiao displays a recognized success indicator. A final-button click without confirmation returns publishunconfirmed. Result contract With --json, authentication commands write one JSON result to stdout. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills guanyang/toutiao-publisher