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
- sau command-line tool is properly installed and configured
- Douyin account is set up and linked to sau
- (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
- Any specific style or tone preferences
- 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:
CODEBLOCK0
Usage Examples
Example 1: Simple Article Request
User: "发布一篇关于人工智能的文章"
Response:
CODEBLOCK1
Example 2: Personal Experience
User: "分享我的旅游经历"
Response:
CODEBLOCK2
Example 3: Health Content
User: "写一篇关于健康生活的内容"
Response:
CODEBLOCK3
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
CODEBLOCK4
Tips for Better Results
- 1. Be specific with topics: More detailed topics generate better content
- Use trending keywords: Include current trends for better engagement
- Quality cover images: Good images significantly increase click-through rates
- Comply with platform rules: Ensure content meets Douyin's guidelines
- 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.
抖音上传器
此技能可帮助您使用AI生成的内容和封面图片,自动生成并发布文章到抖音。
何时使用此技能
当用户出现以下情况时使用此技能:
- - 希望在抖音上发布关于任何主题的文章
- 要求发布到抖音或发布到抖音平台
- 需要为社交媒体平台创建内容
- 提及内容创作、文章撰写或社交媒体发布
- 希望自动化内容发布工作流程
前置条件
使用此技能前,请确保:
- 1. 已安装 Python 3.8+
- 已正确安装并配置 sau 命令行工具
- 已设置 抖音账号 并关联到 sau
- (可选)OpenAI API 密钥 用于高质量内容生成
工作原理
第1步:理解用户请求
当用户希望发布到抖音时,需明确:
- 1. 文章的主题或话题
- 任何特定的风格或语气偏好
- 目标受众考量
第2步:生成内容
基于主题生成引人入胜的Markdown内容:
- - 吸引眼球的标题和副标题
- 结构清晰的主体内容,格式规范
- 相关标签和关键词,提升可发现性
- 引人入胜的开头和结尾,鼓励互动
第3步:生成封面图片
创建或选择合适的封面图片:
- - AI生成的图片,与文章主题相关
- JPG格式,满足抖音要求
- 优化尺寸,适配平台
第4步:发布到抖音
使用sau命令进行发布:
bash
sau douyin xiaoA upload-article articlecontent.md --cover productcover.jpg
使用示例
示例1:简单文章请求
用户: 发布一篇关于人工智能的文章
回复:
我将帮您在抖音上发布一篇关于人工智能的文章。让我生成内容和封面图片...
[AI生成Markdown内容]
[AI生成封面图片]
正在发布到抖音...
✅ 成功!文章ID:735284752
示例2:个人经历分享
用户: 分享我的旅游经历
回复:
我将为抖音创建一篇引人入胜的旅游经历文章。您想分享哪个目的地或经历?
获取详细信息后,技能将自动生成内容并发布。
示例3:健康内容
用户: 写一篇关于健康生活的内容
回复:
我将为抖音撰写一篇关于健康生活的精彩文章。让我生成内容...
[生成引人入胜的健康技巧文章]
[创建相关封面图片]
发布成功!
常见文章类别
| 类别 | 示例主题 |
|---|
| 科技 | 人工智能、工具、数码产品、软件 |
| 生活方式 |
健康、健身、美食、旅行 |
| 教育 | 教程、技巧、学习指南 |
| 娱乐 | 电影、音乐、游戏、潮流 |
| 商业 | 营销、创业、效率提升 |
文件结构
douyin-upload/
├── SKILL.md # 本文件
├── sau.sh # sau命令的封装脚本
├── scripts/ # Python脚本
│ ├── generate_content.py # 内容生成
│ ├── generate_image.py # 图片生成
│ ├── publish.py # 发布逻辑
│ └── config.py # 配置
└── references/ # 参考资料
└── examples.md # 使用示例
提升效果的技巧
- 1. 主题要具体:更详细的主题能生成更好的内容
- 使用热门关键词:包含当前趋势以提升互动率
- 高质量的封面图片:好的图片能显著提高点击率
- 遵守平台规则:确保内容符合抖音的指导方针
- 发布前测试:预览内容以发现任何问题
故障排除
常见问题
问题: 找不到sau命令
问题: 内容生成失败
- - 解决方案: 检查OpenAI API密钥(如使用)或确保AI服务可访问
问题: 封面图片生成错误
问题: 发布失败
安全与最佳实践
- - 发布前审核内容:始终检查生成内容的准确性
- 遵守平台指南:确保内容符合抖音的政策
- 保护个人信息:不要在文章中包含敏感数据
- 保持质量标准:高质量内容能建立受众信任
性能优势
与手动创建文章相比:
- - 内容生成和发布速度快10倍
- AI驱动的内容质量稳定
- 减少手动工作量 - 专注于策略而非执行
- 可扩展的工作流程 - 轻松发布多篇文章
此技能无法处理的情况
如果用户希望:
- - 发布到抖音以外的平台
- 上传视频内容(此技能仅适用于文章)
- 编辑已发布的文章
- 手动控制内容创作的每个方面
在这些情况下,请说明技能的局限性并提供替代方案。