$npx -y skills add WILLOSCAR/research-units-pipeline-skills --skill module-source-coverageUse when a tutorial module plan exists and the run needs an auditable module-to-source grounding file before prose. Trigger: module coverage, source coverage, tutorial grounding, 模块覆盖, 来源覆盖. Use when: source-tutorial 的 C2,已有 outline/module_plan.yml,需要确认每个模块都能回指到 sourc
| 1 | # Module Source Coverage |
| 2 | |
| 3 | Builds `outline/source_coverage.jsonl`, one coverage record per module. |
| 4 | |
| 5 | ## Inputs |
| 6 | |
| 7 | - `outline/module_plan.yml` |
| 8 | - `sources/index.jsonl` |
| 9 | - `sources/provenance.jsonl` |
| 10 | |
| 11 | ## Output |
| 12 | |
| 13 | - `outline/source_coverage.jsonl` |
| 14 | |
| 15 | ## Contract |
| 16 | |
| 17 | Each record must include: |
| 18 | - `module_id` |
| 19 | - `module_title` |
| 20 | - `source_ids` and/or explicit `gaps` |
| 21 | |
| 22 | ## Script boundary |
| 23 | |
| 24 | `scripts/run.py` should: |
| 25 | - score module-to-source relevance |
| 26 | - choose a small source set per module |
| 27 | - record explicit grounding gaps when coverage is weak |
| 28 | |
| 29 | Keep text matching and snippet scoring in shared tutorial tooling, not in the wrapper. |
| 30 | |
| 31 | ## Acceptance |
| 32 | |
| 33 | - `outline/source_coverage.jsonl` exists |
| 34 | - every module appears exactly once |
| 35 | - missing grounding is explicit instead of silent |
| 36 | |
| 37 | ## Non-goals |
| 38 | |
| 39 | - context pack assembly |
| 40 | - tutorial prose |