SlashAI

Coding & Development / Refactoring

Refactor Script

/RefactorScript
Coding & DevelopmentRefactoring🟢 Beginnercoding

Try it in

When to reach for this

Writing, reviewing and debugging code in plain language.

  • First drafts of a function, class or script
  • Reading an error message and working out the actual cause
  • Reviewing a diff, a design doc or a pull request
Area
Refactoring
Effort
No blanks to fill
Difficulty
advanced
Niche
7 commands here

Fresh and trending

Ordered by the catalogue's own addedAt and popularity fields — not by live traffic, which SlashAI never sees. Some addedAt values in the source data sit in the future, so treat “newest” as newest-in-catalogue rather than as a verified publication date.

Hashtags

Post it:

What it does

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

How to use

Share the current code and state any constraints like framework version or style guide. Bring a script — for example a Python script that renames 10,000 S3 objects nightly. You get back a rewritten version with a summary of what changed and why.

Example

/RefactorScript
Input: a Python script that renames 10,000 S3 objects nightly
Ask: Share the current code and state any constraints like framework version or style guide.
Return: a rewritten version with a summary of what changed and why

Run it in

Paste the command, then attach the file or text on the same message - it handles mixed input well.

Free tier
scriptautomationrefactoringrefactorcoding

How did this land?

Only you see this — stored on this device

Paste this command into your AI tool, then come back and say how it went. Your answer stays in this browser — SlashAI has no server and no account, so there is nothing to send it to and nobody who would read it.

You might also like

Coding & Development

/RefactorComponent

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

Coding & Development

/RefactorApi

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

Coding & Development

/RefactorConfig

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

Coding & Development

/RefactorFunction

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

Something wrong? Report it