Cursor Composer: Decompose a God Object Into Focused Modules
Analyzes an oversized class or object and produces a concrete multi-file refactor plan with clear ownership boundaries.
The Prompt
Already a member? Sign in.
Related prompts
Cursor Composer: Extract a Config Object From Hardcoded Scattered Values
Finds every hardcoded constant buried across your codebase and consolidates them into a single typed config object.
Cursor Composer: Split a God Component Without Breaking Props
Multi-file Composer prompt that decomposes a bloated component into smaller ones while preserving the exact external prop contract.
Cursor Composer: Split a Route Handler Into Layered Services
Refactors a bloated route handler into clean controller, service, and data-access layers without changing behavior.
Cursor Composer: Replace a Callback Hell Chain With Structured Async
Refactor deeply nested callback pyramids into readable async/await with proper error isolation and cancellation awareness.
