tree-sitter-language-pack-chunking-for-llms

Installation
SKILL.md

Syntax-aware chunking for LLMs

Splitting code on a fixed byte or line count cuts functions in half and strips context. ts-pack process <file> --chunk-size <bytes> splits on syntactic boundaries (whole functions, classes, blocks) so each chunk is a coherent unit, and emits them in the JSON chunks array.

Quick recipe

Installs
4
GitHub Stars
478
First Seen
Oct 15, 2026