WeChat Sticker Open Platform Publishing Workflow
Agent-agnostic runbook compatible with Claude Code, Codex, Antigravity, Cursor, and any coding agent supporting standard Agent Skills.
For exact live form fields, dropdown values, pixel sizes, and review rejection points, read references/platform-spec.md.
All image processing scripts live in scripts/build-pack.mjs relative to this skill directory (denoted <SKILL_DIR> below). Make sure npm install has been run once in the repository root so sharp is available.
Default Preferences (Apply Unless User Overrides)
- 表情赞赏 (Appreciation / Tipping): Enabled (
接受赞赏checked) by default, including赞赏引导语(5–15 Chinese chars),赞赏引导图(750×560), and赞赏致谢图(750×750). - 版权 (Copyright): Configurable per request; default to
汽水铺if not specified by the user and no artist name is shown in the platform header. - 下载地区 (Download Region): Default to
全球. - Never Auto-Submit: NEVER click
提交(final submit), and do not click保存unless the user explicitly asks. Leave the filled form open in Chrome for human review. - Git Hygiene: Do NOT commit generated sticker pack assets (
<input>/pack/) to Git unless the user explicitly asks.
Step 1: Inspect Input Folder & Read All Stickers
- List image files in the input directory and inspect dimensions, formats, and alpha transparency.
- Verify count is 8–24. If
< 8or> 24, stop and inform the user.
- Verify count is 8–24. If
- View all sticker images (in parallel if supported) to:
- Identify the protagonist (species/character, appearance, recurring props/style).
- Transcribe every caption verbatim in exact sorted filename order.
- Spot any AI typos, garbled strokes, or brand logos and flag them to the user in the summary.
- Draft:
- Non-duplicate Mandarin meaning words (
含义词, ≤ 4 Chinese characters each, no punctuation) - Album name (
名称, ≤ 8 Chinese characters, ≤ 5–6 ideal, no punctuation) - Album intro (
介绍, ≤ 80 Chinese characters, no emoji/special chars) - Humorous appreciation prompt (
赞赏引导语, 5–15 Chinese characters)
- Non-duplicate Mandarin meaning words (
Step 2: Generate Submission Assets (<input>/pack/)
Choose the asset track based on the input images and available tools:
Track A: Source Stickers Are Transparent RGBA PNGs (Offline, Zero API Cost)
Use programmatic extraction first — 100% identity fidelity, zero external API calls, works in any environment:
node <SKILL_DIR>/scripts/build-pack.mjs transparent \
--input "<input_dir>" \
--output "<input_dir>/pack" \
--qa "/tmp/wx-sticker-qa.png"
Optional tuning flags (1-based sticker indices):
--cover <n>: full-body pose with no flat bottom cut--icon <n>: large, centered, front-facing smiling head--banner <n1,n2,n3>: 3 varied poses (left, center hero, right)--guide <n>: endearing/pleading pose for赞赏引导图--thanks <n>: joyful/waving/heart pose for赞赏致谢图--palette <sky|warm|pink>: backdrop palette matching the protagonist
Track B: Source Stickers Are Opaque Full-Bleed Photos (JPG/PNG with Background)
Pick the first available option:
-
Option B1 — API Mode (Recommended for Claude Code / Codex / CLI): If
OPENAI_API_KEY(supports native transparent PNG viagpt-image-1) orOPENROUTER_API_KEYis set:node <SKILL_DIR>/scripts/build-pack.mjs generate \ --input "<input_dir>" \ --output "<input_dir>/pack" \ --theme "<short visual description of the protagonist>" \ --qa "/tmp/wx-sticker-qa.png"Optional overrides:
--provider openai|openrouter,--model <model>,--base-url <url>,--refs <img1,img2>. -
Option B2 — Host Agent Built-In Image Tool (e.g., Antigravity
image-generator):- Resize main stickers:
node <SKILL_DIR>/scripts/build-pack.mjs stickers \ --input "<input_dir>" \ --output "<input_dir>/pack/stickers" - Generate 5 raw auxiliary images referencing 2–4 source stickers:
- Cover raw (1:1): front-facing full/half body, ~12% empty margin on all 4 sides, solid
#00FF00background (no shadows, no white outline, no text, no green props/eyes). - Icon raw (1:1): front-facing head-only (no shoulders/hat/props), ~15% margin on all 4 sides, solid
#00FF00background, no white outline, no text. - Banner raw (16:9 / 15:8): lively warm non-white scene with protagonist + signature props, zero text/logos.
- Appreciation guide raw (4:3): cute "please treat me" pose, warm non-white opaque background, zero text.
- Appreciation thanks raw (1:1): joyful grateful pose with hearts/sparkles, warm non-white opaque background, zero text.
- Cover raw (1:1): front-facing full/half body, ~12% empty margin on all 4 sides, solid
- Run soft chroma-key matte + unmix + despill + exact resizing + QA sheet:
node <SKILL_DIR>/scripts/build-pack.mjs chroma \ --cover-raw "<cover_raw>" \ --icon-raw "<icon_raw>" \ --banner-raw "<banner_raw>" \ --guide-raw "<guide_raw>" \ --thanks-raw "<thanks_raw>" \ --output "<input_dir>/pack" \ --qa "/tmp/wx-sticker-qa.png"
- Resize main stickers:
-
Option B3 — User-Provided Raw Images: If neither API keys nor an image tool are available, resize the main stickers with
stickers, explain which raw auxiliary images are missing, and stop or process user-supplied images withchroma.
Step 3: Mandatory Verification & Visual QA
- Run programmatic validation:
Every file must reportnode <SKILL_DIR>/scripts/build-pack.mjs verify --pack "<input_dir>/pack"[PASS]. - Visually inspect:
/tmp/wx-sticker-qa.png(both#FFFFFFlight mode and#191919dark mode: zero green fringe, zero white halo/stroke, zero clipped ears/fur).<input_dir>/pack/banner.jpg,appreciation-guide.jpg,appreciation-thanks.jpg(zero text, clean framing, no awkward floating flat cuts).
- Fix any visual defects and re-verify before uploading.
Step 4: Fill & Upload on WeChat Sticker Open Platform
Use whichever browser automation tool is attached to your session (chrome-devtools-mcp, @playwright/mcp, or built-in browser agent):
-
If a browser tool is available:
- Connect to the user's Chrome instance (if connection fails with
DevToolsActivePort, ask the user to start Google Chrome and enablechrome://inspect/#remote-debugging). - Never overwrite an unsaved form. Open a new tab to
https://sticker.weixin.qq.com/cgi-bin/mmemoticonwebnode-bin/pages/stickerPage/detail. - If not logged in, stop on the WeChat QR code login page and ask the user to scan. Never bypass login or captchas.
- Fill all 3 sections:
- 上传表情:
静态表情, uploadstickers/01.png..NN.pngin order, enter each含义词, visually verify 1-to-1 thumbnail-to-meaning match. - 基本信息: fill
名称,介绍,版权, uploadbanner.jpg,cover.png,icon.png. - 附加信息: select
类型(卡通表情/其他for pets/illustrations),角色/内容, 1–2表情风格,表情主题,下载地区(全球), check接受赞赏and fill赞赏引导语+ uploadappreciation-guide.jpg&appreciation-thanks.jpg. Leave版权证明unchecked unless authorization docs are provided.
- 上传表情:
- Verify zero red validation errors or upload warnings.
- Inspect both 浅色模式预览效果 and 深色模式预览效果, then switch back to Light Mode.
- STOP without clicking
保存or提交. Leave the tab open and present the full checklist to the user.
- Connect to the user's Chrome instance (if connection fails with
-
If no browser tool is available:
- Write
<input_dir>/pack/form.mdcontaining every pre-filled field (名称,介绍,版权, 逐张含义词, 附加信息选项,赞赏引导语) and the list of verified image paths so the user can upload manually in ~1 minute, and remind them which browser MCP / command enables auto-fill in their client.
- Write