Introduction¶
Publishing articles on WeChat Official Accounts often stalls at the stage of “finding images, applying templates, and adjusting dimensions.” Technical articles, in particular, require separate architecture diagrams. Doing a round of design work yourself creates a separate workflow from writing the main text. If you are already writing with an Agent in environments like Cursor or Claude Code, a more rational approach is to integrate cover and illustration generation into the same conversation—provided the model side has clear skill instructions and can reliably call Alibaba Cloud Wanx 2.6.
Below, we introduce the SkillHub community skill Wanx 2.6 for WeChat Official Account Cover Generation (coordinates @user_5dda6a29/wan26-text-to-image, version 1.0.1). It encapsulates the calling of Wanx 2.6 into an Agent-readable SKILL.md and local Python scripts, targeting three types of output: Official Account covers, technical architecture diagrams, and paragraph illustrations.
What is this¶
This is a design-media class Agent Skill: it generates images based on titles and text using Alibaba Cloud Model Studio’s Wanx 2.6 text-to-image capability. On SkillHub, the source is marked as community, and the publisher is user_5dda6a29; the author in the skill metadata is “Model Hunter”. The description matches the official page: Generate WeChat Official Account cover images and technical architecture design diagrams using Alibaba Cloud Wanx 2.6 model. The tag requires_api_key=true indicates that you need to configure your Model Studio API Key before use (the common environment variable name is DASHSCOPE_API_KEY).
Core Features¶
Based on the SKILL.md (v1.0.1) within the skill package, the verified capabilities are as follows:
- WeChat Official Account Cover Image: Generates a 16:9 cover based on the title and optional content summary or style description. Output specifications are 1280×720, PNG, watermark-free.
- Technical Architecture Design Diagram: Generates visualization diagrams based on architecture descriptions and optional component lists or chart styles (default size includes 1280×1280 or customizable).
- Article Illustrations: Batch generates illustrations based on paragraph content. The
countdefaults to 3 (max 5), and the default size is1280*720.
The logic command names exposed on the Agent side include generate_wx_cover, generate_tech_diagram, and generate_article_images. Locally, you can also call wan26_generator.py directly, and it supports --json-only to facilitate script parsing of stdout.
Installation and Enablement¶
Install SkillHub CLI (if not installed)¶
First, check if skillhub is already on your machine:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub official installation documentation to perform a full installation (CLI + Default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
Install this Skill¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized. The installation method provided by the SkillHub search results is:
skillhub install wan26-text-to-image --namespace user_5dda6a29 --dir <skills directory>
Common path examples (subject to SkillHub installation documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also ask the Agent in the conversation to install @user_5dda6a29/wan26-text-to-image according to the SkillHub installation instructions.
Python Dependencies and API Key¶
The skill requires Python 3.7+ and depends on dashscope>=1.25.8 and requests. Install within the skill directory:
pip install -r requirements.txt
The API Key is created from the Alibaba Cloud Model Studio Console. Configuration methods include:
- Environment variable
DASHSCOPE_API_KEY(or passapi_key/--api-keyat runtime); - Local
.envin the skill directory (do not commit to version control); - Shared with OpenClaw etc.:
OPENCLAW_ENV_FILE,~/.openclaw/.env,~/.workbuddy/.env, etc., loaded in the order listed inSKILL.md, without overwriting already exported variables.
To interactively write to the local .env, run setup.sh in the skill directory; to check and test, use python3 config.py.
Typical Usage¶
In Agent Conversation (Skill Command Examples)¶
When generating Official Account covers, you can instruct the Agent to use this skill. The parameter forms are as follows (excerpted from the official SKILL.md):
generate_wx_cover title="Deep Dive into Large Model Architecture" content="Transformer, RAG, Agent" style="Tech feel, blue tone"
Technical Architecture Diagram:
generate_tech_diagram description="RAG system architecture, including vector database, retrieval module, generation module" components="Vector DB, Retriever, LLM, Knowledge Base" style="Clear architecture diagram"
Paragraph Illustrations:
generate_article_images content="Working principle of deep learning neural networks" count=3 size="1280*720"
Command Line and JSON Output¶
Execute the Python script in the skill root directory; suitable for pipelines or upstream skill result parsing:
python wan26_generator.py --json-only cover --title "RAG Hallucination Mitigation" --content "RAG, Hallucination"
By default, downloaded images are saved to ~/WorkBuddy/<skill folder name>/. You can override this with --output-dir.
Use Cases and Notes¶
Target Audience: People who frequently write for Official Accounts or technical blogs and want to iterate on covers and architecture diagrams within the same Agent session as the main text; those who possess or can apply for a Model Studio API Key and accept billing based on the number of images.
Limitations and Pitfalls (all from the skill documentation):
- The returned image URLs are valid for 24 hours; they must be downloaded to the local output directory promptly.
- A single generation takes approximately 1–2 minutes; the documentation suggests adopting an asynchronous calling approach to avoid conversation timeout.
- Do not write keys into repositories or share them in screenshots; the skill repository itself does not contain real Keys.
- SkillHub page data (at time of scraping): Category design-media, Rating 100000, Downloads 1302, Installs 53; actual billing and quotas are subject to the Alibaba Cloud console.
Conclusion¶
Wanx 2.6 for WeChat Official Account Cover Generation condenses Wanx 2.6 into three reproducible generation actions (covers, architecture diagrams, illustrations) and supplements them with Key loading, local scripts, and output directory conventions. It is suitable for hanging in the skills directory of environments like Cursor and used in conjunction with the writing process.
- SkillHub Page: https://www.skillhub.cn/skills/user_5dda6a29/wan26-text-to-image
- Official Address: https://api.skillhub.cn/user_5dda6a29/wan26-text-to-image
- Wanx API Reference: https://help.aliyun.com/zh/model-studio/wan-image-generation-api-reference