review-component-consistency
Review a specific code component type throughout the codebase (e.g., Page Builder Widgets, Razor templates, scheduled tasks) and identify inconsistencies in…
от Kentico★ 20 звёзд на GitHub
Установить review-component-consistency в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Review Component Consistency
Systematically audit a code component type across the codebase, identify inconsistency patterns, and estimate their impact on AI agent code generation.
Quick Start
- Name the component type: "Review Page Builder Widgets" or "Review custom scheduled tasks" or "Review admin UI pages"
- The skill will explore and report:
- Inconsistency patterns (naming, registration, properties, structure)
- Impact on AI code generation (Low/Medium/High risk)
- Recommended changes with total risk estimates
Process
1. Clarify the Component Type
Ask:
- What component type should I review? (e.g., Page Builder Widgets, Razor templates, scheduled tasks, admin UI pages)
- Any specific project area? (or search entire codebase)
- Are there reference examples of "well-implemented" versions?
2. Discover All Implementations
Use the Explore agent to find all implementations of this component type:
- File patterns and locations
- Naming conventions currently in use
- Registration patterns (attributes, DI, configuration)
- Count of implementations
Output: A discovery matrix showing all found components with basic info.
3. Audit Consistency Dimensions
For each consistency dimension, analyze across all implementations:
Naming Conventions
- Class/file name patterns (e.g.,
{Domain}{Type}Widget,{Feature}Provider) - Method, function, variable, and field names
- Naming of supporting files (interfaces, extensions, utilities, types)
- Namespaces
- Outliers: count of implementations that don't match majority pattern
Registration & Configuration
- How components are registered (attributes, DI container, configuration files, manual setup)
- Consistency of registration metadata
- Required vs optional configurations
- Services the component depends on
- Module exposure through type system (exported, public, internal, etc...)
- Outliers and their registration approaches
Properties & Attributes
- Property name patterns and casing conventions
- Use of validation attributes or decorators (required, range, length, etc.)
- Property type consistency (when semantically representing the same concept)
- Documentation/description patterns
- Outliers: properties that break patterns
State & Invariance Validation
- Constructor validation patterns
- Immutability expectations
- State initialization approaches
- Null/empty checking strategies
- Outliers: unusual validation or state handling
Content Querying and Service calls
- How components query or access data (repositories, APIs, caches, imports)
- Query patterns and abstractions used
- Outliers: components with unique querying strategies
File & Folder Structure
- File naming (PascalCase vs. kebab-case, file extensions)
- Directory organization relative to component type
- Colocation or existence of related files (tests, styles, config, supporting classes)
- Outliers: components in unexpected locations
4. Report Findings
For each consistency dimension, create a structured report:
## [Dimension Name]
**Majority Pattern** (N implementations, X%):
- [description]
**Outliers** (N implementations, X%):
- [outlier pattern 1]: [list of components]
- [outlier pattern 2]: [list of components]
**Impact if Not Standardized**:
- AI code generation risk: [Low/Medium/High]
- Specific risk: [how AI agents might generate code that doesn't match majority pattern or violates implicit expectations]
5. Estimate AI Code Generation Impact
For each inconsistency, estimate impact on AI agent code generation:
- Low: Pattern variance doesn't affect agent ability to generate code matching the codebase; agents infer rules reliably from existing code
- Medium: Agents may generate code matching majority pattern but could miss minority patterns; requires clarification to stay consistent
- High: Inconsistency likely causes agents to generate mismatched, conflicting, or suboptimal code; new code added to codebase would increase inconsistency
Consider:
- How clearly can AI infer the rules from existing code?
- Will an agent with no special context generate code matching the majority pattern?
- Are there edge cases where an agent would be confidently wrong?
- How much could this lead to new inconsistencies being added to the codebase?
- Would a developer need to significantly rework or clarify AI-generated code?
6. Recommend Changes
For each High-impact inconsistency, recommend changes:
**Recommendation**: [Summary of change]
**Justification**:
- Aligns with majority pattern (X% of implementations)
- Reduces risk of [specific AI code generation problem]
- Improves clarity for [specific scenarios where agents struggle]
**Total Risk Estimate**: [Low/Medium/High]
- Low: narrow, mechanical changes with low chance of regressions
- Medium: broader updates needing targeted validation
- High: cross-cutting changes with meaningful regression risk
**Affected Components**
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл review-component-consistency?
Review a specific code component type throughout the codebase (e.g., Page Builder Widgets, Razor templates, scheduled tasks) and identify inconsistencies in naming, registration, properties, validation, querying, and structure. Use when analyzing component implementations for consistency and estimating AI code generation risk.
Как установить скилл review-component-consistency?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл review-component-consistency запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…