---
name: forge:quick
description: Execute a quick task with FORGE guarantees (atomic commits, state tracking)
argument-hint: <task-description>
allowed-tools:
  - Read
  - Write
  - Edit
  - Glob
  - Grep
  - Bash
  - Task
  - TaskCreate
  - TeamCreate
  - AskUserQuestion
---

Execute quick ad-hoc task "$ARGUMENTS" with atomic commits and state tracking. Skips research/verification.

**Read:** state/STATE.json

**Steps:**

1. Generate task ID `quick-{timestamp}`, create `.planning/quick/{taskId}/PLAN.md` with description, steps (1-3), and acceptance criteria

2. **Ensure FORGE team AND teammates are running:**
   - Check `~/.claude/teams/forge/config.json` exists. If not, create team with TeamCreate.
   - Read `.planning/AgentTeam.md` to get the list of teammates that should be active.
   - Read `~/.claude/teams/forge/config.json` members list to see who is registered.
   - For each teammate defined in AgentTeam.md that is NOT in the team config (or if team was just created), spawn them using the Task tool with `team_name: "forge"` and `name: "{teammate-name}"` and their full prompt from AgentTeam.md.
   - This ensures teammates are always running when any FORGE command executes, even after session restarts.

3. Validate quick mode fit (well-understood, small, 1-3 steps). If too big, suggest `/forge:plan`.

4. Execute steps: make changes → atomic commit `feat({taskId}): {desc}` → update PLAN.md checklist after each

5. Optionally delegate to teammates via TaskCreate + Task if complex enough

6. Finalize PLAN.md (mark completed, list commits), update STATE.json `quickTasksCompleted` table, submit QUICK_TASK_COMPLETED event to state/events/

7. Show completion summary with commits and PLAN.md location
