MCPInstall

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.

Installs
1.1K
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/guanyang/super-publisher --skill toutiao-publisher
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads toutiao-publisher automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Toutiao Publisher

Use the scripts from this Skill directory. Resolve the directory containing this SKILL.md first and set its absolute path as SKILL_DIR; 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:

python3 "$SKILL_DIR/scripts/run.py" auth_manager.py status --verify --json

If the result status is not_authenticated, open the interactive login flow:

python3 "$SKILL_DIR/scripts/run.py" auth_manager.py setup --json

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 SUPER_PUBLISHER_DATA_DIR to override the location; relative values resolve from the user home directory.

Prepare and publish an article

Validate inputs without opening Chrome:

python3 "$SKILL_DIR/scripts/run.py" publisher.py \
  --mode validate \
  --title "AI Trends 2026" \
  --content-file "/absolute/path/article.md" \
  --cover "/absolute/path/cover.jpg" \
  --json

After validation succeeds, fill the draft and wait for manual review:

python3 "$SKILL_DIR/scripts/run.py" publisher.py \
  --mode manual \
  --title "AI Trends 2026" \
  --content-file "/absolute/path/article.md" \
  --cover "/absolute/path/cover.jpg" \
  --json

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:

python3 "$SKILL_DIR/scripts/run.py" publisher.py \
  --mode auto \
  --title "AI Trends 2026" \
  --content-file "/absolute/path/article.md" \
  --headless \
  --json

Automatic publishing succeeds only after Toutiao displays a recognized success indicator. A final-button click without confirmation returns publish_unconfirmed.

Result contract

With --json, authentication commands write one JSON result to stdout. Publisher commands write newline-delimited JSON events; manual mode emits awaiting_manual_review before waiting for the user.

  • Exit 0: authenticated, input valid, manual review completed, or publish confirmed.
  • Exit 1: runtime, browser interaction, draft, upload, or publish failure.
  • Exit 2: invalid input, missing authentication, or clear confirmation required.

Treat stderr as human-readable diagnostics. Do not parse emojis or prose to determine success.

Session management

# Read local state only
python3 "$SKILL_DIR/scripts/run.py" auth_manager.py status --json

# Verify against Toutiao and refresh state
python3 "$SKILL_DIR/scripts/run.py" auth_manager.py validate --json

# Destructive: require explicit user confirmation first
python3 "$SKILL_DIR/scripts/run.py" auth_manager.py clear --yes --json

Environment

Require Python 3.9+, Google Chrome, and local network access. scripts/run.py bootstraps scripts/setup_environment.py, verifies the requirements fingerprint, and executes the target with the Skill-local .venv Python. The shared state directory uses owner-only permissions. Avoid starting concurrent browser operations against the same persistent Chrome Profile.

Enable --debug-screenshots only when troubleshooting. Screenshots are written under output/toutiao-publisher-debug/ by default.

FAQ

What does the toutiao-publisher skill do?

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.

How do I install toutiao-publisher?

Run npx skills add https://github.com/guanyang/super-publisher --skill toutiao-publisher in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/toutiao-publisher/ (personal) or .claude/skills/toutiao-publisher/ (project).

Which AI agents can use toutiao-publisher?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is toutiao-publisher safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains toutiao-publisher?

It is published by guanyang in guanyang/super-publisher. It has 1,067 recorded installs.

More from guanyang/super-publisher

View all →

wechat-sticker-maker

guanyang/super-publisher

Open the skill to read its SKILL.md instructions.

59 installs

grid-sticker-generator

guanyang/super-publisher

Open the skill to read its SKILL.md instructions.

50 installs

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs