Skip to content
Automation
Skill

/rag-chunking-strategy

Document chunking with multiple strategies including semantic, recursive, and fixed-size chunking

From plugin
babysitter
1.8k200 skills3 agents21 commands1 MCP
Install
$ npx -y skills add a5c-ai/babysitter --skill rag-chunking-strategy --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/rag-chunking-strategy

Context preview

The summary Claude sees to decide when to auto-load this skill.

Document chunking with multiple strategies including semantic, recursive, and fixed-size chunking

SKILL.md

rag-chunking-strategy.SKILL.md
name: rag-chunking-strategy
description: Document chunking with multiple strategies including semantic, recursive, and fixed-size chunking
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
  - Glob
  - Grep
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:ai-agents-conversational]
  skillAreas: [skill-area:retrieval-augmented-generation, skill-area:natural-language-processing]
  roles: [role:ml-engineer, role:backend-engineer]
  workflows: [workflow:ml-model-lifecycle, workflow:feature-development]

RAG Chunking Strategy Skill

Capabilities

  • Implement multiple document chunking strategies
  • Configure semantic chunking based on content boundaries
  • Set up recursive character text splitting
  • Design fixed-size chunking with overlap
  • Implement document-aware chunking (markdown, code, etc.)
  • Optimize chunk sizes for retrieval quality

Target Processes

  • rag-pipeline-implementation
  • chunking-strategy-design

Implementation Details

Chunking Strategies

1. **RecursiveCharacterTextSplitter**: Hierarchical splitting with separators 2. **SemanticChunker**: Embedding-based semantic boundaries 3. **TokenTextSplitter**: Token-aware splitting 4. **MarkdownHeaderTextSplitter**: Structure-aware markdown splitting 5. **CodeSplitter**: Language-aware code chunking

Configuration Options

  • Chunk size (characters or tokens)
  • Chunk overlap percentage
  • Separator hierarchy
  • Embedding model for semantic chunking
  • Document type detection

Best Practices

  • Match chunk size to embedding model limits
  • Use appropriate overlap for context preservation
  • Test retrieval quality with different strategies
  • Consider document structure in strategy selection

Dependencies

  • langchain-text-splitters
  • sentence-transformers (for semantic chunking)
Read more
Ships withbabysitter

Enforce obedience on agentic workforces. Manage extremely complex workflows through deterministic, hallucination-free self-orchestration.

Get the whole plugin

Other skills on babysitter.