Community编程与开发github.com

trkbt10/indexion-segment

将文本分割成上下文相关的块,用于RAG/嵌入管道。通过意图选择窗口、TF-IDF、标点或混合策略,进行文档分割和章节提取。

indexion-segment 是什么?

trkbt10/indexion-segment 是一个AI代理技能,专为RAG(检索增强生成)和嵌入管道设计,用于将长文档智能分割成语义完整的文本块。该技能支持多种分割策略,包括基于窗口的分割、TF-IDF(词频-逆文档频率)算法、标点符号分割以及混合策略,用户可以根据具体文档类型和任务意图灵活选择。它能够自动识别文档章节边界,确保每个块保留足够的上下文信息,从而提升检索和嵌入的质量。该技能适用于Claude Code、Cursor、Codex等主流AI代理平台,通过简单的API调用即可将原始文本高效转换为结构化的嵌入输入。其工作流程首先分析文档结构,然后根据预设策略或动态意图选择最优分割方法,最后输出带有元数据的文本块列表,便于下游处理。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/trkbt10/indexion-skills/tree/main/skills/indexion-segment

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

indexion-segment 是做什么的?

将文本分割成上下文相关的块,用于RAG/嵌入管道。通过意图选择窗口、TF-IDF、标点或混合策略,进行文档分割和章节提取。

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

trkbt10/indexion-agent-orient

Generate and use a pre-edit structure brief so coding agents learn likely owners, consumer surfaces, and unsafe edit locations before implementing.

trkbt10/indexion-documentation

Documentation analysis — assess coverage, detect code-to-doc drift with plan reconcile, visualize dependencies with doc graph. Answers "what needs docs?" and "are docs still accurate?"

trkbt10/indexion-identity

Detect and review name/content drift in code using `indexion identity audit`, then plan verified renames, moves, folder changes, or splits.

trkbt10/indexion-kgf

Debug and inspect KGF specs — view tokenization results, parse trees, and extracted edges from source files. Use when adding/fixing language support or when indexion's analysis output looks wrong.

trkbt10/indexion-readme

README construction — initialize template structure, generate per-package READMEs from doc comments, plan writing tasks, assemble root README from docs/ and package READMEs via doc.json config, and verify edits with `plan drift`.

trkbt10/indexion-refactor

After writing code, detect and clean up duplication at three levels — copy-paste blocks, cross-package shared code, unnecessary wrappers, and concept-level SoT violations. Detect with indexion, fix, and verify.

trkbt10/indexion-sdd

Generate SDD requirements from RFCs/specs and quantitatively verify implementation conformance. spec draft → spec align → spec verify → automated validation loop with codex/claude. Operate spec-to-impl drift gates as CI checks.

trkbt10/indexion-wiki

Project wiki lifecycle — create pages, track source changes with ingest, update stale pages, lint structural integrity, detect code-to-doc drift with reconcile, and manage search indexes. A runbook for navigating and maintaining the wiki as an agent.

相关技能