novel-to-wechat
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "novel-to-wechat":https://skillpi.com/zh/skills/deepskill-1ab4b54a6bbb3945dc77e1e3712307427393cd06a93b43a16b0efde228209345。安装前核对上游来源和版本:https://skillhub.cn/skills/user_f556ffce/novel-to-wechat。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
把中文短篇小说自动生成封面、内容相关插图和可直接复制的微信公众号成稿,并提供 API、浏览器辅助和确认后发布适配器。
介绍来源: third_party · user_f556ffce · 1.3.0 参考来源
SkillPi 解读
- 能完成的任务
- 把中文短篇小说自动生成封面、内容相关插图和可直接复制的微信公众号成稿,并提供 API、浏览器辅助和确认后发布适配器。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
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.
当前收录版本
1.3.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决中文短篇小说自动化微信公众号发布的实际痛点,显著提升内容创作者效率
- 支持批量处理、多格式输出(HTML/DOCX)及多种发布适配器,实用性强
亮点
- description 清晰覆盖核心功能:封面生成、内容插图、微信公众号成稿、API/浏览器辅助、确认后发布
- 触发边界明确,无歧义或重叠风险
待提升项
-
description写错位置 原报告严重程度:轻微
顶层 frontmatter 中 description 字段为空,实际描述内容位于 skill_body 内部
改进建议:将 description 内容移至顶层 frontmatter 字段,保持规范一致性
-
文档过长 原报告严重程度:轻微
主文档约 180 行,超出建议的 500 行以内但接近上限
改进建议:可考虑将部分详细脚本说明移至独立参考文档,保持主流程简洁
亮点
- 执行流程分 8 个清晰阶段,每步有明确输入输出与门控条件
- 包含端到端示例、异常处理与兜底策略,结构完整
亮点
- 工具来源明确(Python 脚本),参数规范,覆盖图像生成失败重试、DOCX 渲染 QA 等主要异常
- 不可逆操作(发布)严格依赖用户确认,提供多种适配器兜底方案
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 138 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。