Communitygithub.com

WeChat Sticker Submit

From a single IP frontal photo to a complete set of ready-to-submit WeChat sticker assets: image generation, cropping, automated checks, copy validation, and submission checklist — all scripted (Claude Code skill).

What is WeChat Sticker Submit?

This skill automates the entire workflow for submitting static WeChat sticker sets, from a single IP character reference image to a fully prepared submission directory. It eliminates manual Photoshop work by chaining together scripts for batch image generation (via museav), automatic cropping to platform specifications, copyright/character validation, copy checking, and submission checklist creation. The skill manages a local data model separating persistent IP assets (characters) from regenerable album outputs, with git backup for the former. It supports Claude Code and includes a one-command entry point (`new_album.sh`) that is idempotent and guides users through the required 7-step process: IP registration, copy writing, batch generation, asset fitting, automated checks, submission form generation, and archiving. The AI summary covers the key technical details: zero art skills needed, no Photoshop required, deterministic asset checking (dimensions, size, transparency, similarity, white border detection), and monetization options (tips/paid sets) with clear preconditions.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add webkubor/wechat-sticker-submit

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

WeChat Sticker Submission SOP (Static Stickers)

Input: a frontal photo of an IP character. Output: a directory ready to paste into the platform submission form. Zero art skills required — image generation, cropping, validation, and copy processing are all handled by scripts; no need to open Photoshop.

Static stickers (PNG) follow this document; animated stickers (transparent GIF) have a full solution in references/animated.md (1-bit transparency trade-offs, image-to-video→frame extraction→frame-by-frame matting→compositing four-step pipeline, which IPs suit animation). The two cannot be mixed in the same album — official rules require a uniform type (static or animated) within a set. Video account effect specs are in references/specs.md, Section 3.

SKILL_DIR=~/.claude/skills/wechat-sticker-submit

Data Model: Unique Character, Multiple Albums

WeChat has two independent configurations, one-to-many:

Sticker Character (unique)               Sticker Album / Collection (multiple sets)
Name · Bio · Avatar · Icon  ──┬── Album A: sticker images 8~24 + cover + banner + emotion keywords
                              ├── Album B: another set, reusing the same character
                              └── Album C: ...

So locally, store them in two separate locations. Backup strategy is based on "can it be regenerated?" :

~/.wechat-stickers/ips/<character>/          ← Character config + original drafts, irreplaceable if lost → git backup
├── ip.yml            Name/bio/album list/to-do
├── ip.png            Master frontal photo (used as reference image to ensure character consistency across albums)
├── ip-reverse.txt    Image reverse prompt (read once per character)
├── character-avatar-<name>.png   240×240 transparent
├── character-icon-<name>.png     50×50 transparent
└── source/          Pool of original drafts, source for all albums

~/.wechat-stickers/albums/<character>/<seq>-<album-name>/   ← Output, regeneratable → NOT in version control
├── sticker-images/01-happy.png … NN-xxx.png
├── cover-image-<character>.png · chat-icon-<character>.png · detail-banner-<album>.jpg
├── album.yml · submit.md
└── raw/              Intermediate files before cropping

~/.wechat-stickers/outbox/                        ← Staging for upload, disposable

All data under a single root (~/.wechat-stickers); git only version controls ips/ — the tiering is based on "can it be regenerated?", not "which is more important". ~/Pictures/sticker-archives is a symlink pointing to albums/ for Finder browsing. Customize with STICKER_HOME / STICKER_ALBUMS.

Code is also a single source: this skill directory itself is a git repo (github.com/webkubor/wechat-sticker-submit); ~/dev/github/agent/wechat-sticker-submit is a symlink to it. Previously had two copies synced manually via rsync, only noticed after 8 files drifted. ⚠️ Claude Code does not follow symlinks to load the skill, so the real directory must be directly under ~/.claude/skills/; doing it the other way causes the skill to disappear.

Fastest Path

# Create character once
python3 $SKILL_DIR/scripts/ip.py add Dango ~/Desktop/frontal-photo.png --desc "Bio, ≤80 chars" \
    --source ~/Desktop/dango-drafts          # Include original drafts in the library
python3 $SKILL_DIR/scripts/ip.py sync    # Backup to private repo

# For each new album, one command (auto-placed in correct directory, auto-incremented)
$SKILL_DIR/scripts/new_album.sh --ip Dango --series Daily
$SKILL_DIR/scripts/new_album.sh --ip Dango --series Work     # Second album, becomes 02-Work automatically

# View status anytime
python3 $SKILL_DIR/scripts/ip.py list          # How many albums per character, status of each
python3 $SKILL_DIR/scripts/ip.py show Dango     # Itemized check for a single character
python3 $SKILL_DIR/scripts/ip.py page          # Generate HTML panel and open (thumbnail overview)

new_album.sh is idempotent: re-running with the same series name reuses the same directory, won't create empty shells. First run generates album.yml and stops for you to fill in the copy; re-running the same command continues from there.

Below details what each step does and why — refer here when issues arise.


Step 1 · Save the Character into the IP Library (once, then reused indefinitely)

python3 $SKILL_DIR/scripts/ip.py add <character-name> <frontal-photo> --desc "Bio, ≤80 chars"
python3 $SKILL_DIR/scripts/ip.py list        # List all characters
python3 $SKILL_DIR/scripts/ip.py show Dango   # Progress + to-do + attached albums
python3 $SKILL_DIR/scripts/ip.py sync        # Backup to private GitLab repo

Why an IP library: WeChat's "sticker character" is an account-level asset (its own name/bio/avatar/icon); one character can be associated with multiple albums; covers, banners, and emotion keywords are album-level. Mixing them inevitably leads to issues like "two albums for the same IP have inconsistent bios" or "two characters use the same avatar" — which will be rejected. Also, WeChat has three cross-character hard constraints that only centralized storage can check:

  • Character names for the same author must not duplicate → ip.py add directly rejects duplicates
  • Different characters must not use the same avatar/icon → registration compares against existing characters via differential hashing, warns if too similar
  • A single set can only be associated with one character; changing ownership is allowed only once → new_album.sh validates that album.yml's ip_name matches --ip, otherwise blocks

Where the library lives: Default ~/.wechat-stickers/, override with environment variable STICKER_HOME. Structure:

~/.wechat-stickers/ips/<character-name>/
├── ip.png            Master frontal photo — used as reference during generation, keeps character consistent across albums
├── ip-reverse.txt    English prompt for reverse image reading, read once per character (saves time and quota)
├── character-avatar-<name>.png   240×240 transparent, used on character page
├── character-icon-<name>.png     50×50 transparent
└── ip.yml            Name / bio / attached albums / to-do

Backup is not optional: If the character master is lost, the entire character collection is broken (sticker images can still be regenerated). ip.py sync pushes the entire library to a private GitLab repo, versioning images and metadata together; restoring on another machine is git clone <repo> ~/.wechat-stickers. First sync auto-creates the repo.

The only requirement for the frontal photo: character facing forward, complete, and you own the copyright. Hand-drawn scans, AI-generated images, or photos of your own pet all work; don't use others' works or well-known IPs as references — those are explicitly listed in the audit rules as "unclear ownership."

Both photo-type (actual pet photos) and illustration-type can be submitted, but note the difference: Photo-type sticker images can be non-transparent; illustration-type is recommended to be transparent — however, the cover and chat panel icon for both must have transparent backgrounds, the official rule has no exceptions. For photo-type, you must first remove the background for the cover (museav remove-bg <file>, default birefnet model, works well even on white/low-contrast subjects).

Step 2 · Write the IP Copy (5 minutes, write before generating images)

Copy the template and edit:

mkdir -p ~/Desktop/my-album && cp $SKILL_DIR/templates/album.yml ~/Desktop/my-album/

How to write the seven fields, negative naming examples, 9-emotion selection table, and the difference between emotion keywords and dialogue — all in references/ip-design.md — this is the main reference for beginners.

One key point first: emotion keywords are words users search for in the sticker panel, not dialogue in the image. The image might show "555… I'm fine", but the keyword should be "I'm fine" (≤4 characters, no punctuation, unique within the set).

Write copy before generating images because the 9 emotions in the copy are the prompt list for generation.

Step 3 · Batch Generate Images (one command, ~3 minutes)

$SKILL_DIR/scripts/gen_album.sh --ip ~/Desktop/ip.png --out ~/Desktop/my-album

The script does three things: museav reverse converts the IP appearance into an English prompt (this anchors style consistency across the set) → generates images for the 9 emotions in parallel (--ref reference image + --transparent transparent PNG) → generates a banner base image.

Common parameters: --count 8 (8~24 images, any number works, 8 is most economical), --emotions "happy,sad,tired,..." (change theme as a group, don't mix), --style "watercolor", --jobs 3 (concurrency).

Generation may occasionally fail (upstream timeout/audit block); single images auto-retry once. Re-running only regenerates missing ones, already generated ones are skipped — 2 missing images won't burn 8 quotas. Use --regen to regenerate the entire set.

If you're unsatisfied with the output, regenerate individual images; don't settle — insufficient set variety is the #1 rejection reason, better to generate more and pick. Banner requirements are the opposite of sticker images (opaque, with a scene, no text), so it's generated and cropped separately.

Without museav: Draw your own or use existing images; place them in <directory>/raw/ (8~24 images, any dimensions, sorted by filename), the banner base image named banner-src.png. The cropping script automatically skips files that are not sticker images (banner-src.* / ip.* / 00-* etc.).

Step 4 · Crop Images (one command, seconds)

Generated images are random sizes like 1240×1269; they must be cropped to specification sizes — directly uploading overspec images will not be rejected by the platform, but will be silently compressed and cropped, and you'll discover the subject was cut off only later.

python3 $SKILL_DIR/scripts/fit_assets.py ~/Desktop/my-album/raw ~/Desktop/my-album \
  --cover ~/Desktop/my-album/raw/01.png \
  --icon  ~/Desktop/my-album/raw/01.png \
  --banner ~/Desktop/my-album/raw/banner-src.png

Auto-steps: remove white background → crop excess margins → scale proportionally and center on transparent canvas → compress to size limit. Cover uses frontal half-body/full-body (official guideline: "avoid using only head images"), icon auto-crops frontal head with 12% margin (filling corners would be judged as "square border, rigid right angles").

Step 5 · Automated Checks (FAIL must be zero)

python3 $SKILL_DIR/scripts/check_assets.py ~/Desktop/my-album --copy ~/Desktop/my-album/album.yml

Checks each item against format / dimensions / file size / transparent background / white border / jagged edges / margin ratio / count / pairwise image similarity / copy length and keyword duplicates. Three levels: FAIL must fix, WARN manual confirmation, OK passes. Exit code equals the number of FAILs, can be chained in scripts.

Nuanced check thresholds (empirically tuned, don't bypass by treating them as too strict):

  • White border: Only flagged as FAIL if "the border is visibly whiter than the subject's interior." White subjects like cats or snowmen won't trigger false positives.
  • Similarity: First crops to the subject, then calculates differential hash — otherwise large white backgrounds would make 8 different expressions look identical. Distance <6/64 → FAIL, 6~10 → WARN. AI-generated images almost always have a few WARNs — reference images ensure character consistency at the cost of pose consistency (all frontal seated, only expressions and hand positions change). In one test, a set of 8 images had 3 pairs in the WARN zone (distances 6, 10, 10). The countermeasure is to bind different poses/viewpoints with emotions (stand up, side view, lying down, head only); the default emotion list already does this. ⚠️ This countermeasure hasn't been tested in a controlled experiment — subsequent runs kept hitting rate limits on the generation backend, so no comparable set was obtained. It's a "hypothesis based on symptoms," not a "verified conclusion." Please run your own comparison to see how many WARNs remain.
  • Transparent background: Cover/icon → FAIL, sticker images → WARN (photo-type can ignore), banner/thank you images → reversed, transparent → FAIL.

Step 6 · Fill Out and Submit (follow submit.md)

After checks pass, submit.md is auto-generated — each form field and which image to upload, one item per line:

python3 $SKILL_DIR/scripts/make_submit.py ~/Desktop/my-album   # auto-run by new_album.sh

Assets are named with character name + Chinese emotion keyword, so you know which is which by just opening the folder, no mapping back to numbers:

Dango-Daily/
├── sticker-images/01-happy.png … 08-speechless.png   240×240  ≤500KB  ← upload in order
├── cover-image-Dango.png                              240×240  ≤500KB  transparent
├── chat-icon-Dango.png                                 50×50   ≤100KB  transparent
├── detail-banner-Dango-Daily.jpg                      750×400 ≤500KB  opaque·no text
├── album.yml                         Copy (name/bio/copyright/emotion keywords)
├── submit.md                         Submission checklist ← follow this to fill the form
└── raw/                              Original generation output (not submitted, archived)

Without --copy album.yml, reverts to English naming (main_240/01.png, cover_240.png…), both check and submission scripts accept both formats.

Submission portal (paths use two sets of CGI prefixes; guessing will result in 404; all recorded in references/platform.md):

Home/Login  https://sticker.weixin.qq.com/cgi-bin/mmemoticonwebnode-bin/pages/home
Register    https://sticker.weixin.qq.com/cgi-bin/mmemoticonwebnode-bin/pages/signup

Login only supports "WeChat scan" and "account password" — the scan step cannot be automated by the agent — use ego-browser's handOffTaskSpace to return the browser to the human.

The only irreversible step is here: After a set is attached to a character, you have only 1 chance to move it to another character (and must first delete from the original character, then add to the new one). Confirm the character assignment before submission — the character collection is the entry point for related recommendation traffic.

Step 7 · Archive and Notify

Upload original masters to R2 per global convention (cs image upload), do not add new images to picx. Desktop directory is only a temporary cutting area. Broadcast submission results via cs notify.


Monetization (Optional, with prerequisites — don't wait until submission to discover them)

Tips: Requires artist profile approval + binding a WeChat ID/merchant account + no violations; submission must include a guide message (5~15 characters), guide image 750×560, thank you image 750×750 (both opaque, ≤500KB). Works derived from emoji assets cannot enable tips.

python3 $SKILL_DIR/scripts/fit_assets.py ~/Desktop/my-album \
  --reward-guide raw/banner-src.png --reward-thanks raw/02.png

Paid sets: Requires at least 1 published set + no violations in the past three months; price is fixed at 10 WeChat Credits per set, non-customizable; free↔paid cannot be converted in either direction; paid and effects works cannot be reposted on other platforms; once an individual account applies, identity info cannot be changed again, and cannot be upgraded to an enterprise account. Details in references/specs.md, Section 6.

Audit Red Flags Quick Reference

Insufficient set variety (most common) · Text-only stickers lacking creativity · Unclear rights (fan art/doujin/composite materials) · Unauthorized real person portrait · Resembling official WeChat works · QR codes/contact info/social accounts/bank accounts in images · Restricted topics (medical drugs, tobacco, alcohol, finance, cryptocurrency, weapons; national flags, anthems, emblems, RMB, government documents; military flags, party flags, league emblems require authorization).

Full text and additional notes for AI-generated images in references/audit.md.

File Index

FilePurpose
references/specs.mdOfficial production spec full text (sticker/character/effects/artist/tips/paid) — source of truth for numbers
references/audit.mdOfficial audit standard full text + high-frequency rejection list
references/ip-design.mdIP naming / bio / emotion selection / keyword writing (primary reading for beginners)
references/platform.mdPlatform map: real URLs, login methods, account prerequisites (paths can't be guessed, don't guess)
references/animated.mdAnimated stickers: transparent GIF 1-bit constraints, four-step pipeline, IP suitability assessment
references/pitfalls.mdPitfalls encountered during skill development: Chinese bash three traps, CLI output channels, image check false positives
templates/album.ymlCopy template, parseable by check scripts
scripts/ip.pyIP library: register character / track progress / cross-character constraint validation / HTML panel / backup to private repo
scripts/page_tpl.pyPanel styling and rendering (called by ip.py page)
scripts/new_album.shOne-click entry, idempotent: copy → generation → cropping → checks → submission list
scripts/lint.shScript gate: converts pitfalls into runnable checks
scripts/gen_album.shSingle frontal photo → complete set of raw images (museav generation backend)
scripts/fit_assets.pySource image → compliant dimension assets (PIL-only dependency)
scripts/check_assets.pyAsset + copy automated checks, exit code = FAIL count
scripts/make_gif.pyTransparent PNG sequence → 240×240 transparent GIF, auto-compressed to 500KB
scripts/make_submit.pyGenerate submit.md submission checklist (field → value/file mapping)

Specs are dynamic documents; the official version may change. Numbers are based on references/; if they conflict with the current platform page, the platform page takes precedence, and this skill should be updated accordingly.

Related Skills