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.
npx skills add AlanSong2077/Amplipost --skill douyin-publishergit clone --depth 1 https://github.com/AlanSong2077/AmplipostWrote 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.
[](https://agentmods.dev/skills/alansong2077/amplipost/douyin-publisher)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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 |
文字「继续添加」 |
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.
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.
- 12d ago First seen · 162 lines · 96 tokens per session scan A 23600ee69a7d
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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
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…
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.
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…
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…