component-common-domai…
Finds duplicate business logic spread across multiple components and suggests consolidation. Use when asking "where is this logic duplicated?", "find common…
Maps business domains and suggests service boundaries in any codebase using DDD Strategic Design. Use when asking "what are the domains in this codebase?", "where should I draw service boundaries?", "identify bounded contexts", "classify subdomains", "DDD analysis", or analyzing
$ npx -y skills add tech-leads-club/agent-skills --skill domain-analysis --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/domain-analysisContext preview
The summary Claude sees to decide when to auto-load this skill.
Maps business domains and suggests service boundaries in any codebase using DDD Strategic Design. Use when asking "what are the domains in this codebase?", "where should I draw service boundaries?", "identify bounded contexts", "classify subdomains", "DDD analysis", or analyzing
name: domain-analysis description: Maps business domains and suggests service boundaries in any codebase using DDD Strategic Design. Use when asking "what are the domains in this codebase?", "where should I draw service boundaries?", "identify bounded contexts", "classify subdomains", "DDD analysis", or analyzing domain cohesion. Do NOT use for grouping existing components into domains (use domain-identification-grouping) or dependency analysis (use coupling-analysis).
This skill analyzes codebases to identify subdomains (Core, Supporting, Generic) and suggest bounded contexts following Domain-Driven Design Strategic Design principles.
Apply this skill when:
**Core Domain**: Competitive advantage, highest business value, requires best developers
**Supporting Subdomain**: Essential but not differentiating, business-specific
**Generic Subdomain**: Common functionality, could be outsourced
An explicit linguistic boundary where domain terms have specific, unambiguous meanings.
Scan codebase for business concepts (not infrastructure):
1. **Entities** (domain models with identity)
2. **Services** (business operations)
3. **Use Cases** (business workflows)
4. **Controllers/Resolvers** (entry points)
For each concept, determine:
**Primary Language Context**
**Linguistic Boundaries**
**Concept Relationships**
A subdomain has:
**Common Domain Patterns**:
**Classify Each Subdomain**:
Use this decision tree:
Is it a competitive advantage?
YES → Core Domain
NO → Does it require business-specific knowledge?
YES → Supporting Subdomain
NO → Generic Subdomain**High Cohesion Indicators** ✅
**Low Cohesion Indicators** ❌
**Cohesion Score Formula**:
Score = ( Linguistic Cohesion (0-3) + // Shared vocabulary Usage Cohesion (0-3) + // Used together Data Cohesion (0-2) + // Entity relationships Change Cohesion (0-2) // Change together ) / 10 8-10: High Cohesion ✅ 5-7: Medium Cohesion ⚠️ 0-4: Low Cohesion ❌
**Rule 1: Linguistic Mismatch**
**Rule 2: Cross-Domain Dependencies**
**Rule 3: Mixed Responsibilities**
**Rule 4: Generic in Core**
**Rule 5: Unclear Boundaries**
For each subdomain identified, suggest bounded context:
**Bounded Context Characteristics**:
**Integration P
The secure, validated skill registry for professional AI coding agents. Extend Antigravity, Claude Code, Cursor, Copilot and more with absolute confidence.
Repo: tech-leads-club/agent-skills
Finds duplicate business logic spread across multiple components and suggests consolidation. Use when asking "where is this logic duplicated?", "find common…
Detects misplaced classes and fixes component hierarchy problems — finds code that should belong inside a component but sits at the root level. Use when asking…
Maps architectural components in a codebase and measures their size to identify what should be extracted first. Use when asking "how big is each module?",…
Analyzes coupling between modules using the three-dimensional model (strength, distance, volatility) from "Balancing Coupling in Software Design". Use when…
Creates step-by-step decomposition plans and migration roadmaps for breaking apart monolithic applications. Use when asking "what order should I extract…
Groups existing components into logical business domains to plan service-based architecture. Use when asking "which components belong together?", "group these…