원클릭으로
flow-status
Flow: Status of Active Worktrees - Show all active worktrees with their issue, branch, dirty state, and PR status.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Flow: Status of Active Worktrees - Show all active worktrees with their issue, branch, dirty state, and PR status.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Analyze a GitHub-backed repository's open issues, pull requests, branches, and worktrees to recommend the next unclaimed issue or cleanup action. Use when Codex is asked what to work on next, to triage project backlog, or to choose between open GitHub issues.
Analyze a GitHub-backed repository's open issues, pull requests, branches, and worktrees to recommend the next unclaimed issue or cleanup action. Use when Codex is asked what to work on next, to triage project backlog, or to choose between open GitHub issues.
Launch a bounded, read-only Claude Code session through the Claude Agent SDK to review the current issue-branch diff and advise Codex. Use when the user requests a Claude or cross-model code review, or when flow-auto remains stuck after two materially distinct attempts and needs implementation support.
Launch a bounded, read-only Claude Code session through the Claude Agent SDK to review the current issue-branch diff and advise Codex. Use when the user requests a Claude or cross-model code review, or when flow-auto remains stuck after two materially distinct attempts and needs implementation support.
Bootstrap Codex Power Pack host wiring with explicit consent for every global change
Report installed Codex Power Pack plugins, host pointers, health, and drift without changing the machine
| name | flow-status |
| description | Flow: Status of Active Worktrees - Show all active worktrees with their issue, branch, dirty state, and PR status. |
Generated from a Claude Code command. Where the procedure references these Claude-only surfaces, adapt as follows:
$FLOW_WORKTREE_BASE/<repo>-<branch> when configured, otherwise as a visible sibling ../<repo>-<branch>; enter with cd and clean up with git worktree remove. Never use Claude's hidden worktree directory.Show all active worktrees with their issue, branch, dirty state, and PR status.
When the user invokes /flow-status, perform these steps:
REPO=$(basename "$(git rev-parse --show-toplevel)")
git worktree list
For each worktree (skip the main repo entry):
# Get branch name
BRANCH=$(git -C "$WORKTREE_PATH" branch --show-current 2>/dev/null)
# Extract issue number from branch name (issue-N-*)
ISSUE_NUM=$(echo "$BRANCH" | grep -oP 'issue-\K[0-9]+' || echo "")
# Check for uncommitted changes
DIRTY=$(git -C "$WORKTREE_PATH" status --porcelain 2>/dev/null | wc -l)
# Check for unpushed commits
UNPUSHED=$(git -C "$WORKTREE_PATH" rev-list --count origin/main..HEAD 2>/dev/null || echo "0")
# Check PR status (if branch is pushed)
if [[ -n "$BRANCH" ]]; then
PR_INFO=$(gh pr list --head "$BRANCH" --json number,url,state --jq '.[0]' 2>/dev/null || echo "")
fi
For each detected issue number:
ISSUE_TITLE=$(gh issue view "$ISSUE_NUM" --json title --jq '.title' 2>/dev/null || echo "Unknown")
## Flow Status - {repo}
| Worktree | Issue | Branch | Status | PR |
|----------|-------|--------|--------|----|
| ../<repo>-<branch>/issue-42-fix-login | #42 Fix login bug | issue-42-fix-login | 3 dirty files, 2 unpushed | - |
| ../<repo>-<branch>/issue-55-add-tests | #55 Add tests | issue-55-add-tests | Clean | PR #78 (OPEN) |
### Suggestions
- **#42**: Has uncommitted work - commit or stash before switching
- **#55**: PR is open - check for reviews, then `/flow-merge`
Check for local branches that may need cleanup:
# Count local issue-* branches with no active worktree
WORKTREE_BRANCHES=$(git worktree list --porcelain | grep "^branch " | sed 's|branch refs/heads/||')
STALE_COUNT=0
for branch in $(git branch | grep 'issue-' | sed 's/^[ *]*//'); do
echo "$WORKTREE_BRANCHES" | grep -q "^${branch}$" && continue
STALE_COUNT=$((STALE_COUNT + 1))
done
# Check for prunable worktree references
PRUNABLE=$(git worktree list --porcelain | grep -c "prunable" || echo "0")
If stale branches or prunable references exist, append to output:
### Cleanup Available
- {N} local issue branches with no active worktree
- {M} stale worktree references
Run `/flow-cleanup` to remove stale branches and references.
main or non-issue branches are listed but marked as "(not issue-linked)"/flow-start <issue> to begin."