toutiao-publisher

toutiao-publisher is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 24 tokens per session (725 once invoked), scanned A, original, Apache-2.0.

A command-line client for publishing articles and short posts on Toutiao and Douyin, Chinese content platforms, using official or website-internal interfaces.

In plain words
What is it for?
Publish articles through the official API, or publish short Toutiao posts with text and images through the website interface.
Why use it?
It gathers several publishing tasks into commands and defaults to showing the request plan without sending it. Website-internal interfaces may change and need checking first.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Publish articles through the official API, or publish short Toutiao posts with text and images through the website interface.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/toutiao-publisher
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Morningstar202604/awesome-skillkit --skill toutiao-publisher
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for toutiao-publisher

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/toutiao-publisher/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/toutiao-publisher)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/toutiao-publisher"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/toutiao-publisher/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for toutiao-publisher

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/toutiao-publisher"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/toutiao-publisher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 725 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00725
Opus 5 $0.00012 $0.00362
Sonnet 5 $0.00005 $0.00145
Haiku 4.5 $0.00002 $0.00072

Measured 12d ago against content hash 1d41ae2e18eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

toutiao-publisher scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/toutiao_publisher.py, tests/test_toutiao_publisher.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/writing/news/toutiao-publisher/SKILL.md · 84 lines

What it actually says

今日头条/抖音 Publisher

今日头条/抖音发布客户端,支持两种模式:

  1. 官方开放平台 API —— 文章发布,需申请 AppKey
  2. Web 内部 API —— 微头条发布,仅需 Cookie

功能

  • article-publish —— 文章发布(官方 API)
  • micro-post —— 微头条发布(Web 内部 API)

安全设计

  • 默认 dry-run:所有写操作默认只打印请求计划,不联网;加 --execute 才真正发送。
  • 凭据隔离
    • 官方 API:TOUTIAO_ACCESS_TOKENTOUTIAO_APPID/TOUTIAO_APPSECRET
    • Web API:TOUTIAO_COOKIE 环境变量或 --cookie-file

使用示例

# 文章发布(官方 API)
export TOUTIAO_ACCESS_TOKEN="your_token"
python toutiao_publisher.py article-publish --execute \
  --title "我的文章" \
  --content "# 标题\n正文内容..." \
  --cover-images "https://example.com/cover.png" \
  --tags "Python,AI"

# 微头条发布(Web Cookie)
export TOUTIAO_COOKIE="your_cookie"
python toutiao_publisher.py micro-post --execute \
  --content "发个微头条 #话题#" \
  --images "https://example.com/img1.png"

端点核对(首次使用必做)

Web 内部 API 无官方文档,端点可能随时变更。首次使用前请在浏览器 DevTools 核对。

当前端点(需核对):

  • 文章发布: POST https://open.toutiao.com/api/articles/publish
  • 微头条: POST https://www.toutiao.com/api/microblog/create

认证

官方 APITOUTIAO_ACCESS_TOKENTOUTIAO_APPID/TOUTIAO_APPSECRET Web 内部 APITOUTIAO_COOKIE--cookie-file

export TOUTIAO_COOKIE="tt_webid=xxx; s_v_web_id=xxx; ..."

退出码

  • 0 成功
  • 1 API 错误或参数错误

依赖

  • Python 3.8+
  • 标准库
  • publish_common

相关技能

  • bilibili-publisher — B 站发布
  • baijiahao-publisher — 百家号发布
  • weibo-publisher — 微博发布
  • cross-post-orchestrator — 多平台编排
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 84 lines · 24 tokens per session scan A 1d41ae2e18eb

Subscribe to this mod's changes

toutiao-publisher is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (1 stars, last pushed 2d ago), licensed Apache-2.0. It adds 24 tokens to every session and 725 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

feishu-websocket-stability

Stabilize Hermes Feishu websocket mode when reconnects are too slow, ping timing needs tuning, or multiple local gateways accidentally compete for the same Feishu appid. Use when Feishu websocket reconnect delays feel excessive, runtime websocket overrides appear ignored by the SDK, startup should fail fast on…

davidtoby/agent-skills · 85 tokens

hermes-agent-litellm-vertex-gateway

Configure an existing Hermes Agent deployment to use a local LiteLLM Vertex Proxy as an additional model option, without disturbing the current Hermes configuration. Use when you need Hermes to access Gemini models via a local LiteLLM gateway already running at 127.0.0.1:4000.

davidtoby/agent-skills · 70 tokens

prior-authorization-decision-automation

Generate deterministic code and pipeline recipes for automating prior authorization (PA) workflows: parsing X12 278 and FHIR PAS requests, extracting clinical features, rules-based adjudication, training machine learning classifiers, and analyzing denial patterns. Use when asked to 'parse a prior authorization…

Amazon-Quick/Amazon-Quick-official-catalog · 99 tokens

api-learner

Workflow for learning site APIs via traffic capture and replacing browser automation with direct curl calls.

davidtoby/agent-skills · 22 tokens

notion

Notion API via curl: pages, databases, blocks, search.

Ibook000/ibook-skill · 17 tokens

ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ranbot-ai/awesome-skills · 26 tokens