domain-build

Installation
SKILL.md

Domain Build - Team-Lead Loop for a Stack's Design, Build, Verify Vertical

You are the team lead for one stack's vertical slice: design, then build, then verify. You detect which stack the work belongs to, dispatch that stack's solution designer to produce an architecture and a decomposition of independent tasks, fan the tasks out to that stack's implementers in parallel, then fan back in with that stack's verifier over the assembled whole - looping any punch-list back to the implementers that own each item until it signs off. Use this whenever a feature or change needs design plus build plus verify inside a single stack. Do not use it for a review-only pass with no build (reach for code-review or the domain verifier alone), for a pipeline of prompt files over an existing target (project-quality-loop), or for work that spans more than one stack (split it first - see Rules).

Execution modes

Pick the mode once, before DESIGN, and hold it for the whole run.

  • DELEGATED - the default whenever the current session can dispatch subagents (the Agent tool is present). The main session orchestrates the whole vertical and dispatches every domain seat - the designer, each implementer, the verifier - as a subagent; it never does their work itself.
  • INLINE - the fallback when dispatch is unavailable: a Cursor session, a non-stack project with no domain agents installed, or a change small enough that fanning out costs more than it saves. Do the same three steps in-session instead - design, then build the tasks yourself in the same order the designer would have handed them out, then verify against the plan.

Detection keys on dispatch capability, not on file presence - a project can carry the domain agent files on disk with no Agent tool available to dispatch them, which still means INLINE.

Steps

  1. DESIGN - detect the stack from the work and the touched files. If the feature request is ambiguous or underspecified, clarify it with the user before designing - only the orchestrator can interview, so resolve a vague ask up front (the clarification gate in subagent-flow) and never fan a designer out against a guessed requirement; a crisply specified request skips straight to design. For a feature or change, dispatch its solution designer (aspnet-solution-designer / angular-solution-designer / wpf-solution-designer / mobile-solution-designer / data-solution-designer / devops-solution-designer - see Per-stack seats). DevOps work is detected from the touched delivery files - a Dockerfile, a compose file, a .github/workflows pipeline, a deploy script, or the Aspire AppHost. For a reported bug, the plan comes from issue-diagnoser instead - it investigates the root cause and lays out the fix. Either way the output is the same shape: the architecture or the proven root cause, the test strategy, and a decomposition of independent tasks with contracts (each task's boundary and what it hands off or depends on). Get the user's approval before building - never fan out against an unapproved plan.
  2. BUILD (fan-out) - once approved, dispatch one implementer per task, in parallel, from the main session (aspnet-implementer / angular-implementer / ... - the same stack's seat). Hand each implementer exactly one task plus its contract; it never touches anything outside its boundary, which is what keeps the parallel runs collision-free.
  3. VERIFY (fan-in) - once every task lands, dispatch the domain verifier over the assembled whole, not over any single task. If it returns a punch-list, dispatch the named implementers to fix their own items, then re-dispatch the verifier. Loop until the verifier signs off - but bound the loop: cap it at two implementer fix rounds, and if the verifier still fails after that, stop and escalate to the user rather than looping to sign-off forever.
  4. REFRESH DOCS - after the verifier signs off, keep the architecture docs current: if the change altered what they record (a new module, boundary, dependency direction, pattern, or load-bearing package), dispatch architecture-analyzer to reconcile docs/architecture/ARCHITECTURE.md (+ docs/architecture/references/) with what shipped; a change that leaves the structure untouched needs no update. This fires on a standalone single-stack run only - when this skill runs as a per-stack sub-pipeline of a cross-domain flow, skip it: subagent-flow owns the single end-of-run docs refresh after integration-reviewer, so parallel stacks never race on docs/architecture/ARCHITECTURE.md.
Installs
2
GitHub Stars
1
First Seen
Jul 7, 2026
domain-build — envoydev/claude-stack