Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

renovate-pr

БесплатноБез исполняемых скриптовНе проверен

Test and assess an open Renovate dependency-bump PR. Picks the first open Renovate PR, checks out the branch, starts the app, exercises code paths affected by…

lightdashот lightdash★ 6 265 звёзд на GitHub

Об этом скилле

Renovate PR Triage

Pick the first open Renovate PR, run the app against it, exercise the affected code paths, and tell the user whether the bump is safe.

Iron Law

The recommendation MUST be evidence-backed. "Looks fine" is not a recommendation. Each verdict must cite: changelog read, codebase usage grepped, and at least one runtime check (page loaded / endpoint hit / log inspected). If you can't gather evidence for an area, say so — never paper over it.


Phase 0: Pick the PR

Find open Renovate PRs and take the first one:

gh pr list --state open --json number,title,headRefName,author,createdAt --limit 100 \
  | python3 -c "
import json, sys
prs = json.load(sys.stdin)
renovate = [p for p in prs if p['author']['login'] == 'app/lightdash-renovate-bot' or p['headRefName'].startswith('renovate/')]
renovate.sort(key=lambda p: p['createdAt'])
if not renovate:
    print('NONE')
else:
    p = renovate[0]
    print(f\"{p['number']}\t{p['headRefName']}\t{p['title']}\")
"

If NONE, stop and tell the user there are no open Renovate PRs.

Otherwise, take the first one as $PR_NUMBER and report to the user:

Triaging Renovate PR #<number>: <title>
Branch: <branch>

Phase 1: Identify the dependency change

gh pr view $PR_NUMBER --json title,body,headRefName,additions,deletions,files,labels
gh pr diff $PR_NUMBER

Renovate PR bodies always contain a markdown table that looks like:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [pkgname](homepage) ([source](https://github.com/owner/repo)) | [`1.2.3` → `2.0.0`](renovatebot.com/diffs/...) | ... | ... |

Parse this to extract for each package:

  • Name (e.g. nodemailer)
  • Old version → New version
  • Bump type: patch (z), minor (y), major (x) — derive from semver
  • Source repo URL (the [source] link, e.g. github.com/owner/repo) — needed for changelog & source-diff lookup
  • Is this a security advisory? (label security on the PR, or [security] in the title)

Show the user the parsed list before proceeding:

Dependencies in PR #<number>:
  1. nodemailer  7.0.13 → 8.0.5  (MAJOR, security)  github.com/nodemailer/nodemailer
  2. ...

Phase 2: Look up changelog & release notes

For each package, fetch the upstream release notes spanning oldVersion..newVersion. Try in order, stop at the first that yields useful content:

  1. GitHub Releases (best for most JS packages):
    gh api "repos/<owner>/<repo>/releases?per_page=100" --jq '.[] | select(.tag_name | test("<oldVersion>|<newVersion>")) | {tag: .tag_name, name: .name, body: .body}'
    
    Or list releases between the two tags:
    gh api "repos/<owner>/<repo>/compare/v<oldVersion>...v<newVersion>" --jq '{commits: .commits | length, ahead_by: .ahead_by}'
    
  2. CHANGELOG.md in the repo via WebFetch:
    https://raw.githubusercontent.com/<owner>/<repo>/<default-branch>/CHANGELOG.md
    
  3. Renovate's own diff page (linked in the PR body):
    https://renovatebot.com/diffs/npm/<pkg>/<oldVersion>/<newVersion>
    
  4. WebSearch as last resort: "<package-name> <oldVersion> <newVersion> breaking changes"

For each package, extract:

  • Breaking changes — explicit BREAKING: entries, removed APIs, behavior changes
  • Security fix details (if security advisory) — what CVE, what attack vector
  • New required configuration — env vars, options that must be set
  • Deprecations that may affect us soon

Skip noise (typo fixes, internal refactors, doc-only changes).

Phase 3: Map upgraded package → our usage

For each package, find every place we use it in this monorepo:

# Direct imports / requires
grep -rEn "(from ['\"]<pkg-name>['\"]|require\(['\"]<pkg-name>['\"]\))" packages/ --include='*.ts' --include='*.tsx' --include='*.js'

# Where the package is declared
grep -rEn "\"<pkg-name>\":" packages/*/package.json

Categorise hits:

  • Direct API consumers — code that calls into the package
  • Transitive only — appears in lockfile but no direct imports (much lower risk surface, but still worth confirming)
  • Type-only imports — import type { ... } (compile-time only)
  • Test fixtures — usage only inside *.test.ts / *.spec.ts

Hold this list — Phase 6 will exercise the user-facing flows that touch these files.

Phase 4: Upstream source diff (only if needed)

If Phase 2's changelog is vague, missing, or claims "no breaking changes" but a major version was bumped, drop down to the source diff:

gh api "repos/<owner>/<repo>/compare/<oldTag>...<newTag>" \
  --jq '.files[] | select(.filename | test("^(src|lib|index)") and (test("test|spec") | not)) | {filename, status, additions, deletions}'

For files that look load-bearing for our usage in Phase 3, fetch the patch:

gh api "repos/<owner>/<repo>/compare/<oldTag>...<newTag>" --jq '.files[] | select(.filename == "<file>") | .patch'

Read

Полный SKILL.md на GitHub

Установить renovate-pr в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл renovate-pr?

Test and assess an open Renovate dependency-bump PR. Picks the first open Renovate PR, checks out the branch, starts the app, exercises code paths affected by the upgraded package, reviews the changelog and (if needed) the upstream source diff, and reports whether the bump is safe to merge. Use when asked to "test a renovate PR", "triage renovate", "assess a renovate bump", or "check a dependency upgrade".

Как установить скилл renovate-pr?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл renovate-pr запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить renovate-pr с