Skills for Real Engineers. Straight from my .agents directory.
huashu-image-upload
Agent skill fromalchaincyf/huashu-skills
文章配图一键生成并上传图床,自动插入Markdown链接。当用户提到"配图"、"插图"、"上传图片"、"文章配图"时使用。
How to install huashu-image-upload
npx skills add alchaincyf/huashu-skills# or add only this skill to Claude Code: copy the folder
huashu-image-upload/
# into
~/.claude/skills/huashu-image-upload/ (all projects)
.claude/skills/huashu-image-upload/ (one project)
1# 图片配图与上传23为公众号文章自动生成配图、上传到图床、插入Markdown链接的专业能力。45## 何时使用此Skill67当检测到以下场景时,自动加载此skill:8- 用户说"现在配图"、"帮我配图"、"添加图片"9- 文章审校完成后提到配图需求10- 检测到文章内容完整但缺少图片1112## 核心功能13141. **分析配图需求**:根据文章内容确定需要5-8张配图152. **获取图片源**:16 - 公共领域作品(Wikimedia Commons、Google Arts & Culture)17 - AI生成图片(火山引擎 doubao-seedream API)18 - 免费图库(Unsplash、Pexels)193. **自动上传图床**:调用ImgBB图床,获取永久链接204. **插入Markdown**:将图片链接插入文章对应位置215. **验证显示**:确保所有图片链接有效2223## 配图数量规范2425- **推荐**:5-8张26- **最少**:3张(题图 + 2张正文图)27- **最多**:不超过10张(避免过度打断阅读)2829## 配图位置策略3031**必配图位置**:32- ✅ 题图(封面图):标题下方,必须33- ✅ 核心章节:每个重点章节配1张3435**可选配图位置**:36- 理论支撑(如引用经典著作)37- 数据可视化(对比图、图表)38- 案例补充(产品截图、示例)3940## 图片来源优先级4142### 1️⃣ 公共领域作品(最优先)43- **来源**:Wikimedia Commons、Google Arts & Culture44- **适用**:经典艺术作品、历史人物肖像、古籍封面45- **优点**:免费、无版权问题、高质量46- **示例**:梵高《星空》、康德肖像47- **操作**:WebFetch获取Wikimedia Commons图片链接4849### 2️⃣ AI生成(推荐)50- **来源**:火山引擎 doubao-seedream-4-0-25082851- **适用**:题图、概念图、抽象主题52- **优点**:原创、可定制、快速53- **操作**:调用API生成图片,返回临时URL5455### 3️⃣ 免费图库56- **来源**:Unsplash、Pexels、Pixabay57- **适用**:题图、概念图、背景图58- **优点**:免费、高质量、商业可用(CC0)59- **操作**:WebFetch搜索 + 下载6061### 4️⃣ 截图/官方素材(需注明来源)62- **来源**:YouTube、B站、产品官网、电影海报63- **适用**:案例图(产品截图、视频截图)64- **注意**:注明来源,合理使用原则65- **操作**:提醒用户自行截图,或生成AI概念图替代6667## 图床上传流程6869### 核心脚本70使用项目已有的 `/tools/upload_image.py` 脚本7172### 上传方式73```python74# 调用上传脚本(在Bash中)75python3 /Users/alchain/Documents/写作/tools/upload_image.py <图片URL或本地路径>7677# 处理网络图片(如AI生成的临时链接)78python3 /Users/alchain/Documents/写作/tools/upload_image.py "https://example.com/ai-generated.jpg"7980# 处理本地图片81…
Excerpt shown under the repository's MIT license.
More skills in huashu-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
