SlashAI
Coding & Development

Refactoring

7 commands

/RefactorComponent

Refactor without changing behaviour a UI component — e.g. a React `<PricingTable />` component with three tier props.

Coding & Developmentadvanced#frontend#component

/CodeSimplify

Refactors for readability without changing behaviour: fewer branches, clearer names, dead code out - with a diff-style explanation.

Coding & Developmentmedium#refactoring#readability

/RefactorScript

Refactor without changing behaviour a script — e.g. a Python script that renames 10.

Coding & Developmentadvanced#script#automation

/RefactorApi

Refactor without changing behaviour an API endpoint — e.g. a `POST /api/orders` Express handler with Stripe integration.

Coding & Developmenteasy#api#backend

/RefactorConfig

Refactor without changing behaviour a config file — e.g. a `docker-compose.yml` running Postgres.

Coding & Developmenteasy#config#devops

/RefactorFunction

Refactor without changing behaviour a function — e.g. a 40-line `parseInvoice(buffer)` helper in TypeScript.

Coding & Developmentmedium#function#refactoring

/RefactorQuery

Refactor without changing behaviour a database query — e.g. a 30-line PostgreSQL query joining orders.

Coding & Developmentmedium#sql#query