fix-dependabot-prs
Aggregates multiple Dependabot PRs into a single combined pull request.
Install
mkdir -p .claude/skills/fix-dependabot-prs && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3670" && unzip -o skill.zip -d .claude/skills/fix-dependabot-prs && rm skill.zipInstalls to .claude/skills/fix-dependabot-prs
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
dependabotから上がってきた複数のPRを一括で解決し、まとめPRを作成する。dependabotのPR対応を依頼された時に使用。Key capabilities
- →Batch process multiple Dependabot pull requests
- →Consolidate dependency updates into a single branch
- →Execute build runners and update lockfiles
- →Verify consolidated changes with tests
- →Automate pull request creation and closure
How it works
It fetches open Dependabot PRs, cherry-picks or merges changes into a new branch, runs build tasks, and creates a summary PR.
Inputs & outputs
When to use fix-dependabot-prs
- →Batching multiple dependency updates
- →Reducing CI noise from minor dependency bumps
- →Synchronizing build runner and lockfile updates
About this skill
Dependabot PRまとめ解決スキル
dependabotから上がってきた複数のPRを一括で解決し、まとめPRを作成します。
実行手順
1. dependabotのPR一覧を取得
gh pr list --author "app/dependabot" --state open
2. 各PRの状態を確認
各PRについて以下を確認する:
- PRの変更内容(
gh pr view <PR番号>) - GitHub ActionsのCI結果(
gh pr checks <PR番号>) - 差分内容(
gh pr diff <PR番号>)
3. まとめブランチを作成
git checkout main
git pull origin main
git checkout -b chore/dependabot-updates-$(date +%Y%m%d%H%M%S)
4. 各PRの変更を取り込む
各dependabot PRのブランチから変更を取り込む:
# 例: dependabot/npm_and_yarn/パッケージ名-バージョン のようなブランチ名
git fetch origin <dependabotブランチ名>
# コミットハッシュは `gh pr view <PR番号> --json commits --jq '.commits[0].oid'` で取得できます
git cherry-pick <コミットハッシュ>
# または
git merge origin/<dependabotブランチ名> --no-edit
5. 矛盾の解決
PR同士で矛盾する変更がある場合:
- 両方の変更を取り込むのが難しい場合は、片方を諦めてOK
- 諦めた理由と背景は、後でまとめPRにコメントとして記載する
6. コード生成の実行
dependabot PRはCIのcodegenステップで落ちていることが多いため、必ず実行する:
flutter pub run build_runner build --delete-conflicting-outputs
dart format lib
変更があればコミット:
git add -A
git commit -m "chore: run build_runner after dependency updates"
7. iOS Podfile.lockの更新
iOSの依存関係も更新が必要な場合が多い:
cd ios
pod install --repo-update
cd ..
変更があればコミット:
git add ios/Podfile.lock
git commit -m "chore: update Podfile.lock"
8. ビルド・テストの確認
flutter analyze
flutter test
9. まとめPRを作成
git push origin HEAD
gh pr create --title "chore: dependabot PRまとめ更新" --body "$(cat <<'EOF'
## 概要
dependabotから上がってきた複数のPRをまとめて対応しました。
## 取り込んだPR
- #PR番号1: パッケージ名 x.x.x → y.y.y
- #PR番号2: パッケージ名 x.x.x → y.y.y
...
## 追加対応
- [ ] build_runner実行
- [ ] Podfile.lock更新
## 除外したPR(ある場合)
- #PR番号: 除外理由
EOF
)"
10. 除外したPRがある場合
まとめPRにコメントで理由を記載:
gh pr comment <まとめPR番号> --body "$(cat <<'EOF'
## 除外したdependabot PR
### #PR番号: パッケージ名の更新
**理由**: (例)他のパッケージとの依存関係が矛盾するため
**背景**: (詳細な説明)
**今後の対応**: (必要であれば)
EOF
)"
11. 元のdependabot PRをクローズ
まとめPRがマージされた後、元のdependabot PRをクローズする:
gh pr close <PR番号> --comment "まとめPR #<まとめPR番号> で対応しました"
注意点
- dependabotのPRは作成時点でCIが落ちていることが多いので、必ずCI結果を確認する
- Flutter/Dartプロジェクトでは
build_runnerの実行が必要なことが多い - iOSビルドには
Podfile.lockの更新が必要なことが多い - 複数のパッケージ更新で依存関係が矛盾する場合は、無理に両方を取り込まず、片方を諦める判断も重要
- 諦めた場合は必ず理由を記録する
When not to use it
- →Single dependency updates that do not require consolidation
- →Projects without CI/CD or build runner requirements
Prerequisites
Limitations
- →Requires manual resolution when dependency conflicts occur
- →Dependent on CI results for verification
How it compares
It automates the manual effort of merging multiple dependency updates and resolving resulting build conflicts.
Compared to similar skills
fix-dependabot-prs side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| fix-dependabot-prs (this skill) | 1 | 6mo | Review | Intermediate |
| flutter-pub-update | 2 | 7mo | Review | Beginner |
| monorepo | 1 | 2mo | Review | Intermediate |
| sprint | 1 | 6mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by bannzai
View all by bannzai →You might also like
flutter-pub-update
bannzai
Flutterプロジェクトのpubspec.yamlパッケージを更新するスキル。一括更新または指定パッケージ更新に対応。メジャーバージョン更新時は確認を挟み、更新前にpub.dev/GitHubでchangelogを確認して変更内容を報告する。$ARGUMENTSにパッケージ名を指定するか、--allで全パッケージ更新。
monorepo
EpicenterHQ
Monorepo script commands and conventions for this codebase. Use when running builds, tests, formatting, linting, or type checking.
sprint
meta-pytorch
Work on a batch of GitHub issues in parallel using Agent Teams. Creates one worktree per issue with TDD enforcement, coordinates via a lead agent, then produces stacked PRs.
ghs-issue-implement
Atypical-Consulting
>
pr-changeset-finalize
mateusvillain
>-
flutter-architecture-expert
flutter-it
Architecture guidance for Flutter apps using the flutter_it construction set (get_it, watch_it, command_it, listen_it). Covers Pragmatic Flutter Architecture (PFA) with Services/Managers/Views, feature-based project structure, manager pattern, proxy pattern with optimistic updates and override fields, DataRepository with reference counting, scoped services, widget granularity, testing, and best practices. Use when designing app architecture, structuring Flutter projects, implementing managers or proxies, or planning feature organization.