Placement de sous-domaine (Capacité)

VérifiéSûr

Classe les capacités métier en sous-domaines DDD (core, support, générique) avec une note de volatilité, limité aux éléments touchés.

Spar Skills Guide Bot
DeveloppementAvancé
23/07/2026
Claude Code
#ddd#domain-modeling#subdomains#architecture#capability-mapping

Recommandé pour

Synthèse automatique

Classe des capacités métier en sous-domaines DDD (core, supporting, generic) avec une note de volatilité, en se limitant aux éléments que l'appelant vient de traiter.

Points forts

  • Impose une discipline de périmètre : seuls les éléments touchés par $scope sont créés ou mis à jour, le reste du catalogue reste intact.
  • Prévoit un mode de repli « system-areas » lorsque ni catalogue de sous-domaines ni PRD/initiatives ne sont disponibles, sans interrompre l'exécution.
  • Construit un registre des sous-domaines existants avant d'analyser, ce qui favorise la réutilisation plutôt que la duplication.
  • Sort proprement en signalant « aucun impact domaine » quand $scope ne correspond à rien, sans modifier de fichier.

Limites

  • Ce n'est pas une étape autonome : la capacité est conçue pour être composée par /pair-process-refine-story, /pair-process-plan-initiatives, /pair-process-plan-epics ou /pair-process-bootstrap.
  • Le re-mapping complet ($scope: all) est réservé à /pair-process-bootstrap, ce qui limite les corrections globales ponctuelles.
  • La qualité du classement en mode DDD dépend fortement de l'existence et de la clarté du PRD et des initiatives ; les chemins de fichiers sont propres au framework .pair.
Quand l'utiliser

À utiliser lorsqu'un flux de raffinement d'histoire, de planification d'initiative ou d'épique a besoin de situer une capacité métier dans un sous-domaine avec une note de volatilité.

Quand l'éviter

À éviter pour une re-cartographie complète du domaine ou dans un projet sans contexte produit ni catalogue DDD, où le mode de repli reste très approximatif.

Analyse de sécurité

Sûr
Score qualité88/100

The skill provides classification guidance for DDD subdomains and only references reading or inspecting local adoption files. It does not instruct destructive commands, network exfiltration, credential handling, or execution of arbitrary code. No meaningful security risk is present.

Aucun point d'attention détecté

Comment cette analyse est faite

Exemples

Placement during story refinement
/pair-process-refine-story for 'customer can dispute a charge' — classify the capability 'chargeback handling' into a subdomain with a volatility rating.
New initiative placement
/pair-process-plan-initiatives — determine the DDD subdomain (core / supporting / generic) and volatility for the new initiative 'self-service billing portal'.
Ad hoc scoped mapping
/pair-capability-map-subdomains $scope: payment-reconciliation, refund-settlement

name: pair-capability-map-subdomains description: "Classifies business capabilities into DDD subdomains (core, supporting, generic) with a volatility rating, scoped to items just touched. Composed by /pair-process-refine-story, /pair-process-plan-initiatives, /pair-process-plan-epics, a future /brainstorm (planned — #230); full-scope re-mapping only via /pair-process-bootstrap." version: 0.4.1 author: Foomakers

/pair-capability-map-subdomains — Subdomain Placement (Capability)

Classify business capabilities into Domain-Driven Design subdomains — core, supporting, or generic — and place them with a Volatility rating. A capability, not a standalone lifecycle step: always invoked scoped to the items the caller just touched, never as a full re-mapping outside /pair-process-bootstrap.

Arguments

| Argument | Required | Description | | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | $scope | Yes | Items/areas touched by the caller (e.g. capability names, PRD sections, an initiative). all — full re-mapping, allowed only when composed by /pair-process-bootstrap. |

Composed Skills

| Caller | When | | ------------------- | ----------------------------------------------------------------- | | /pair-process-refine-story | Functional/domain analysis phase — placement for the story's capability. | | /pair-process-plan-initiatives | Domain placement for a new initiative's capability area. | | /pair-process-plan-epics | Domain placement for an epic's capability area. | | /brainstorm | Broad brainstorm touching multiple capabilities (planned — #230). | | /pair-process-bootstrap | Initial full-catalog mapping — the only caller allowed $scope: all. |

Invocable independently with an explicit $scope for ad hoc placement.

Algorithm

Step 0: Resolve Scope and DDD Adoption State

  1. Check: Does adoption/product/subdomain/ contain .md files beyond README.md (DDD already adopted)?
  2. Check: If not adopted, are PRD and initiatives available (business context to classify from)?
  3. Act: Resolve the working mode:
    • DDD mode — subdomain catalog exists, or PRD + initiatives are available for classification.
    • System-areas fallback (AC3) — no subdomain catalog AND no PRD/initiatives. No DDD prerequisite is enforced; do not HALT. Proceed to Step 1 in fallback mode.
  4. Check: Does $scope resolve to any item in the current context?
  5. Skip: If $scope resolves to nothing → report "no domain impact" and return control to the caller. No file changes.
  6. Verify: Mode and non-empty scope determined.

Step 1: Detect Existing Subdomains

  1. Check: Scan adoption/product/subdomain/ for existing .md files (excluding README.md).

  2. Act: Build a registry of existing subdomains:

    EXISTING SUBDOMAINS:
    ├── [filename.md]: [Title] (Classification: [Core/Supporting/Generic], Volatility: [High/Medium/Low])
    └── ...
    
  3. Verify: Registry built. Only entries touched by $scope are candidates for creation/update; the rest are left untouched.

Step 2: Business Capability Analysis (DDD mode)

Skip if in system-areas fallback — go to Step 2b.

  1. Act: Analyze the capabilities in $scope (or the full PRD/initiatives set when $scope: all, bootstrap only):
    • Extract business function from PRD objectives and value propositions.
    • Map the touched initiative(s)/epic(s)/story to a business capability area.
    • Identify cross-cutting concerns and shared functionality patterns relevant to the scope.
  2. Verify: Business capabilities in scope identified.

Step 2b: System-Areas Fallback (no-DDD projects)

  1. Act: Instead of business-capability analysis, derive placement from the codebase's existing structure: top-level packages/apps/services/modules touched by $scope.
  2. Act: Treat each system area as a placeholder subdomain with Classification: Generic and Volatility: Low unless the caller has clear evidence otherwise — these are provisional, not a DDD classification.
  3. Verify: Placement resolved to system area(s). Note in output that this is a fallback, not a DDD classification, and that /pair-process-bootstrap or a full /pair-capability-map-subdomains run can upgrade it later.

Step 3: DDD Classification, Volatility & Catalog Delta

Skip if in system-areas fallback — the Classification/Volatility already assigned in Step 2b (Generic/Low unless the caller has clear evidence otherwise) is final for this run; go straight to Step 4.

  1. Act (DDD mode): Classify each in-scope capability:

    • Core — competitive advantage, high business value, high complexity. Build in-house, invest deeply. Default Volatility: High.
    • Supporting — operational necessity, medium value. Important but not differentiating. Default Volatility: Medium.
    • Generic — commodity function, low differentiation. Buy or use standard solutions. Default Volatility: Low. Additionally assess implementation volatility — the probability of switching provider/technology; when High, note that relationships toward this subdomain require an integration contract (feeds /pair-capability-map-contexts strength assessment).
  2. Act: Volatility default follows the classification above; the developer may override it (business-domain judgment, never inferred from commit history alone).

  3. Act: Map relationships and data flow between in-scope subdomains and their existing dependencies.

  4. Check: Does an in-scope subdomain already exist in the registry with a different classification, or a different Volatility that was not recorded as a human override? Compare against the existing file's recorded values, not a freshly-recomputed classification-derived default — a Volatility that already carries an override reason is never treated as conflicting with that same default recomputed again; only a change to classification, or an explicit new override request, is a conflict.

  5. Act: If a conflict exists → propose the delta only (not a full re-map):

    Existing: [Name] — Classification: [X], Volatility: [Y] Proposed: Classification: [X'], Volatility: [Y'] Approve delta, keep existing, or override?

  6. Act: Present the scoped catalog delta to the developer:

    Proposed subdomain placement (scope: [$scope]): [Classification]: [Name] — Volatility: [Level] ([default | override: reason])

    Relationships: [key dependencies within scope] Approve or adjust?

  7. Verify: Developer approves the delta.

Step 4: Subdomain Specification

For each approved subdomain in scope:

  1. Check: Does this subdomain already exist as a file?
  2. Act: If exists and no conflict was raised → leave untouched; pre-existing entries without a Volatility field remain valid as-is (no forced migration — the field is added the next time this entry falls inside a $scope).
  3. Act: If new, or an approved delta applies → create/update the subdomain file following subdomain-template.md:
    • Fill all template sections: Classification, Volatility, Business Purpose, Key Capabilities, Strategic Importance, Complexity Assessment, Data Ownership, Dependencies, Team Recommendations, Implementation Priority.
    • File path: adoption/product/subdomain/[kebab-case-name].md
  4. Verify: File created/updated and parseable. Entries outside $scope are untouched.

Step 5: Update Catalog README

  1. Act: Update adoption/product/subdomain/README.md for the entries touched by this run:
    • List all subdomains by classification (Core, Supporting, Generic), with Volatility.
    • Include links to individual files.
    • Update the Subdomain Relationship Matrix for affected entries only.
  2. Verify: README reflects the current catalog.

Output Format

SUBDOMAIN PLACEMENT COMPLETE:
├── Scope:      [$scope]
├── Mode:       [DDD | System-areas fallback]
├── Touched:    [N subdomains]
├── Created:    [X new files]
├── Updated:    [Y existing files]
├── Volatility: [defaults applied: A, overridden: B]
├── Location:   adoption/product/subdomain/
└── Next:       /map-contexts (scoped to the same items)

Edge Cases and Error Handling

  • Scope resolves to nothing — report "no domain impact", caller proceeds without HALT.
  • Existing catalog conflicts with scoped update — always propose the delta and require human approval before writing (idempotent behavior preserved).
  • Pre-existing files without Volatility — treated as valid; field is added only when that entry falls inside a future $scope.
  • No subdomain/ or boundedcontext/ artifacts at all — system-areas fallback (Step 2b); no error, no DDD prerequisite.
  • $scope: all requested by a caller other than /pair-process-bootstrap — warn and downgrade to the caller's actual touched items; full re-mapping stays bootstrap-only.

Graceful Degradation

See graceful degradation (adoption/context inputs missing → warn, proceed with what's available rather than halting) for the standard scenarios. Additional cases:

  • If initiatives are not available but PRD is, proceed with PRD-only analysis and warn.
  • If neither PRD nor initiatives nor an existing catalog are available, use the system-areas fallback (Step 2b) rather than halting.
  • If the adoption directory doesn't exist, create it.
  • If README.md doesn't exist, create it from scratch.

Notes

  • This skill creates/updates adoption files — not PM tool issues. Subdomains are design artifacts.
  • Idempotent — see idempotency convention. This skill's check: detects existing files by filename; only entries inside $scope are evaluated for changes.
  • Volatility is evaluated from the business domain (classification-derived default + human override), never from commit history alone.
  • DDD classification and Volatility drive downstream assessments — see /pair-capability-map-contexts (relationship strength/distance/volatility) and the architecture-quality capability that consumes them.
  • Migration: this skill was reclassified from a process skill (process/map-subdomains) to a capability (capability/map-subdomains) — see skills-guide.md for the rename and new invocation paths.

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/subdomain-placement-capability-mrx3xwi9/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/subdomain-placement-capability-mrx3xwi9' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/subdomain-placement-capability-mrx3xwi9/download' --output '.skill-downloads/subdomain-placement-capability-mrx3xwi9/SKILL.md.part' && mv '.skill-downloads/subdomain-placement-capability-mrx3xwi9/SKILL.md.part' '.skill-downloads/subdomain-placement-capability-mrx3xwi9/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/subdomain-placement-capability-mrx3xwi9/SKILL.md' && test -s '.skill-downloads/subdomain-placement-capability-mrx3xwi9/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pair-capability-map-subdomains' && cp -R '.skill-downloads/subdomain-placement-capability-mrx3xwi9' '.claude/skills/pair-capability-map-subdomains'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/subdomain-placement-capability-mrx3xwi9'

openskills read 'subdomain-placement-capability-mrx3xwi9'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/subdomain-placement-capability-mrx3xwi9/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires