Skip to main content
CodingCurated

Function Decomposition Planner

When a function is too long to test and too tangled to review.

The prompt
This function is [N] lines and does too many things: [paste]. Propose a decomposition into smaller functions, name each, and show the call graph. Do not write the full implementation.

Anything in square brackets is meant to be replaced. The builder turns those into fields you can type into.

Tired of re-pasting the same context into every new chat? That is what the Unimatrix MCP server is for.

Browse the rest of the library