---
name: myai-dev-workflow
description: Run the full multi-agent development pipeline from a task or a backlog story
---

The recommended entry point. Orchestrates analysis, specification, architecture,
implementation, review, testing, and documentation, with feedback loops between them.

Invokes the `myaidev-workflow` skill.

## Usage

```bash
/myai-dev-workflow "Add SSO via SAML"
/myai-dev-workflow "Fix the duplicate-charge bug" --profile=bugfix
/myai-dev-workflow "Build the reporting API" --profile=api --tdd
/myai-dev-workflow --story 1.2          # build a story from docs/product/
```

## Options

| Option | Description | Default |
|--------|-------------|---------|
| `--story` | Build a story from `docs/product/stories/` | none |
| `--profile` | `api`, `frontend`, `fullstack`, `library`, `cli`, `bugfix`, `refactor` | auto-detect |
| `--tdd` | Tester writes tests before the coder implements | `false` |
| `--incremental` | Chunk the implementation, test and review after each | `false` |
| `--coverage-threshold` | Minimum coverage | `80` |
| `--max-cycles` | Feedback loop iterations before it stops | `3` |
| `--from` | Resume from a phase | start |

## Phases

| Phase | Agent | Skipped when |
|-------|-------|-------------|
| Analyze | analyzer | `--skip-analysis` |
| Specify | architect | `bugfix`, `refactor` profiles |
| Architect | architect | `bugfix` profile |
| Implement | coder | never |
| Review + Test | reviewer + tester, in parallel | never |
| Evaluate | coordinator | never |
| Fix cycle | coder | when quality gates pass |
| Document | documenter | `bugfix` profile |

## Story Input

With `--story`, the story's acceptance criteria are injected into every phase and the
specification phase is skipped — the story already carries a spec a human reviewed. The
story's status is written back on completion.

A story that has not passed the constitution gate will not build; run `/myai-dev-story` to
resolve the blockers first.

## Output

Everything lands in `{session_dir}/` — `.myaidev-session/`, or the legacy
`.sparc-session/` when that already exists. The final summary is
`{session_dir}/completion-report.md`.
