计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
book-init【效率与协作】Phase 0: Onboarding. Define genre, reader, language, scope, and voice; capture the author's voice fingerprint; index source material; generate PRD.md and STYLE.md.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Goal: enough shared understanding that every later agent writes the same book the author imagines. The two documents produced here, PRD.md and STYLE.md, are read by every agent on every task. Vague answers here become vague chapters later.
Read ${CLAUDE_PLUGIN_ROOT}/skills/loom/quality-bar.md first.
At most 3 questions per round, at most 4 rounds. Ask only what cannot be inferred from what the author already said or from materials they pointed to. If the author gives a rich brief up front, skip straight to confirmation.
Round 1 — What and for whom
Round 2 — Scale and materials
Round 3 — Voice
Round 4 — The promise (can merge into Round 1 for experienced authors)
From the voice sample or named authors, write a Voice Fingerprint section in STYLE.md. This is the single most important input to chapter-writer. Be specific and quantitative where possible:
If the author supplied a sample, also store it verbatim under ## Voice Sample in STYLE.md.
If the author has materials, scan them now (find, alcove search_project_docs/search_vault if available, Obsidian tags). Write sources/INDEX.md:
# Sources
| ID | Path or URL | Type | What it contains | Trust | Use for |
|----|-------------|------|------------------|-------|---------|
| S01 | sources/interview-kim.md | interview transcript | ... | primary | ch03, ch07 |
Trust levels: primary (author's own data, interviews, code they wrote), secondary (published, citable), tertiary (blogs, forums; use for leads only). Every factual claim in nonfiction drafts must cite an ID from this index or a verified URL. Copy or symlink materials into sources/ when practical.
PRD.md — YAML frontmatter (title, genre, subgenre, language, target_length, count_unit, chapters) then sections: Identity, Reader (personas), Reader Promise, Scope, Constraints, Source Map (summary of INDEX), Success Criteria (measurable, including "readiness PASS from beta-reader"), Open Questions.
STYLE.md — Voice Fingerprint, Voice Sample (if any), Language Rules, Formatting Rules, Prohibited (author's list + quality-bar.md taxonomy reference), Dialogue Conventions, Genre Conventions (pointer to genre skill with any overrides). Leave a ## Voice Lock heading with "pending" so the router knows the lock has not happened.
Directories — drafts/ edits/ publish/ sources/ .velith/. Offer git init if the directory is not a repository; the pipeline snapshots drafts before rewriting stages regardless.
PRD.md and STYLE.md exist. STYLE.md has a Voice Fingerprint with at least five specific attributes. PRD.md has a one-sentence reader promise. Source index exists if the author has materials.
node ${CLAUDE_PLUGIN_ROOT}/velith.mjs scan [project-dir]