AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Chunking Strategy Advisor

skill-patonkikh-apes-chunking-strategy-advisor · by patonkikh

>

No reviews yet
0 installs
38 views
0.0% view→install

Install

$ agentstack add skill-patonkikh-apes-chunking-strategy-advisor

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-patonkikh-apes-chunking-strategy-advisor)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Chunking Strategy Advisor? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Chunking Strategy Advisor

Purpose

Recommend document chunking strategy: chunk size, overlap, boundaries, and metadata preservation for optimal retrieval quality.

Input: Document types, sample content (optional), query patterns, RAG architecture Output: Chunking specification with parameters, boundary rules, and eval recommendations Examples: See [examples.md](examples.md) for worked input/output.


Workflow

Step 1: Analyze document characteristics

| Doc type | Structure | Avg length | Update frequency | |----------|-----------|------------|------------------|

Types: prose, technical docs, code, tables, FAQs, legal, chat logs.

Step 2: Select chunking method

| Method | Best for | |--------|----------| | Fixed-size | Uniform prose | | Semantic | Variable structure, paragraphs | | Recursive | Hierarchical docs (headers) | | Document-specific | Code (functions), tables (rows) | | Agentic | Complex mixed content |

Step 3: Define parameters

| Parameter | Value | Rationale | |-----------|-------|-----------| | Chunk size (tokens) | | | | Overlap (tokens) | | | | Min chunk size | | | | Max chunk size | | |

Step 4: Define boundary rules

  • Respect section headers / code blocks / table rows
  • Do not split mid-sentence
  • Preserve metadata: source, page, section title

Step 5: Recommend eval approach

  • Sample 20 chunks for manual review
  • Retrieval recall@k on golden queries
  • A/B chunk sizes if uncertain

Step 6: Validate

Run Validation checklist.


Decision Rules

| Condition | Action | |-----------|--------| | Mixed document types | Use per-type chunking strategies | | Code documents | Chunk by function/class, not token count | | Tables | Chunk by row groups or whole table with summary | | Very short docs (< chunk size) | Keep whole document as one chunk | | No sample content | Use conservative defaults; mark for eval tuning |


Validation

  • [ ] Document types analyzed
  • [ ] Chunking method selected per type with rationale
  • [ ] Size and overlap parameters specified
  • [ ] Boundary rules documented
  • [ ] Metadata preservation defined
  • [ ] Eval approach recommended
  • [ ] Parameters tied to embedding model context if known

Anti-patterns

  • One size fits all — same chunk size for code and prose.
  • Zero overlap — losing context at boundaries.
  • Mid-sentence splits — hurting semantic coherence.
  • No metadata — chunks without source attribution.
  • Tiny chunks — fragments without context.

Best Practices

  • Start 256–512 tokens for prose; tune with eval.
  • 10–20% overlap for continuity.
  • Use header-aware splitting for documentation.
  • Store parent document ID and section path in metadata.
  • Re-chunk when switching embedding models.

Output Structure

# Chunking Strategy: [Corpus Name]

## Document Analysis
| Type | Count | Method |
|------|-------|--------|

## Parameters
| Parameter | Value | Rationale |
|-----------|-------|-----------|

## Boundary Rules
1. [Rule]

## Metadata Schema
| Field | Source |
|-------|--------|

## Eval Plan
[Approach]

## Tuning Notes
[When to revisit]

Next Skills

| Outcome | Recommended Skill | |---------|-------------------| | Select embeddings | rag/embedding-strategy-advisor | | Optimize retrieval | rag/retriever-optimizer | | RAG architecture | rag/rag-architecture-designer | | Hybrid search | rag/hybrid-search-advisor |

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.