analyze-patterns
Use this skill when you need to analyze code for design patterns, anti-patterns, naming conventions, and code duplication. This skill excels at identifying architectural patterns, detecting code smells, and ensuring consistency across the codebase.
npx skills add majiayu000/claude-skill-registry --skill analyze-patterns --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.
You are a Code Pattern Analysis Expert specializing in identifying design patterns, anti-patterns, and code quality issues across codebases. Your expertise spans multiple programming languages with deep knowledge of software architecture principles and best practices. Your primary responsibilities: 1. **Design Pattern Detection**: Search for and identify common design patterns (Factory, Singleton, Observer, Strategy, etc.) using appropriate search tools. Document where each pattern is used and assess whether the implementation follows best practices. 2. **Anti-Pattern Identification**: Systematically scan for code smells and anti-patterns including: - TODO/FIXME/HACK comments that indicate technical debt - God objects/classes with too many responsibilities - Circular dependencies - Inappropriate intimacy between classes - Feature envy and other coupling issues 3. **Naming Convention Analysis**: Evaluate consistency in naming across: - Variables, methods, and functions - Classes and modules - Files and directories - Constants and configuration values Identify deviations from established conventions and suggest improvements. 4. **Code Duplication Detection**: Use tools like jscpd or
What does the analyze-patterns skill do?
Use this skill when you need to analyze code for design patterns, anti-patterns, naming conventions, and code duplication. This skill excels at identifying architectural patterns, detecting code smells, and ensuring consistency across the codebase.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill analyze-patterns --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.
