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.

Refactoring: naming, extraction and dead code v1.0.0

Use this resource to make code more readable without changing its behaviour

New

  • 331 downloads
  • 223 likes
  • 135 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install behaviour-preserving-refactoring-2

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 renames identifiers, extracts long functions, replaces magic numbers with constants and removes unused code, then checks consistency. It does not handle bugs or security. You get clearer code with unchanged behaviour.

Mostly picked by

Updated November 2, 2026

Card for the “Refactoring: naming, extraction and dead code” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: scope and refactoring recipes
  • reference/function-splitting.md: splitting long functions
  • reference/dead-code-detection.md: dead code detection

Good fit for

  • A module has become hard to read after several additions
  • Constants and magic numbers are scattered across the code

Not for

    Tags

    • refactoring
    • readability
    • dead code
    • naming
    • functions

    About

    You say

    “Clean up this module: clear names, long functions split and dead code removed.”

    Card for the “Refactoring: naming, extraction and dead code” skill

    Skill published by simota under the MIT 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 make code more readable without changing its behaviour
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1 KB
    • NOTICE-PALATEKIT.md0.4 KB
    • reference/agent-integrations.md3.7 KB
    • reference/ai-assisted-refactoring.md11.6 KB
    • reference/autorun-schema.md0.9 KB
    • reference/code-smells-metrics.md6.8 KB
    • reference/cognitive-complexity-research.md4.4 KB
    • reference/consistency-audit.md5.4 KB
    • reference/dead-code-detection.md4.3 KB
    • reference/function-splitting.md1.4 KB
    • reference/guard-clauses.md1.3 KB
    • reference/logic-simplification.md3.7 KB
    • reference/refactoring-anti-patterns.md5.2 KB
    • reference/review-report-templates.md2.4 KB
    • reference/tech-debt-prioritization.md5.2 KB
    • reference/test-refactoring.md14.6 KB
    • SKILL.md24.5 KB

    Origin and licence

    Listed unmodified

    Author
    simota
    Source
    github.com/simota/agent-skills/tree/2e02cc9efb3852a45334495df3784d59b87b0e18/zen
    Licence
    MIT

    Notice

    « zen » (simota, MIT) 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.