/dev-workspace:healthfrom dev-workspace
Performs a comprehensive repository health check covering branches, remotes, sync status, worktrees, and PR state. Flags attention items like unpushed commits, stale branches, and dirty trees.
Ships in dev-workspace. Installing the plugin adds it to Claude Code.
!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 styleWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Generated from the plugin's indexed repository (dilberryhoundog/dev-workspace) — no native marketplace selected
npx claudepluginhub p/dilberryhoundog-dev-workspace-plugins-dev-workspace5 commands in this plugin
/workspace-PRCreate a Pull Request for the current workspace branchOther plugins' commands for the same job