Aller au contenu
Skillpedia
Programmation générale7.1k · #13505

domain-identification-grouping

Ce qu’il fait

Ce skill fait trier par l'IA les composants existants d'une base de code en domaines métier logiques. Il s'adresse aux architectes et aux développeurs qui préparent des services et veulent savoir quelles parties vont ensemble.

Quand l’utiliser

  • ✓Quand vous demandez quels composants de votre application vont ensemble.
  • ✓Quand vous prévoyez de transformer une application existante en services par domaine.
  • ✓Quand l'organisation des dossiers ou des espaces de noms ne correspond pas aux domaines métier et que vous voulez les aligner.

Lien du skill

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(architecture)/domain-identification-grouping/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(architecture)/domain-identification-grouping/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Regroupe les composants de notre base de code en domaines métier pour que je voie ceux qui vont ensemble.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'IA examine ce que fait chaque composant et comment les composants se connectent, attribue chacun à un domaine métier, et suggère des modifications de dossiers pour correspondre.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Domain Identification and Grouping

This skill groups architectural components into logical domains (business areas) to prepare for creating domain services in a service-based architecture.

How to Use

Quick Start

Request analysis of your codebase:

  • "Group components into logical domains"
  • "Identify component domains for service-based architecture"
  • "Create domain groupings from components"
  • "Analyze which components belong to which domains"

Usage Examples

Example 1: Domain Identification

User: "Group components into logical domains"

The skill will:
1. Analyze component responsibilities and relationships
2. Identify business domains based on functionality
3. Group components into domains
4. Create domain diagrams
5. Suggest namespace refactoring for domain alignment

Example 2: Domain Analysis

User: "Which domain should the billing components belong to?"

The skill will:
1. Analyze billing component functionality
2. Check relationships with other components
3. Identify appropriate domain (e.g., Customer or Financial)
4. Recommend domain assignment

Example 3: Domain Refactoring

User: "What namespace refactoring is needed to align components with domains?"

The skill will:
1. Compare current component namespaces to identified domains
2. Identify misaligned components
3. Suggest namespace changes
4. Create refactoring plan

Step-by-Step Process

  1. Identify Domains: Analyze business capabilities and component relationships
  2. Group Components: Assign components to appropriate domains
  3. Validate Groupings: Ensure components fit well in their domains
  4. Refactor Namespaces: Align component namespaces with domains
  5. Create Domain Map: Visualize domain structure and component groupings

When to Use

Apply this skill when:

  • After identifying, sizing, and analyzing component dependencies
  • Before creating domain services (Pattern 6)
  • When planning service-based architecture migration
  • Analyzing component relationships and business alignment
  • Preparing for domain-driven design implementation
  • Grouping components for better organization

Core Concepts

Domain Definition

A domain is a logical grouping of components that:

  • Represents a distinct business capability or area
  • Contains related components that work together
  • Has clear boundaries and responsibilities
  • Can become a domain service in service-based architecture

Examples:

  • Customer Domain: Customer profile, billing, support contracts
  • Ticketing Domain: Ticket creation, assignment, routing, completion
  • Reporting Domain: Ticket reports, expert reports, financial reports

Component Domain Relationship

One-to-Many: A single domain contains multiple components

Domain: Customer
├── Component: Customer Profile
├── Component: Billing Payment
├── Component: Billing History
└── Component: Support Contract

Domain Manifestation

Domains are physically manifested through namespace structure:

Before Domain Alignment:

services/billing/payment
services/billing/history
services/customer/profile
services/supportcontract

After Domain Alignment:

services/customer/billing/payment
services/customer/billing/history
services/customer/profile
services/customer/supportcontract

Notice how all customer-related functionality is grouped under .customer domain.

Analysis Process

Phase 1: Identify Business Domains

Analyze the codebase to identify distinct business domains:

  1. Examine Component Responsibilities

    • Read component names and descriptions
    • Understand what each component does
    • Identify business capabilities
  2. Look for Business Language

    • Group components by business vocabulary
    • Example: "billing", "payment", "invoice" → Financial domain
    • Example: "customer", "profile", "contract" → Customer domain
  3. Identify Domain Boundaries

    • Where do business concepts change?
    • What are the distinct business areas?
    • How do components relate to business capabilities?
  4. Collaborate with Business Stakeholders

    • Validate domain identification with product owners
    • Ensure domains align with business understanding
    • Get feedback on domain boundaries

Example Domain Identification:

## Identified Domains

1. **Ticketing Domain** (ss.ticket)
   - Ticket creation, assignment, routing, completion
   - Customer surveys
   - K
Questions fréquentes

Trouve-t-il de nouveaux domaines depuis zéro ?

Non. L'identification de nouveaux domaines dès le départ relève d'un skill distinct.

Analyse-t-il le couplage entre les parties ?

Non. L'analyse du couplage relève de son propre skill.

Propose-t-il des changements d'espaces de noms ?

Oui. Il peut proposer des changements de dossiers et d'espaces de noms pour que le code corresponde aux domaines.

Détails

Description originale de l’auteur

Groups existing components into logical business domains to plan service-based architecture. Use when asking "which components belong together?", "group these into services", "organize by domain", "component-to-domain mapping", or planning service extraction from an existing codebase. Do NOT use for identifying new domains from scratch (use domain-analysis) or analyzing coupling (use coupling-analysis).

repo: tech-leads-club/agent-skills

Popularité

Étoiles GitHub
7.1k
Position au classement
#13505
Licence
—
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires