/github:dependabotfrom github
This skill should be used when the user wants to triage the open Dependabot PRs of a repository, in any ecosystem: close the dead ones, fix and review the rest, give majors a verdict, optionally auto-merge safe patch/minor. Activates on: "dependabot", "dependabot PRs", "triage dependabot", "merge dependabot PRs", "dependabot backlog", "clean up dependabot", "dependabot alerts", "vulnerable dependencies", "PR di dependabot", "PR dependabot aperte", "smaltire dependabot", "pulizia dependabot", "aggiornamenti dipendenze dependabot".
Ships in github. 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.
Read when SKILL.md points to them; scripts run unread.
Takes every open Dependabot PR of the current repository to one of four ends:
ignore entry
with the condition that lifts it, or a decision asked to the user.Whatever a PR needs to get there (a regenerated lockfile, a deprecation fix, a held-back package, a rebase) is this skill's to do, on the Dependabot branch.
Ecosystem specifics live in reference/ecosystems.md; this file says "the adapter's X" and the adapter says how. The auto-merge gate is in reference/auto-merge.md, comment and report templates in reference/review-template.md, config keys in reference/config.md.
The mode comes only from the arguments, never from the wording of the request.
| Arguments | Mode |
|---|---|
| none | Interactive: present the plan, act, ask decisions with AskUserQuestion |
--dry-run | Every step up to the plan, then the report with what would be done: nothing is closed, pushed, labelled or merged in any step (Steps 1 and 4 list their actions instead of taking them) |
--unattended | Act without pausing: no confirmation after the plan, decisions collected and asked at the end. Combined with --dry-run, only the report is written |
Where decisions go depends on the session, not on the flag. When
AskUserQuestion is among the session's tools, someone can answer: every
decision is asked in chat, --unattended or not, and no tracking issue is
written. Only a headless session (claude -p, a Routine, a schedule: no
AskUserQuestion) uses the tracking issue.
Unattended changes only these points; everything else, the gate included, is the same:
ignore entries still go
into the config PR: merging it is the confirmation.Headless adds:
timeout 1800 gh pr checks <n> --watch); what is still pending is left to
Step 1 of the next run.gh authenticated and jq):
${CLAUDE_PLUGIN_ROOT}/skills/dependabot/scripts/collect.sh — open Dependabot PRs as JSON lines: ecosystem, group, deps with bump type, ours, mergeable, checks${CLAUDE_PLUGIN_ROOT}/skills/dependabot/scripts/classify.sh — GONE / SUPERSEDED / DUPLICATE / PENDING / UNKNOWN per PR, from the dependency-graph SBOM and the workflows${CLAUDE_PLUGIN_ROOT}/skills/dependabot/scripts/advisories.sh — open advisories (Dependabot alerts, osv-scanner fallback); exit 3 means unknown${CLAUDE_PLUGIN_ROOT}/scripts/read-config.sh — the dependabot key of .claude/github.jsongh pr merge|checks|view|edit|close, git, and the ecosystem's own tools per the adapterpull_request_read, pull_request_review_write (reviews), update_pull_request (reviewers, close), add_issue_comment, issue_write (labels), get_job_logs--unattended run, and with the issue link when headless--admin or bypasses branch
protection.dependabot/*. Only an update with no Dependabot PR at all (a vulnerable
package Dependabot did not open, or the split of an oversized PR) gets a
branch of ours.origin/<default> and push with
git push --force-with-lease=<branch>:<sha we fetched> origin <branch>.
Lockfile conflicts are never resolved by hand: take the default branch's
lockfile and re-run the command that produced our commit (adapter:
regenerate from default).ignore entry on the default branch now covers, plus PRs too large to audit,
which are split into PRs of ours (Step 6). Postponing is done with a verdict
(Step 9), not a close.@dependabot commands (rebase, recreate, ignore) work from a local
session, where they are posted as the maintainer. A cloud session's GitHub
proxy rewrites them so they never reach Dependabot: there, do the work
directly (rebase here, close via the API, ignore entries in config).cd fails (cd <dir> && …, or git -C): after a failed git worktree add, a bare cd runs the
update in the main checkout.dependabot.yml change merges, Dependabot runs at once, closes
single PRs a group now covers and opens new ones.gh auth status; gh repo view --json nameWithOwner,defaultBranchRef. Work
from a checkout of that repository (the scripts read origin/<default>):
git fetch -q origin <default>, and git fetch --unshallow on a shallow
clone.read-config.sh, then .config.dependabot // {}. A key the
repository does not set takes the user's default (the plugin's options in
/config), then config.md's:
auto-merge ${user_config.dependabot_auto_merge}, method
${user_config.dependabot_merge_method}, scope
${user_config.dependabot_dependency_scope}, ready label
${user_config.dependabot_ready_label}, PRs per run
${user_config.dependabot_max_deep_work_per_run}, packages per PR
${user_config.dependabot_max_deps_per_pr}. A value still shown as
${user_config…} is unset. On source: "claude-md" follow the
plugin's migration prompt (as github:pm does) before going on..github/dependabot.yml: ecosystems and directories, groups,
open-pull-requests-limit per ecosystem (default 5), existing ignore
entries. No file and still Dependabot PRs: security updates only; say so.S to a scratch directory for the JSON the steps share (the
session's scratchpad when it has one).dependabot-triage, created by Step 11):
read the maintainer's comments after our last report. Each one answers a
decision listed there; act on it in this run, in any mode. When
AskUserQuestion is available, ask the decisions still unanswered now,
record the answers as a comment on the issue and close it once nothing is
left open in it.Before anything new, the PRs carrying ready_label or one of our reviews
(--dry-run: list the actions only):
| State | Action |
|---|---|
| Merged or closed by the maintainer | Leaves the queue |
| New head from Dependabot | Fresh look (Steps 6–8) and an updated review |
| Conflicting | Untouched by us: wait for Dependabot. Ours: rebase (Hard rules) |
| Required check turned red | Remove the label, take it to the Fix lane |
| Closed by Dependabot and regenerated | Re-apply our commits on the new PR, carry review and label over |
| Waiting in the merge plan on a PR now merged | Ours: regenerate the lock from default, push, comment, label. Dependabot's: @dependabot rebase |
"${CLAUDE_PLUGIN_ROOT}/skills/dependabot/scripts/collect.sh" > "$S/prs.jsonl"
ours: true means a head commit was not authored by Dependabot (us, or the
maintainer). checks is a summary of all checks for planning; whether a PR is
green is decided on its required checks with gh pr checks (Step 8). mergeable
UNKNOWN is computed lazily: ask again later, then test locally:
git merge-tree --write-tree origin/<default> FETCH_HEAD after fetching the
head. --write-tree needs git 2.38 or later: an older git reports a conflict
on every PR, so check git --version first and treat the result as unknown
when it is older. Exit 1 is a conflict; any other non-zero exit is an error.
Stale CI. A run older than the last lockfile change on the default branch
says nothing about the PR today, the normal state of a backlog. For the PRs
taken this run that carry no commit of ours, ask Dependabot for a fresh head:
gh pr comment <n> --body "@dependabot rebase" from a local session (the
cloud proxy mangles it, Hard rules). There, rebase the branch ourselves only
when the PR goes to the Fix lane anyway: a branch we pushed to is one
Dependabot stops maintaining.
Dependabot sometimes ignores the command. With no new head after 20 minutes, rebase it ourselves only when the PR moves a single lockfile entry (nothing to maintain after it merges), and say so in the push comment; any other PR stays under "Next run".
if "${CLAUDE_PLUGIN_ROOT}/skills/dependabot/scripts/advisories.sh" > "$S/advisories.jsonl"; then
jq -c --slurpfile adv "$S/advisories.jsonl" '. as $pr | .advisories = [ $adv[]
| select(.package as $p | any($pr.deps[]; .name == $p)) | {ghsa, severity, scope, patched} ]' \
"$S/prs.jsonl" > "$S/prs-adv.jsonl"
else
jq -c '.advisories = null' "$S/prs.jsonl" > "$S/prs-adv.jsonl" # unknown, not none
fi
advisories: null (the script exited 3) means unknown: say so on the first
line of the report, never treat it as "none". For every update record:
scope runtime or development. Read the advisory's own text
for its preconditions (a configuration, an optional package present in the
lock, a platform, a feature turned on) and check each in the repository,
then whether our code calls the vulnerable API. A call with a precondition
unmet is not reachable. Say "reachable", "not reachable" or "unknown", with
the precondition that decided it — never guess.Queue order: critical/high reachable advisories → other advisories → PRs blocking others (a red group PR, the open-PR limit full of majors) → majors → the rest, oldest first. Vulnerable packages with no PR go into the plan as Batch lane items (Step 5).
"${CLAUDE_PLUGIN_ROOT}/skills/dependabot/scripts/classify.sh" < "$S/prs.jsonl" > "$S/classified.jsonl"
| Verdict | Action (no confirmation needed; --dry-run: list only) |
|---|---|
| GONE | close with the template comment |
| SUPERSEDED | close with the template comment |
| DUPLICATE | close, linking the PR in deps[].of (same major only: a patch is never a duplicate of a major) |
| UNKNOWN | the adapter's "locked version" decides, then as above |
| PENDING | Step 5 |
The SBOM lags a few minutes behind a push to the default branch: a PR the maintainer merged moments ago can make another look PENDING; it will be caught at the next run. A group PR with some packages already on the default branch is still PENDING: Dependabot regenerates it.
Every remaining PR, and every vulnerable package with no PR, gets one lane:
| Lane | Goes there | How |
|---|---|---|
| Auto-merge candidate | Patch/minor admitted by the config, checks green, ours: false | Audit (Step 6), then the gate (Step 8) |
| Ready | Patch/minor PRs and groups that are green and not auto-merge candidates, or that failed the gate | Audit, review, label |
| Fix | Red CI; changelog ACTION; single-package PRs dragging unrelated packages; parent-blocked updates (with their parent bump); majors with verdict Upgrade now | On the Dependabot branch (Step 7) |
| Batch | Vulnerable packages with no PR whose fix is on the current major | One PR of ours from the default branch, the adapter's conservative update (Step 7) |
| Major | Every major PR, and vulnerable packages whose only fix is a major | A verdict (Step 9) |
| Decision | A choice no code change can make (dropping a package, a product trade-off), toolchain upgrades (a dev tool dragging its core across many minors) | Asked (Step 11) |
Dragged packages. Read the lock diff (adapter) of every single-package PR
before giving it a lane. Dependabot often lets one update move packages it
does not need: in bundler, an rspec-rails bump that also moves irb,
rdoc, minitest, uri. Such a PR goes to Fix, where the lock is
regenerated from the default branch (Step 7 point 1). That commit takes it
off the gate: it is merged on the maintainer's answer (Step 11).
Parents. Before planning a bump, check that every package requiring it admits the target (adapter: parents). A parent that does not makes it parent-blocked: find the first parent release that admits it, follow the chain, and if it resolves it goes to Fix with its parents; if no release admits it, Major lane Blocked or Decision.
Families. Packages released together and pinned to the same exact version
(a framework's @scope/* packages, a monorepo's crates) cannot move one at a
time: each single PR is red by construction. Recognise them by a shared
scope or prefix and the same exact from in the manifest. Their open PRs are
one Fix item: on the PR carrying most of them, bring the other members to the
same version (adapter: regenerate), close the others as superseded by it, and
propose a groups entry for the family in the Step 9 config PR.
Backlog cap. Deep work (audit + fix + review) is limited to
max_deep_work_per_run PRs, taken in queue order. Every other PR still gets
the cheap passes — closed if dead, and listed under "Next run" in the report —
so a large backlog drains across several runs instead of one session that
never ends. Auto-merge candidates count toward the cap: the audit is the
expensive part of the gate.
Present the plan (lane counts, the PRs taken this run, the decisions to ask)
before acting on it. In --dry-run, stop here and print the report;
--unattended puts it in the report and goes on.
Green CI proves the tests pass, not that nothing changed: a renamed module, a new default or a new deprecation warning can ship without a failing test. No PR is reviewed, marked ready or auto-merged before this is done for each package it moves, direct ones and transitive ones that cross a minor or are new.
At most max_deps_per_pr direct packages per PR. A larger PR (a backlog,
a busy week in a group) is not audited as it is: close it with a link and split
its packages into PRs of ours, grouped by domain, each carrying the code
changes its own packages need.
warnings_check is configured: download the
job log of the PR head and of the latest green default-branch run,
normalise timestamps and paths, diff the lines matching pattern. A line
only in the PR is ACTION. Service-container noise is not ours.from → to), read-only on the repository, run them in parallel.One PR at a time:
local_checks (or the adapter's smoke checks) and the affected tests;
compare any local failure with the default branch's lockfile before
trusting it. Push, comment.Group PR red: find the package that breaks (failing tests, then the
changelogs of what they touch). A small fix in our code goes on the group
branch. Anything bigger: hold that package back in the group's lock (adapter:
hold back) and take it to the Fix lane at the group's target; if it does not
land this run, it goes to Decision (fix it, or an ignore entry for that
minor line). Never wait for Dependabot to drop the package.
Batch PR (only for what no Dependabot PR carries): branch
deps/batch-<date> from origin/<default>, the adapter's conservative update
for the named packages only, check that the lock diff moves nothing else.
At most max_deps_per_pr packages per batch PR: more become several batch
PRs, grouped by domain. Commit Batch dependency update <date> with every
package from → to and its advisory in the body, push, open the PR.
Do not wait for the next run. After a push, wait for the required checks
in the background (gh pr checks <n> --required --watch, run in the
background) and continue with other PRs meanwhile. Wait on checks, never on a
bot comment: status bots edit their comment several times while checks run.
mergeable
clean, review posted. Then add ready_label (create it on first use) and
request the maintainer (update_pull_request reviewers), unless the
maintainer authored the PR (a batch or config PR opened with their
account): GitHub refuses an author as reviewer, the label is enough. The
maintainer's queue is is:open label:<ready_label>.origin/<default> and run
the adapter's lock check after each; on a failure, find the PR it clashes
with. The report gives the order: Dependabot's PRs first, ours touching the
lock last. A PR that breaks after another gets "regenerate after #n" in its
review and no ready_label until then (Step 1 of a later run).
Do not stack them with gh stack: stacking rebases Dependabot branches onto
each other (Dependabot stops maintaining them), its cascading rebase is
textual and regenerates no lockfile, and merging a mid-stack PR merges
everything below it.ignore entriesA major is never left open without a verdict, and never closed "to revisit later". Collect the Step 3 facts, the removals turned into a grep (Step 7 point 2) and a size: S (no hit, or a one-line change), M (a few call sites, one area), L (many call sites, a parent chain, or behaviour the tests do not pin). Then exactly one verdict:
| Verdict | When | What happens |
|---|---|---|
| Upgrade now | A security major with no fix on the current line (always first); otherwise parents admit it and it is the best value for its size. At most two per run, and only ones this run takes to green | Fix lane |
| Awaiting review | Upgradable, not taken this run | Stays open with the assessment review, maintainer requested, without the ready label |
| Blocked | A parent or our constraints admit no release of the target | ignore entry; the PR closes once the entry is on the default branch |
| Not wanted | The user said so (a package being dropped, a product trade-off) | ignore entry; the PR closes once the entry is on the default branch |
Framework majors (the application framework itself, a language runtime) go to Decision: they deserve their own session.
Slots. Majors left open count toward open-pull-requests-limit; once it is
full, Dependabot stops opening new PRs for that ecosystem, groups included.
When majors fill the limit, say so on the first line of the report.
When Dependabot replaces a major PR with a newer (or, after a cooldown, an older) target of the same major, carry the verdict and the assessment over and re-check only the delta.
The ignore entry goes under the ecosystem's entry in
.github/dependabot.yml, always with the reason and the lift condition:
ignore:
- dependency-name: "<package>"
update-types: ["version-update:semver-major"]
# Blocked: <parent> <version> requires <package> < <major>.
# Lift when a <parent> release admits <package> <major>.
All entries of a run go into one PR (deps/dependabot-config-<date>), its
body carrying the same table as the report. The user confirms its entries
(Step 11); it is then reviewed and marked ready like any other PR. Once merged,
close each covered PR with the template comment.
Revisit every entry at every run, before new verdicts: an ignored major
never shows up as a PR, so find its latest version with the ecosystem's
registry or outdated command. Blocked: re-check the parents; once nothing
blocks, drop the entry. Not wanted: report it with its lift condition, drop it
only on the user's answer. An advisory fixed only in an ignored major drops the
entry and makes that major Upgrade now (or Decision while still blocked):
ignore entries can suppress security updates too.
release_check)Find the latest published release (gh release list --exclude-drafts --exclude-pre-releases --limit 1), list the advisories its lockfile carries
(osv-scanner on a checkout of the tag, when installed) and compare with
Step 3. Advisories fixed on the default branch but present in the release are
awaiting release: high or critical ones go on the first line of the
report, and publishing is the user's call (github:release).
Decisions are asked, not written into the report as questions:
AskUserQuestion, one question per decision, at most four per call; with
more, the most blocking first and the rest after acting on the answers.Headless: the report and the decisions go to the tracking issue instead,
one per repository (Dependabot triage, label dependabot-triage, created on
first use). Its body is replaced with the latest report; each run adds one
comment with that run's decisions in the issue template, so the maintainer
answers there and is notified by GitHub. A decision answered meanwhile
disappears from the next one. Send a PushNotification when the tool exists,
one line: how many decisions, the most urgent, the issue link. Its wording
matches the report: an advisory found not reachable is not called urgent.
| Situation | What to do |
|---|---|
advisories.sh exits 3 | Advisories unknown: first line of the report; offer to install osv-scanner or enable Dependabot alerts |
classify.sh says the SBOM is unavailable (dependency graph off) | Every non-Actions dep is UNKNOWN: use the adapter's locked version |
classify.sh says the directory is not a checkout of the repo | Run it from the right checkout; Actions deps are UNKNOWN until then |
collect.sh returns nothing but the PR list shows Dependabot PRs | Check gh auth status scopes and that the PRs' author is dependabot (not a fork bot) |
| CI log expired (410) or the run predates the last lockfile change on default | CI unknown: re-run the checks before calling the PR green or red |
| Red job with no test failure in its log | Compare with the same job on the default branch first: a failure main does not have, on a PR behind main, is drift (schema, generated files) and goes with a rebase. Only one main shares, or the runner's own, is infrastructure: report once |
Push rejected by --force-with-lease | Someone pushed meanwhile: fetch, look at what changed, redo; never plain --force |
| Ecosystem missing from the adapters | Work the fields out from the repository; say which were improvised |
dependabot keys of .claude/github.json and their defaultsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fabn/claude-plugins --plugin github10 skills in this plugin
/actionlintgithub:actionlintThis skill should be used when the user wants to configure actionlint CI
on a repository to automatically lint GitHub Actions workflow files on
push and pull request events using reviewdog/action-actionlint.
Activates on: "actionlint", "setup actionlint", "configure actionlint",
"lint actions", "lint workflows", "lint github actions", "action linter",
"workflow linting", "configurare actionlint", "lint azioni github",
"lint workflow github".
/address-reviewgithub:address-reviewThis skill should be used when the user wants to address review comments on a
pull request: read and reason about each comment, decide whether to implement,
answer, or push back, apply code changes, reply to individual threads, push the
new commit, and optionally update the PR description.
Activates on: "address review", "pr review", "review comments", "respond to review",
"fix review", "implement feedback", "resolve comments", "reply to review",
"address feedback", "implementare feedback", "risolvere commenti",
"rispondere alla review", "gestire review", "affrontare review".
/attach-imagesgithub:attach-imagesThis skill should be used when the user wants to put images (screenshots,
mockups, diagrams) in a pull request, issue, or comment without committing
them to the repository. Uploads them as GitHub attachments from the command
line, the same ones drag-and-drop creates in the web UI, and returns the tags
to paste in the body.
Activates on: "attach screenshots", "screenshots in the PR", "upload images
to github", "add screenshots to PR", "attach images", "image in issue",
"user-attachments", "allega screenshot", "screenshot nella PR", "carica
immagini su github", "aggiungi screenshot alla PR", "immagini nella issue".