Function Complexity Scorer and Refactor Suggester
Analyze function complexity using cyclomatic and cognitive metrics, then suggest specific refactoring strategies.
The Prompt
Free accounts also get the weekly newsletter.
Related prompts
Trace Every Side Effect Hiding in a Pure-Looking Function
Finds functions that look pure but secretly mutate state, hit I/O, or produce hidden effects.
Find Every Async Function That Blocks on Synchronous I/O
Scan a codebase for async functions secretly doing sync I/O and explain the performance cost of each.
Map Every Side Effect Hidden Inside a Pure-Looking Function
Audit a module or file to surface every function that looks pure but secretly reads from or writes to shared state.
Find Every Async Function That Blocks the Event Loop
Scan your codebase for async patterns that silently serialize work and kill throughput under load.
