From org-management
Clean up stale worktrees and help stuck PRs across an org's repos
npx claudepluginhub seabbs/skills --plugin org-managementThis skill uses the workspace's default tool permissions.
Clean up dead worktrees and unstick PRs across repos in an org.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Analyzes competition with Porter's Five Forces, Blue Ocean Strategy, and positioning maps to identify differentiation opportunities and market positioning for startups and pitches.
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.