Manus에서 모든 스킬 실행
원클릭으로
원클릭으로
원클릭으로 Manus에서 모든 스킬 실행
시작하기$pwd:
$ git log --oneline --stat
stars:311
forks:16
updated:2026년 1월 18일 04:36
SKILL.md
| name | fix-dependabot-prs |
| description | dependabotから上がってきた複数のPRを一括で解決し、まとめPRを作成する。dependabotのPR対応を依頼された時に使用。 |
| allowed-tools | Read, Bash(gh run:*), Bash(gh pr:*), Bash(git status:*), Bash(git push:*), Bash(git add:*), Bash(git commit:*), Bash(git cherry-pick:*), Bash(git merge:*), Bash(git fetch:*), Bash(git pull:*), Bash(git diff:*), Bash(git checkout:*), Bash(flutter:*), Bash(dart:*), Bash(pod:*), Glob, Grep, Write |
dependabotから上がってきた複数のPRを一括で解決し、まとめPRを作成します。
gh pr list --author "app/dependabot" --state open
各PRについて以下を確認する:
gh pr view <PR番号>)gh pr checks <PR番号>)gh pr diff <PR番号>)git checkout main
git pull origin main
git checkout -b chore/dependabot-updates-$(date +%Y%m%d%H%M%S)
各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
PR同士で矛盾する変更がある場合:
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"
iOSの依存関係も更新が必要な場合が多い:
cd ios
pod install --repo-update
cd ..
変更があればコミット:
git add ios/Podfile.lock
git commit -m "chore: update Podfile.lock"
flutter analyze
flutter test
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
)"
まとめPRにコメントで理由を記載:
gh pr comment <まとめPR番号> --body "$(cat <<'EOF'
## 除外したdependabot PR
### #PR番号: パッケージ名の更新
**理由**: (例)他のパッケージとの依存関係が矛盾するため
**背景**: (詳細な説明)
**今後の対応**: (必要であれば)
EOF
)"
まとめPRがマージされた後、元のdependabot PRをクローズする:
gh pr close <PR番号> --comment "まとめPR #<まとめPR番号> で対応しました"
build_runnerの実行が必要なことが多いPodfile.lockの更新が必要なことが多い