pattern-detection
Detect and document existing code patterns in a codebase. Use to maintain consistency with established conventions when writing new code.
npx skills add majiayu000/claude-skill-registry --skill pattern-detection-junior-frontend-dev-hi-u-ng-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Pattern Detection Skill ## Purpose Identify and document patterns for consistency enforcement. ## Pattern Categories ### 1. Naming Conventions Reference: [patterns/naming-conventions.md](patterns/naming-conventions.md) Detection method: - Sample 10+ files across different directories - Extract function/class/variable names - Identify dominant patterns ### 2. Error Handling Reference: [patterns/error-handling.md](patterns/error-handling.md) Detection method: - Search for try/catch blocks - Find custom error classes - Check for error middleware ### 3. Testing Patterns Reference: [patterns/testing-patterns.md](patterns/testing-patterns.md) Detection method: - Locate test files - Analyze test structure - Identify mocking approach ## Consistency Scoring Rate codebase consistency: - **High (90%+)**: Strong patterns, few deviations - **Medium (70-89%)**: Clear patterns with some variation - **Low (<70%)**: Inconsistent, needs standardization ## Output Format Create patterns document with: 1. Detected patterns with examples 2. Consistency score per category 3. Deviation examples 4. Recommendations for standardization ## Storage Location Save to: `docs/research/patterns-{date}.md`
- Purpose
- Pattern Categories
- 1. Naming Conventions
- 2. Error Handling
- 3. Testing Patterns
- Consistency Scoring
- Output Format
- Storage Location
What does the pattern-detection skill do?
Detect and document existing code patterns in a codebase. Use to maintain consistency with established conventions when writing new code.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill pattern-detection-junior-frontend-dev-hi-u-ng-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
