Skip to content
Back to skills

Chapter Write Runner

ASecurity

Compose chapter-write and assemble runner for narrative-arc write units.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 2, 2026
ai-agentspython

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned October 5, 2026

npx -y skills add lulufoo/lulu-workflow --skill chapter-write-runner --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Chapter Write Runner?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Chapter Write Runner
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lulufoo-chapter-write-runner/badge)](https://www.skillsdirectory.com/skills/lulufoo-chapter-write-runner)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md2 KB
  • contracts/delivery.md964 B
  • references/chapter-body-contract.md1.1 KB
  • references/write-protocol.md1.8 KB
  • references/writing-cognition.md1.2 KB
  • scripts/chapter_write_build_control.py8.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.