skillZs
LIVE SKILL TAGS
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
REAL INSTALL DATA
← back to all skills
guanyang/super-publisher993 installs

toutiao-publisher

Publish articles to Toutiao (Today's Headlines). Handles persistent authentication (login once) and session management. Opens browser for interactive publishing.

How do I install this agent skill?

npx skills add https://github.com/guanyang/super-publisher --skill toutiao-publisher
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubfail

    The Toutiao Publisher skill automates article publishing through browser simulation. It is classified as HIGH risk due to the potential for Indirect Prompt Injection; the skill ingests external Markdown content and possesses high-privilege side-effect capabilities (publishing to a public platform) without robust sanitization. Additionally, it relies on a non-standard stealth dependency ('patchright') and disables browser sandboxing.

  • Socketpass

    No alerts

  • Snykwarn

    Risk: MEDIUM · No issues

  • Runlayerwarn

    10/10 files flagged

  • ZeroLeakspass

    Score: 93/100 · 2 sections analyzed

What does this agent skill do?

Toutiao Publisher Skill

Manage Toutiao (Today's Headlines) account, maintain persistent login session, and publish articles.

When to Use This Skill

Trigger when user:

  • Asks to publish to Toutiao/Today's Headlines
  • Wants to manage Toutiao login
  • Mentions "toutiao" or "头条号"

Core Workflow

Step 1: Authentication (One-Time Setup)

The skill requires a one-time login. The session is persisted for subsequent uses.

# Browser will open for manual login (scan QR code)
python scripts/run.py auth_manager.py setup

Instructions:

  1. Run the setup command.
  2. A browser window will open loading the Toutiao login page.
  3. Log in manually (e.g., scan QR code).
  4. Once logged in (redirected to dashboard), the script will save the session and close.

Step 2: Publish Article

# Opens browser with authenticated session at publish page
python scripts/run.py publisher.py

Instructions:

  1. Run the publisher command.
  2. Browser opens directly to the "Publish Article" page.
  3. Write and publish the article manually.
  4. Press Ctrl+C in the terminal when done.

Note: Toutiao requires titles to be 2-30 characters. This tool automatically optimizes titles to fit this constraint (truncating if >30, padding if <2).

Advanced Usage (Draft Automation)

You can fill a draft automatically by providing arguments. By default, the tool stops before final publishing so the user can inspect the article and click Publish manually.

# Fill title, Markdown content, inline images, and cover image
python scripts/run.py publisher.py --title "AI Trends 2025" --content "article.md" --cover "assets/cover.jpg"

Markdown images such as ![caption](assets/chart.png) are inserted into the article body at their original positions. Local relative image paths are resolved from the Markdown file directory.

If the article body contains images, the tool skips explicit cover handling and does not open Toutiao's cover picker. --cover is only uploaded when the Markdown body has no inline images.

Debug screenshots are disabled by default. If troubleshooting is needed, add --debug-screenshots; screenshots will be saved under output/toutiao-publisher-debug/ instead of the working directory.

Automated Final Publish

Only use this when the user explicitly asks to publish without manual review:

python scripts/run.py publisher.py --title "AI Trends 2025" --content "article.md" --cover "assets/cover.jpg" --auto-publish

Without --auto-publish, never click Toutiao's final publish buttons automatically.

Management

# Check authentication status
python scripts/run.py auth_manager.py status

# Clear authentication data (logout)
python scripts/run.py auth_manager.py clear

Technical Details

  • Persistent Auth: Uses patchright to launch a persistent browser context. Cookies and storage state are saved to data/browser_state/state.json.
  • Anti-Detection: Uses patchright's stealth features to avoid bot detection.
  • Environment: Automatically manages a virtual environment (.venv) with required dependencies.

Script Reference

  • scripts/auth_manager.py: Handles login, session validation, and state persistence.
  • scripts/publisher.py: Launches authenticated browser for publishing.
  • scripts/run.py: Wrapper ensuring execution in the correct virtual environment.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/guanyang/super-publisher/toutiao-publisher">View toutiao-publisher on skillZs</a>