Back to skills
SKILL.md
Chapter Write Runner
ASecurityCompose chapter-write and assemble runner for narrative-arc write units.
- 3 stars
- 0 votes
- 0 copies
- 1 view
- Added October 2, 2026
Security analysis
100/100Pro scans all 6 files and shows the line behind each finding
npx -y skills add lulufoo/lulu-workflow --skill chapter-write-runner --agent claude-codeAre you the author of Chapter Write Runner?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/lulufoo-chapter-write-runner)---
name: chapter-write-runner
description: >-
Compose chapter-write and assemble runner for narrative-arc write units.
---
# chapter-write-runner
Write each narrative-arc chapter from its claim ticket, then assemble the
compose document.
## Input
```text
REVISION_DIR: <revision or inductive out dir>
CYCLE_ID: <cycle id>
OUTPUT_DOC_PATH: <abs path to compose output doc>
ARC_PATH: _narrative-arc.json
```
## Cognition
Ticket terms carry the meanings defined in these units.
| Term | Unit |
|---|---|
| ticket facts, `fact_ids`, anchors | `../references/cognition/fact.md` |
| ticket `lens`, `lens_intent` | `../references/cognition/lens.md` |
| arc, leaf, chapter order | `../references/cognition/writing/narrative-arc.md` |
| chapter, `cid`, body | `../references/cognition/writing/chapter.md` |
| ticket `writing_cognition` | `references/writing-cognition.md` |
| `context.domain` | `../references/cognition/profile/domain.md` |
| `context.role` | `../references/cognition/profile/role.md` |
One chapter composes them:
```text
body(chapter) = Write( facts_ℓ ; writing_cognition_ℓ )
content ⊆ facts_ℓ anchors(facts_ℓ) ⊆ tokens(body)
```
`context.domain` and `context.role` are soft attention on Write: they
shape voice and register, never content.
## Load rule
1. Load `references/write-protocol.md`.
2. Load `contracts/delivery.md` and complete the pipeline.
## Script Macros
| Macro | Command |
|-------|---------|
| `$CHAPTER_WRITE_BUILD` | `python3 "$SKILL_ROOT/compose/chapter-write-runner/scripts/chapter_write_build_control.py"` |
| `$CHAPTER_WRITE_STATE` | `python3 "$SKILL_ROOT/compose/scripts/writing/chapter_write_state_control.py"` |
| `$COMPOSE_DOC_CONTROL` | `python3 "$SKILL_ROOT/compose/scripts/writing/compose_doc_control.py"` |
Build: `--help` · `context`.
Write-state: `--help` · `sync` · `status` · `begin` · `complete`.
Doc: `--help` · `init-doc` · `assemble-arc`.
## Summary
Return exactly the Summary shape in `contracts/delivery.md`.
Files in this skill
- SKILL.md
- contracts/delivery.md
- references/chapter-body-contract.md
- references/write-protocol.md
- references/writing-cognition.md
- scripts/chapter_write_build_control.py
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.