trkbt10 avatar

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

Installs 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

More from trkbt10/indexion-skills

All 9
1manaflow-ai avatarcmux-localizationmanaflow-ai/cmuxLocalization rules and audit workflow for cmux UI strings, settings rows, menus, shortcuts, schema/config text, docs, command/help text, alerts, tooltips, and w4.9Kskills.sh installs
2forcedotcom avataromnistudio-datapacks-deployforcedotcom/sf-skillsSalesforce Industries DataPack deployment automation using Vlocity Build. TRIGGER when: user deploys or validates OmniStudio/Vlocity DataPacks with vlocity comm4.8Kskills.sh installs
3tavily-ai avatarextracttavily-ai/skillsExtract content from specific URLs using Tavily's extraction API. Returns clean markdown/text from web pages. Use when you have specific URLs and need their con4.8Kskills.sh installs
4affaan-m avatarorch-build-mvpaffaan-m/eccOrchestrate bootstrapping a working MVP from a design or spec document — ingest the doc, plan thin vertical slices, scaffold the first end-to-end slice, then TD4.8Kskills.sh installs
5dpearson2699 avatarswiftui-patternsdpearson2699/swift-ios-skillsBuilds and reviews SwiftUI views with modern MV architecture, state, composition, isolated previews, and migration guidance. Covers @Observable ownership, @Stat4.7Kskills.sh installs
6jeffallan avatarvue-expertjeffallan/claude-skillsBuilds Vue 3 components with Composition API patterns, configures Nuxt 3 SSR/SSG projects, sets up Pinia stores, scaffolds Quasar/Capacitor mobile apps, impleme4.7Kskills.sh installs