---
name: msd:ai-integration-phase
description: Generate an AI-SPEC.md design contract for phases that involve building AI systems.
argument-hint: "[phase number]"
allowed-tools:
- Read
- Write
- Bash
- Glob
- Grep
- Agent
- WebFetch
- WebSearch
- AskUserQuestion
- mcp__context7__*
requires: [phase]
---
Create an AI design contract (AI-SPEC.md) for a phase involving AI system development.
Orchestrates msd-framework-selector → msd-ai-researcher → msd-domain-researcher → msd-eval-planner.
Flow: Select Framework → Research Docs → Research Domain → Design Eval Strategy → Done
@~/.claude/msd-core/workflows/ai-integration-phase.md
@~/.claude/msd-core/references/ai-frameworks.md
@~/.claude/msd-core/references/ai-evals.md
Phase number: $ARGUMENTS — optional; when omitted, the orchestrating workflow reads ROADMAP.md and selects the next unplanned phase. This is not a `msd-tools.cjs` CLI feature — the CLI's phase-lookup primitives require an explicit phase number.
Execute end-to-end.
Preserve all workflow gates.