What problem does it solve?
It helps you improve code quality by diagnosing code smells, weak error handling, unclear logging, and fragile domain modeling so you can refactor with proven design-pattern principles instead of guessing.
Core Features & Use Cases
- Code smell diagnosis (9 core smells): Identifies issues like long functions, God Objects, DRY violations, giant conditionals, magic numbers, feature envy, data clumps, useless comments, and primitive obsession.
- Error handling guidance (Result Pattern): Teaches when to replace try/catch flow with explicit error propagation and safer error boundaries.
- Structured logging coaching: Guides you toward wide, canonical log lines enriched per request to improve debugging and monitoring.
- Domain modeling with validated types: Recommends replacing primitive strings/numbers with domain types that guarantee validity.
- Design pattern selection (GoF): Helps you map real problems to the right patterns (Observer, Factory, Singleton, Decorator, Strategy, Adapter) and avoid anti-pattern misuse.
- JS/TS advanced reasoning: Covers hoisting, closures/memory, event loop/microtasks, promises, GC leaks, recursion limits, and data transforms.
Quick Start
Ask for a quality review by describing the specific code issue or paste the relevant snippet you want analyzed, for example: analyze the code snippet for code smells and propose refactoring directions for the error-handling, logging, and domain modeling parts.