What problem does it solve?
Manually identifying undocumented architectural and implementation patterns across a codebase is time-consuming and error-prone, leading to inconsistent code, unreviewed technical debt, and inefficient code reviews that miss deviations from established conventions.
Core Features & Use Cases
- Automated Pattern Discovery: Identifies implicit patterns across structure & layering, error handling, observability, configuration, dependency injection, testing, and transport layers using parallel codebase analysis.
- Consistency Quantification: Classifies each discovered pattern as established, emerging, or inconsistent to highlight areas where code deviates from common team or project conventions.
- Use Case: When onboarding to a new large codebase, use this skill to generate a patterns document that aligns future contributions with existing standards and gives reviewers a clear baseline for conformance checks.
Quick Start
Use the discover-patterns skill to analyze the current project codebase and generate a structured patterns document for the engineering team to reference during code reviews.