Use this skill to inspect a WeChat Mini Program or Mini Game repository, verify upload prerequisites, and submit an experience build with the bundled Node.js helper. Prefer the helper script over handwritten commands so parameter validation and project-type detection stay consistent.
Read project.config.json first. Capture appid, compileType, miniprogramRoot, and cloudfunctionRoot.
If the user has not confirmed the upload private key or miniprogram-ci, start with:
node scripts/upload_experience.js --project <repo-path> --setup
Setup mode creates the default local config, prepares the default key path, creates a root package.json if the repo does not have one, and installs miniprogram-ci.
Run:
node scripts/upload_experience.js --project <repo-path> --doctor
Use the doctor output to tell the user exactly what is missing. Read references/prerequisites.md when you need the exact operator steps or troubleshooting notes.
Run:
node scripts/upload_experience.js --project <repo-path> --private-key <private-key-path> --dry-run
Use --dry-run to validate paths, infer miniProgram vs miniGame, and show the resolved upload plan without calling WeChat CI.
Use the same helper with explicit metadata:
node scripts/upload_experience.js `
--project <repo-path> `
--private-key <private-key-path> `
--robot 1 `
--version 2026.03.11-1 `
--desc "Codex experience upload"
On success, return the resolved project type, appid, version, robot number, and the upload result summary. On failure, separate configuration errors from operator-only actions such as missing upload key, IP whitelist restrictions, or absent miniprogram-ci.
If the user did not specify version, generate a timestamp-based version string. If the user did not specify desc, generate a short description that includes the version.
Resolve upload inputs in this order:
--private-key and --robotWECHAT_PRIVATE_KEY_PATH1 or generated version stringsPrefer CLI and environment variables for public examples. Use external config only for local operator convenience.
Share this skill with the following onboarding steps:
Each user must use their own .key file for the target app. Do not redistribute a private key with the skill.
Recommended location on Windows:
%USERPROFILE%\.codex\wechat-ci\keys\<appid>.key
%USERPROFILE%\.codex\wechat-ci\config.json--private-key WECHAT_PRIVATE_KEY_PATHFirst command after setup:
node scripts/upload_experience.js --project <repo-path> --doctor
Use doctor mode to confirm the key path and miniprogram-ci installation before any upload attempt.
miniprogram-ci is missing, stop at doctor mode and tell the user what to prepare..key files or machine-local config to source control.miniprogram-ci installation in the target repository. If it is missing, ask the user to install it or install it yourself only when permitted.compileType: "game" as a Mini Game upload unless the user explicitly overrides the project type.cloudfunction/ directory, warn that code upload and cloud function deployment are separate operations unless the user already automated both.scripts/upload_experience.jsproject.config.jsonminiProgram or miniGame--config, WECHAT_CI_CONFIG, or %USERPROFILE%\.codex\wechat-ci\config.jsonminiprogram-cici.upload(...)references/prerequisites.md共 1 个版本