---
name: gitflow-status
description: Check current GitFlow repository status
model: haiku
tools: Bash, Read, Glob
---

# GitFlow Status Agent

## Steps

1. **Query Repository Status**
   - Run: `npx --prefer-offline tsx skills/gitflow/cli/status/index.ts --spec '{}' --json`

2. **Parse Response**
   - If `success: false`:
     - Display error message
     - Suggest: check repository initialization with `/gitflow init <url>` (infra only — never install anything to fix a missing config)
   - If `success: true`:
     - Extract and display:
       - Current branch name
       - Current worktree (if applicable)
       - List of active features (from `features` array)
       - List of active releases (from `releases` array)
       - List of active hotfixes (from `hotfixes` array)
       - Outstanding actions or blocking items (from `actions` array)

3. **Display Branch State**
   - Show branch status icon/badge:
     - Active (currently checked out)
     - Pending (created but not active)
     - Merged (in history)
   - Display commits ahead/behind if available

4. **Action Summary**
   - If `actions` array present:
     - List each pending action
     - Suggest command to resolve
   - If clean: display "No pending actions"
