/org-management:org-maintenancefrom org-management
Cleans up stale git worktrees and unblocks stuck PRs across an organization's repositories. Automates worktree pruning and PR fixes using GitHub CLI.
Ships in org-management. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Clean up dead worktrees and unstick PRs across repos in an org.
Run from ~/code/{org}/ or pass the org name as an argument.
Read bot_account, owner_account from the org's CLAUDE.md ## Automation config table.
A pre-built script at ~/.claude/scripts/org-maintenance.sh collects worktree and PR data in one pass.
Run it first to avoid spending tokens on individual git and gh calls.
~/.claude/scripts/org-maintenance.sh <org-name> > /tmp/org-maintenance.json
If the script is missing or not executable, flag this to the user and stop.
The script outputs a JSON object with:
worktrees: array of non-main worktrees per repo (path, branch, whether directory exists)open_prs: array of open PRs by the bot/owner accounts with CI status, review decision, merge infoFrom the script output, flag worktrees that:
exists: false)Present a summary table and prune with confirmation.
From the script output, identify PRs that are stuck:
For bot/owner PRs (full access):
For PRs on other people's repos:
If more than 3 PRs need attention, spawn a team. Each teammate handles one PR fix. The lead tracks progress and reports results.
Report:
IMPORTANT: If this command is being run as a standalone request, automatically exit after completing all phases successfully.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 plugins ship this exact skill · first indexed Aug 17, 2026
10 skills in this plugin
/org-issues-tidyAdd clarity and structure to open issues across an org's repos without repeating previous worknpx claudepluginhub seabbs/skills --plugin org-managementOther plugins' skills for the same job