$npx -y skills add WILLOSCAR/research-units-pipeline-skills --skill chapter-skeletonBuild a retrieval-informed chapter skeleton (outline/chapter_skeleton.yml) from taxonomy/core scope before stable H3 decomposition. Trigger: chapter skeleton, chapter-level outline, H2 skeleton, section-first survey, 章节骨架, 章级骨架. Use when: survey structure should stabili
| 1 | # Chapter Skeleton |
| 2 | |
| 3 | ## Explicit refinement marker |
| 4 | |
| 5 | Create `outline/chapter_skeleton.refined.ok` only after reviewing a manually refined skeleton. A changed taxonomy, goal, or generator invalidates the marker; reruns then back up and rebuild the skeleton. |
| 6 | |
| 7 | ## Load Order |
| 8 | |
| 9 | Always read: |
| 10 | - `references/overview.md` |
| 11 | |
| 12 | Use `scripts/run.py` only for deterministic materialization: |
| 13 | - read `outline/taxonomy.yml` for retrieval-informed topic structure |
| 14 | - read `GOAL.md` when present for scope hints |
| 15 | - emit `outline/chapter_skeleton.yml` |
| 16 | - preserve reviewed user work only through the current explicit refinement marker |
| 17 | |
| 18 | ## Inputs |
| 19 | |
| 20 | - `outline/taxonomy.yml` |
| 21 | - Optional: `GOAL.md` |
| 22 | |
| 23 | ## Outputs |
| 24 | |
| 25 | - `outline/chapter_skeleton.yml` |
| 26 | |
| 27 | ## Asset contract |
| 28 | |
| 29 | - `assets/output_contract.json` |
| 30 | |
| 31 | ## Script |
| 32 | |
| 33 | ### Quick Start |
| 34 | |
| 35 | - `uv run python .codex/skills/chapter-skeleton/scripts/run.py --workspace <workspace>` |
| 36 | |
| 37 | ### All Options |
| 38 | |
| 39 | - `--workspace <dir>`: workspace containing `outline/taxonomy.yml` |
| 40 | - `--unit-id <id>`: optional harness metadata |
| 41 | - `--inputs <semicolon-separated>`: optional override from `UNITS.csv` |
| 42 | - `--outputs <semicolon-separated>`: optional output override; default is `outline/chapter_skeleton.yml` |
| 43 | - `--checkpoint <C*>`: optional harness metadata |
| 44 | |
| 45 | ### Examples |
| 46 | |
| 47 | - Generate the chapter skeleton after taxonomy: |
| 48 | - `uv run python .codex/skills/chapter-skeleton/scripts/run.py --workspace <workspace> --inputs 'outline/taxonomy.yml;GOAL.md' --outputs 'outline/chapter_skeleton.yml'` |