From maintenance
Use when reviewing, triaging, or merging open PRs from dependency bots (e.g. Renovate, Dependabot), or when the user asks to handle dependency updates, or when a dependency bot upgrade caused CI failures that may be breaking changes needing investigation and fixing.
How this skill is triggered — by the user, by Claude, or both
Slash command
/maintenance:handle-dependency-prsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze open dependency bot PRs, classify each by merge risk, recommend a merge order, and batch merge upon user confirmation.
Analyze open dependency bot PRs, classify each by merge risk, recommend a merge order, and batch merge upon user confirmation.
gh pr list --state open --json number,title,author,labels,additions,deletions,mergeable,headRefName --limit 100
From the results, identify dependency bot PRs using these signals — any match is sufficient:
renovate, dependabot, depfu, snyk-bot, whitesource, mendBotdependencies, dependency, renovate, dependabotdependabot/, renovate/, deps/chore(deps):, bump X from Y to Z, update dependency XNever include PRs opened by humans, even if they bump a dependency. If no dependency bot PRs are found, inform the user and stop.
Your only job in this step is to build the list of PR numbers from Step 1 and invoke one maintenance:analyze-dependency-pr agent per PR. Do nothing else — no gh commands, no diff reading, no classification. All of that happens inside the agent.
If more than 20 PRs are found, invoke agents in batches of 10. Wait for all results before proceeding.
Present a summary table grouped by tier, from safest to riskiest:
## Dependency PR Analysis
### 1. Very Safe (patch, lockfile-only)
| # | PR Title | Version | Files | CI | Risk Notes |
|---|----------|---------|-------|----|------------|
### 2. Safe (patch with config)
...
### Recommended Merge Order
1. #123 - reason
2. #456 - reason
...
After the table, present a plain-language action plan and wait for explicit user approval before proceeding:
## Proposed Action Plan
**CI fix attempts** (isolated worktree per PR, up to 3 iterations each, run in parallel):
- #456 jest 2→3 — CI failing, will attempt automated fix
**Ready to merge** (tiers 1–3, CI passing):
- #123 lodash patch — Very Safe
- #789 axios patch — Safe
**Skipped** (manual review required):
- (none)
Reply "go" to proceed, or tell me which PRs to skip or handle differently.
Do not proceed to Step 4 or Step 5 until the user confirms.
For every PR with a CI failure, ask the user:
"The following PRs have CI failures: [list]. Would you like me to attempt to diagnose and fix them in isolated worktrees?"
If the user confirms, dispatch one maintenance:fix-dependency-pr agent per failing PR in parallel. Collect all results and present a summary:
## CI Fix Results
| PR | Dependency | Fix Status | Details |
|----|-----------|------------|---------|
| #123 | some-lib 4→5 | ✅ Fixed (1 iteration) | Updated call sites to renamed API |
| #456 | test-framework 2→3 | ❌ Too complex | 47 files affected — manual review needed |
Only PRs with status ✅ Fixed are eligible for merge in Step 5.
If the user declines, skip to Step 5 and leave those PRs unmerged.
Eligible PRs: tiers 1–3 (no CI failures) + any PR marked ✅ Fixed in Step 4. PRs marked "Needs manual review" are excluded.
Wait for explicit user confirmation, then merge sequentially in the recommended order:
gh pr view <number> --json mergeable -q .mergeable
gh pr review <number> --approve
gh pr merge <number> --squash
gh pr review --approve fails with permission errors, inform the user they need to approve manually or switch GitHub accountsnpx claudepluginhub rodrigoluizs/claude-plugins --plugin maintenanceReviews open Dependabot PRs, classifies by risk (patch/minor/major/security/lockfile-only), merges safe ones via GitHub CLI, and advises on others. Use for dependency update triage.
Consolidates open Dependabot PRs into one tested branch and PR, grouped by ecosystem and risk, with baseline-diff verification and operator approval before merging.
Autonomously resolves PR merge blockers: conflicts, CI failures, review comments; syncs description and requests re-review. For unattended cron execution via loop skill.