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.tools
Your assistant for pair. Sets pair up when it is missing — installs pair-cli (locally when a package.json exists, otherwise npx), creates the git repository if absent, runs the install — and once pair is in place, turns a request into the right CLI command or the right knowledge-base answer: install, update, version check, KB validation, packaging, scaffolding an external KB. Discovers the CLI surface from the CLI itself and the project's standards from its own .pair/llms.txt, so neither can go stale. Idempotent; the entry point on the Claude Code marketplace channel.
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.