AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Wechat Article Pipeline

skill-jhwreal-wechat-article-pipeline-skill-wechat-article-pipeline · by jhwreal

Use when a user wants a publish-ready Chinese WeChat/公众号 article package, editable article HTML workbench, article formatting, image-job planning, missing visual jobs, or official WeChat draft-box delivery.

No reviews yet
0 installs
4 views
0.0% view→install

Install

$ agentstack add skill-jhwreal-wechat-article-pipeline-skill-wechat-article-pipeline

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-jhwreal-wechat-article-pipeline-skill-wechat-article-pipeline)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Wechat Article Pipeline? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

WeChat Article Pipeline

Produce a usable WeChat article package from the user's topic, draft, source notes, or existing markdown. Default to one complete local package in the current Codex workspace; call the WeChat API stage only when the user explicitly asks for draft-box delivery or preview.

Core Decisions

  • If the user asks to write, make, package, format, or polish a WeChat/公众号 article, proceed with this skill.
  • If the user gives only a rough idea, infer the brief and write. Ask only when ambiguity would change the article conclusion, audience, legal risk, account selection, or delivery target.
  • If the user asks for "不配图", "只排版", "直接格式化", or similar, use the no-image path.
  • If the user asks to补图, continue, or fix missing assets, use the missing-image path and do not rebuild finished images.
  • If the user asks to导入草稿箱, create a WeChat draft through official APIs only. Never use browser automation or private mp.weixin.qq.com endpoints for delivery.

Workspace Contract

Run commands from the user's current article workspace unless the user names another output location. The scripts live in this skill folder, but final artifacts belong in the workspace:

  • markdown: /files/.md
  • focused markdown: /files/.focused.md
  • image jobs: /files/.image-jobs.json
  • HTML workbench: /files/.html
  • builder job: /files/.job.json
  • publish manifest: /files/.publish-manifest.json
  • images: /image//cover.png, body-*.png, closing.png
  • support files: /files/wechat-article-pipeline//

Do not leave final assets only in $CODEX_HOME/generated_images or a temp directory. Do not write finished article packages inside the skill repository unless the user explicitly asks.

Default Article Path

  1. Inspect existing files/ and image/ before choosing a slug, so old packages are not overwritten.
  2. Draft or revise the article in markdown first. Use [workflow.md](references/workflow.md) for structure and [style-guide.md](references/style-guide.md) for voice, focus marks, technical inline-code rules, and visual grammar.
  3. Place visual placeholders in the markdown only when images are desired: cover, body-1, body-2, ..., closing.
  4. Run the orchestration script once for planning:
python3 /scripts/postprocess_wechat_article.py \
  /files/.md \
  /files/.html \
  --workspace  \
  --article-slug  \
  --jobs-out /files/.image-jobs.json \
  --focused-article-out /files/.focused.md \
  --support-dir /files/wechat-article-pipeline/ \
  --plan-only
  1. Read [image-production.md](references/image-production.md), print the generated image_rules_markdown in the conversation, then use generation_queue[] to generate two candidates per slot, show numbered candidates, select, and save final files as jobs[].output.
  2. Run the same script again without --plan-only to build the HTML, job JSON, crop previews, support files, and publish manifest.
  3. Run verify_wechat_article_package.py /files/.html and fix any failures before delivery.

Fast Paths

No-image formatting:

python3 /scripts/postprocess_wechat_article.py \
  /files/.md \
  /files/.html \
  --no-images \
  --support-dir /files/wechat-article-pipeline/

Use this when the user wants a formatted article without generated visuals. This path skips publish-manifest creation by default; add --publish-manifest only when a later API handoff is intentional. Official WeChat draft creation may still need a cover asset, depending on the account/API requirement; state that clearly instead of silently inventing one.

No body images, but draft-box delivery:

python3 /scripts/postprocess_wechat_article.py \
  /files/.md \
  /files/.html \
  --no-images \
  --publish-manifest \
  --cover-image /image//cover.png

Use this when the user says no配图 but still wants 草稿箱. WeChat draft/add requires a cover thumb_media_id; here --no-images means no body/closing images, not no cover. Generate or reuse exactly one cover asset and do not insert it into the article body.

Missing-image jobs only:

python3 /scripts/postprocess_wechat_article.py \
  /files/.md \
  /files/.html \
  --workspace  \
  --article-slug  \
  --jobs-out /files/.image-jobs.json \
  --missing-only \
  --plan-only

Generate only those listed images, then rerun the default packaging command without --missing-only.

Publishing Path

Read [publishing.md](references/publishing.md) before any draft-box API call. Use the HTML-matched .publish-manifest.json as the handoff file. Run scripts/publish_wechat_api.py first for local dry-run validation; add --create-draft only when the user explicitly asks to导入草稿箱. Send preview only when separately requested. Never call final publish/group-send APIs by default.

Account credentials and publisher defaults live in local .env values, never in article bundles or logs. If multiple accounts are configured and the user did not name one, ask which public account to use before API delivery. If credentials or author fields are missing, ask for the missing values instead of guessing.

Safety Rules

  • Do not overwrite an existing package unless the user asked for that exact slug or file.
  • Do not delete old markdown, images, jobs, manifests, or support files without explicit permission.
  • Do not install dependencies, modify Codex config, switch accounts, or edit .env credentials unless the user explicitly approves that action.
  • Do not start nested Codex runtimes or custom image API runners for normal image work.
  • Keep cover.png as the article hero image. Packaging may derive WeChat crop previews such as cover.wechat-235.png and cover.wechat-1x1.png; do not replace the original hero with a crop.

Acceptance Checklist

Before delivery, confirm:

  • final HTML is under /files/
  • markdown, job JSON, manifest, and image directory use the same slug
  • every requested visual is present or intentionally skipped by --no-images
  • no unresolved {{visual:*}} remains in the HTML
  • embedded HTML does not point to local image files
  • verify_wechat_article_package.py reports status: ok
  • optional WeChat API result file is reported if draft delivery was run
  • final response gives the HTML path first, then markdown/image/manifest paths when relevant

References

  • [workflow.md](references/workflow.md): article structure, interaction defaults, and focus marking.
  • [image-production.md](references/image-production.md): candidate execution, conversation rule display, and selection workflow.
  • [image-rules.json](references/image-rules.json): the single source for image generation, avoid, selection, and image-influence rules.
  • [style-guide.md](references/style-guide.md): writing style, focus marks, and technical inline-code rules.
  • [job-schema.md](references/job-schema.md): image-job and workbench JSON contracts.
  • [publishing.md](references/publishing.md): official WeChat draft/preview API procedure.
  • [assets/templates/wechat-md-workbench.template.v3.html](assets/templates/wechat-md-workbench.template.v3.html): template asset used by scripts; do not read it unless debugging template behavior.
  • README.md, examples/, and .env.example are install/demo assets; do not read them during normal article execution.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.