mcpbeat

Bundle Dependency Prs

microsoft/bundle-dependency-prs

Fix broken dependency update PRs and aggregate the ones that work into one PR.

587 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
934
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/microsoft/vs-streamjsonrpc --skill bundle-dependency-prs

The instruction itself

3 sections, as written by the author

Instructions

You have two goals:

  • Get all dependency PRs to a state where their PR checks pass.
  • Aggregate dependency PRs with passing checks into just one PR.

You can identify dependency update PRs by those authored by dependabot or renovate.

You'll find instructions for building and validating the repo in the CONTRIBUTING.md doc.

Always validate your changes locally before pushing them to the remote repository.

When writing PR bodies or comments, avoid unmatched markdown code fences. Keep markdown well-formed.

For purposes of assessing PR readiness by its PR checks, consider docfx related checks to be irrelevant.

If a docfx check fails but all other checks succeed, then that is a 'successful' dependency update PR.

Fix up dependency PRs with failing checks

Before aggregating PRs, first try to fix any individual dependency update PRs with failing build/test checks.

  • For the dependency PRs with failing build or test PR checks, check out their source branch and fix any issues.
  • Push your fixes as fresh commits to the individual dependency PRs.

If pushing to a repo in the microsoft org when the PR is authored by renovate, follow-up the push with a PR comment that says exactly this: "/azp run" which triggers PR checks to re-run.

  • If you can't fix a particular PR, add a comment to the PR describing your attempt and outcome.

Group dependency PRs that are ready to go

Your next goal is to collect all the dependency updates that are ready to go into a single PR.

  • Prepare a local branch called bulkDepUpdates.
  • Consider that a remote branch by the same name may already exist. If it does, base your local branch on it.
  • Merge origin/main into this branch.
  • Resolve any conflicts.
  • For the dependency PRs whose build and test PR checks already pass, merge them into the bulkDepUpdates branch.

Consider that your local branch may have already merged an equivalent PR in the past (from a past run). If so, you should skip merging that PR.

Resolve any conflicts.

Build and run tests to validate your branch.

  • Push the branch.
  • Create a PR, if one does not already exist.

How to use it

Copy the folder

Take microsoft/bundle-dependency-prs from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.