novel-to-wechat
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "novel-to-wechat" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1ab4b54a6bbb3945dc77e1e3712307427393cd06a93b43a16b0efde228209345. Verify the upstream source and version against https://skillhub.cn/skills/user_f556ffce/novel-to-wechat before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Automatically generate covers, content-related illustrations, and ready-to-copy WeChat Official Account posts for Chinese short stories, and provide an API, browser assist, and a confirm-and-publish adapter.
Introduction source: third_party · user_f556ffce · 1.3.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "novel-to-wechat"
description: 把中文短篇小说自动生成封面、内容相关插图和可直接复制的微信公众号成稿,并提供 API、浏览器辅助和确认后发布适配器。Novel to WeChat
Produce a publication package for each story while preserving the original prose. Treat chaptered and continuous stories as equally supported inputs. This workflow is agent-neutral: it can run from Codex, Claude Code, Cursor, or any other agent that can read files, run scripts, call an image model, and write output files. The $novel-to-wechat form is an optional Codex shortcut, not a requirement.
Before starting, read references/agent-compatibility.md and map each capability to the host agent's tools.
Publishing is staged and opt-in. Default to copy-only; never open a publishing action unless the user asks for it. Read references/wechat-publishing.md before using draft-fill or publish-after-confirmation.
The publishing handoff is adapter-based, not a promise that every host can control the WeChat editor. Prefer the Official Account API when the user has a configured backend; otherwise use the local browser helper or an already logged-in browser automation session, with manual copy/paste as the guaranteed fallback.
Agent-neutral invocation
Users can invoke this workflow in ordinary language, for example:
- “Use the novel-to-wechat workflow on these Markdown stories and return a copy-ready WeChat article.”
- “Turn this story into a cover, paragraph-level illustrations, and self-contained HTML.”
In Codex, $novel-to-wechat is also available. In Claude Code and other agents, use the skill name or the natural-language request; do not assume Codex-specific commands, paths, or bundled runtimes.
Apply defaults
- Use
full-autounless the user requests prompt review, prompts only, or a partial rework. - Create one body illustration for every real chapter with prose.
- For prose without chapters, select semantic scene beats and place images after suitable existing paragraphs. Never invent visible chapter headings.
- Preserve every body paragraph. Do not polish, rewrite, abridge, continue, or repartition the story unless requested.
- Keep separate stories in separate packages. Build a batch index instead of merging them.
- Avoid blocking questions when title, author, or art style can be inferred safely. Report assumptions in the result.
- Pause before image generation only when the requested mode requires it, the plan exceeds 8 body images, or a visual ambiguity would materially change the work.
- Never publish automatically. Treat “生成成稿”“填入公众号后台”“保存草稿”和“发布” as separate user-visible actions.
Run the workflow in order
1. Normalize the source
Use the host agent's declared Python runtime or isolated virtual environment for every Python script. If the host provides a bundled workspace runtime, prefer it; otherwise use a compatible isolated Python. Do not assume Codex-specific runtime paths.
For pasted prose, save the text verbatim as a task-local UTF-8 Markdown file. For each input story, create its own working directory and run:
<workspace-python> scripts/ingest_novel.py <input> --out <story-dir>/source.json
Inspect source.json. Correct only deterministic parsing mistakes such as a title mistaken for a paragraph. Do not alter the prose.
2. Plan art and placements
Read references/planning-and-prompts.md completely before planning images.
Read all source paragraphs, then create:
<story-dir>/visual-bible.json<story-dir>/illustration-plan.json
Use paragraph IDs from source.json for every source basis and placement. Let semantic reasoning choose scenes; do not use word count alone to choose a picture. Use word count only as a density guardrail for continuous prose.
For chaptered sources, cover every real chapter that contains prose. For continuous sources, identify internal scene, time, place, goal, conflict, perspective, and emotional changes without exposing those internal beats as headings in the final article.
3. Commit prompts before images
Create both files before invoking image generation:
<story-dir>/prompts/prompts.json<story-dir>/prompts/prompts.md
Ensure every planned image has exactly one prompt and every prompt cites source paragraph IDs. Keep prompts.md readable in Chinese; keep prompts.json machine-valid and complete.
Run the preflight gate:
<workspace-python> scripts/validate_story_package.py \
--source <story-dir>/source.json \
--plan <story-dir>/illustration-plan.json \
--prompts <story-dir>/prompts/prompts.json \
--report <story-dir>/qa-preflight.json
Fix every error before proceeding. In review-prompts mode, stop here and show the prompt book. In prompts-only mode, deliver the planning files and finish.
4. Generate images
Use the host agent's configured image-generation capability for all generative creation and visual revisions. If no image model is available, deliver the complete prompt book and a prompts-only package, or use user-supplied images; never silently substitute stock search or programmatic drawings.
Generate the text-free cover-master first. When a character appears in multiple images, establish a character/style reference and reuse it wherever the image tool supports references. Generate body illustrations in reading order, carrying forward the visual-bible anchors.
Save each result under the exact image_file declared in the plan. Do not ask the image model to render Chinese titles, captions, watermarks, or logos.
Check each image against both its source paragraphs and prompt. Automatically revise a failed image at most twice. Preserve accepted images during partial retries.
Run the image gate:
<workspace-python> scripts/validate_story_package.py \
--source <story-dir>/source.json \
--plan <story-dir>/illustration-plan.json \
--prompts <story-dir>/prompts/prompts.json \
--images-dir <story-dir>/images \
--require-images \
--report <story-dir>/qa-images.json
Treat an image timestamp earlier than prompts.json as a hard failure.
5. Compose cover variants
Use the cover script only for deterministic crop and accurate Chinese typography; use the image-generation tool for any creative image change.
<workspace-python> scripts/compose_cover.py \
<story-dir>/images/cover-master.png \
--out-dir <story-dir>/images \
--title "<title>" \
--author "<author>"
Adjust --focus-x and --focus-y if the feed crop cuts off the subject. Keep the feed crop text-free. Generate title text only in header-title.jpg.
6. Render the publishing package
Read references/output-contract.md completely before rendering.
<workspace-python> scripts/render_wechat.py \
--source <story-dir>/source.json \
--visual-bible <story-dir>/visual-bible.json \
--plan <story-dir>/illustration-plan.json \
--prompts <story-dir>/prompts/prompts.json \
--images-dir <story-dir>/images \
--out-dir <story-dir>
Generate a self-contained HTML copy page with embedded images and inline styles. Generate a DOCX fallback unless the user explicitly declines it.
Also generate wechat-draft-payload.json as the stable handoff for API, browser-extension, and other-agent adapters. It must contain title, author, cover/body file paths, illustration IDs, and the explicit confirmation requirement; never put AppSecret or browser credentials in it.
7. Verify before delivery
Run structural QA:
<workspace-python> scripts/verify_output.py <story-dir>
For every generated DOCX, use the host agent's document renderer (or LibreOffice) to render all pages to PNG. Set FONTCONFIG_FILE to this skill's assets/fonts.xml when the renderer supports it so isolated LibreOffice profiles can discover CJK system fonts. If DOCX rendering is unavailable, still deliver HTML/Markdown and clearly report that visual DOCX QA was not run:
FONTCONFIG_FILE=<skill-dir>/assets/fonts.xml \
<workspace-python> <documents-renderer>/render_docx.py \
<story-dir>/公众号成稿.docx --output_dir <story-dir>/qa-docx-pages
Inspect every page at full size for missing Chinese glyphs, clipped images, awkward page breaks, crowding, and missing paragraphs. Treat absent Chinese text as a failed render even when structural extraction succeeds. Re-render after each correction. Then rerun verify_output.py with --rendered-pages-dir.
Open 公众号复制页.html in the host browser automation tool and verify the preview visually. Exercise its copy button against a disposable rich-text field when practical. If browser automation is unavailable, perform static HTML checks and state the limitation. Do not claim target-editor paste compatibility without this check; retain DOCX as the fallback.
For a batch, build the shared index after all individual packages pass:
<workspace-python> scripts/build_batch_index.py <batch-root>
8. Optional WeChat publishing handoff
Only enter this stage when the user explicitly requests draft-fill or publish-after-confirmation. Choose the adapter from references/wechat-publishing.md. With the Official Account API, use a user-owned backend and never expose AppSecret to the agent or browser. With browser automation, use the user's already logged-in session. With the local helper, copy the rich text and open the editor for the user to paste/upload. Fill the title, author, digest, cover, and body content; save the article as a draft; and report the draft state and QA caveats.
For publish-after-confirmation, stop after the draft is visible and ask for a fresh confirmation. Only a subsequent, unambiguous user message such as “确认发布” authorizes the final publish click. If WeChat presents a QR code, CAPTCHA, two-factor prompt, permission error, or an unexpected dialog, stop and ask the user to complete it; never bypass it or claim publication succeeded. If browser automation is unavailable, provide the copy page, assets, and exact manual field mapping instead.
Handle revisions without restarting
- Rework only the requested illustration, cover crop, prompt, or layout area.
- Keep existing IDs and filenames stable so placements do not drift.
- Update the corresponding prompt record before regenerating an image.
- Rerun the image gate, renderer, DOCX render QA, and output verification after any image or placement change.
- Do not publish or send the article automatically. If the user separately requests draft-box entry, fill a draft through an authorized logged-in browser and stop before final publication for confirmation.
Deliver the useful surface
Link the user to each 公众号复制页.html, 公众号成稿.docx, and prompt book. Summarize the number of stories, body illustrations, any inferred art direction, continuous-prose placement decisions, and any unresolved QA caveat. Do not overwhelm the user with internal intermediate files unless requested.
Current listing version
1.3.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决中文短篇小说自动化微信公众号发布的实际痛点,显著提升内容创作者效率
- 支持批量处理、多格式输出(HTML/DOCX)及多种发布适配器,实用性强
Highlights
- description 清晰覆盖核心功能:封面生成、内容插图、微信公众号成稿、API/浏览器辅助、确认后发布
- 触发边界明确,无歧义或重叠风险
Areas to improve
-
description写错位置 Reported severity: Minor
顶层 frontmatter 中 description 字段为空,实际描述内容位于 skill_body 内部
Recommendation: 将 description 内容移至顶层 frontmatter 字段,保持规范一致性
-
文档过长 Reported severity: Minor
主文档约 180 行,超出建议的 500 行以内但接近上限
Recommendation: 可考虑将部分详细脚本说明移至独立参考文档,保持主流程简洁
Highlights
- 执行流程分 8 个清晰阶段,每步有明确输入输出与门控条件
- 包含端到端示例、异常处理与兜底策略,结构完整
Highlights
- 工具来源明确(Python 脚本),参数规范,覆盖图像生成失败重试、DOCX 渲染 QA 等主要异常
- 不可逆操作(发布)严格依赖用户确认,提供多种适配器兜底方案
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 138
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.