文章配图一键生成并上传图床,自动插入Markdown链接。当用户提到"配图"、"插图"、"上传图片"、"文章配图"时使用。
72
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
为公众号文章自动生成配图、上传到图床、插入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》
35e7cf3
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.