
Chunking Strategy
This handles the RAG chunking problem systematically, walking you through five strategy levels from basic fixed-size splits to semantic boundary detection with embedding similarity. It includes validation commands you can actually run to check coherence scores and retrieval precision, plus concrete parameter recommendations like starting at 512 tokens with 15% overlap. The iterative tuning guidance is solid: if precision drops below 0.7, reduce chunk size by 25%. What's useful here is the decision tree for matching strategies to document types, whether you're processing unstructured text, code with AST parsing, or complex documents with thematic shifts. It won't magically solve retrieval quality issues, but it gives you a methodical framework instead of guessing at chunk sizes.
- skills.sh installs
- 4K
- GitHub stars
- 369
- last updated
- Aug 21, 2026
Install
$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill chunking-strategy --agent claude-codeInstalls into .claude/skills of the current project.
Files
Chunking Strategy for RAG Systems
Overview
Provides chunking strategies for RAG systems, vector databases, and document processing. Recommends chunk sizes, overlap percentages, and boundary detection methods; validates semantic coherence; evaluates retrieval metrics.
When to Use
Use when building or optimizing RAG systems, vector search pipelines, document chunking workflows, or performance-tuning existing systems with poor retrieval quality.
Instructions
Choose Chunking Strategy
Select based on document type and use case:
-
Fixed-Size Chunking (Level 1)
- Use for simple documents without clear structure
- Start with 512 tokens and 10-20% overlap
- Adjust: 256 for factoid queries, 1024 for analytical
-
Recursive Character Chunking (Level 2)
- Use for documents with structural boundaries
- Hierarchical separators: paragraphs → sentences → words
- Customize for document types (HTML, Markdown, JSON)
-
Structure-Aware Chunking (Level 3)
- Use for structured content (Markdown, code, tables, PDFs)
- Preserve semantic units: functions, sections, table blocks
- Validate structure preservation post-split
Sponsors
Details
- Repository
- github.com/giuseppe-trisciuoglio/developer-kit
- Category
- AI & Agent Building
- First seen
- May 16, 2026
More from giuseppe-trisciuoglio/developer-kit
All 102- Spring Boot Event Driven Patterns4K
- Zod Validation Utilities4K
- Nestjs Best Practices4K
- Nestjs Code Review4K
- Spring Boot Cache4K
- Spring Boot Resilience4j3.9K
- Unit Test Service Layer3.9K
- Nextjs Code Review3.9K
- Spring Ai Mcp Server Patterns3.9K
- Unit Test Wiremock Rest Api3.9K
- Spring Boot Actuator3.9K
- Nextjs Authentication3.9K
- Spring Boot Dependency Injection3.9K
- Unit Test Controller Layer3.9K
- Unit Test Parameterized3.9K
- Unit Test Json Serialization3.9K
- Spring Boot Saga Pattern3.9K
- Spring Data Neo4j3.9K
- Unit Test Security Authorization3.9K
- Nextjs Data Fetching3.9K
- Langchain4j Tool Function Calling Patterns3.9K
- Nx Monorepo3.9K
- Langchain4j Spring Boot Integration3.9K
- Langchain4j Rag Implementation Patterns3.9K