trkbt10/indexion-skills

indexion-segment

Split text into contextual chunks for RAG/embedding pipelines. Document segmentation and section extraction using window, tfidf, punctuation, or hybrid strategies chosen by intent.

All-time #2826 First seen Apr 5, 2026
8-week activity · all time api

Installation

$ npx skills add trkbt10/indexion-skills --skill indexion-segment

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from trkbt10/indexion-skills · top by installs.

npx skills add trkbt10/indexion-skills

Browse all from trkbt10/indexion-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 2
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,586 B
  • docs SUMMARY.md 204 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 4,916 installs

SKILL.md

indexion segment

Split text into contextual segments using divergence-based, TF-IDF, or punctuation strategies.

When to Use

  • User needs to chunk text for RAG or embedding pipelines
  • User wants to split a document into meaningful sections
  • User asks to segment text for processing
  • Preparing text for similarity analysis at sub-document level

Usage

# Default window divergence strategy
indexion segment <input-file> <output-dir>

# TF-IDF based segmentation
indexion segment --strategy=tfidf <input-file> <output-dir>

# Punctuation-based segmentation
indexion segment --strategy=punctuation <input-file> <output-dir>

# Custom segment sizes
indexion segment --min-size=200 --max-size=3000 --target-size=800 document.txt output/

# Custom divergence threshold
indexion segment --threshold=0.5 document.txt output/

# Adaptive threshold mode (default)
indexion segment --adaptive document.txt output/

# Hybrid NCD+TF-IDF mode
indexion segment --hybrid --ncd-weight=0.6 --tfidf-weight=0.4 document.txt output/

# Custom window size
indexion segment --window-size=5 document.txt output/

# Custom output prefix
indexion segment --prefix=chunk document.txt output/

Options

Option Default Description
--strategy=NAME window Strategy: window, tfidf, punctuation
--min-size=INT 100 Minimum segment characters
--max-size=INT 2000 Maximum segment characters
--target-size=INT 500 Target segment characters
--threshold=FLOAT 0.42 Divergence threshold
--window-size=INT 3 Window size
--adaptive true Adaptive threshold mode
--hybrid false NCD+TF-IDF hybrid mode
--ncd-weight=FLOAT 0.5 NCD weight in hybrid mode
--tfidf-weight=FLOAT 0.5 TF-IDF weight in hybrid mode
--prefix=NAME segment Output file prefix

Strategies

Strategy Description
window (default) Sliding window divergence detection
tfidf TF-IDF based topic change detection
punctuation Punctuation/sentence boundary based

Workflow

  1. Run indexion segment <input-file> <output-dir> to split text with defaults
  2. Adjust --threshold and --target-size to tune segmentation granularity
  3. Use --hybrid mode for better accuracy on mixed-content documents