Codebase Pattern Detection

•
95
•

Analyzes codebase conventions and generates pattern briefs to guide AI agents during planning and implementation.

sc-patterns is a sophisticated analysis tool designed to extract high-confidence coding conventions and architectural patterns from your repository. By scanning existing files, it identifies enforceable styles—such as service object structures or test locations—and caches them as planning constraints. This ensures that when Claude Code performs tasks, it adheres strictly to your project's specific "golden path," reducing architectural drift and maintaining consistent code quality across the entire development lifecycle through automated guidance.

主要功能

01Automated codebase convention analysis and pattern detection
0295 GitHub stars
03Smart cache management using Git SHAs to prevent redundant scans
04Task-scoped pattern briefs for AI-guided implementation
05Confidence-based pattern classification ranging from enforceable to weak
06Human-in-the-loop policy overrides via YAML configuration

使用场景

01Onboarding AI agents to a legacy codebase with established conventions
02Generating architectural constraints before major refactors or feature implementations
03Standardizing coding styles across a large team by enforcing golden file patterns