Skip to content
trkbt10 avatar

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
View on GitHub

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, and plan unwrap with 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 -y

Installs 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 8

Similar to Indexion Refactor

More Code Review & Quality