component-common-domain-detection

Detect duplicate domain logic across components and generate consolidation plans.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/rodrigotoledo/trading-exchange --skill component-common-domain-detection-rodrigotoledo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-common-domain-detection
Source: https://github.com/rodrigotoledo/trading-exchange/tree/main/packages/skills-catalog/skills/%28architecture%29/component-common-domain-detection
Command: npx skills add https://github.com/rodrigotoledo/trading-exchange --skill component-common-domain-detection-rodrigotoledo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

Core Features & Use Cases

  • Detect common domain patterns (namespace endings like .notification, .audit, etc.)
  • Detect shared classes used by multiple components
  • Provide a consolidation plan with coupling impact analysis and risk assessment

Quick Start

Run a quick analysis to identify duplicate domain logic across components and generate consolidation recommendations.

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 services in a codebase?

Shared class detection identifies classes utilized by multiple components to highlight direct code duplication. Functionality analysis further examines overlapping behaviors to provide a comprehensive consolidation plan with associated risk evaluation.

What is the best way to consolidate duplicate domain logic without increasing coupling?

To plan domain logic consolidation, this Skill implements namespace pattern detection to find common domain endings like notification or audit. It then generates a concrete consolidation plan complete with coupling impact analysis and risk evaluation.

Can I use namespace pattern detection to find common domain logic across components?

Yes, this Skill is designed for codebases with multiple services. It detects common domain patterns, shared classes, and overlapping functionality across your distributed components to provide actionable consolidation recommendations.

What are the limitations of consolidating duplicate domain logic in a multi-service codebase?

A key limitation of consolidating duplicate domain logic is the risk of increased coupling between services. This Skill addresses this by providing a coupling assessment and risk evaluation within its consolidation plan to mitigate potential architectural impacts.