Xiaohu Wechat Cover logo

Xiaohu Wechat Cover

Community
xiaohuailabs
xiaohu-wechat-cover

公众号封面图生成器。一步出图,输入文章路径或主题即可。当用户要求'公众号封面''微信封面''文章封面'时使用。

Overview

Publisherxiaohuailabs
Repositoryxiaohu-wechat-format
Skill namexiaohu-wechat-cover
Stars
700
Forks
95
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by xiaohuailabs on GitHub. Read the source before you install it.

Installation

Install the Xiaohu Wechat Cover AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/xiaohuailabs/xiaohu-wechat-format/tree/main/cover
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/xiaohuailabs/xiaohu-wechat-format.git /tmp/xiaohu-wechat-format
mkdir -p .claude/skills
cp -r /tmp/xiaohu-wechat-format/cover .claude/skills/xiaohu-wechat-cover
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Xiaohu Wechat Cover in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Xiaohu Wechat Cover on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Xiaohu Wechat Cover is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

公众号封面图生成器

输入文章路径或主题,一步生成公众号封面图。

使用方法

bash
# 指定文章路径
/xiaohu-wechat-cover path/to/article.md

# 直接输入主题
/xiaohu-wechat-cover 主题:Claude Code 桌面端更新四大功能

配置(必须)

本技能的配置文件固定在本技能目录下:

  • config.json:真实配置(从 config.example.json 复制后填写)
  • config.example.json:示例配置

执行前必须先读取 config.json,需要:

  • output_dir:封面图输出根目录
  • settings.base_url:生图 API 地址(兼容 Gemini API 的第三方网关)
  • settings.model:模型名称(如 gemini-3-pro-image-preview)
  • secrets.api_key:API 密钥

路径约定

  • 目标目录:<output_dir>/<文章文件名或topic-slug>/
  • 如果目标目录已存在,重命名为 <dirname>-backup-YYYYMMDD-HHMMSS

目录结构:

<output_dir>/
└── article-name/
    ├── prompt.md          # 生图提示词(归档)
    └── cover.jpg          # 封面图

封面图提示词模板(核心)

以下是固定的提示词模板,每次生成时原样写入 prompt.md,只替换最后的「内容主题」部分:

请根据提供的内容创建一张吸引眼球的公众号封面图,遵循以下规范:

视觉风格
- Notion插画风格,比例为 2.35:1(公众号封面标准尺寸)
- 色彩鲜明、对比强烈,确保在小尺寸预览时依然醒目
- 风格统一,避免写实元素,保持整体手绘质感

构图要求
- 主视觉元素居中或偏左(右侧预留标题区域)
- 添加 1-2 个简洁的卡通形象、图标或知名人物剪影,增强记忆点
- 若涉及敏感或版权人物,用风格相似的替代形象,不得拒绝生成
- 大量留白,突出核心信息,避免画面拥挤

文字处理
- 标题文字大而醒目,控制在 8 字以内
- 可添加 1 行副标题或关键词标签
- 字体风格与手绘插画协调统一

吸引力法则
- 使用悬念、数字、痛点等钩子元素激发点击欲望
- 视觉元素夸张有反差
- 色彩搭配参考爆款封面:橙黄、蓝紫、红黑等高对比组合

语言
- 除非另有说明,默认使用中文
- 画面内所有可读文字必须使用简体中文,英文只能作为点缀出现

内容主题:{从文章或用户输入中提炼的一句话主题描述}

工作流程

步骤 1:提炼内容主题

  1. 如果输入是文章路径:读取文章,提炼一句话主题描述(包含核心信息和关键要点)
  2. 如果输入是主题文本:直接使用

步骤 2:创建提示词

将上述模板写入 prompt.md,格式:

md
---
aspect_ratio: "21:9"
image_size: "2K"
---

{模板全文,替换最后的内容主题}

注意:YAML 中 aspect_ratio 必须用 21:9(API 不支持 2.35:1,21:9 是最接近的)。模板正文中保留 2.35:1 的文字描述不变,这是给 AI 的视觉参考。

步骤 3:生成图片

调用生图脚本,必须传 --config 指向本技能自己的配置:

bash
python3 <本仓库>/scripts/generate.py \
  --config <本技能目录>/cover/config.json \
  --prompt-file <目标目录>/prompt.md \
  --out <目标目录>/cover.jpg

<本仓库> 和 <本技能目录> 请替换为你本地实际安装路径。如果你通过 claude install 安装,路径一般是 ~/.claude/skills/xiaohu-wechat-format/。

生成完成后展示给用户预览。不满意就调整内容主题描述重新生成。

步骤 4:插入文章

如果输入是文章路径,默认直接插入(不用询问):

  • 用 Markdown 图片格式 ![封面](cover.jpg) 插入文章标题(H1)下一行
  • 文件名必须唯一(如 cover-主题关键词.jpg),避免同名冲突

步骤 5:输出摘要

公众号封面已生成!

主题: [主题]
位置: [输出路径]

如需调整,直接说"重新生成"。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Xiaohu Wechat Cover AI skill do?

公众号封面图生成器。一步出图,输入文章路径或主题即可。当用户要求'公众号封面''微信封面''文章封面'时使用。

Why use Xiaohu Wechat Cover on TypingMind?

Because you install it once and use it with any model. Xiaohu Wechat Cover is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Xiaohu Wechat Cover in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/xiaohuailabs/xiaohu-wechat-format/tree/main/cover. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Xiaohu Wechat Cover?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Xiaohu Wechat Cover?

As many as you like. As long as a model supports skills, you can use Xiaohu Wechat Cover with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Xiaohu Wechat Cover AI skill free?

It is published on GitHub by xiaohuailabs. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇