Review dependabot

From osmberlin/osm-traffic-sign-tool · View interactive version

Review dependabot is an AI agent skill from the GitHub repository osmberlin/osm-traffic-sign-tool. Review and merge open Dependabot PRs in the current workspace repo: changelog triage, risk classification, CI verification, and rebase merge. Use for "/review dependabot" or similar — always scoped to the repo you have open. Weekly Bun/GitHub Actions/Docker bumps, grouped patches, security updates,

How to use this skill

Skill file

Review Dependabot PRs

Workflow for FMC geo React apps. Dependabot config (groups, schedule, ignores) lives in skill tech-stack — dependabot.md. This skill covers review and merge decisions.

After merge, use skill babysit only if the PR needs conflict/CI/comment follow-up on a feature branch — not for routine weekly bumps on develop.

Repo scope

Work only in the Git repository of the current workspace. List, review, and merge Dependabot PRs for that repo — never for other repos.

Run all gh commands from the project root without --repo so GitHub CLI uses the checkout. Stop if the workspace is not a git repo or has no .github/dependabot.yml.

Typical FMC app repos target develop — never merge Dependabot PRs to main. Confirm baseRefName on each PR; use AskQuestion if it looks wrong.

Policy: one open Dependabot PR per ecosystem — merge or explicitly defer (close + ignore) before the next opens.

Review workflow

Copy and track:

- [ ] List open Dependabot PRs in this repo
- [ ] Identify PR type (security / grouped patch / major / actions / docker)
- [ ] Read release notes from the PR body (primary changelog source)
- [ ] Classify risk (see below)
- [ ] Scan lockfile + manifest diff for surprises
- [ ] Confirm CI green on latest commit
- [ ] Run extra local checks if risk ≥ medium
- [ ] Merge with rebase, or AskQuestion / defer

1. Gather context

gh pr list --author app/dependabot --state open --json number,title,baseRefName,headRefName,labels

For each open PR:

gh pr view <number> --json title,body,baseRefName,headRefName,mergeable,statusCheckRollup,author,labels
gh pr diff <number> --name-only

The PR body is the changelog. Dependabot embeds release notes for every bumped package (version range, compare link, and excerpted release notes). Read body from gh pr view first and use that text for triage — do not fetch GitHub releases, npm pages, or other external changelogs unless the body is empty or clearly incomplete for a package you must decide on.

In grouped PRs, each package has its own section — scan all of them; one risky entry can block the whole group. Follow breaking change, migration, and deprecation headings in the body before reading the diff or grepping the codebase.

Note group name in the title (e.g. app-framework-minor-patch).

2. Classify risk

| Tier | Examples | Action |

| --------------------- | ------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |

| Low | Patch dev tools (knip, husky), typings, isolated utilities | CI green → merge |

| Medium | Grouped minor/patch framework deps, vite, oxlint/oxfmt, Playwright | Read PR-body release notes; spot-check usage; bun run build + bun oxlint locally if notes mention behavior changes |

| High | react, @tanstack/*, maplibre-gl, react-map-gl, prisma, better-auth, zod, tailwindcss, typescript majors | Read all PR-body notes + migration sections; grep codebase for affected APIs; run build, lint, unit tests; Playwright if maps/auth/routing touched |

| Critical decision | Semver major, explicit breaking changes, peer-dep conflicts, CI red, or changelog unclear | AskQuestion — do not merge until human chooses |

Security updates: treat as medium minimum — still read notes; do not merge blind even when labeled security.

3. Investigate in code

When PR-body release notes or tier say investigate:

  1. gh pr diff <number> — focus on package.json, bun.lock, not only lockfile noise.
  2. Grep the local checkout for APIs mentioned in breaking sections (deprecated props, renamed exports, config keys).
  3. Load the relevant FMC skill if the bump touches that area (react-dev, react-map-gl, tanstack-start-conventions, playwright-skill, etc.).
  4. Check peer dependency warnings in CI logs.

browserslist bumps: Dependabot does not change the browserslist query — but lockfile may refresh caniuse-lite. After merge, ensure bun oxlint and bun run build still pass (browser-target.md).

GitHub Actions bumps: prefer grouped minor/patch; verify action release notes for runner/input renames; workflow must stay compatible with org secrets and permissions.

Docker bumps: monthly base images — check OS/package changes; rebuild locally if the app ships containers.

4. When to use AskQuestion

Use Cursor AskQuestion when the agent cannot safely decide alone:

Present concrete options, e.g. merge after local build, close and add ignore, or defer until next week.

5. Merge

Requirements:

Use rebase merge to keep history linear:

gh pr merge <number> --rebase --delete-branch

If the repo disallows rebase via CLI, use the GitHub UI with Rebase and merge.

Do not squash Dependabot PRs — preserve one commit per dependency bump for easier bisect.

After merge on develop, no further action unless CI on the base branch fails (then treat as a hotfix follow-up).

6. Defer instead of merging

Close without merging when:

Prefer adding a targeted ignore in .github/dependabot.yml (document why in PR comment) over leaving the PR open — remember open-pull-requests-limit: 1 blocks the queue.

Config changes: follow skill tech-stack dependabot.md.

Quick decision flow

flowchart TD
  start[Dependabot PR] --> ci{CI green?}
  ci -->|no| fix{Fix in scope?}
  fix -->|yes| fixCi[Fix + push]
  fix -->|no| ask[AskQuestion]
  ci -->|yes| notes[Read PR body release notes]
  notes --> major{Major or breaking?}
  major -->|yes| investigate[Code + migration check]
  investigate --> ask
  major -->|no| tier{Risk tier}
  tier -->|low| merge[Rebase merge]
  tier -->|medium| local[Spot-check + build/lint]
  local --> merge
  tier -->|high| deep[Tests + domain skill]
  deep --> ask
  fixCi --> ci

What not to do

Related skills

| Skill | When |

| ------------------ | -------------------------------------------------------------- |

| tech-stack | dependabot.yml, groups, ignores, browserslist |

| babysit | Feature PR stuck on CI/comments — not standard Dependabot flow |

| playwright-skill | After bumps to Playwright, maps, or auth-related deps |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.