Community编程与开发github.com

trkbt10/indexion-refactor

编写代码后,在三个层面检测并清理重复——复制粘贴块、跨包共享代码、不必要的包装器以及概念级别上的SoT违规。使用indexion进行检测、修复并验证。

indexion-refactor 是什么?

此技能用于在编写代码后系统地检测和消除重复代码。它涵盖三个层面:复制粘贴块(低级重复)、跨包共享代码(中级重复)以及不必要的包装器和概念级别的单一职责原则(SoT)违规(高级重复)。它利用indexion工具进行检测,然后提供修复建议并验证结果。该技能适用于Claude Code等AI助手平台,帮助开发者保持代码库的整洁、可维护和一致性。通过自动化重复检测和重构流程,它减少了手动审查的工作量,并提高了代码质量。它基于项目的SKILL.md文档,指导AI助手执行检测、修复和验证步骤。

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

相关技能