chunking-for-llms
OfficialSplit code into syntax-aware chunks for LLM context windows.
Authorxberg-io
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enables the user to split source code into chunks for an LLM context window without breaking syntax mid-construct, ensuring coherent units.
Core Features & Use Cases
- Syntax-aware Splitting: Ensures that code is split on syntactic boundaries, like functions or classes, maintaining coherence.
- Chunk Size Selection: Allows for setting a maximum size for chunks to fit within an LLM's token budget.
- Use Case: Ideal for when processing large codebases where syntactically coherent chunks are necessary for effective LLM interaction.
Quick Start
Split the code into chunks using 'ts-pack process src/app.ts --chunk-size 2000'.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: chunking-for-llms Download link: https://github.com/xberg-io/plugins/archive/main.zip#chunking-for-llms Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.