Use this skill when the user wants a full WeChat public account article workflow, not just a draft.
The workflow always includes:
wenyanDo not skip the humanizer pass. Do not skip the 10-topic selection step unless the user explicitly gives a final topic and says to proceed directly.
Use this skill when the user says or implies any of these:
Do not use this skill for:
Before publishing to a real WeChat draft box, the recipient environment must have:
wenyan on PATH or as a project-local executableIf any publishing prerequisite is missing, try to resolve the local tooling gap when the environment allows it, then continue the research, draft, humanizer, image, and layout phases. Report the exact missing publishing setup as a concrete blocker instead of pretending publication succeeded.
Run this preflight before doing long article work whenever the user asks to publish to the WeChat draft box. Do not wait until the end to discover that publishing cannot run.
Find a usable Wenyan command in this order:
wenyan on PATH./node_modules/.bin/wenyan or .\node_modules\.bin\wenyan.cmdnpx -y @wenyan-md/cliVerify the command with:
wenyan --help
wenyan publish --help
wenyan credential --help
If no Wenyan command is available, install or guide setup:
@wenyan-md/cli locally or globally.npm install -g @wenyan-md/cli, then stop before the publication step.Do not assume this skill author's node_modules exists on the recipient machine.
Wenyan can publish with either:
WECHAT_APP_ID and WECHAT_APP_SECRET--env-file .envwenyan credential --setCheck for credentials without printing secrets:
WECHAT_APP_ID and WECHAT_APP_SECRET are present in the environment.wenyan credential --location and check whether the credential file exists and appears configured, but do not print the file contents.If credentials are missing, tell the user exactly what is needed:
WECHAT_APP_ID=your_wechat_official_account_app_id
WECHAT_APP_SECRET=your_wechat_official_account_app_secret
Then suggest one of these setup paths:
.env file and publish with --env-file .envwenyan credential --set and enter the AppID/AppSecret interactively--server and --api-keyNever write credentials into the skill package. Never print WECHAT_APP_SECRET in the response or logs.
Before promising publication, remind the user that the machine or server calling the WeChat API must satisfy the WeChat Official Account IP whitelist requirement. If the local IP is not stable or not whitelisted, use Wenyan server mode or a proxy path instead of repeatedly retrying local publication.
After preflight, state one of these outcomes:
ready_to_publish: Wenyan, credentials, writable workspace, and likely API path are available.can_prepare_only: Writing, images, layout, and Markdown can be completed, but publication is blocked by missing Wenyan, missing credentials, or IP/API setup.Only attempt the final wenyan publish command when the outcome is ready_to_publish.
Always browse the web for up-to-date topics. Use current Baidu hot search and Toutiao hot topics or reliable hot-topic aggregators that reflect them.
Your output to the user at this stage is always 10 topic options.
For each option, include:
Do not start writing the article before the user picks a topic, unless the user explicitly overrides this rule.
After the user selects a topic, verify the core facts with current primary or high-credibility sources.
Prefer:
Always confirm dates and the actual event context before writing. If a quote or stat is central to the article, verify it first.
Write a full first draft before polishing. The first draft should already have a clean WeChat structure:
The article should read like a mature public-account piece, not a report or memo.
After the first draft is complete, run a separate humanizer refinement pass.
This is mandatory. Treat it as an explicit second phase, not a vague intention during drafting.
During the humanizer pass:
The goal is not to make the text casual. The goal is to make it read like a real writer with judgment.
If helpful, keep both files:
*_draft.md for the initial version*.md for the humanized versionImages must be strongly related to the article, not generic filler.
Prefer images from the reporting pages or official pages used in the research phase. Good sources include:
Avoid random stock-style images when event photos exist.
If the researched webpages do not provide usable article images, use an appropriate draw-skill-main visual tool only for explanatory body visuals, such as a logic diagram, timeline, process chart, data graphic, or concept illustration. This fallback is for helping readers understand the issue, not for pretending to have documentary event photos.
When using generated or drawn visuals:
Remote image hotlinks can fail during wenyan publish.
Preferred workflow:
wenyan upload them during publicationUse 3 to 5 body images when available. Add a caption for each image with source attribution, or an honest generated-visual label when the image was created as an explanatory illustration.
When the article Markdown already exists and the image set has been selected, run a separate layout pass before publication.
This layout pass is mandatory.
Use the local style guide at:
references/wechat-layout-style-guide.mdLoad that bundled file from this skill package and treat it as the house standard for WeChat article presentation. Do not depend on a user-specific absolute path for the style guide.
During the layout pass, reshape the article so it follows the house style:
The layout pass must also enforce the writing constraints tied to this style:
Do not treat the style guide like a web design brief.
Translate it into WeChat-safe structure:
If a design idea from the style guide depends on free-form web layout, simplify it into structure, spacing, image choice, or heading rhythm rather than forcing unsupported formatting.
Prepare the article as a Wenyan-compatible Markdown file with frontmatter:
---
title: Article title
cover: ./relative/path/to/cover.png
---
The cover field must point to a compliant sourced or user-provided cover image. Do not set the cover to a self-created image, AI-generated image, draw-skill-main output, schematic diagram, or editorial illustration. If a compliant cover is unavailable, do not fake one; surface the blocker and ask for a cover source or permission to publish only after a proper cover is available.
The body should include:
Default visual direction for this workflow:
lapis as the default Wenyan theme unless the user requests another themePublish only after the preflight outcome is ready_to_publish.
For environment-variable or credential-store publication, use:
wenyan publish -f "article.md" -t lapis -h solarized-light
For .env based publication, use:
wenyan publish -f "article.md" -t lapis -h solarized-light --env-file ".env"
For Wenyan server publication, use:
wenyan publish -f "article.md" -t lapis -h solarized-light --server "https://api.example.com" --api-key "your-api-key"
If wenyan is not on PATH, use the recipient project's local executable, such as .\node_modules\.bin\wenyan.cmd, or report that Wenyan is not installed. Do not assume the current working directory contains this skill author's node_modules.
If publishing requires WeChat credentials, use the configured local environment values or the local credential setup already present on the recipient's machine.
Default publication target is the WeChat draft box.
When the user asks for draft-box publication, first run the publishing preflight and report either ready_to_publish or can_prepare_only.
Unless the user already gave a final topic, the first substantial response after preflight and research should be the 10-topic shortlist.
After topic selection, the execution pattern is:
ready_to_publishBefore claiming completion, verify:
If publishing fails because of remote image instability, switch to local copies and retry.
共 3 个版本