/dependabot-rollup:dependabot-rollupfrom dependabot-rollup
Consolidate a repo's open Dependabot **security** PRs (never majors) into one chore branch + PR, verify the bumps landed in the lockfile, drive it to green CI, close the superseded Dependabot PRs, and notify the human once. All work happens in a throwaway worktree, so the invoking checkout is never switched or dirtied. The rollup always lands on `dev`. Invoke as `/dependabot-rollup`, or whenever a repo's open Dependabot security PRs need consolidating into one verified rollup PR. Runs unattended as a scheduled **local** routine (never a cloud one). Requires the `github-ops` skill.
Ships in dependabot-rollup. 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.
This file owns the shape of the run: the order of the steps and the branching decisions. Each step's rules live in one reference file — read it when you reach that step.
Before setting up or debugging a scheduled routine, read
references/unattended-operation.md: it covers the
/goal that carries the run across turns, the consent line the routine prompt must carry,
and why this is local-only.
devDependabot raises security PRs on the repo's default branch ($SOURCE) —
dependabot.yml's target-branch redirects only the scheduled version updates. Step 2
must discover there — discovering on dev instead finds routine version bumps only, and
reports a false NO-OP.
The rollup itself always opens against dev, cut from origin/dev, so it flows
through the normal release path; the Dependabot heads (cut from $SOURCE) merge into it.
No dev branch means no separate integration branch to protect — Dependabot's PRs already
merge straight to $SOURCE — so there's nothing for this skill to do: stop.
GitHub-API work goes through the github-ops skill (gh locally, GitHub MCP on
Claude web); it must be available for this skill to run, and its commands are what the
"→ operation" references throughout these steps actually invoke. Working-tree
work (merges, lockfiles, install, build) needs a clone and the repo's toolchain
locally, not just API access.
Confirm auth is live (locally gh auth status; stop and report if not). Then,
without changing branches, run scripts/preflight.sh:
bash "$CLAUDE_PLUGIN_ROOT/scripts/preflight.sh"
# no $CLAUDE_PLUGIN_ROOT (source checkout of the ops repo)?
bash plugins/dependabot-rollup/scripts/preflight.sh
It fetches, resolves REPO and SOURCE (the default branch — origin/HEAD is occasionally
unset), and confirms origin/dev exists — exiting loudly if either check fails (see
above). Take REPO and SOURCE from its output. Ignore git status — a dirty checkout is
fine and must not abort the run.
Then list the open PRs on dev (→ List PRs by label / state) looking for a
chore/dependabot-security-rollup-* head:
ALREADY AWAITING REVIEW + link and stop. No second rollup, no rebase, no merge.references/classification.mdDiscover on $SOURCE. Two outcomes:
/goal
(references/unattended-operation.md) and continue.references/worktree.mdIdempotent: new branch, or the existing one from step 1. Call the path $WT — steps 4–8
all run inside it.
references/lockfile-and-verification.mdbash "$CLAUDE_PLUGIN_ROOT/scripts/commit-and-push.sh"
# no $CLAUDE_PLUGIN_ROOT (source checkout of the ops repo)?
bash plugins/dependabot-rollup/scripts/commit-and-push.sh
references/pr-and-completion.mdStrictly in that order.
references/worktree.mdreferences/pr-and-completion.mdOnce, at the end, and only once steps 8 and 9 are both done. Then /goal clear.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub hifi-phil/umbraco-mcp-ops --plugin dependabot-rollup