Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeChat Cover Designer Skill

一个面向 Codex 的开源公众号封面 Skill。用户提供一张原始照片和一篇文章,它会根据照片的主体位置、主色和留白自动设计:

  • 一张约 2.35:1 的公众号横版封面
  • 一张独立构图的 1:1 方图

人物始终来自用户原图图层,不由 AI 重绘;中文标题由本地脚本确定性排版,因此不会换脸、过度美化或生成错字。

安装

skills/wechat-cover-designer 复制到你的 Codex skills 目录:

~/.codex/skills/wechat-cover-designer

重启或刷新 Codex 后即可调用 $wechat-cover-designer

使用

向 Codex 上传一张原图,并提供文章正文或标题,例如:

使用 $wechat-cover-designer,根据这张原图和正文制作公众号封面。
标题突出“判断力”,同时输出横版和 1:1。

Skill 会分析照片并选择配色和版式。原图空间不足时,可以用图片工具生成不含人物和文字的背景底板,再由脚本嵌入原始人物照片。

本地脚本

安装依赖:

python -m pip install -r requirements.txt

直接运行:

python skills/wechat-cover-designer/scripts/compose_cover.py \
  --photo /path/to/photo.jpg \
  --output-dir ./output \
  --headline-1 "真正稀缺的" \
  --headline-2 "是能自己往前走的人" \
  --highlight "自己往前走" \
  --subtitle "技术能学,自驱力很难教" \
  --subject-side right

隐私

仓库不包含任何作者肖像、客户图片或专有模板。用户照片只在执行任务时作为输入,不应提交到仓库。

License

MIT

About

Codex skill that designs adaptive WeChat article covers from an original photo and article text.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages