
Indexion Refactor
This is a surgical refactoring workflow that uses indexion to hunt down duplication at three levels: textual copy-paste, structural overlap across packages, and conceptual violations where the same domain logic lives in multiple places. You run it after big changes or when a single fix touched too many files. It walks you through plan refactor for finding duplicates within a codebase, plan solid for extracting shared code between packages, and plan unwrap for removing trivial wrapper functions. The threshold-based matching and tree edit distance strategies give you control over how aggressive the cleanup gets. Worth keeping in your toolkit if you maintain codebases that tend to accumulate similar-but-not-quite-the-same implementations over time.
- skills.sh installs
- 5K
- GitHub stars
- 2
- last updated
- Aug 21, 2026
Install
$ npx -y skills add trkbt10/indexion-skills --skill indexion-refactor --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/trkbt10/indexion-skills
- Categories
- Documentation, Code Review & Quality, Debugging
- First seen
- Jul 14, 2026