douyin-publisher

douyin-publisher is a skill for Claude Code, Codex from AlanSong2077/Amplipost. It costs 96 tokens per session (1,694 once invoked), scanned A, original, MIT.

An automation tool for creating and publishing image-and-text posts on Douyin, a Chinese social-media platform. It can use supplied content and images, or generate images with Chinese text before publishing through the creator website.

In plain words
What is it for?
Use it to prepare Douyin posts, generate square Chinese information images, reuse a saved login session, and publish through the Douyin creator center.
Why use it?
It removes repetitive browser work such as opening the creator center, checking login status, uploading images, and filling in post details.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to prepare Douyin posts, generate square Chinese information images, reuse a saved login session, and publish through the Douyin creator center.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alansong2077/amplipost/douyin-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 AlanSong2077/Amplipost --skill douyin-publisher
Clone the repo
git clone --depth 1 https://github.com/AlanSong2077/Amplipost

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 douyin-publisher

README.md
[![agentmods](https://agentmods.dev/badge/skills/alansong2077/amplipost/douyin-publisher/github.svg)](https://agentmods.dev/skills/alansong2077/amplipost/douyin-publisher)
Your own site
<a href="https://agentmods.dev/skills/alansong2077/amplipost/douyin-publisher"><img src="https://agentmods.dev/badge/skills/alansong2077/amplipost/douyin-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 douyin-publisher

Your own site · 80×15
<a href="https://agentmods.dev/skills/alansong2077/amplipost/douyin-publisher"><img src="https://agentmods.dev/badge/skills/alansong2077/amplipost/douyin-publisher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,694 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.00096 $0.01694
Opus 5 $0.00048 $0.00847
Sonnet 5 $0.00019 $0.00339
Haiku 4.5 $0.00010 $0.00169

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

Security

Grade A, and why

douyin-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 3 executable files (scripts/douyin_publish_scrapling.py, scripts/douyin_publish.py, scripts/generate_images.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.

publishers/douyin-publisher/SKILL.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

抖音图文自动发布 Skill

使用模式

模式一:内容生成 + 自动配图 + 发布(推荐)

内容生成由 content-coordinator Agent 负责,Skill 仅执行发布。Agent 生成好标题、正文并处理好配图后,直接调用本 Skill 脚本发布。

模式二:用户提供图片 + 自动发布

用户提供图片路径和内容,直接发布。

模式三:直接发布

用户直接提供标题、正文、图片路径,跳过生成步骤直接发布。


配图生成(当用户未提供图片时)

使用 scripts/generate_images.py 自动生成支持中文的信息图(使用系统 STHeiti 字体)。

直接调用

SKILL_DIR=~/.openclaw/skills/douyin-publisher

# 生成自定义话题配图(3张)
python3 $SKILL_DIR/scripts/generate_images.py --topic 自定义话题 --title 自定义标题 --point1 要点1 --point2 要点2 --point3 要点3

# 测试中文显示
python3 $SKILL_DIR/scripts/generate_images.py --test

自动集成

douyin_publish.py 在未提供 --images 时会自动调用 generate_images.py 生成配图:

# 不提供图片,自动生成通用配图并发布
python3 $SKILL_DIR/scripts/douyin_publish.py \
  --title "AI 行业薪资分析" \
  --content "正文内容..." \
  --auto-generate

配图规格: 1080×1080 px,JPG,使用系统 STHeiti 中文字体,深色背景专业风格


发布技术流程(已通过真实 DOM 探查验证)

1. 启动 Playwright Chromium(持久化 profile,复用登录态)
   - 视口固定为 1440x900
   - Profile: ~/.catpaw/douyin_browser_profile(独立 profile)
2. 导航到 creator.douyin.com/creator-micro/content/upload?default-tab=image-text
3. 检测登录态 → 未登录则等待手动扫码(90s)
4. 点击「发布图文」Tab(如未自动切换)
5. 上传图片:input[type='file'][accept*='image/png']
   - 等待编辑器出现:.zone-container.editor-kit-container(最多 20s)
6. 填写标题:input.semi-input.semi-input-default
   - fill() + dispatchEvent 触发响应式
7. 填写正文:.zone-container.editor-kit-container(contenteditable div)
   - execCommand('insertText') 插入文字
   - 话题:在正文末尾输入 #关键词,等待下拉,Enter 选择
8. 截图(发布前确认)
9. 点击发布:button.button-dhlUZE.primary-cECiOJ(文字「发布」)
10. 等待成功提示:检测「发布成功」/「审核中」文字或 URL 跳转
11. 截图确认

实测验证的关键 selector:

元素 Selector 说明
图片上传 input[type='file'][accept*='image/png'] 上传前存在于页面
标题输入框 input.semi-input.semi-input-default placeholder: 添加作品标题
正文编辑器 .zone-container.editor-kit-container contenteditable div
话题触发 在编辑器内输入 #关键词 触发下拉列表
发布按钮 button.button-dhlUZE.primary-cECiOJ 文字「发布」
继续添加图片 button.continue-add-clE5aC 文字「继续添加」

Read the full file on GitHub · 162 lines

Files

What ships with it

5 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 · 162 lines · 96 tokens per session scan A 23600ee69a7d

Subscribe to this mod's changes

douyin-publisher is a skill published in the GitHub repository AlanSong2077/Amplipost (45 stars, last pushed 4mo ago), licensed MIT. It adds 96 tokens to every session and 1,694 once invoked, about $0.0005 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-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens