/steward:pr-consolidationfrom steward
Consolidates multiple open Dependabot/Renovate dependency PRs into one verified PR with lock regeneration, CI fixes, and release-age gating. Use for dependency-hygiene passes across any ecosystem.
Ships in steward. 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.
Turn a pile of bot dependency PRs into one PR that is green in CI, secure by the repo's own audit
gates, and honest about what it deferred. The rules live in rules.md beside this file
(${CLAUDE_SKILL_DIR}/rules.md): release age, majors, merging, attribution, CI audits, Renovate. They hold on
top of the target repo's own rules; this skill applies them and doesn't restate them.
If you were invoked directly on one repo with no orchestrator, stop after phase 10 and put the merge and the closing of superseded PRs to the user as a decision.
Detect the repo's ecosystems, then read ONLY the matching files. Always read bots.md.
| Files present (any directory) | Read |
|---|---|
Cargo.toml, Cargo.lock | ecosystems/rust.md |
pnpm-lock.yaml, package-lock.json, yarn.lock, package.json | ecosystems/node.md |
go.mod | ecosystems/go.md |
pom.xml, build.gradle(.kts) | ecosystems/jvm.md |
requirements*.txt, pyproject.toml, uv.lock, poetry.lock | ecosystems/python.md |
*.csproj, Directory.Packages.props | ecosystems/dotnet.md |
composer.json | ecosystems/php.md |
Gemfile | ecosystems/ruby.md |
.github/workflows/*, Dockerfile*, compose*.yml, docker-compose*.yml | ecosystems/actions-docker.md |
git ls-files | grep -E '(Cargo.lock|pnpm-lock.yaml|package-lock.json|yarn.lock|go.mod|pom.xml|build.gradle|requirements.*\.txt|pyproject.toml|uv.lock|poetry.lock|\.csproj|Directory.Packages.props|composer.json|Gemfile|Dockerfile|compose.*\.ya?ml)$'
Monorepos mix several (tanzu-genai-showcase#221 had Go, Python, .NET, PHP, Ruby, Java and Angular).
All in scripts/, bash 3.2-safe, each with usage in its header. Run them by their full path,
${CLAUDE_SKILL_DIR}/scripts/<name>, since you work in the target repo's clone.
lock-age.sh (release-age check of new lockfile entries), pr-status.sh, wait-ci.sh,
compare-base.sh (is this failure already on the base branch?), and, for the orchestrator only,
merge-and-close.sh and lock-fix.sh.
Track them with a todo list. Show real command output before claiming anything passes.
0. Discover. Work only in a fresh clone in a scratch folder, outside the user's project roots (steward config):
gh repo clone <repo> <scratch>/<name> -- --recurse-submodules -b <base> (submodules can be Cargo
path dependencies: emailibrium's ruvector). Then:
gh pr list -R <repo> --author app/dependabot and --author app/renovate
(see bots.md for which Renovate PRs count; renovate/configure never does).gh pr diff <n> -R <repo>, ignoring lockfile noise.compare-base.sh). Green bot PRs with old runs are stale: a
run from before this week's advisories proves nothing (rust-optimizer#10's #5, triage notes A/B)..claude/settings.json attribution, DCO/sign-off checks, commitlint,
release-please/semantic-release, CONTRIBUTING.md.1. Branch. chore/deps-consolidate-<lowPR>-<highPR>, or a descriptive name for one PR.
2. Apply at manifest level. Don't merge the bot branches; they all touch the lockfile and
conflict. Edit the manifests directly: each package at the newest version in its current
major that is at least 3 days old (newer than the bot proposed is fine). A 0.x minor is a
major (exception: golang.org/x/*). Majors are deferred, not taken.
3. Regenerate locks once with the repo's pinned package manager, then refresh transitive
entries needed for advisories (ecosystem file has the command). Run
scripts/lock-age.sh --local origin/<base> . and fix every UNDER entry.
4. Propagate version references. Grep workflows, Dockerfiles, Makefiles, docs, .nvmrc,
rust-toolchain*, go.mod, engines, packageManager for anything whose version moved.
Library bumps rarely have references; toolchain bumps usually do (claude-code-agent-manager#56
moved Go in go.mod, every workflow, the Dockerfile, docs and scripts). Some repos require docs to move with dependencies
(a private TypeScript site, a private TypeScript + Postgres app). Say which categories needed changes.
5. Fix failures, upgrade-caused and pre-existing. Run the full CI gate locally. For each
failure find the root cause; keep fixes minimal and idiomatic. Pre-existing fixes go in their own
commit and PR-body section. Typical pre-existing causes: unpinned @latest CI tools, audits that
went red when new advisories landed, slow-runner test timeouts. Anything bigger than a small,
scoped fix: stop and report it.
6. Security audit.
.github/scripts/cargo-audit.sh reads backend/audit-ignore). A job
may chain tools, and a later one can be masked by an earlier failure (cargo deny after
cargo audit on ampel#86). All of them must pass.gh api repos/<repo>/dependabot/alerts), RustSec, OSV. They disagree (rust.md).7. Release-age gate. Every version you introduce, direct or transitive, plus toolchain,
action and image pins, must be at least N days old by registry publish time, where N is the gate
in steward config (default 3; rules.md).
scripts/lock-age.sh checks lockfiles; the ecosystem files give the registry command for
everything else. Resolver age settings are not proof (node.md).8. Commit, push, open the PR. Conventional commits; stage only intended files; let hooks
run. Attribution per rules.md (default: no Co-Authored-By trailer). DCO → git commit -s
(a private TypeScript + Postgres app: every bot PR failed sign-off). release-please → chore(deps) for dev-only
changes (claude-autopilot#34). Normal push only. The PR body has:
🤖 Generated with [Claude Code](https://claude.com/claude-code).9. CI loop. scripts/wait-ci.sh <repo>#<n>. On red: read the log, separate real failures
from flakes (the npm advisory endpoint timed out fleet-wide around 02:55Z on 2026-10-22), rerun
only flaky jobs (gh run rerun <id> --failed), push fixes for real ones. Schedule- or
dispatch-only workflows can be started on the branch with gh workflow run <wf> --ref <branch>
(a Rust + Svelte app's ci-deps). Workflows disabled for inactivity don't run at all; report them
(actions-docker.md).
10. Hand-off. Final message (also saved to <scratch>/<repo>-report.md): PR URL; final
status per CI job; superseded PRs by bot; deferred majors with the three facts; overrides,
ignores and exceptions; pre-existing fixes; files changed; decisions the user must make.
The orchestrator merges and closes; see ORCHESTRATION.md and bots.md.
ORCHESTRATION.md (opens in a new tab)README.md (opens in a new tab)bots.md (opens in a new tab)ecosystems/actions-docker.md (opens in a new tab)ecosystems/dotnet.md (opens in a new tab)ecosystems/go.md (opens in a new tab)ecosystems/jvm.md (opens in a new tab)ecosystems/node.md (opens in a new tab)ecosystems/php.md (opens in a new tab)ecosystems/python.md (opens in a new tab)ecosystems/ruby.md (opens in a new tab)ecosystems/rust.md (opens in a new tab)rules.md (opens in a new tab)scripts/_lib.sh (opens in a new tab)scripts/compare-base.sh (opens in a new tab)scripts/lock-age.sh (opens in a new tab)scripts/lock-fix.sh (opens in a new tab)scripts/merge-and-close.sh (opens in a new tab)scripts/pr-status.sh (opens in a new tab)scripts/wait-ci.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dependency-management, dependabot, renovate, pr-consolidation, ci-fixes
8 skills in this plugin
/ai-toolingKeeps this machine's AI tooling consistent with policy: Ruflo and AgentDB, the shared patched AQE runtime and CLI, RuvNet Brain, RuVector, the shared Ruflo launcher, the auto-update and daemon guards, and each project's AI launchers and hook shims. Reports drift read-only (steward ai drift), tracks upstream AQE releases and watched issues, and walks the qualification recipe for a new AQE or Ruflo version with backups and receipts. Respects each project's own tool choice: not every project uses ruflo, AQE or Brain. Use when asked "is the AI tooling OK", "check drift", "a new agentic-qe release is out", "upgrade ruflo", "why does this project use npx ruflo@latest", or "qualify AQE 3.15.x".
/chat-history-cleanupCatalogs claude.ai chat history up to a cutoff date into a CSV the user owns, matches each chat's artifacts against their Git repos, proposes delete (empty, or code already in a repo), archive (no artifacts) or review (unsaved work) for each, and archives or deletes only the buckets the user approves, verifying each one. Run once, then yearly; it can set up a scan-only scheduled task for early January. Use when asked to "clean up my chat history", "trim old chats", "prune old artifacts", "catalog my Claude chats", "run the yearly chat review", or to approve or review chats a scan proposed.Other plugins' skills for the same job
Generated from the plugin's indexed repository (pacphi/workstation-steward) — no native marketplace selected
npx claudepluginhub p/pacphi-steward