This handles the entire workflow for adding images to WeChat articles: it analyzes your content to determine where 5-8 images should go, generates or fetches them from public domain sources or AI, uploads everything to ImgBB for permanent hosting, and inserts the markdown links directly into your article. The source priority is smart: public domain art first, then AI generation via Volcano Engine's doubao-seedream API, then free stock photos. It includes a Python script at /tools/upload_image.py that prevents the common problem of temporary URLs expiring. The five-step checklist is thorough, covering everything from image sizing (封面图 at 1200x600px) to alt text. If you're writing long-form Chinese content for WeChat and tired of manually managing images, this systematizes the whole process.
npx -y skills add alchaincyf/huashu-skills --skill huashu-image-upload --agent claude-codeInstalls into .claude/skills of the current project.
为公众号文章自动生成配图、上传到图床、插入Markdown链接的专业能力。
当检测到以下场景时,自动加载此skill:
必配图位置:
可选配图位置:
使用项目已有的 /tools/upload_image.py 脚本
# 调用上传脚本(在Bash中)
python3 /Users/alchain/Documents/写作/tools/upload_image.py <图片URL或本地路径>
# 处理网络图片(如AI生成的临时链接)
python3 /Users/alchain/Documents/写作/tools/upload_image.py "https://example.com/ai-generated.jpg"
# 处理本地图片
python3 /Users/alchain/Documents/写作/tools/upload_image.py "/Users/alchain/Pictures/image.png"
# 脚本自动返回ImgBB永久链接
/tools/README.md - 图片上传脚本说明
mrbeast.jpg, starry-night.jpg)https://i.ibb.co/xxxxx/image.jpg(推荐,永久有效)执行配图任务前,确认以下事项:
根据图片来源优先级获取图片:
# 对每张图片调用上传脚本
python3 /Users/alchain/Documents/写作/tools/upload_image.py <图片URL>

# 检查所有图片引用
grep -n "!\[" "文章路径.md"
# 所有图片链接应该是 https:// 开头的网络链接
/tools/README.md - 图片上传脚本使用说明/tools/upload_image.py - 图片上传脚本/公众号写作/AI文生图API调用.md - AI文生图API说明/公众号写作/images/useless-content/配图Best Practice总结.md - 配图最佳实践A: 会。所以必须调用upload_image.py上传到ImgBB,获取永久链接。
A: 脚本有容错机制,会自动fallback到原URL。但建议检查ImgBB API配置。
A: 推荐配图,特别是长文(3000字以上)。但短文(1000字以下)可以只配题图。
A: 不推荐。本地路径在复制到公众号编辑器后会失效,必须使用网络链接。
/tools/upload_image.py(已有)~/.zshrc)最后更新: 2025-11-07 适用项目: 公众号写作 维护者: 花生
花叔出品 | AI Native Coder · 独立开发者 公众号「花叔」| 30万+粉丝 | AI工具与效率提升 代表作:小猫补光灯(AppStore付费榜Top1)·《一本书玩转DeepSeek》
juliusbrussee/caveman
mattpocock/skills
shadcn/improve
obra/superpowers
forrestchang/andrej-karpathy-skills
vercel-labs/skills