with one click
renovate-migrate
// Perform migrations for Renovate dependency upgrades based on breaking changes identified in a review. Use after running /renovate-review.
// Perform migrations for Renovate dependency upgrades based on breaking changes identified in a review. Use after running /renovate-review.
Generate AI-assisted navigation aids to help humans start reviewing a pull request more efficiently.
Persist guidelines, conventions, and architectural decisions into the repository's knowledge base. Use when told to remember something for future sessions.
Review Renovate dependency upgrade PRs to assess safety and effort. Use when reviewing PRs from Renovate bot that update NPM dependencies.
Verify a Node.js/TypeScript repo's development environment is correctly set up. Checks Node.js version, pnpm version, dependency installation, and build success. Use when onboarding, troubleshooting CI failures, or verifying a fresh clone.
Perform a broad Node/TypeScript repository health sweep — formatting, linting, type errors, dead code, dependency hygiene, and open Renovate PRs.
Perform comprehensive security audit of a repository with detailed findings and step-by-step PoCs. Reports all web and API security vulnerabilities.
| name | renovate-migrate |
| description | Perform migrations for Renovate dependency upgrades based on breaking changes identified in a review. Use after running /renovate-review. |
| disable-model-invocation | false |
| argument-hint | [pr-number] [--comment] [--push] |
| allowed-tools | Bash, Grep, Glob, Read, Edit, Write, WebFetch |
Perform code migrations for a Renovate PR based on breaking changes identified during review.
pr-number (required): The PR number to migrate--comment (optional): Post the migration summary as a PR comment. If omitted, only output the summary locally.--push (optional): Push commits to the remote after completing migrations. If omitted, only commits locally.This skill should be run after /renovate-review has identified breaking changes that require code modifications.
First, check if the review information is already available:
Option A: Check conversation context
If /renovate-review was run earlier in the same conversation, the review details (breaking changes, affected files, required code changes) should already be in context. Use that information directly.
Option B: Load from GitHub PR comment If not in context, fetch the review comment from the PR:
gh pr view <pr-number> --json comments --jq '.comments[] | select(.body | contains("## Dependency Upgrade Review")) | .body'
From the review comment, extract:
gh pr view <pr-number> --json title,body,files
Use this to supplement the review information if needed (e.g., to get the full list of files changed by Renovate).
Use the "Required Code Changes" section from the review to guide migrations. For each breaking change:
refactor: migrate <package-name> to v<version> - <specific change>
<brief description of what was changed and why>
Example commit messages:
refactor: migrate p-retry to v7 - use named exportrefactor: migrate lodash to v5 - replace _.pluck with _.maprefactor: migrate react-query to v5 - update useQuery optionsgit add <specific-files>
git commit -m "refactor: migrate <package> to v<version> - <change>"
After all migrations:
pnpm run build or pnpm run build:tspnpm run format--push flag is provided, push to remote; otherwise keep changes localCreate a summary of all changes made:
## Migration Summary: `<package-name>` v<old> → v<new>
**Commits:** <count>
**Files modified:** <count>
**Status:** Build passes / Tests pass / Ready for review
<details>
<summary>Commits</summary>
- `<short-hash>` <commit message>
- ...
</details>
<details>
<summary>Changes</summary>
- `path/to/file1.ts` - <what was changed>
- ...
</details>
Run `git log --oneline -n <count>` to review, then `git push` when ready.
--push flag provided)Only push to remote if the --push flag was included in the arguments.
If --push is provided:
git push
If --push is NOT provided, skip this step and only keep changes local.
--comment flag provided)Only post the summary to the PR if the --comment flag was included in the arguments.
If --comment is provided:
gh pr comment <pr-number> --body "<migration-summary>"
If --comment is NOT provided, skip this step and only display the summary locally.
--push flag is provided. Otherwise, only commit locally.