pattern-recognition-specialist

Analyze codebases for design patterns, anti-patterns, naming conventions, and duplication.

240|75|Updated Jul 13, 2023
One-click install
npx skills add https://github.com/udecode/plate-playground-template --skill pattern-recognition-specialist-udecode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pattern-recognition-specialist
Source: https://github.com/udecode/plate-playground-template/tree/main/.codex/skills/pattern-recognition-specialist
Command: npx skills add https://github.com/udecode/plate-playground-template --skill pattern-recognition-specialist-udecode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps maintain codebase consistency and quality by identifying design patterns, anti-patterns, naming convention violations, and code duplication.

Core Features & Use Cases

  • Design Pattern Detection: Identifies common design patterns (e.g., Factory, Singleton) and assesses their implementation.
  • Anti-Pattern Identification: Flags code smells like TODOs, God objects, and circular dependencies.
  • Naming Convention Analysis: Checks for consistency in naming across variables, functions, classes, and files.
  • Code Duplication Detection: Finds duplicated code blocks that can be refactored.
  • Architectural Boundary Review: Ensures proper separation of concerns and identifies cross-layer dependencies.
  • Use Case: After a new feature is implemented, use this Skill to verify it adheres to existing architectural patterns and coding standards.

Quick Start

Use the pattern-recognition-specialist skill to analyze the codebase for design patterns and naming convention consistency.

Frequently Asked Questions about pattern-recognition-specialist

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect design patterns and anti-patterns in my codebase?

Detect design patterns and anti-patterns by analyzing your codebase for common implementations like Factory or Singleton, and flagging code smells such as God objects, TODOs, and circular dependencies. It evaluates architectural boundaries to ensure proper separation of concerns across modules.

What's the best way to check naming conventions across a software project?

Checking naming conventions involves scanning variables, functions, classes, and files for consistency. This skill evaluates naming standard adherence across your codebase to highlight deviations, verify consistency, and maintain structural code quality.

How do I find duplicated code blocks for refactoring?

Find duplicated code blocks for refactoring by running comprehensive code analysis. This skill requires the jscpd tool to detect duplicated code segments, enabling targeted refactoring to eliminate redundancy and improve architectural maintainability.

Does code duplication detection work without installing external dependencies?

Code duplication detection does not work without external dependencies. This skill explicitly requires Grep and jscpd tools to perform comprehensive code analysis, identify anti-patterns, and detect duplicated code blocks across your project.

When should I analyze architectural boundaries in my code?

Analyze architectural boundaries when verifying that newly implemented features adhere to existing architectural patterns. This review identifies cross-layer dependencies, flags improper separation of concerns, and ensures your codebase maintains long-term structural consistency.