alchaincyf avatar

Huashu Image Upload

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.

skills.sh installs
678
GitHub stars
2.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add alchaincyf/huashu-skills --skill huashu-image-upload --agent claude-code

Installs into .claude/skills of the current project.

Files

图片配图与上传

为公众号文章自动生成配图、上传到图床、插入Markdown链接的专业能力。

何时使用此Skill

当检测到以下场景时,自动加载此skill:

  • 用户说"现在配图"、"帮我配图"、"添加图片"
  • 文章审校完成后提到配图需求
  • 检测到文章内容完整但缺少图片

核心功能

  1. 分析配图需求:根据文章内容确定需要5-8张配图
  2. 获取图片源:
    • 公共领域作品(Wikimedia Commons、Google Arts & Culture)
    • AI生成图片(火山引擎 doubao-seedream API)
    • 免费图库(Unsplash、Pexels)
  3. 自动上传图床:调用ImgBB图床,获取永久链接
  4. 插入Markdown:将图片链接插入文章对应位置
  5. 验证显示:确保所有图片链接有效

配图数量规范

  • 推荐:5-8张
  • 最少:3张(题图 + 2张正文图)
  • 最多:不超过10张(避免过度打断阅读)

配图位置策略

必配图位置:

  • ✅ 题图(封面图):标题下方,必须
  • ✅ 核心章节:每个重点章节配1张

可选配图位置:

  • 理论支撑(如引用经典著作)
  • 数据可视化(对比图、图表)
  • 案例补充(产品截图、示例)

图片来源优先级

1️⃣ 公共领域作品(最优先)

  • 来源:Wikimedia Commons、Google Arts & Culture
  • 适用:经典艺术作品、历史人物肖像、古籍封面
  • 优点:免费、无版权问题、高质量
  • 示例:梵高《星空》、康德肖像
  • 操作:WebFetch获取Wikimedia Commons图片链接

2️⃣ AI生成(推荐)

  • 来源:火山引擎 doubao-seedream-4-0-250828
  • 适用:题图、概念图、抽象主题
  • 优点:原创、可定制、快速
  • 操作:调用API生成图片,返回临时URL

3️⃣ 免费图库

  • 来源:Unsplash、Pexels、Pixabay
  • 适用:题图、概念图、背景图
  • 优点:免费、高质量、商业可用(CC0)
  • 操作:WebFetch搜索 + 下载

4️⃣ 截图/官方素材(需注明来源)

  • 来源:YouTube、B站、产品官网、电影海报
  • 适用:案例图(产品截图、视频截图)
  • 注意:注明来源,合理使用原则
  • 操作:提醒用户自行截图,或生成AI概念图替代

图床上传流程

Sponsors

Details

Repository
github.com/alchaincyf/huashu-skills
First seen
Jun 3, 2026

More from alchaincyf/huashu-skills

All 21

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs