本文へ移動
cccskills
無料GitHub で公開

wechat-ai-app-ops

Operate the WeChat Official Account AI-application workflow for articles, weekly digests, rich formatting, draft-box updates, and local handoff. Use for Agents, MCP, Skills, tool calling, workflows, and open-source AI updates; exclude Xiaohongshu and Xianyu.

インストール方法を見る

含まれるファイル(5)

  • SKILL.md9.1 KB
  • agents/openai.yaml335 B
  • references/draft-box-workflow.md3.7 KB
  • references/formatting-and-visuals.md7.8 KB
  • references/weekly-series-workflow.md2.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

WeChat AI App Ops

Use this skill for the user's WeChat Official Account AI application content workflow, usually inside an accounts or content-operations repository. Stay inside the WeChat content lane unless the user explicitly asks for Xiaohongshu or Xianyu.

Quick Workflow

  1. Check repository state first:
git status --short --branch
  1. Read the current handoff, manifest, prediction, article, source list, and target article directory before editing or API calls.
  2. Classify the article as weekly or flexible.
  3. For weekly articles, review the previous weekly article in the same series before drafting.
  4. If a separate raw drafting model/window is used, apply content-model-handoff: raw copy is not final copy; the WeChat role still owns source discipline, article structure, preview quality, draft-box state, and publish gates.
  5. Improve the article as a WeChat article, not a cold changelog: use a strong hook, human judgment, varied section structures, visible reader stakes, and explanatory image anchors. Before generating preview or draft-box handoff, run a humanizer-zh pass to remove template phrasing, fake reader emotions, repetitive contrast structures, and AI-ish section labels without changing facts or attribution.
  6. If the article feels visually dry, add useful illustrations or source screenshots before draft-box update. Save final media inside the WeChat article folder and configure the repository's inline-image manifest.
  7. For formal public formatting, prefer gzh-design when installed: choose a theme by article type, generate a clean body HTML plus preview wrapper, and run validate_gzh_html.py until ERROR=0. Use wechat-article-formatter as the legacy fallback.
  8. Write to the WeChat draft box only when authorized. Draft-box write is not publishing.
  9. Before publish, read the latest manifest and run the publish gate. Never publish unless the user explicitly authorizes publishing in the current turn and the gate passes.

References

  • For weekly/flexible article continuity, read references/weekly-series-workflow.md.
  • For draft-box API guardrails, .env.wechat.local, IP whitelist handling, and verification, read references/draft-box-workflow.md.
  • For article tone, anti-AI texture, varied subhead structures, inline illustrations, and brand/avatar assets, read references/formatting-and-visuals.md.

Conditional Related Skills

Load these only when the article task needs that capability. If a related skill is not installed in the current Codex environment, state that and continue with the closest safe fallback:

  • content-model-handoff: use when a separate model/window produces raw article copy, title pools, or section drafts. Raw text is input to the WeChat role, not a publish-ready article.
  • gzh-design: preferred for formal WeChat article layout when available. Use it to choose a theme, produce clean body HTML + preview wrapper, and validate with validate_gzh_html.py to ERROR=0.
  • wechat-tech-writer: use for AI technology topic research, source gathering, and first-pass Chinese WeChat article drafting.
  • humanizer-zh: use for Chinese article copy humanization, anti-AI texture, and final voice polish before WeChat preview or draft-box handoff.
  • story-deslop: use only when a WeChat article contains narrative prose, story fragments, or dialogue that needs a natural storytelling pass; do not apply it to ordinary AI/tooling analysis copy.
  • wechat-article-formatter: use as a legacy fallback when gzh-design is unavailable or the repository still relies on the older Markdown-to-WeChat HTML formatter.
  • guizang-social-card-skill: use for WeChat covers, inline social-card-style illustrations, explanatory Swiss-style figures, and image-rich article assets.
  • imagegen: use for new bitmap brand assets such as avatars or non-vector visual concepts; copy final project assets into the article directory.

Local Commands

Prefer the repository's documented node command or system node. Use Codex bundled Node only when system node is unavailable or denied; discover the bundled path from the active Codex runtime/workspace dependencies instead of hard-coding a personal machine path.

On Windows PowerShell, read Chinese article files with explicit UTF-8 and avoid trusting garbled terminal output:

Get-Content -Raw -Encoding UTF8 content\wechat\<date>\article.md

For repositories that have migrated to account-first content layout, prefer the repository's documented paths such as:

content/accounts/<account>/platforms/wechat/<article-dir>/
content/accounts/<account>/platforms/wechat/automation/daily-runs/<date>.json

Older repositories may still use:

content\wechat\<date>

Use the path documented by the target repo; do not create a parallel legacy directory just because an older command example says content/wechat.

If a Node one-liner needs to match Chinese text, prefer reading UTF-8 files directly or use Unicode escapes in the check script instead of piping raw Chinese through a shell that may recode it.

node --check scripts\wechat\create-draft.cjs

For a repository that uses scripts/wechat/create-draft.cjs, the draft command usually looks like:

node scripts\wechat\create-draft.cjs <article-directory>

Use WECHAT_MP_DRY_RUN=1 with WECHAT_MP_HTML_PREVIEW_PATH to generate the local HTML preview without WeChat API calls.

When updating an existing draft, set these only for the current shell:

$result = Get-Content -Raw -Encoding UTF8 content\wechat\<date>\wechat-draft-result.json | ConvertFrom-Json
$env:WECHAT_MP_UPDATE_DRAFT_MEDIA_ID = $result.draft_media_id
$env:WECHAT_MP_THUMB_MEDIA_ID = $result.thumb_media_id

Formal GZH Layout And Draft Gate

When the article is moving toward a real WeChat draft:

  1. Format gate. Prefer gzh-design if installed. Pick the theme by article type, generate the clean body HTML and preview wrapper, and run the validator until ERROR=0. Do not treat an unvalidated preview as publish-ready.
  2. Media gate. Preserve source screenshots, factual images, charts, and inline illustrations. Redesign explanatory cards to match the selected theme, but keep factual screenshots as factual screenshots with reader-facing captions.
  3. Draft-box gate. Updating the draft box is a write to the WeChat draft, not a publish. Reuse existing draft_media_id when updating the same article unless the user asks for a new draft.
  4. UI-prepare gate. Before publish, verify or ask the user to verify original/comment/appreciation states. If the draft content changed after the last UI prepare, the old UI prepare report is stale.
  5. Manifest gate. Publish automation must read the latest manifest/handoff file and stop on no_manifest, missing paths, stale UI prepare, low prediction score, too many revisions, window mismatch, or status not ready_for_publish.

Completion criterion: the final handoff can state the article path, prediction path, clean HTML/preview path, draft result, UI prepare state, manifest status, and whether the publish command was not run or was run with explicit current-turn approval.

Non-Negotiables

  • Never publish by default. Draft-box write is not publishing.
  • Never run a final publish command from memory. Read the latest manifest / handoff file first and stop if it is missing or stale.
  • A publish gate should stop unless all required conditions pass: manifest status is ready_for_publish; prediction score meets the repo threshold; revision-round limit is not exceeded; required article, prediction, preview, draft result, and UI-prepare report paths exist; original and comments are enabled or user-confirmed; publish window matches or the user explicitly overrides it.
  • appreciation=unknown may be allowed when the repo policy says so, but original and comments should not be silently ignored.
  • If the draft box was updated after the latest UI prepare / settings check, the old report is stale. Re-run UI prepare or ask for explicit manual confirmation before publishing.
  • Never write AppID/AppSecret into repository files, article files, result JSON, or responses.
  • Do not print secrets when checking .env.wechat.local; check presence only.
  • Do not modify content/xiaohongshu, content/xianyu, or unrelated directories unless explicitly asked.
  • If updating an existing WeChat draft, reuse the existing draft_media_id and thumb_media_id where possible instead of creating duplicate drafts.
  • Do not leave generated WeChat assets only under .codex/generated_images; copy final assets into content/wechat/....
  • Body images must be uploaded through the WeChat article image path before API update; do not send draft content with local filesystem image paths.
  • After API calls, report title, article path, cover path, source list path, draft media_id, and explicitly state whether it was only written to draft box and not published.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Route CEO-first multi-window work into owner-led role loops. Use for 总控/CEO、架构/CTO、内容主编、角色派发与复用、模型路由、来源窗口回调、role-windows 台账、skill 命中统计或 multi-window loop engineering。

日本語の概要は準備中です。原文の説明を表示しています。

Dirtytrii/codex-skills112026年10月9日 更新

Read-only first workflow for diagnosing application incidents by collecting service, log, network, configuration, and functional evidence before proposing any fix.

日本語の概要は準備中です。原文の説明を表示しています。

Dirtytrii/codex-skills112026年10月9日 更新

Run user-authorized black-box web security tests and evidence-based reports. Use for 黑盒安全测试、渗透测试、数据泄露、未授权访问、公开 JS/API、登录爆破防护、CORS 或安全响应头检查。

日本語の概要は準備中です。原文の説明を表示しています。

Dirtytrii/codex-skills112026年10月9日 更新

Choose the narrowest reliable browser surface across Codex Browser, signed-in Chrome, Playwright CLI, and platform scripts. Use for browser automation, logged-in workflows, UI inspection, screenshots, form filling, publish previews, or frontend QA.

日本語の概要は準備中です。原文の説明を表示しています。

Dirtytrii/codex-skills112026年10月9日 更新

提议并执行 rubric 或 bucket 升级。两种模式:**完整 rubric bump**(最高风险动作,5 步强制 + 跨模型审核)和 **--bucket-only 轻量重校**(只换 bucket 边界,不动 rubric 公式)。**Phase 2 强制走 cheat-score-blind sub-agent 给校准池重打分**——不接受 self-scored fallback。触发词:"升级 rubric"/"bump rubric"/"更新公式"/"我想加一个维度"/"调整权重"/"重校桶"/"recalibrate bucket"。

日本語の概要は準備中です。原文の説明を表示しています。

Dirtytrii/codex-skills112026年10月9日 更新

初始化 cheat-on-content 内容校准工作区。仅在用户明确开始该工作流,或其子 skill 确认缺少 .cheat-state.json 时使用;不响应一般项目初始化、安装诊断或 Codex 首次会话。

日本語の概要は準備中です。原文の説明を表示しています。

Dirtytrii/codex-skills112026年10月9日 更新

Dirtytrii のスキルをすべて見る

このスキルの問題を報告する