Merge Dependabot PRs
Description
@description Evaluate and merge dependabot PRs with parallel builds, dependency-aware batching, and transitive dep analysis. @arguments $REPO: GitHub org/repo (e.g., trailofbits/algo). $OPTIONS: Optio
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for trailofbits/claude-code-config, shared by 3 entries
in this directory. It describes the repository, not this entry specifically.
Merge Dependabot PRs
@description Evaluate and merge dependabot PRs with parallel builds, dependency-aware batching, and transitive dep analysis. @arguments $REPO: GitHub org/repo (e.g., trailofbits/algo). $OPTIONS: Optional flags — "--skip-config-audit" skips Phase 0 (use in batch runs where config audit is a separate pass).
Clone $REPO if not already available locally:
gh repo clone $REPO /tmp/depbot-eval-$(echo "$REPO" | tr '/' '-') -- --depth=50 2>/dev/null || \
(cd /tmp/depbot-eval-$(echo "$REPO" | tr '/' '-') && git fetch origin)
Work from `/tmp/depbot-eval-{repo-slug}` for all subsequent phases.
Execute every phase below sequentially. Do not stop or ask for confirmation at any phase.
Turn Budget Management
If you are running as a background agent with a `max_turns` cap:
- At 75% of turns used: Stop launching new evaluations. Merge any PRs already evaluated as PASS. Skip Phase 5's detailed reports — print only the summary table.
- At 90% of turns used: Immediately print whatever summary you have and stop. Do not start new evaluations or re-tests.
- Prioritize merging over analysis. If you must choose between thorough analysis of the last PR and merging already-evaluated PASS PRs, merge first.
Phase 0: Dependabot Config Audit
If `$OPTIONS` includes `--skip-config-audit`, skip this entire phase and proceed to Phase 1.
Detect all package ecosystems present in the repo by checking for these indicator files:
| Indicator file(s) | Ecosystem |
|---|---|
pyproject.toml + uv.lock |
uv |
pyproject.toml (no uv.lock), requirements*.txt, setup.py, setup.cfg |
pip |
Cargo.toml |
cargo |
package.json |
npm |
go.mod |
gomod |
Gemfile |
bundler |
Dockerfile, docker-compose.yml |
docker |
.github/workflows/*.yml |
github-actions |
composer.json |
composer |
*.csproj, *.fsproj |
nuget |
Read `.github/dependabot.yml`. Verify all five conditions:
- Coverage — every detected ecosystem has a corresponding
updatesentry with the correctpackage-ecosystemvalue and appropriatedirectory(usually"/") - uv vs pip — if a directory has both
pyproject.tomlanduv.lock, the ecosystem MUST beuv, notpip. Thepipecosystem does not updateuv.lock, which causes PRs that modifypyproject.tomlbut leaveuv.lockout of sync. If any entry usespipwhereuvis correct, flag it for correction. - Schedule — every entry has
schedule.interval: "weekly" - Cooldown — every entry has a
cooldownblock withdefault-days: 7. This prevents dependabot from flooding the PR queue with rapid re-attempts after a PR is closed or merged. - Grouped updates — every entry has a
groupskey with at least one group usingpatterns: ["*"]or more specific grouping patterns
If the file is missing or any condition fails, create a corrective PR:
- `git checkout -b fix/dependabot
Related Skills
Epic Sync
Sync epic issue bodies, labels, and local coordination snapshots from GitHub.
Git 使用 Git Worktrees
创建孤立的 Git worktrees,带有智能目录选择与安全验证。
Git Claude skills github
[Building agent skills blog](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-ag
Git #148
, [#161](https://github.com/affaan-m/everything-claude-code/pull/161))
Git GitHub MCP
| Token | Repos, issues, PRs, workflows |
Git GitHub MCP Server
Official first-party server to read repos, manage issues/PRs, and automate workflows.
Git