$ recombobulate _
~/recombobulate $ tip --list --tag="refactoring"

// 24 tips tagged "refactoring"

0
Ask Claude to Scaffold New Features Using Your Existing Code Conventions

Before asking Claude to scaffold a new feature, point it at your existing code first — it will match your naming, structure, error handling, and test patterns exactly rather than defaulting to framework boilerplate.

bagwaa @bagwaa · 1 hour ago
0
Migrate Your Tailwind CSS v2 Classes to v4 with Claude

Ask Claude to migrate your Tailwind v2 utility classes and config to v4 — it handles renamed utilities, the new CSS-first config format, and @theme variable mappings across your whole codebase.

bagwaa @bagwaa · 2 hours ago
0
Convert Your SQL Schema to a Prisma Schema with Claude

Pipe your SQL DDL or Laravel migrations to Claude and get a complete Prisma schema back — foreign keys become relations, enums map correctly, and @@map attributes preserve your existing table names.

bagwaa @bagwaa · 2 hours ago
0
Convert JavaScript to TypeScript Incrementally with Claude

Migrate JavaScript to TypeScript one file at a time with Claude — set up allowJs, convert leaf modules first, then tighten strict mode when you're ready.

bagwaa @bagwaa · 2 hours ago
0
Ask Claude to Generate tRPC Routers from Your Existing API

Convert your existing REST API routes into fully typed tRPC procedures with Zod validation — Claude reads your handlers and generates the routers.

bagwaa @bagwaa · 2 hours ago
0
Convert React Class Components to Functional Hooks with Claude

Migrate React class components to functional components with hooks — Claude handles lifecycle methods, state, refs, and HoC replacements automatically.

bagwaa @bagwaa · 4 hours ago
0
Ask Claude to Extract Logic from a Fat Controller

Fat controllers are where good architecture goes to die — paste yours into Claude and ask it to extract the business logic into a proper service layer.

bagwaa @bagwaa · 4 hours ago
0
Ask Claude to Migrate Your Webpack Config to Vite

Paste your webpack.config.js into Claude and get a working vite.config.ts back, with notes on any plugins, aliases, or environment variable handling that needs updating.

bagwaa @bagwaa · 7 hours ago
0
Ask Claude to Implement an Event Sourcing Pattern

Describe your domain and let Claude design an event sourcing implementation with event classes, a store interface, and aggregate reconstruction logic.

bagwaa @bagwaa · 9 hours ago
0
Refactor Legacy PHP to Modern PHP 8 Features

Paste old PHP 7 code and ask Claude to modernise it with enums, named arguments, match expressions, and constructor property promotion.

bagwaa @bagwaa · 9 hours ago
0
Chain Commands with && to Keep Claude's Work Atomic

Chain multi-step operations with && so Claude's sequence halts immediately on failure — no more half-applied refactors or committed broken code.

bagwaa @bagwaa · 9 hours ago
0
Extract Pinia Stores from Bloated Vue Components

Paste a Vue component packed with inline data-fetching logic and ask Claude to extract it into a typed Pinia store — it handles the refactor, updates the component, and writes the Vitest tests.

bagwaa @bagwaa · 10 hours ago