← 返回 Skills 市场
yidahis

Douyin Upload

作者 yidahis · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
283
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install douyin-upload
功能描述
Automatically generates and publishes articles to Douyin (TikTok China). Users provide a topic, and this skill generates engaging markdown content and cover...
使用说明 (SKILL.md)

Douyin Uploader

This skill helps you automatically generate and publish articles to Douyin (抖音) with AI-generated content and cover images.

When to Use This Skill

Use this skill when the user:

  • Wants to publish an article on Douyin about any topic
  • Asks to "post to Douyin" or "publish to 抖音"
  • Needs to create content for social media platforms
  • Mentions content creation, article writing, or social media publishing
  • Wants to automate their content publishing workflow

Prerequisites

Before using this skill, ensure:

  1. Python 3.8+ is installed
  2. sau command-line tool is properly installed and configured
  3. Douyin account is set up and linked to sau
  4. (Optional) OpenAI API key for high-quality content generation

How It Works

Step 1: Understand the User's Request

When a user wants to publish to Douyin, identify:

  1. The topic or subject of the article
  2. Any specific style or tone preferences
  3. Target audience considerations

Step 2: Generate Content

Generate engaging markdown content based on the topic:

  • Compelling title and subtitle that grab attention
  • Well-structured body content with proper formatting
  • Relevant tags and keywords for better discoverability
  • Engaging intro and outro to encourage interaction

Step 3: Generate Cover Image

Create or select an appropriate cover image:

  • AI-generated image related to the article topic
  • JPG format to meet Douyin requirements
  • Optimized dimensions for the platform

Step 4: Publish to Douyin

Use the sau command to publish:

sau douyin xiaoA upload-article article_content.md --cover product_cover.jpg

Usage Examples

Example 1: Simple Article Request

User: "发布一篇关于人工智能的文章"

Response:

I'll help you publish an article about AI to Douyin. Let me generate the content and cover image...

[AI generates markdown content]
[AI generates cover image]
Publishing to Douyin...
✅ Success! Article ID: 735284752

Example 2: Personal Experience

User: "分享我的旅游经历"

Response:

I'll create an engaging travel experience article for Douyin. What destination or experience would you like to share?

After receiving details, the skill generates content and publishes automatically.

Example 3: Health Content

User: "写一篇关于健康生活的内容"

Response:

I'll write a compelling article about healthy living for Douyin. Let me generate the content...

[Generates engaging health tips article]
[Creates relevant cover image]
Published successfully!

Common Article Categories

Category Example Topics
Technology AI, tools, gadgets, software
Lifestyle health, fitness, food, travel
Education tutorials, tips, learning guides
Entertainment movies, music, games, trends
Business marketing, startups, productivity

File Structure

douyin-upload/
├── SKILL.md                    # This file
├── sau.sh                      # Wrapper script for sau command
├── scripts/                    # Python scripts
│   ├── generate_content.py    # Content generation
│   ├── generate_image.py      # Image generation
│   ├── publish.py             # Publishing logic
│   └── config.py              # Configuration
└── references/                 # Reference materials
    └── examples.md            # Usage examples

Tips for Better Results

  1. Be specific with topics: More detailed topics generate better content
  2. Use trending keywords: Include current trends for better engagement
  3. Quality cover images: Good images significantly increase click-through rates
  4. Comply with platform rules: Ensure content meets Douyin's guidelines
  5. Test before publishing: Preview content to catch any issues

Troubleshooting

Common Issues

Issue: sau command not found

  • Solution: Install and configure sau command-line tool properly

Issue: Content generation fails

  • Solution: Check OpenAI API key (if using) or ensure AI service is accessible

Issue: Cover image generation errors

  • Solution: Verify image generation API access and permissions

Issue: Publishing fails

  • Solution: Check Douyin account authentication and sau configuration

Safety and Best Practices

  • Review content before publishing: Always review generated content for accuracy
  • Follow platform guidelines: Ensure content complies with Douyin's policies
  • Protect personal information: Don't include sensitive data in articles
  • Maintain quality standards: High-quality content builds audience trust

Performance Benefits

Compared to manual article creation:

  • 10x faster content generation and publishing
  • Consistent quality with AI-powered content
  • Reduced manual effort - focus on strategy, not execution
  • Scalable workflow - easily publish multiple articles

When This Skill Can't Help

If the user wants to:

  • Publish to platforms other than Douyin
  • Upload video content (this is for articles only)
  • Edit existing published articles
  • Manually control every aspect of content creation

In these cases, explain the skill's limitations and offer alternative approaches.

安全使用建议
What to consider before installing or running this skill: - Validity and provenance: The package appears to come from a developer snapshot (hard-coded paths like /Users/yiwanjun and a sau.sh wrapper pointing to a local venv). Confirm the source or sanitize those paths before use. - OpenAI key: The code optionally uses OPENAI_API_KEY for content/image generation. Although optional, if you provide a key it will be used for network calls to OpenAI. The registry metadata did not declare this env var formally — set keys carefully and use a limited-scope key if possible. - Review the 'sau' tool: The publisher runs an external CLI named 'sau' to perform the actual Douyin upload. That CLI is out-of-band (not provided here). Verify the provenance and behavior of any 'sau' binary you install; do not run untrusted 'sau' binaries. - Shell execution risk: Publishing runs a constructed command string via subprocess.run(..., shell=True). Filenames include the user-provided theme without robust sanitization when used in the command string. Avoid passing untrusted input as theme, or modify the code to call subprocess with a list of args (no shell=True) or properly escape/sanitize file names. - Hard-coded paths: Edit scripts/config.py to point WORKSPACE_DIR and other paths to safe, user-controlled locations (e.g., under your own home) before running. Remove or modify sau.sh's hard-coded PROJECT_DIR if you plan to use it. - Run in isolation when testing: Execute the skill in a constrained environment (non-root account, container, or VM) first to inspect created files (~/.openclaw/workspace, logs, and any .env files). Check logs for unexpected network calls or outputs. - Minimal permissions: Do not provide system-wide credentials or secrets. If you must provide an API key, consider rotating it and restricting its permissions. If you want a safer posture: ask the publisher for a sanitized release (no developer-specific paths), a manifest declaring OPENAI_API_KEY usage, and a change to run external commands without shell=True. Given the current issues, treat this package as 'use after manual review' rather than safe-to-install automatically.
功能分析
Type: OpenClaw Skill Name: douyin-upload Version: 1.0.0 The skill bundle contains a significant shell injection vulnerability in `scripts/publish.py` where `subprocess.run` is called with `shell=True` on a command string constructed from file paths. While the logic appears aligned with the stated purpose of automating Douyin uploads, the `SKILL.md` instructions explicitly direct the AI agent to execute shell commands, which is a high-risk behavior. Furthermore, several files (`sau.sh`, `scripts/config.py`) contain hardcoded absolute paths to a specific local user's directory (`/Users/yiwanjun/`), indicating unvetted code with poor security hygiene.
能力评估
Purpose & Capability
The code implements content generation, image creation, and publishing via a 'sau' CLI which aligns with the stated Douyin-upload purpose. However several configuration values are hard-coded to a specific developer user path (/Users/yiwanjun/...), and the included sau.sh wrapper points at a local project venv path — these are unusual for a published, generic skill and suggest the package was packaged from a developer's local environment rather than sanitized for distribution.
Instruction Scope
Runtime instructions in SKILL.md match the code: generate markdown, create a cover, then run the sau CLI to publish. The skill does access one environment variable (OPENAI_API_KEY) for optional image/content generation (documented in SKILL.md). The code only reads and writes files within the configured workspace and does not attempt to read unrelated system secrets or other user data.
Install Mechanism
There is no registry install spec (instruction-only in metadata) but the bundle includes an install.sh and Python requirements. The install script runs pip install -r scripts/requirements.txt and creates local workspace directories; it does not download arbitrary archives from unknown servers. The presence of a sau.sh wrapper referencing a developer-local path is odd and may mislead users if they copy it to /usr/local/bin without editing.
Credentials
The registry metadata declares no required env vars, yet the code and SKILL.md reference OPENAI_API_KEY as an optional input and the install script writes a .env placeholder. That environment variable access is plausible for higher-quality generation, but the mismatch between declared requirements and actual code usage is a coherence issue. Also the skill will create files under a hard-coded WORKSPACE_DIR pointing to another user's home by default; that is unexpected and should be configurable.
Persistence & Privilege
The skill does not request 'always: true' and does not attempt to modify other skills or system-wide agent settings. It writes logs and artifacts under its workspace directories and creates a .env file during install; that is normal for a local utility but users should review created files and paths.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install douyin-upload
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /douyin-upload 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Automatically generates and publishes articles to Douyin (TikTok China). - Generates engaging markdown articles and AI-created cover images for any user-specified topic. - Publishes content to Douyin using the sau command-line tool. - Supports various content categories like technology, lifestyle, education, entertainment, and business. - Designed to automate and streamline the Douyin article publishing workflow for content creators.
元数据
Slug douyin-upload
版本 1.0.0
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 1
常见问题

Douyin Upload 是什么?

Automatically generates and publishes articles to Douyin (TikTok China). Users provide a topic, and this skill generates engaging markdown content and cover... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 283 次。

如何安装 Douyin Upload?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install douyin-upload」即可一键安装,无需额外配置。

Douyin Upload 是免费的吗?

是的,Douyin Upload 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Douyin Upload 支持哪些平台?

Douyin Upload 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Douyin Upload?

由 yidahis(@yidahis)开发并维护,当前版本 v1.0.0。

💬 留言讨论