From dev-workspace
Inspects git and GitHub state to report branch status, sync freshneess, worktree health, stale branches, and pending actions. Surfaces attention items like unpushed commits or outdated branches.
How this command is triggered — by the user, by Claude, or both
Slash command
/dev-workspace:healthThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Preloaded Context !`git fetch --all --quiet 2>/dev/null; echo "fetch done"` !`git branch --show-current` !`git status --short` !`git remote -v` !`git branch -a --format='%(refname:short) %(upstream:short) %(upstream:track)' | grep -v '^\s*$'` !`git worktree list` !`git log --format='%cr' -1 FETCH_HEAD 2>/dev/null || echo "never fetched"` !`git rev-list --left-right --count origin/main...main 2>/dev/null || echo "no origin/main"` !`git log --all --no-walk --format='%D %cr' --decorate=short 2>/dev/null | head -30` # Instructions You are performing a repository health check. Use the prelo...
!git fetch --all --quiet 2>/dev/null; echo "fetch done"
!git branch --show-current
!git status --short
!git remote -v
!git branch -a --format='%(refname:short) %(upstream:short) %(upstream:track)' | grep -v '^\s*$'
!git worktree list
!git log --format='%cr' -1 FETCH_HEAD 2>/dev/null || echo "never fetched"
!git rev-list --left-right --count origin/main...main 2>/dev/null || echo "no origin/main"
!git log --all --no-walk --format='%D %cr' --decorate=short 2>/dev/null | head -30
You are performing a repository health check. Use the preloaded data above and run additional git/gh commands as needed to build a complete picture.
Work through these in order. Skip any section that does not apply (e.g. skip Command if no command branch exists, skip Deploy if no deploy remote exists).
origin/maincommand branch exists)git rev-list command..main --countdeploy remote exists, compare command against deploy/command-mirror using git rev-list deploy/command-mirror..command --count to show commits since last deploy-pushList all local branches excluding: main, command, deploy-push.
For each branch, gather and display:
git log -1 --format='%cr' <branch>gh pr list --head <branch> --json number,state,title --jq '.[0]' 2>/dev/nullAt the end, highlight anything that needs action:
Print results directly to chat using this format:
── Repo Health ──
Working Tree
→ on: <branch>
→ status: clean | dirty (N files)
Main
→ origin/main: in sync | N ahead, N behind
→ last fetch: <time>
Command
→ behind main: N commits
→ fork/command: in sync | N ahead, N behind
→ deploy: N commits since last push
Worktrees
→ /path/to/worktree [branch] clean | dirty
Branches (N)
→ feature/foo 3 days idle · fork/feature/foo · PR #12 open
→ fix/bar 45 days idle · no remote · pruning candidate
→ refactor/baz 1 day idle · fork/refactor/baz · PR #8 merged
⚠ Attention
→ main is 2 commits behind origin — needs pull
→ fix/bar has no remote tracking branch
dev/workspace/filebox/health-report.md→ prefix for list items to match the bizzy health script stylenpx claudepluginhub dilberryhoundog/agent-library --plugin dev-workspace/statusDisplays Git Flow status report: branch type (main/develop/feature/etc.), sync status, uncommitted changes, commit history, merge targets, and recommendations.
/triageReviews git state across worktrees, stashes, and branches to inventory work in progress.
/git-statusDisplays detailed Git repository status: current branch, staged/unstaged changes, untracked files, diff with remote, commits ahead/behind, and action items. Optional path or options.
/just-ship-statusDisplays local repo status: branches with PR and board ticket status, worktrees, and stale branch recommendations.
/statusShows detailed status of one or all Git worktrees: path, branch, changes, last commit, ahead/behind main (specify name for single detailed view).
/in-flightShows active branches and PRs in the repository to help avoid duplication or conflicts. Supports --all and --mine flags.