Indexion Refactor
Detects and removes duplicated code at textual, structural, and conceptual levels using indexion analysis.
- CCM score
- 63 of 100
- skills.sh installs
- 5K
- GitHub stars
- 2
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers three duplication levels: copy-paste blocks, cross-package shared code, and trivial delegation wrappers
- Runs
plan refactor,plan solid, andplan unwrapwith include and exclude filters for MoonBit sources - Lists stop signals such as platform stubs and
command()boilerplate that are intentional rather than duplication - Designed for codebases where a single concept has been implemented in several scattered modules
Install
$ npx -y skills add trkbt10/indexion-skills --skill indexion-refactor -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
indexion refactor — Codebase Refactoring
Detect and eliminate duplication at three levels — textual, structural, and conceptual — using indexion's analysis commands, then verify SoT is enforced.
When to Use
- After adding a new abstraction (type, module, API layer)
- After introducing a new file format or I/O boundary
- When a fix required touching 3+ files for the same reason
- When a "guard" or "skip" was added to work around a structural problem
- When
opendir,ENOENT, or similar filesystem errors appear from unexpected paths - When extracting shared code across packages
- When cleaning up after a refactor (removing trivial wrapper functions)
- Periodic SoT health check on a codebase
Three Levels of Duplication
Details
- Repository
- github.com/trkbt10/indexion-skills
- Category
- Code Review & Quality
- First seen
- Jul 14, 2026
Questions
What does the indexion-refactor skill do?
The indexion-refactor skill detects and cleans up duplication after code is written, at textual, structural, and conceptual levels. It uses indexion's plan refactor and plan solid commands to find copy-paste blocks, cross-package shared code, and unnecessary wrappers, then helps fix them and verify the single source of truth.
How do I install the indexion-refactor skill?
Run npx -y skills add trkbt10/indexion-skills --skill indexion-refactor -y in your project. The skill needs indexion installed and available in your PATH, and it then lets the agent detect and fix duplication with indexion analysis.
Which other skills lead the Code Review & Quality category?
indexion-refactor sits in the Code Review & Quality category on Claude Marketplaces, alongside improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. Its focus is detecting duplication and concept-level single source of truth violations with indexion.
More from trkbt10/indexion-skills
All 8Similar to Indexion Refactor
More Code Review & Qualityreview-duplicationgoogle-gemini/gemini-cli373 installsStructured code-review workflow that hunts for duplicated logic and missed reuse of existing project utilities.
indexion-identitytrkbt10/indexion-skills4.9K installsDetects name and content drift in code, then plans verified renames, moves, and splits from audit findings.
refactor-advisorlaolaoshiren/claude-code-skills-zh117 installsSystematic code refactoring advisor that scans for smells, ranks issues by severity, and outlines fixes.
jscpdkucherenko/jscpd2.9K installsDetect duplicated code and measure duplication percentages.
refactorgithub/awesome-copilot23K installsSurgical refactoring that improves maintainability in small steps while preserving existing behavior.
code-refactormhattingpete/claude-skills-marketplace307 installsBulk, consistent code refactoring across files that renames identifiers, replaces patterns, and updates API calls safely.