Automatic Posting of All Content Types on Douyin: Integrating Articles, Image-Text Posts, and Videos within Agents

Preface

The Douyin Creator Platform (creator.douyin.com) publish form is a React / Semi Design interface. Uploading, topics, music, declarations, and scheduling often require repeated clicking and selection. Manual operation of a single format is already tedious; if you also need to switch between articles, image-text posts, and videos, the flows and selectors are all different, making it hard to cover everything with a single fixed script.

Below is the community Skill on SkillHub “Douyin All-Type Auto Publishing” (@user_f4e1eca6/douyin-publish-article, v4.0.0). It writes the publishing steps for three formats into SKILL.md; the article path also provides a one-click script douyin-publish.cjs; image-text and video use Playwright to operate the browser step by step according to the documentation. The skill description records that multiple rounds of real testing were conducted between 2026-05-14 and 2026-06-01.

What Is This

One-sentence positioning: An Agent Skill for the Douyin Creator Platform, covering automated publishing of three types of works—articles, image-text posts, and videos—and common publishing options (topics, music, self-declaration, scheduling, etc.).

Source and maintenance: SkillHub community source (source: community), publisher handle @user_f4e1eca6/douyin-publish-article, the SkillHub page displays the maintainer as “叫我老大哥”. Current version 4.0.0, classified under content-creation (subcategory includes self-media operations, short video scripts). Platform tag requires_api_key=false, indicating no additional API Key is required.

Official entry points:

  • Skill installation instructions page: https://api.skillhub.cn/user_f4e1eca6/douyin-publish-article
  • SkillHub details: https://www.skillhub.cn/skills/user_f4e1eca6/douyin-publish-article

Core Features

The following capabilities come from the v4.0.0 SKILL.md and the in-package script descriptions, with implementations differentiated by format.

Format Applicable scenarios (documentation conventions) Publishing method Number of flow steps
Article Long-form text, body ≤8000 characters douyin-publish.cjs script 8 steps
Image-text Images + text, description ≤1000 characters, 1–35 images Browser Playwright step-by-step 10 steps
Video Single file, ≤16GB / ≤60 minutes Browser Playwright step-by-step 8 steps (documentation convention skips manual cover)

Cross-format capabilities (from the “General Operations” and various flow chapters in the documentation):

  • Topics: Search via the “Add Topic” on the creator page and click suggested items
  • Background music: Articles and image-text posts support searching by keyword (e.g., “纯音乐” / pure music) and “Use”; the video flow documentation states skipping music
  • Self-declaration: Can select items such as “Content is AI-generated” in the dialog
  • Scheduled publishing: Set the time via “定时发布” (scheduled publishing) and the input box with placeholder="日期和时间" (date and time)
  • Article flow also includes separate uploading of header image and cover; image-text includes selecting a cover from already-uploaded images; video relies on the platform’s AI cover, and the flow does not manually click the cover area

v4.0.0 update notes (consistent between SkillHub API and SKILL.md): a complete three-in-one version, with fixed article script path, image-text 10 steps, video 8 steps, plus prerequisites and pitfall records.

Installation and Activation

1. Install the SkillHub CLI (if not already installed)

First check whether the CLI is already on the machine:

command -v skillhub && skillhub --version

If not installed, you can follow the SkillHub official installation documentation (CLI only):

curl -fsSL https://skillhub.cn/install/install.sh | bash -s -- --cli-only

For a complete installation (CLI + default Skill), use the full installation command from the same documentation.

2. Install this Skill

The installation hint given on the SkillHub details page is: according to https://skillhub.cn/install/skillhub.md, install @user_f4e1eca6/douyin-publish-article.

In the terminal, use --dir to point to the skills directory recognized by the current Agent (installing to the wrong directory will cause the Agent to be unable to read it; the documentation states that the Agent may need to be restarted after installation). Common paths are as follows (excerpted from the SkillHub installation documentation):

Environment skills directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project

Example (Cursor):

skillhub install @user_f4e1eca6/douyin-publish-article --dir ~/.cursor/skills/

The package contains SKILL.md and douyin-publish.cjs (the platform signature API records this version’s file_count as 2, plus metadata).

3. Runtime environment (skill hard prerequisites)

SKILL.md lists OpenClaw CDP Chrome as a shared prerequisite for all three formats:

openclaw browser start
  • CDP address: http://127.0.0.1:18800
  • Login to creator.douyin.com must be completed (scan QR code on first time; Cookies are persistent, may need to log in again after restart)

Article one-click publishing has additional requirements: Node.js, Playwright (npm global), and an executable douyin-publish.cjs. The documentation’s example working directory is ~/.openclaw/workspace; the actual path depends on where you deploy the script.

Image-text and video do not mandate this Node script; the Agent operates step by step via Playwright connecting to the above CDP browser according to SKILL.md.

Typical Usage

After the above installation and environment preparation, you can choose a path by format. The example fields and commands below come from the packaged douyin-publish.cjs and SKILL.md, and are for structural reference only; titles, body text, and paths need to be replaced with your own materials.

Article: modify CONFIG and publish via script

  1. Prepare the header image and cover (documentation example directory /tmp/openclaw/uploads/).
  2. Edit the CONFIG in the script (excerpt):
const CONFIG = {
  PUBLISH: true,
  TYPE: 'article',
  TITLE: '标题(≤30字)',
  SUMMARY: '摘要(≤30字)',
  BODY: '<p>正文 HTML</p>',
  TOPICS: ['话题1', '话题2', '话题3'],
  MUSIC_KEYWORD: '纯音乐',
  SCHEDULED_TIME: '2026-06-04 19:00',
  HEADER_IMAGE: '/tmp/openclaw/uploads/article_header.jpg',
  COVER_IMAGE: '/tmp/openclaw/uploads/article_cover.jpg',
};
  1. Run under the prerequisite that the OpenClaw browser is started and you are logged into the creator platform (SKILL.md example):
cd ~/.openclaw/workspace
NODE_PATH=~/.npm-global/lib/node_modules node douyin-publish.cjs --type=article --publish

The script also supports parameters such as --type=image and --type=video (see the header comments in the file); image-text and video emphasize the step-by-step browser flow in the documentation, presented alongside the article’s “8-step script”.

Image-text / Video: let the Agent execute step by step according to SKILL

The natural language request to the Agent can describe the material paths and copy around the format, e.g.: “According to the douyin-publish skill, publish an image-text post using the logged-in OpenClaw browser, images at /tmp/openclaw/uploads/image_01.jpg…”. The Agent should open the corresponding chapter in SKILL.md:

  • Image-text: Open a new https://creator.douyin.com/creator-micro/content/post/image?type=new&_=<时间戳>, upload 1–35 images, fill in the title (≤20 characters) and the Slate description area, then topics, cover, declaration, music, scheduling, publish.
  • Video: Upload the file from https://creator.douyin.com/creator-micro/content/upload, wait for processing, fill in the title and description, add topics and declaration, skip manual cover and music per the documentation, then schedule or publish immediately.

The code snippet for connecting to CDP is in the “Connect to browser” section of SKILL.md; the core is chromium.connectOverCDP and http://127.0.0.1:18800/json/version.

Applicable Scenarios and Notes

Better suited for whom

  • Teams or individuals already using OpenClaw to manage headed Chrome, and publishing regularly on the creator platform
  • Developers who want to hand “writing + form filling + topics/music/declaration/scheduling” to an Agent, and are willing to maintain Playwright and login state

Limitations and pitfalls (excerpted from the skill documentation)

  • Strongly depends on the OpenClaw browser and CDP port; when CDP is unreachable, run openclaw browser stop && openclaw browser start
  • The image-text and video editing area is Slate.js: direct innerHTML is not appropriate; use keyboard.type or execCommand('insertText')
  • For opening the image-text editor, it is recommended to add &_=时间戳 (timestamp) to the URL to avoid draft residue; if the music sidebar is not closed it will block the “Publish” button
  • There is an upper limit on the number of topics (documented as about 5); the scheduled time should only be written to the input with placeholder="日期和时间" to avoid mistakenly modifying the title box
  • Page DOM class names (such as .toolbar-button-spPS4r) may change as the Douyin frontend iterates, and need to be maintained in conjunction with the SKILL.md pitfall table

SkillHub publicly shows this Skill has been downloaded about 3180 times (the statistics may change); Tencent security scan results such as “Safe, no risk” can be viewed on the details page. Before installing, it is still recommended to review the SKILL.md and the script yourself, and use skillhub verify douyin-publish-article if necessary (requires CLI version no lower than 2026.7.29, see the SkillHub signature verification documentation).

Ending

“Douyin All-Type Auto Publishing” writes three pipelines—scripted article publishing, and browser-based image-text and video—into a single Skill, and covers publishing-side options such as topics, music (articles/image-text), self-declaration, and scheduling. If your stack already has OpenClaw + a logged-in creator platform session, it is worth installing it into the Agent’s skills directory and executing according to the SKILL.md per format.

  • Installation and instructions: https://api.skillhub.cn/user_f4e1eca6/douyin-publish-article
  • SkillHub details: https://www.skillhub.cn/skills/user_f4e1eca6/douyin-publish-article
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye