Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Finding and removing code duplication v1.0.0

Use this resource to find and remove code duplication after a change

New

  • 475 downloads
  • 216 likes
  • 141 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install detect-and-remove-code-duplication

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent detects duplication at three levels: copied blocks, code shared across packages and unnecessary wrappers, then checks that a single source of truth remains. It consolidates, reruns detection to confirm and uses grep to trace references before merging. You get shorter code with no repetition.

Mostly picked by

Updated November 2, 2026

Card for the “Finding and removing code duplication” skill

Details

Generates with
Your agent's model
Licence
Apache-2.0

Similar resources

View all

What you get

  • SKILL.md: three-level duplication detection and phased workflow
  • SKILL.md: confidence thresholds, shared code extraction and verification

Good fit for

  • You added an abstraction and identical blocks are still around
  • One fix touched three files for the same reason

Not for

    Tags

    • refactoring
    • duplication
    • code
    • indexion
    • cleanup

    About

    You say

    “Find the blocks duplicated above 90% in this repository and merge them.”

    Card for the “Finding and removing code duplication” skill

    Skill published by trkbt10 under the Apache-2.0 license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to find and remove code duplication after a change
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE10.6 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • SKILL.md14 KB

    Origin and licence

    Listed unmodified

    Author
    trkbt10
    Source
    github.com/trkbt10/indexion-skills/tree/7ad5ad35a6688db2f8765c1b270c9f6473da3a51/skills/indexion-refactor
    Licence
    Apache-2.0

    Notice

    « indexion-refactor » (trkbt10, Apache-2.0) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.