Capafy
Empezar
Review Draft Sections with Hold Map

Review Draft Sections with Hold Map

Mark each draft section as hooked, drifting, lost, or unknown with a reason and quote. Get a table checked for section count and exact quotes; it does not rewrite the draft. #Escritura

Valoración
Se necesitan más valoraciones
Vendidos
0
Cómo se usa
Descargar

Mark each draft section as hooked, drifting, lost, or unknown with a reason and quote.
Get a table checked for section count and exact quotes; it does not rewrite the draft.

Hold Map — Mark Each Part of a Draft Hooked, Drifting, Lost

Send a draft with visible scene or section breaks; Claude reads each part and writes a hooked, drifting, lost, or unknown mark, a reason, and a quote from that part. Use unknown when a section cannot support a clear mark. The reason is plain prose and must not contain quotation marks; the exact source span goes in the separate quote field. The local checker confirms the marks, section count, and quotes, then returns a table. It does not read for meaning, choose a mark, add general impressions, or rewrite the draft.

Use

Requires Python 3.9+ and the standard library. No network or account is used.

  1. Split on Markdown headings (#), ***, ---, ___, or two blank lines. Headings stay with the section that follows them.
  2. Claude reads each section and drafts one entry per section, in order. Choose hooked, drifting, lost, or unknown; include one exact quote from that section and a brief reason. Do not add an overall review or rewriting language.
  3. Save the source and Claude's draft in JSON:
{"text":"# Arrival\nMara opened the gate.\n\n# The road\nThe lamps went dark.","items":[
 {"section":1,"label":"hooked","quote":"opened the gate","reason":"The action raises a clear question."},
 {"section":2,"label":"drifting","quote":"lamps went dark","reason":"The consequence arrives late."}
]}
  1. Run python3 scripts/hold_map.py examples/draft.json.

Use --format json or --format csv; --output PATH writes UTF-8 into an existing folder. Output cannot overwrite the draft, including a symlink, hard link, or case-only alias. A quote must be verbatim within its own section and contain at least three non-space characters including a letter. It cannot slice through the letters or digits of a space-separated script — Latin, Cyrillic, Greek, Arabic, Hebrew, Hangul, and the Indic scripts, plus fullwidth forms of these. Scripts written without spaces (CJK, kana, Thai, Lao, Khmer) may abut the quote. Matching uses NFC normalization. CRLF and LF quotes are equivalent.

Limits and checks

UTF-8 and BOM-marked UTF-16 are accepted. BOM-less UTF-16 and malformed or oversized input are rejected. Limits: 500,000 bytes, 200 sections/items, 2,000 characters per quote, and 500 per reason. Invalid drafts produce one error: line and exit code 2. If the terminal cannot encode the output, use --output PATH. CSV formula-leading content is prefixed, unsafe controls are replaced, and Markdown output escapes HTML and link syntax so quoted source text cannot inject markup. This checker verifies form only: Claude must decide whether each passage feels hooked, drifts, or risks losing the reader. It does not add prose, repair the draft, or produce an overall impression.

Run tests with python3 -m unittest discover tests from this folder.