What problem does it solve?
Manually identifying and documenting coding patterns is time-consuming and often leads to outdated or incomplete guides. This Skill automates the discovery, validation, and promotion of engineering patterns directly from your codebase, ensuring your documentation always reflects actual practices.
Core Features & Use Cases
- Automated Pattern Detection: Scans code for recurring structures and practices (e.g., type hints, caching strategies, MLX-specific optimizations).
- Lifecycle Management: Tracks patterns from "Discovery" to "Validated" to "Archived" based on usage frequency.
- Dynamic Documentation: Automatically updates
PATTERNS.md with validated patterns, including descriptions and code examples.
- Use Case: After a team refactors a core module, this Skill automatically updates the project's
PATTERNS.md to reflect new best practices, ensuring all agents and developers are aligned with the latest coding standards.
Quick Start
Scan entire codebase for patterns
python .claude/skills/pattern-curator/detect_patterns.py --full-scan
Update PATTERNS.md from cached data
python .claude/skills/pattern-curator/update_patterns.py