component-common-domain-detection

Detect duplicate domain logic across components and recommend consolidation.

59|14|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/guilhermemarketing/esc-skills --skill component-common-domain-detection-guilhermemarketing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-common-domain-detection
Source: https://github.com/guilhermemarketing/esc-skills/tree/main/skills/component-common-domain-detection
Command: npx skills add https://github.com/guilhermemarketing/esc-skills --skill component-common-domain-detection-guilhermemarketing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identifies and consolidates duplicate domain logic across components to reduce duplication and improve maintainability.

Core Features & Use Cases

  • Domain pattern detection (namespace-based)
  • Shared class detection across components
  • Functionality similarity analysis and consolidation recommendations
  • Coupling impact assessment and actionable plans
  • Works across codebases with multiple components and domains

Quick Start

Analyze your codebase to identify and consolidate common domain functionality.

Frequently Asked Questions about component-common-domain-detection

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

FAQPage Schema
How do I detect duplicate domain logic across multiple components?

Duplicate domain logic is detected by applying namespace pattern detection and shared class detection across components. The analysis identifies functionality similarity and coupling impacts, outputting structured consolidation recommendations to reduce code duplication and improve maintainability.

What is the best way to consolidate shared classes in a codebase?

The best way to consolidate shared classes is to perform functionality similarity analysis and coupling impact assessment. This identifies overlapping domain patterns across components, allowing you to execute structured consolidation plans that reduce duplication without breaking existing dependencies.

When do I need to analyze codebase components for functionality similarity?

You need to analyze components for functionality similarity when a codebase has multiple components sharing similar domain logic and shared classes. This detection process reveals consolidation opportunities to reduce duplication and improve maintainability across the software architecture.

Can I assess coupling impact before consolidating domain patterns?

Yes, you can assess coupling impact before consolidating domain patterns. The analysis evaluates how shared classes and namespace patterns interact across components, providing structured outputs that detail the coupling impact and actionable consolidation recommendations to ensure safe refactoring.

Does namespace pattern detection work for finding code duplication across components?

Yes, namespace pattern detection works for finding code duplication by identifying matching structural patterns across components. Combined with shared class detection and functionality similarity analysis, it provides structured outputs that highlight consolidation opportunities to reduce duplicated domain logic.

Are there limitations to consolidating shared classes across multiple domains?

Consolidation requires careful coupling impact assessment to avoid breaking existing functionality across multiple domains. While shared class detection identifies duplication, you must review the structured consolidation recommendations to ensure merging domain logic does not introduce unwanted dependencies between components.