Read documents and split them into chunks
Read documents and split them into manageable chunks for processing, analysis, or transfer. Like a master breaking boards, this skill shatters overwhelming information into fragments that can be easily mastered.
Split a file into standard chunks:
/split README.md
Split by precise line count:
/split document.txt --lines 100
Split by markdown sections:
/split document.md --sections
Split by paragraphs:
/split article.txt --paragraphs
Split with context overlap:
/split document.txt --lines 100 --overlap 10
| Option | Description | Default |
|---|---|---|
--lines N |
Split every N lines | 100 |
--size N |
Split at approximately N characters | - |
--sections |
Split at markdown headers (# ## ###) | - |
--paragraphs |
Split at blank lines | - |
--overlap N |
Include N lines of context | 0 |
Present each chunk with a header showing its number and line range:
══════════════════════════════════════════════════════
CHUNK 1 of 5 (lines 1-100)
══════════════════════════════════════════════════════
[chunk content here]
══════════════════════════════════════════════════════
CHUNK 2 of 5 (lines 101-200)
══════════════════════════════════════════════════════
[chunk content here]
Split at fixed line intervals. Best for uniform content like logs or data files.
Split at approximate character counts, breaking at line boundaries. Best when targeting specific output sizes.
Split at markdown headers (lines starting with #). Best for documentation. Each section becomes its own chunk.
Split at blank lines. Best for prose where paragraphs are the logical units.
wc -l to show total lines.