A structure-first writing skill that helps you avoid slop while keeping the prose in your hands.
Marginlight helps writers avoid slop. It gives clear structure feedback, checks whether character arcs resolve, and points out what could change and where. The prose and the how stay yours; Marginlight does not draft replacement prose. It reads existing Markdown and preserves voice, imagery, dialogue, events, point of view, tense, chronology, and characterization. Substantive suggestions stay inside clearly labeled braces for you to accept, change, or ignore.
- Maps plot points, acts, beats, scenes, and turning points.
- Tracks character arcs, motivations, relationships, and changes.
- Separates what the manuscript states from inferences and open questions.
- Uses actionable markers such as
{PLOT: ...},{ARC: ...},{SCENE: ...}, and{CONTINUITY: ...}. - Keeps analysis separate from the manuscript unless you ask for inline notes.
- Logs obvious typo fixes and explicitly requested mechanical edits.
- Keeps Markdown as the source and exports derived DOCX, PDF, or EPUB copies on request.
Copy this folder into your novel repository:
your-novel-repo/.agents/skills/marginlight/
Or install for personal Codex use:
~/.codex/skills/marginlight/
Restart Codex if the skill does not appear, then invoke it with:
$marginlight
novel/
manuscript/ # original author source; never overwrite by default
01-chapter-title.md
structure/
plot-points.md
character-arcs.md
scene-outline.md
continuity.md
open-questions.md
annotated/ # optional working copies with braced notes
exports/ # derived clean or annotated exports
change-log.md
Use headings and stable chapter or scene identifiers. Keep structural analysis out of source chapters unless inline annotation is requested.
{PLOT: establish what causes the next turning point.}
{ARC: show why this decision changes the character's goal.}
{SCENE: add the physical beat that bridges these actions.}
{CONTINUITY: confirm whether the key has already been introduced.}
{AUTHOR: decide whether the speaker is lying or mistaken.}
Marginlight does not fill story gaps with invented prose, resolve ambiguity as fact, or rewrite dialogue to “improve flow.” When the text leaves something unanswered, it records the question and leaves the choice to you.
Export a derived copy, never over the Markdown source. For example, with Pandoc:
pandoc combined.md -o exports/novel.docx
pandoc combined.md -o exports/novel.pdf
pandoc combined.md -o exports/novel.epubBefore exporting, choose the clean manuscript, annotated copy, or structure notes. Clean exports exclude placeholders and analysis unless you request them.
Issues and pull requests are welcome. Keep the core promise intact: the author's prose remains authoritative, and substantive suggestions remain visibly marked for the author.
MIT. See LICENSE.