一键导入
dependabot-batch-bump
Consolidate Dependabot PRs by applying a blanket uv dependency refresh on main, verifying GitHub Actions, and closing stale Dependabot PRs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Consolidate Dependabot PRs by applying a blanket uv dependency refresh on main, verifying GitHub Actions, and closing stale Dependabot PRs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
File AnyPod GitHub issues (bug or feature) with the official templates and publish them through the gh CLI.
Create an AnyPod pull request from the current branch with full branch analysis, user-reviewed PR copy, remote push handling, and gh CLI publishing.
| name | dependabot-batch-bump |
| description | Consolidate Dependabot PRs by applying a blanket uv dependency refresh on main, verifying GitHub Actions, and closing stale Dependabot PRs. |
Consolidates open Dependabot dependency PRs into one direct commit on main, verifies CI, and watches the Dependabot PRs close or handles stale duplicates.
Use this skill when Dependabot has opened a batch of dependency PRs and the maintainer wants one blanket dependency refresh instead of merging each PR.
Confirm the worktree is clean and identify open Dependabot PRs:
git status --short --branch
gh pr list --author app/dependabot --state open \
--json number,title,headRefName,url,updatedAt,baseRefName --limit 50
If the worktree has unrelated changes, stop and ask before proceeding.
Run a full resolver upgrade from the repository root:
uv lock --upgrade
Inspect the diff. If Dependabot PRs modify direct constraints in pyproject.toml, raise those lower bounds too so the manifest records the intended minimum versions. Then refresh the lockfile again:
uv lock
Do not cherry-pick individual Dependabot branches. The point is one consolidated main-branch update.
Run the repository’s full local gate:
uv run pre-commit run --all-files
Fix failures before committing.
Use a conventional dependency-maintenance commit. Include the local verification in the body.
git add pyproject.toml uv.lock
git commit -m "chore(deps): update dependencies" \
-m "Why: Dependabot opened multiple dependency PRs. Consolidating them keeps maintenance linear." \
-m "Approach: Ran uv lock --upgrade and adjusted direct lower bounds for the Dependabot-targeted packages." \
-m "Verified: Ran uv run pre-commit run --all-files."
git push origin main
Find the run for the pushed commit and wait for it to finish:
HEAD_SHA=$(git rev-parse HEAD)
gh run list --branch main --json databaseId,headSha,status,conclusion,workflowName,url --limit 20
gh run watch <run-id> --exit-status
If Actions fail, inspect the failed job logs, fix the issue on main, run local validation, push, and monitor the replacement run.
After Actions passes, watch open Dependabot PRs for up to 10 minutes:
gh pr list --author app/dependabot --state all \
--json number,title,state,headRefName,updatedAt,closedAt,url --limit 50
Most PRs should auto-close once GitHub sees that main already contains their update.
If a PR remains open but its diff is already superseded by main, close it with a factual comment:
gh pr close <number> --comment \
"Closing as superseded by <commit>, which applies this dependency update on main as part of a consolidated dependency refresh."
Before manually closing, verify the PR is stale or duplicate. Do not close a Dependabot PR that still contains a real update not present on main.
Report:
main