Ai Content Tailor

v1.0.0

快速将文章智能改写成公众号、小红书、知乎、抖音四个平台适配版本,保持核心观点并符合平台风格要求。

0· 143·1 current·1 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (multi-platform content repurposer) match the delivered artifacts: a Python CLI that reads local articles and calls OpenAI to produce platform-specific rewrites. Declared dependency (openai) and declared env var (OPENAI_API_KEY) are expected and proportional.
Instruction Scope
Runtime instructions and the Python script only read the user-supplied article files and a local .env for the OpenAI key, then send prompts to OpenAI. This is within scope, but be aware article contents (and any content in the input files) are transmitted to OpenAI — not to any other external endpoints.
Install Mechanism
install.sh is a simple script that checks for python3, pip-installs openai and python-dotenv from PyPI, creates a .env template and output directory, and marks the repurpose.py executable. No downloads from untrusted URLs or archive extraction are performed.
Credentials
Only OPENAI_API_KEY is required (and is declared in skill.json). No unrelated credentials, system config paths, or additional secrets are requested. The key is stored/loaded from a local .env file (plaintext), which is expected but carries the usual secrecy considerations.
Persistence & Privilege
Skill is not always-enabled, does not modify other skills, and only writes files under its own workspace (creates .env and output directory). Uninstall.sh offers optional deletion of those files. No elevated privileges requested.
Assessment
This skill appears to do exactly what it claims: it reads article files you provide and sends them to OpenAI to produce platform-specific rewrites. Before installing, consider: (1) it will transmit the full article text to OpenAI — avoid using sensitive or private content unless you accept that. (2) Your OPENAI_API_KEY is stored in a local .env file (plaintext) in the skill directory; protect that file and revoke the key if compromised. (3) The installer uses pip to install dependencies from PyPI — review packages and run installs in a controlled environment if you prefer. (4) If you want further assurance, inspect source/repurpose.py yourself (it contains the full prompt templates and API calls). Otherwise the package is internally consistent and proportionate to its stated purpose.

Like a lobster shell, security has layers — review code before you run it.

contentvk97994hwajnmcnhpgmpkyshsm182zjgjlatestvk97994hwajnmcnhpgmpkyshsm182zjgjsocial-mediavk97994hwajnmcnhpgmpkyshsm182zjgjwritingvk97994hwajnmcnhpgmpkyshsm182zjgj

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

Content Repurposer - 内容多平台适配器

一键将同一篇文章改写成适合不同平台的版本,节省内容创作者的时间。

功能

  • 📱 多平台适配:公众号、小红书、知乎、抖音四种格式
  • 🤖 AI 智能改写:使用 LLM 调整语气、长度、结构
  • 快速处理:几秒钟生成4个版本
  • 📝 保持核心:保留原文核心观点,只调整呈现方式
  • 🎯 平台优化:符合各平台特性(标题、段落、标签等)
  • 👀 预览功能:预览所有平台版本后再输出

快速开始

1. 安装

clawhub install ai-content-tailor
cd ~/.openclaw/workspace/skills/ai-content-tailor
./install.sh

2. 配置 OpenAI API

export OPENAI_API_KEY="your-api-key"

3. 使用

# 快速改写
ai-content-tailor repurpose article.md --output ./versions/

# 指定平台
ai-content-tailor repurpose article.md --platforms wechat,xiaohongshu,zhihu,dy

# 预览模式
ai-content-tailor repurpose article.md --preview

# 批量处理
ai-content-tailor batch ./articles/ --output ./repurposed/

参数

参数类型必需描述
input路径输入文章(Markdown/Text)
command选项repurposebatch
--output路径输出目录(默认:当前目录)
--platforms列表平台列表:wechat,xhs,zhihu,dy(默认:全部)
--model字符串LLM 模型:gpt-4o/gpt-4o-mini(默认:gpt-4o-mini)
--preview布尔只预览,不保存文件
--tone选项语气:professional,casual,storytelling(默认:自动)

平台特性

公众号 (wechat)

  • 标题:简洁有力,~20字以内
  • 结构:段落清晰,每段2-3行
  • 风格:正式+亲和力
  • 配图提示:[图片] 标注

小红书 (xhs)

  • 标题:爆款风格,表情符号,~10-15字
  • 开头:引起兴趣/痛点/悬念
  • 标签:添加3-5个相关话题标签
  • 风格:口语化,真实分享

知乎 (zhihu)

  • 标题:具体/疑问/干货
  • 结构:观点+论证+案例
  • 风格:理性,专业,有深度
  • 结尾:开放式问题或总结

抖音 (dy)

  • 标题:简短有力,引发好奇
  • 结构:快速切入,分点简短
  • 风格:口语,节奏快
  • 适合口播文案

输入文章要求

  • 格式:Markdown 或纯文本
  • 长度:建议 500-3000 字
  • 内容:完整观点 + 支撑材料
  • 标题:清晰的主题

输出文件

article.md
├── wechat_article.md
├── xhs_post.md
├── zhihu_answer.md
└── dy_script.md

使用示例

# 改写一篇公众号文章为四个平台版本
ai-content-tailor repurpose my_article.md --output ./all_platforms/

# 只生成小红书和抖音版本
ai-content-tailor repurpose my_article.md --platforms xhs,dy

# 用正式语气改写
ai-content-tailor repurpose my_article.md --tone professional

# 批量处理 articles 文件夹
ai-content-tailor batch ./articles/ --output ./repurposed/ --preview

技术栈

  • LLM:OpenAI GPT-4o-mini(默认)
  • 依赖:openai, python-dotenv
  • 配置:~/.openclaw/workspace/skills/ai-content-tailor/.env

License

MIT

Files

5 total
Select a file
Select a file to preview.

Comments

Loading comments…