Pattern Analysis

Audit codebase patterns and evaluate proposed changes for consistency.

1|1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/dtsong/claude-code-windows-setup --skill pattern-analysis-dtsong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Pattern Analysis
Source: https://github.com/dtsong/claude-code-windows-setup/tree/main/skills/council/craftsman/pattern-analysis
Command: npx skills add https://github.com/dtsong/claude-code-windows-setup --skill pattern-analysis-dtsong

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps maintain code quality and consistency by auditing existing codebase patterns and evaluating proposed changes against established conventions.

Core Features & Use Cases

  • Codebase Auditing: Scans for file naming, directory organization, and module export patterns.
  • Pattern Identification: Identifies common code patterns in components, data fetching, state management, and error handling.
  • Consistency Evaluation: Assesses new code or changes against existing patterns to ensure adherence.
  • Use Case: Before merging a new feature, use this Skill to ensure its code follows the project's established style guides and architectural patterns, preventing technical debt.

Quick Start

Audit the codebase in the current directory for existing patterns and conventions.

Frequently Asked Questions about Pattern Analysis

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

FAQPage Schema
How do I audit my codebase for pattern consistency and conventions?

Codebase pattern auditing scans file naming, directory structure, and module exports to identify existing conventions. It evaluates components, data fetching, state management, and error handling patterns to document established project guidelines and detect structural inconsistencies before merging new features.

What is codebase pattern analysis and when do I need it?

Codebase pattern analysis identifies and documents existing architectural conventions across components and state management. You need it before merging new features or refactoring to ensure proposed changes adhere to established project guidelines, preventing technical debt caused by inconsistent code implementation.

How do I evaluate proposed code changes against existing project conventions?

Evaluating proposed changes against project conventions requires analyzing the new code structure and comparing it to established patterns in directory organization and module exports. This consistency evaluation ensures adherence to existing data fetching, state management, and error handling implementations.

Can I check code consistency for state management and data fetching patterns?

Checking code consistency for state management and data fetching patterns involves scanning the codebase to identify common implementation conventions. The analysis documents how these components are structured, providing recommendations for adherence or refactoring to maintain architectural alignment.

Does code pattern auditing require predefined style guides or configuration files?

Code pattern auditing does not require predefined style guides; it analyzes the existing codebase structure to document established conventions. By scanning file naming and directory organization, it derives the project's implicit architectural guidelines to evaluate proposed changes against discovered patterns.

What's the best way to identify refactoring opportunities in inconsistent codebases?

Identifying refactoring opportunities requires auditing codebase patterns to detect deviations in file naming, directory structure, and error handling. Documenting these inconsistencies provides actionable recommendations for refactoring components and aligning implementations with established project conventions.