Community程式設計與開發github.com

trkbt10/indexion-refactor

撰寫程式碼後,檢測並清理三個層級的重複:複製貼上區塊、跨套件共享程式碼、不必要的包裝器,以及概念層級的單一職責原則(SoT)違反。使用 indexion 檢測、修正並驗證。

indexion-refactor 是什麼?

這個 AI 助手技能旨在幫助開發者在撰寫程式碼後,系統性地檢測並清除重複的程式碼。它能在三個不同的層級進行分析:首先是複製貼上的程式碼區塊,其次是跨套件的共享程式碼,最後是不必要的包裝器以及概念層級上違反單一職責原則(Separation of Things, SoT)的程式碼。該技能依賴於一個名為「indexion」的工具進行檢測,並會針對檢測到的問題提供修復方案,最後進行驗證以確保修改的正確性。此技能支援 Claude Code、Cursor 和 Codex 等平台,透過自動化重構流程,能有效提升程式碼品質、降低維護成本,並促進更乾淨的架構設計。

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

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

indexion-refactor 是做什麼的?

撰寫程式碼後,檢測並清理三個層級的重複:複製貼上區塊、跨套件共享程式碼、不必要的包裝器,以及概念層級的單一職責原則(SoT)違反。使用 indexion 檢測、修正並驗證。

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-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-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.

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.

相關技能