---
description: Orchestrate full feature delivery from current state to completion
argument-hint: <feature-slug>
allowed-tools: Bash, Read, Write, Edit, Glob, Grep, Task
---

Deliver feature end-to-end: $ARGUMENTS

## Instructions

### 1. Assess Current State

```bash
sdlc next --for $ARGUMENTS
```

Determine where the feature is in the lifecycle and what action is needed.

### 2. Execute the Action Loop

For each classifier result, execute the recommended action:

| Action | What to Do |
|--------|-----------|
| `CREATE_SPEC` | Write the spec (follow `/spec-feature` protocol) |
| `CREATE_DESIGN` | Write the design (follow `/design-feature` protocol) |
| `CREATE_TASKS` | Break down tasks (follow `/breakdown-feature` protocol) |
| `CREATE_QA_PLAN` | Write QA plan (follow `/create-qa-plan` protocol) |
| `TRANSITION` | Run `sdlc feature transition $ARGUMENTS <phase>` |
| `IMPLEMENT_TASK` | Implement the task (follow `/implement-task` protocol) |
| `CREATE_REVIEW` | Review the code (follow `/review-feature` protocol) |
| `CREATE_AUDIT` | Audit the code (follow `/audit-feature` protocol) |
| `RUN_QA` | Execute QA (follow `/run-qa` protocol) |
| `MERGE` | Merge the feature (follow `/merge-feature` protocol) |

### 3. Re-classify After Each Step

After completing each action:

```bash
sdlc next --for $ARGUMENTS
```

Use the new classification to determine the next step. Continue until the feature reaches `released` or a gate is hit.

### 4. Stop at Gates

When the classifier returns `AWAIT_APPROVAL` or `BLOCKED`:

1. Present what needs approval or what is blocked
2. List the specific artifact or blocker details
3. **Stop and wait for the user** -- do not proceed past approval gates

### 5. Report Progress

After each action, briefly report:
- What was just completed
- Current phase
- What comes next (or what is blocking)

## Critical Rules

- ALWAYS stop at approval gates -- NEVER approve artifacts yourself
- NEVER skip phases or reorder the classifier recommendations
- ALWAYS re-run the classifier after each action to get the true next step
- ALWAYS follow the corresponding command protocol for each action
- NEVER continue past BLOCKED status without resolution
- ALWAYS report what was done and what comes next after each step
