Skip to main content

draft-chapter

根据 published compiled packs 与 scene beats 生成试写或整章正文。Use when the chapter is ready to draft.

Source facts

Repository
luoluomashang/novel-engine
Last source activity
April 27, 2026 at 02:35
Detected SKILL.md language
Chinese
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
draft-chapter
description
根据 published compiled packs 与 scene beats 生成试写或整章正文。Use when the chapter is ready to draft.
argument-hint
<project-id> [chapter-id] [trial|full]
disable-model-invocation
true
# 生成正文 ## 参数 - `$0`:`project_id` - `$1`:可选,`chapter_id`,默认 `ch001` - `$2`:可选,`mode`,可取 `trial` 或 `full`,默认 `trial` ## 执行步骤 1. 先运行 `python app.py ensure-prereq "$0" trial_draft --chapter-id "${1:-ch001}"`;若 `$2=full`,改为 `full_draft`。 2. 调用 `draft-writer` 子代理,直接写 `trial.md` 或 `draft.md`。 3. 正文只允许读取 `projects/$0/published/compiled/chapters/${1:-ch001}/context_pack.json`、`permission_pack.json` 和 `projects/$0/chapters/${1:-ch001}/scene_beats.json`。 4. 同步写入 `trial_report.json` 或 `projects/$0/logs/draft_metrics_*.json`。 5. 不要运行 `python app.py draft-chapter` 作为 Claude Code 主路径;该脚本只保留给回归。 6. 返回中文摘要,并建议进入 `/review-chapter`。 ## 阶段产物契约 - 输入文件:`projects/$0/published/compiled/chapters/${1:-ch001}/context_pack.json`、`permission_pack.json`、`projects/$0/chapters/${1:-ch001}/scene_beats.json`。 - 输出文件:`projects/$0/chapters/${1:-ch001}/trial.md`、`draft.md`、`trial_report.json`、`projects/$0/logs/draft_metrics_${1:-ch001}.json`、`draft_metrics_${1:-ch001}_trial.json`。 - 禁止行为:不要读取 hidden canon;不要跳过 `scene_beats.json` 直接凭 pack 自由发挥;不要用整章复述代替场景推进。
View on GitHub