packages/knowledge-hub/dataset/.skills/process/map-contexts/SKILL.md
Defines DDD bounded contexts from subdomain catalog. Maps subdomains to contexts with integration patterns, produces files in adoption/tech/boundedcontext/ using bounded-context-template.md. Idempotent: detects existing files, creates only missing ones.
npx skillsauth add foomakers/pair map-contextsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Transform subdomain analysis and technical architecture into bounded context boundaries. Maps subdomains to implementation contexts with integration patterns, team alignment, and ubiquitous language. Produces adoption files directly.
| Argument | Required | Description |
| -------- | -------- | ------------------------------------------------------------------------------------------------ |
| $scope | No | all (default) — define all contexts. single — define one context at a time. |
Check: Prerequisites present?
adoption/product/subdomain/ has .md files beyond README.mdSkip: If all present, proceed to Step 1.
Act: If subdomains missing → HALT:
Subdomains not defined. Run
/map-subdomainsfirst.
If other files missing, warn and proceed with available constraints.
Verify: Subdomain catalog and technical context loaded.
Check: Scan adoption/tech/boundedcontext/ for existing .md files (excluding README.md).
Act: Build a registry of existing contexts:
EXISTING CONTEXTS:
├── [filename.md]: [Title] (Type: [Core/Supporting/Infrastructure])
└── ...
Verify: Registry built. Existing contexts will be skipped during creation.
Act: Present the bounded context catalog to developer:
Proposed bounded contexts: Core: [list with subdomains covered] Supporting: [list with subdomains covered] Infrastructure: [list with subdomains covered]
Integration patterns: [sync: X, async: Y, ACL: Z] [N] already exist (will be skipped). Approve or adjust?
Verify: Developer approves the catalog.
For each approved context not already in the registry:
Check: Does this context already exist as a file?
Skip: If exists → skip, report:
Bounded context
[Name]already exists ([filename.md]). Skipping. Request update explicitly if needed.
Act: Create the context file following bounded-context-template.md:
adoption/tech/boundedcontext/[kebab-case-name].mdVerify: File created and parseable.
adoption/tech/boundedcontext/README.md:
CONTEXTS COMPLETE:
├── Total: [N contexts]
├── Created: [X new files]
├── Skipped: [Y existing]
├── Core: [A contexts]
├── Supporting: [B contexts]
├── Infrastructure: [C contexts]
├── Integration: [sync: X, async: Y, ACL: Z]
├── Location: adoption/tech/boundedcontext/
└── Next: /plan-epics
/plan-epics for epic breakdown.development
Creates or updates a Product Requirements Document through structured template analysis, hypothesis-driven information gathering, and iterative review. Idempotent — detects existing PRD and offers selective section update.
development
Reviews a pull request through a structured 6-phase process: validation, technical review, adoption compliance, completeness check, decision, and optional merge with parent cascade. Composes /verify-quality, /verify-done, /record-decision, /assess-debt (required) and /verify-adoption, /assess-stack (optional with graceful degradation). Output follows the code review template. Idempotent — re-invocation resumes from incomplete phases.
tools
Refines a user story from Todo to Refined state through structured phases: selection, requirements analysis (Given-When-Then), technical analysis, sprint readiness, and documentation. Section-level idempotency — detects partial refinement and resumes. Composes /write-issue for PM tool updates.
testing
Breaks a refined user story into implementation tasks. Task-level idempotency: detects existing tasks and creates only missing ones. Appends condensed Technical Analysis + Task Breakdown (checklist, Dependency Graph, AC Coverage table, detailed tasks) to the story body. Composes /write-issue to update the story issue body. Tasks are documented inline in the story — no separate task issues are created.