Reviews and merges open Dependabot PRs with per-repo preferences, CI checks, and changelog analysis for breaking changes.
Ships in dependabot-prs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Follow these steps:
Read ~/.claude/dependabot-prs.json (if it exists) and look up the current repo's entry:
config="$HOME/.claude/dependabot-prs.json"
repo=$(gh repo view --json nameWithOwner --jq .nameWithOwner)
preferences=""
if [ -f "$config" ]; then
preferences=$(jq -r --arg repo "$repo" '.[$repo] // empty' "$config")
fi
The file maps owner/repo to freeform instructions, e.g.:
{
"ryanb/core-gem": "Only handle PRs with the javascript label."
}
If $preferences is non-empty, apply those instructions throughout the rest of the steps — for example, filtering the PR list, narrowing what to merge, or changing the merge strategy.
Run gh pr list --author "dependabot[bot]" --state open to get all open Dependabot PRs.
If there are no open PRs, tell the user and stop.
For each PR, launch a sub-agent (Agent tool, subagent_type: general-purpose and model: sonnet; run them in parallel) to review it. Each sub-agent should:
gh pr view <number> --json title,body,url,statusCheckRollup,mergeabledetailsUrl for GitHub Actions checks, targetUrl for external ones like Buildkite, whether it's safe to merge, whether it's a multi-dependency PR, per-dependency safety status (for multi-dependency PRs), and any concernsPresent a table summarizing all PRs:
For multi-dependency PRs, follow the table row with an indented breakdown listing each dependency, what the update does, and whether it introduces any potentially breaking changes or issues with the existing codebase.
Ask the user which PRs they'd like to merge. Wait for their response.
Merge PRs in this order: multi-dependency PRs first, then single-dependency PRs. This reduces the chance of merge conflicts between grouped and individual updates.
First determine which merge strategies the repo allows, since merging with a disabled strategy fails:
gh repo view --json squashMergeAllowed,rebaseMergeAllowed,mergeCommitAllowed
Pick an enabled strategy, preferring squash (--squash), then merge commit (--merge), then rebase (--rebase). If the per-repo preferences from step 1 name a strategy, use that instead — as long as it's enabled.
For each PR, one at a time:
gh pr review <number> --approvegh pr merge <number> --<strategy>Report the result of each merge.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/dependabot-prs:dependabot-prsfrom dependabot-prs
npx claudepluginhub ryanb/dotfiles --plugin dependabot-prsOther plugins' skills for the same job