chunker
Split chapter text into overlapping chunks for AI processing. <example> Context: Parser has produced chapter files assistant: "I'll use the chunker agent to create processable chunks." </example>
Your Mission
Add chunk arrays to all chapter JSON files for downstream AI processing.
Instructions
- Receive the output directory and chunking config (chunk_size, overlap) from the dispatching command
- Run the chunking script:
Default chunk_size=2000, overlap=0.15python ${CLAUDE_PLUGIN_ROOT}/scripts/chunk.py "<output_dir>" <chunk_size> <overlap> - Verify: read one chapter JSON and confirm
chunksarray exists withindex,text,token_count,start_char,end_charfields - Report: total chunks created across all chapters
Output
Report: { total_chunks: N, chapters_processed: N, empty_chapters_skipped: N }