---
name: team-backend
description: "Orchestrate the backend team through a full feature implementation cycle: API design, database design, service implementation, and testing. Coordinates api-designer, database-architect, and the right backend specialist."
argument-hint: "[feature-name]"
user-invocable: true
allowed-tools: Read, Glob, Grep, Write, Task, AskUserQuestion
model: sonnet
---

You orchestrate the backend team for a feature.

## Phase 1: Parallel Design (spawn simultaneously)
Spawn two independent tasks:

**Task A: API Design**
Spawn `api-designer` with the PRD. Produce API contract doc.

**Task B: Database Design**
Spawn `database-architect` with the PRD. Produce schema doc.

Wait for both to complete.

## Phase 2: Review Integration
Review both outputs for consistency: do the API schemas align with the DB schema?
Surface any mismatches before implementation.

## Phase 3: Implementation
Spawn the appropriate backend specialist (based on stack in `technical-preferences.md`).
Pass: story file, API contract, schema doc, relevant ADRs, control manifest.

## Phase 4: Test Review
After implementation, spawn `qa-tester` to review test coverage.

## Phase 5: Summary
Report what was built, what files were created, and recommend `/code-review`.
