Skip to content
I

indexion-refactor

After writing code, detect and clean up duplication at three levels

by trkbt10Free

2
#6659in AI Skills
0In stores

Description

indexion-refactor is an agent skill from the indexion-skills collection by trkbt10, listed on skills.sh. It runs after code is written to fi…

Highlights

  • Finds copy-paste blocks and shared code
  • Removes unnecessary wrapper functions
  • Checks single source of truth
  • Run after new abstractions or refactors

Ratings & Reviews

No ratings yet

Be the first to rate indexion-refactor.

People also visit

D

dry-refactoring

Guided workflow to eliminate copy-paste duplication detected by jscpd

AI Skills
Get
C

clean-code

Embodies the principles of "Clean Code" by Robert C

AI Skills
Get
C

code-refactoring-refactor-clean

You are a code refactoring expert specializing in clean code principles

AI Skills
Get
R

refactor

Surgical code refactoring to improve maintainability without changing behavior

AI Skills
Get
I

indexion-identity

Detect and review name/content drift in code

AI Skills
Get
C

ce-simplify-code

Simplify settled, recently changed code for clarity, reuse, quality

AI Skills
Get

indexion-refactor FAQ

What does indexion-refactor do?

It finds and removes duplication in code at three levels, and checks that each concept has one source of truth.

How do I install it?

Run: npx skills add https://github.com/trkbt10/indexion-skills --skill indexion-refactor.

Is it free?

Yes. The skill is free and open source.

When should I run it?

After adding a new abstraction, after a fix touched three or more files for one reason, or as a periodic health check.

What are the three levels?

Textual copy-paste, structural duplication across packages, and conceptual duplication against the single source of truth.

Does it remove wrappers?

Yes. It looks for unnecessary trivial wrapper functions, which it flags for cleanup.

What are the best indexion-refactor alternatives?

Popular alternatives to indexion-refactor include dry-refactoring, clean-code and code-refactoring-refactor-clean. See all indexion-refactor alternatives

Developer Stuff

Badges