Skip to content
dependabot-pr logo

Dependabot PR Handler

dependabot-pr

Handle Dependabot pull requests for dependency updates. Use when merging multiple Dependabot PRs, resolving conflicts between dependency update PRs, or when asked to review and merge dependency updates.

SKILL.md

Full skill instructions

Dependabot PR Handler

Overview

複数のDependabot PRを効率的に処理するためのスキル。連鎖的なコンフリクトを回避し、安全にマージする。

Known Issues

1. 連鎖コンフリクト

複数PRがpackage.jsonとbun.lockを変更するため、1つマージすると残りでコンフリクト発生。

2. biome更新時のスキーマ漏れ

@biomejs/​biome更新時、biome.jsonの$schemaフィールドも更新が必要(Dependabotは自動で行わない)。

3. Dependabotブランチの挙動

コンフリクト解決してpushしても、状態によってはPRが自動クローズされる場合あり。

Recommended Approach

方式A: 統合アプローチ(推奨)

複数PRがある場合、mainで一括更新する方が効率的。

# 1. PRの確認
gh pr list --repo OWNER/​REPO --state open --json number,title,headRefName

# 2. mainを最新化
git checkout main && git pull origin main

# 3. package.jsonを直接編集して全依存関係を更新

# 4. lockファイル再生成と検証
bun install
bun typecheck && bun lint && bun test

# 5. コミット&プッシュ
git add package.json bun.lock
git commit -m "build(deps): bump dependencies"
git push origin main

# 6. 残ったPRはDependabotが自動クローズ

方式B: 順次マージアプローチ

PRを1つずつ丁寧に対応する場合。

# 1. PRブランチをチェックアウト
git checkout origin/​dependabot/​xxx/​yyy

# 2. 依存関係インストール&検証
bun install
bun typecheck && bun lint && bun test

# 3. 問題なければマージ
gh pr merge NUMBER --merge

# 4. 次のPRでコンフリクト発生時
git checkout dependabot/​xxx/​zzz
git fetch origin main
git merge origin/​main --no-edit

# 5. コンフリクト解決
# package.json: 両方の変更を取り込む
# bun.lock: 削除して再生成
rm bun.lock && bun install

# 6. 検証後コミット&プッシュ
git add package.json bun.lock
git commit -m "chore: resolve merge conflict with main"
git push origin dependabot/​xxx/​zzz

# 7. マージ
gh pr merge NUMBER --merge

Special Cases

biome更新時

# スキーマ更新が必要
bunx biome migrate --write
git add biome.json
git commit -m "chore: update biome.json schema"

PRが自動クローズされた場合

Dependabotがコンフリクト状態と判断してクローズした場合、mainで直接対応する。

git checkout main
# package.jsonを編集
bun install
bun typecheck && bun lint && bun test
git add package.json bun.lock
git commit -m "build(deps-dev): bump PACKAGE from X to Y"
git push origin main

Verification Checklist

  • bun install が成功する
  • bun typecheck がエラーなし
  • bun lint がエラーなし(警告のみ許容)
  • bun test が全パス
  • biome更新時はbiome.jsonスキーマも更新

Merge Method

このリポジトリではsquash mergeが無効。通常のmergeを使用。

gh pr merge NUMBER --merge  # squash不可

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View