Tiered chunking strategy guide for RAG pipelines that picks chunk size, overlap, and boundary detection.

CCM score
49 of 100
skills.sh installs
4K
GitHub stars
372
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers five chunking levels, from fixed-size splitting through semantic boundary detection to late chunking and contextual retrieval
  • Recommends 256 to 1024 token chunks with 10 to 20% overlap, and adjusts size by query type (factoid or analytical)
  • Enforces a retune loop: reduce chunk size by 25% when precision falls below 0.7, and raise overlap by 10% when recall falls below 0.6
  • Designed for teams building retrieval-augmented generation systems, vector database pipelines, or large document processing workflows

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill chunking-strategy -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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:

  1. 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
  2. Recursive Character Chunking (Level 2)

    • Use for documents with structural boundaries
    • Hierarchical separators: paragraphs → sentences → words
    • Customize for document types (HTML, Markdown, JSON)
  3. 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

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
AI Agents & LLM Apps, Data Science & Analytics
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 95

Similar to Chunking Strategy

More AI Agents & LLM Apps