Reviews Dependabot dependency upgrade PRs for impact, breaking changes, and merge readiness. Supports single-PR review and audit mode that discovers and triages all open Dependabot PRs in a repo.
Ships in dependabot-review-skill-thoughtbot. 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.
Review Dependabot PRs and give the developer a concise, scannable verdict: what changed upstream, what could break (and how to fix it), what each package touches in the codebase, and whether to merge. This works across ecosystems — npm, RubyGems, PyPI, Go modules, Cargo, and so on.
Pick the mode based on what the user asked for:
gh.If the intent is ambiguous (e.g., "review dependabot"), default to audit mode since it's the superset and shows what's available.
Determine the repo from the current working directory (gh repo view --json nameWithOwner -q .nameWithOwner). Then list open Dependabot PRs:
gh pr list --author "app/dependabot" --state open \
--json number,title,url,createdAt,headRefName,labels \
--limit 50
The app/ prefix in the author filter is required — Dependabot authors as the bot account app/dependabot. If gh returns an empty list, tell the user "No open Dependabot PRs in ." and stop.
Before diving into analysis, surface the scope to the user in one line: "Found N open Dependabot PRs. Analyzing each now…" — this sets expectations when there are many to crunch through.
For every PR returned, run the single-PR workflow (Steps 1-3 below) to gather bump type, changelog highlights, and codebase impact. Keep each analysis tight — you'll be producing per-PR sections for a combined report, not standalone documents.
You can fetch independent PRs in parallel where the tool call structure allows it.
Emit the report in this order:
After the consolidated report, follow the shared "Posting findings to PRs" section below. For audit mode, the opt-in prompt covers the whole batch ("yes / no / selective"), and the comment body for each PR is drawn from that PR's per-PR detail section in Step A3.
The summary table is the first thing the dev reads — its job is to let them triage the whole batch in under a minute. Render it as a GitHub-flavored markdown table with these exact columns, in this order:
| Column | Contents |
|---|---|
# | PR number, linked as [#9170](url) |
Package | Package name. For multi-package PRs, comma-separate (e.g., react-dom, react) |
Bump | old → new (e.g., 7.2.4 → 8.0.10) |
Type | patch, minor, or major. Prefix with 🔒 if the PR addresses a security advisory |
Age | Days since createdAt (e.g., 3d, 21d) |
Verdict | Abbreviated: Merge, Verify, Investigate, Hold |
Why | One short clause (≤ 10 words). Concrete, not generic — e.g., "dev-only, no breaking changes" beats "looks safe" |
Sort order: primary key is verdict in the order Merge → Verify → Investigate → Hold (worklist-style — easy wins first, stop when you hit "Investigate"). Within each verdict bucket, sort by Age descending so the stalest PRs rise to the top of their bucket — PRs that have been rotting in the queue often hide the real merge friction.
Security exception: any row with the 🔒 marker jumps to the top of the entire table regardless of verdict bucket, because security urgency overrides the triage-by-ease ordering.
Verdict abbreviations (use these exact strings so the column stays narrow and scannable):
Merge — safe, low riskVerify — safe pending specific checks (detail lives in the per-PR section)Investigate — needs human judgmentHold — breaking changes require code work firstDo not add extra columns (branch name, author, CI status, labels). Seven is already the comfortable ceiling for terminal width, and every extra column dilutes the signal. If something doesn't fit the table, it belongs in the per-PR detail section, not here.
Parse the PR URL to extract the owner, repo, and PR number. When invoked via audit mode, these come from the gh pr list output — no parsing needed.
gh pr view <NUMBER> --repo <OWNER/REPO> --json title,body,url,files,headRefName
gh pr diff <NUMBER> --repo <OWNER/REPO>
From the diff, extract for each package being updated:
If the PR updates multiple packages, analyze them together in a combined summary with one section per package.
This is the most important step. Developers need to know what changed and whether anything will break.
Fetch the changelog between old and new versions. Try these sources:
gh to fetch the raw changelog file from the package's repo (usually CHANGELOG.md, Changes.md, or HISTORY.md at the repo root)https://github.com/<package-source-repo>/releaseshttps://www.npmjs.com/package/<name>, RubyGems: https://rubygems.org/gems/<name>, PyPI: https://pypi.org/project/<name>)Focus only on changes between the old and new version. For minor/major bumps, include all intermediate versions.
Organize findings by importance:
If you cannot find a changelog, say so explicitly.
Search the codebase to understand what this package touches and what's at stake if it breaks.
package.json, Gemfile, requirements.txt, go.mod, etc.) and whether it's a dev/test-only or production dependency.package-lock.json, yarn.lock, Gemfile.lock, poetry.lock, etc.) — if the package manager resolved successfully, note that.For dev/test-only packages, note the lower risk profile (broken dev workflow vs broken customer experience).
Keep this section concise: a grouped list of affected areas, not an exhaustive file listing.
Deliver a clear, concise verdict. Consider:
| Factor | Lower Risk | Higher Risk |
|---|---|---|
| Bump type | Patch | Major |
| Usage scope | 1-2 files, dev/test only | Widespread, production |
| Feature area | Admin, dev tooling | Payments, auth, orders |
| Changelog | No breaking changes | API changes, deprecations |
| Security fix | No | Yes (merge sooner) |
Verdicts:
Do not recommend running the test suite — CI handles that. Instead, call out specific things a human should verify that tests might not catch (e.g., production Redis version, runtime behavior changes, new deprecation warnings in logs).
After presenting the review in chat, follow the shared "Posting findings to PRs" section below. In single-PR mode the prompt is a simple yes/no ("Want me to post this review as a comment on the PR?"), and the comment body is drawn from the review you just produced.
The output should be concise and scannable. Use this structure:
## Dependabot Review: `package_name` (old_version -> new_version)
### Bump Type
[patch/minor/major] — [one line: what this means for risk]
### What Changed
[Changelog highlights organized by importance: breaking changes first (with fix suggestions), then deprecations, security fixes, and notable changes. Skip noise. If nothing notable, say "No breaking changes or deprecations."]
### Breaking Changes in This Codebase
[Only if there ARE breaking changes: list each one with the affected file and a concrete fix suggestion. If no breaking changes affect the codebase, omit this section entirely.]
### Codebase Impact
[Concise grouped list of what this package touches: "Payments: captures charges via checkout jobs", "Notifications: 12 push/email notification handlers", etc. One line per area.]
### Recommendation
[Verdict + 1-3 sentences explaining why and what to verify]
For multi-package PRs, use one top-level heading and a section per package, then a single combined recommendation at the end.
In audit mode, each per-PR subsection uses the same structure but condensed (aim for 15-25 lines). The top-level summary table and Overall recommendation (defined in the audit workflow) replace the single-PR verdict block.
This section applies to both single-PR mode (Step 5) and audit mode (Step A4). Always run it — producing a review without offering to post it back to the PR means the work lives only in the chat transcript, which isn't where a team actually reviews code.
Posting is a visible, public-facing action, so always ask before posting — never post automatically. Ask once, and keep the prompt short:
If the user answers "no", stop there. If "yes" or "selective", proceed to the idempotency check and then posting.
gh pr comment <NUMBER> --repo <OWNER/REPO> --body-file <path-to-tempfile>
Use --body-file rather than --body so newlines, backticks, and markdown tables survive the shell without escaping headaches. Write each comment to a temp file first (e.g., /tmp/dep-review-<pr-number>.md), then pass the path.
Use this exact structure per PR:
## Dependabot review
**Verdict:** <Merge / Verify / Investigate / Hold>
<one-line reason — the core of why this verdict>
<details>
<summary>Full review</summary>
<the full review output: Bump Type, What Changed, Breaking Changes in This Codebase (if any), Codebase Impact, Recommendation>
</details>
<!-- dependabot-audit:v1 -->
Rationale for each element:
<details> block keeps the long analysis collapsed — PR comments that dump 40 lines of unrequested content are noisy and get ignored.<!-- dependabot-audit:v1 --> HTML comment is invisible in the rendered view but lets a future run detect its own prior comment and decide whether to skip or update instead of duplicating.Before posting to any PR, run:
gh pr view <NUMBER> --repo <OWNER/REPO> --json comments --jq '.comments[].body' | grep -q 'dependabot-audit:v1'
If the marker is found, a prior review comment already exists. Mention it in the confirmation prompt ("PR #9170 already has a prior review comment — re-post anyway?") so the user can choose to skip, replace (delete the old comment via gh api --method DELETE /repos/<owner>/<repo>/issues/comments/<id> and post new), or leave it alone. Default to skipping if the user doesn't specify.
If gh pr comment fails for one PR (permissions, locked PR, rate limit), report the failure inline and continue. In audit mode, do not abort the whole batch because one comment failed.
After posting, show a short line:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/dependabot-review-skill-thoughtbot:dependabot-reviewfrom dependabot-review-skill-thoughtbot
dependabot-review-skill-thoughtbot@skills is listed by thoughtbot/skills — review the source before installing
npx claudepluginhub thoughtbot/skills --plugin dependabot-review-skill-thoughtbot