domain-identification-grouping
Что он делает
Этот скилл заставляет ИИ разложить существующие компоненты кодовой базы по логичным бизнес-областям. Он нужен архитекторам и разработчикам, которые планируют сервисы и хотят понять, какие части должны быть вместе.
Когда использовать
- ✓Когда вы спрашиваете, какие компоненты приложения должны идти вместе.
- ✓Когда вы планируете превратить существующее приложение в отдельные доменные сервисы.
- ✓Когда структура папок или пространств имён не совпадает с бизнес-областями и вы хотите её выровнять.
Ссылка на скилл
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(architecture)/domain-identification-grouping/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Сгруппируй компоненты нашей кодовой базы по бизнес-доменам, чтобы я увидел, какие из них относятся друг к другу.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
ИИ изучает, что делает каждый компонент и как компоненты связаны, относит каждый к бизнес-области и предлагает изменения папок, чтобы они соответствовали доменам.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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
- Identify Domains: Analyze business capabilities and component relationships
- Group Components: Assign components to appropriate domains
- Validate Groupings: Ensure components fit well in their domains
- Refactor Namespaces: Align component namespaces with domains
- 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:
Examine Component Responsibilities
- Read component names and descriptions
- Understand what each component does
- Identify business capabilities
Look for Business Language
- Group components by business vocabulary
- Example: "billing", "payment", "invoice" → Financial domain
- Example: "customer", "profile", "contract" → Customer domain
Identify Domain Boundaries
- Where do business concepts change?
- What are the distinct business areas?
- How do components relate to business capabilities?
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
Частые вопросы
Он находит новые домены с нуля?
Нет. Выявление новых доменов с нуля — отдельный скилл.
Анализирует ли он связанность частей?
Нет. Анализом связанности занимается свой скилл.
Предложит ли он изменения пространств имён?
Да. Он может предложить изменения папок и пространств имён, чтобы код соответствовал доменам.
Подробности
Оригинальное описание автора
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).
Популярность
- Звёзды на GitHub
- 7.1k
- Место в рейтинге
- #13505
- Лицензия
- —
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
component-common-domain-detection
7.1kПомогает агенту найти бизнес-логику, которая повторяется в нескольких частях кодовой базы, и предлагает, как её объединить.
component-flattening-analysis
7.1kПомогает агенту найти код, стоящий не на своём месте, и выровнять запутанную структуру папок компонентов, чтобы каждая часть находилась на месте.
component-identification-sizing
7.1kПомогает агенту описать части кодовой базы и измерить их размер, чтобы найти, какой модуль стоит разделить первым.
coupling-analysis
7.1kПомогает агенту проверить, насколько тесно части кодовой базы зависят друг от друга, и какие связи стоит ослабить в первую очередь.
Похожие скиллы
diffs
394kПозволяет агенту создать настоящее сравнение правок в виде ссылки или файла изображения, которым можно поделиться, вместо ручной сводки.
coding-agent
394kПомогает агенту передать большую задачу по коду в Codex, Claude Code или OpenCode как фоновому исполнителю, а затем проверять ее ход.
gh-issues
394kПомогает агенту находить задачи GitHub, выбирать, над какими работать, и открывать запросы на слияние с исправлениями, включая ответы на комментарии рецензентов.