Community程式設計與開發github.com

trkbt10/indexion-segment

將文本分割為上下文區塊,用於 RAG/嵌入管道。根據意圖選擇視窗、TF-IDF、標點符號或混合策略進行文件分段與章節提取。

indexion-segment 是什麼?

trkbt10/indexion-segment 是一個專為 RAG(檢索增強生成)與嵌入管道設計的文本分段技能。它能將長文件智慧地切割成具有上下文意義的區塊,支援多種分段策略:基於視窗的固定長度分割、TF-IDF 主題感知分割、標點符號結構感知分割,以及混合策略。使用者可根據意圖選擇最合適的策略,從而優化後續檢索與生成的品質。此技能適用於 Claude Code、Cursor、Codex 等 AI 代理平台,透過 SKILL.md 檔案定義配置與使用方式,讓開發者能輕鬆整合進文件處理工作流程中。

相容平台~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.

相關技能