一键导入
renovate-check
Run Renovate locally in dry-run mode to get a list of available dependency updates for the current working directory, then offer to apply them
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run Renovate locally in dry-run mode to get a list of available dependency updates for the current working directory, then offer to apply them
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run the full local cleanup pipeline — stale git worktrees, dead personal forks, Docker prune, Go caches, and Homebrew — in one pass, each stage report → confirm → execute, then a combined reclaimed-space summary. TRIGGER when the user wants a broad disk cleanup ("free up disk space", "почисти всё", "run the cleanup pipeline"). DO NOT trigger when the user clearly wants only one specific cleaner — invoke that skill instead.
Reclaim Docker disk by pruning unused images, containers, networks, build cache, optionally volumes, and the build cache of non-default buildx builders; on VM-backed daemons (Colima/Lima) also offers a guest fstrim so the host-side sparse disk image actually shrinks. Shows reclaimable size first, then prunes the user-chosen scope after approval. TRIGGER when the user wants to free Docker space ("docker prune", "почисти docker", "reclaim image cache"). DO NOT trigger for removing specific named containers/images.
Generate plain-text TLDR for PRs (for Slack, copied to clipboard). Each entry includes change scope (+N/-M lines, K files), a 1-5 star review-effort rating (time to review) and a 1-5 star outcome rating whose axis depends on the change — Pain relieved for fixes, Joy for features, Impact for internal work — so the reader can both budget time and prioritise before opening the PR.
Draft a GitHub PR review with inline comments. Opens with a readiness gate (stops on merge conflicts or red code-related CI with a fix-it note, no verdict), then runs the five-frame substance pass (problem real & root cause in-repo / approach optimal & worth its permanent cost / tradeoffs & scope / docs sync / code quality), cascades /branch-review, performs sequential Claude+Codex dual-model analysis on the PR diff, cross-validates every finding with explicit evidence, and presents the draft for approval. A value/design gate can block a PR even when the code is flawless — root cause upstream, permanent maintenance cost disproportionate to niche value, wrong layer, or scope over-reach. Publishing the review to GitHub is opt-in via `--publish`; without it the draft is the deliverable. Reviews open with an LGTM or NOT LGTM verdict (matching the /branch-review convention); the only no-verdict path is the readiness gate's fix-CI / fix-conflicts note. TRIGGER: invoke proactively whenever the user asks to review, a
Review current branch changes in isolation. Output starts with LGTM verdict — if no LGTM, the code is not ready to merge. IMPORTANT — always pass all flags you already know from context (target branch, project type, ticket, etc.). Do not rely on auto-detection when the answer is known. Pass --target to set which branch the changes are going INTO. Pass --ticket with a URL or ID to validate against requirements.
Reclaim Homebrew disk by removing old formula/cask versions, pruning the download cache, and uninstalling orphaned dependencies (brew autoremove). Shows a dry-run estimate first, then runs the user-chosen scope after approval. TRIGGER when the user wants to free Homebrew space ("brew cleanup", "почисти brew", "remove orphaned brew packages"). DO NOT trigger for uninstalling a specific named formula.
| name | renovate-check |
| description | Run Renovate locally in dry-run mode to get a list of available dependency updates for the current working directory, then offer to apply them |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Glob, Grep, Edit, Write, AskUserQuestion, WebSearch, WebFetch |
Run Renovate in --platform=local mode to discover available dependency updates by analyzing the local files in the current working directory. No PRs or branches are created. The --platform=local mode automatically implies dryRun=lookup.
Before running Renovate, check if the project has a Renovate config file. Search these standard locations (in order):
renovate.jsonrenovate.json5.renovaterc.renovaterc.json.github/renovate.json.github/renovate.json5Also check if package.json exists and contains a "renovate" key.
If a config file is found:
--require-config=optional so Renovate reads it but does not fail if it's missing--require-config=ignored — this would skip the config entirelyIf NO config file is found:
--require-config=ignored as fallbackUse npx to run Renovate in local platform mode. This analyzes the current directory without cloning anything from GitHub.
A GITHUB_COM_TOKEN is still needed for changelog lookups and to avoid rate limiting against package registries.
When config exists:
GITHUB_COM_TOKEN="$(gh auth token)" \
RENOVATE_LOG_FILE=/tmp/renovate-output.ndjson \
RENOVATE_LOG_FILE_LEVEL=debug \
LOG_LEVEL=info \
npx --yes --package renovate -- renovate \
--platform=local \
--onboarding=false \
--require-config=optional
When no config exists:
GITHUB_COM_TOKEN="$(gh auth token)" \
RENOVATE_LOG_FILE=/tmp/renovate-output.ndjson \
RENOVATE_LOG_FILE_LEVEL=debug \
LOG_LEVEL=info \
npx --yes --package renovate -- renovate \
--platform=local \
--onboarding=false \
--require-config=ignored
Run this command from the project's working directory (use cd if needed).
IMPORTANT: Always use full flag names (e.g. --yes, --package). Never use short flags.
After Renovate finishes, parse the NDJSON log file with jq to extract a clean list of available updates:
jq --raw-output '
select(.msg == "packageFiles with updates") |
.config | to_entries[] |
.key as $manager |
.value[] |
.packageFile as $file |
.deps[]? |
select(.updates | length > 0) |
"\($manager) | \($file) | \(.depName) | \(.currentValue // .currentDigest // "n/a") -> \(.updates[0].newVersion // .updates[0].newValue // .updates[0].newDigest // "n/a") (\(.updates[0].updateType))"
' /tmp/renovate-output.ndjson
Format the extracted updates as a clear, readable markdown table for the user:
| Manager | File | Dependency | Current | Available | Type |
|---|
Group by manager for readability. If no updates are found, report that all dependencies are up to date and skip to clean up (step 8).
If ANY of the found updates have updateType equal to major, research migration guides for each one before asking the user what to apply.
For each major update:
Use WebSearch to search for a migration guide. Use queries like:
"<depName>" migrate v<currentMajor> to v<newMajor>"<depName>" upgrade guide v<newMajor>"<depName>" breaking changes v<newMajor>"<depName>" v<newMajor> changelog"<chartName>" changelog v<newVersion>If a migration guide / changelog / upgrade guide is found, use WebFetch to read it and extract a concise summary of breaking changes.
Present the migration summary to the user alongside the updates table. Format:
### Major update: <depName> <currentVersion> -> <newVersion>
**Breaking changes:**
- <bullet point summary of key breaking changes>
- ...
**Migration guide:** <URL>
If no migration guide is found, note that explicitly: "No migration guide found for v -> v. Review the release notes manually before upgrading."
This step is critical — major version bumps can break builds and deployments. The user needs this information to make an informed decision.
If major updates were found, present the migration summaries first, then ask.
Use AskUserQuestion to ask the user which updates they want to apply. Offer these options:
For each update the user approved, apply changes using the appropriate method for the manager type:
go get dependency@vX.Y.Z
After all go get commands, run:
go mod tidy
Edit the workflow YAML files directly — replace the old version tag with the new one in uses: lines. Use the Edit tool for this.
Edit the Containerfile/Dockerfile directly — replace the old image tag with the new one. Use the Edit tool.
Edit the values.yaml file directly — replace the old image tag/version with the new one. Use the Edit tool.
Edit the ArgoCD Application YAML files directly — replace the old targetRevision value with the new version. Use the Edit tool.
Use the native package manager CLI to update (e.g. npm install package@version, pip install package==version, cargo update --package name).
After applying updates:
golangci-lint run for Go projects)go test ./... for Go projects)Do NOT commit changes automatically — leave that to the user.
Remove the temporary log file after parsing:
rm -f /tmp/renovate-output.ndjson
--platform=local analyzes the LOCAL files in the current directory, not the remote repository--platform=local automatically sets dryRun=lookup — do NOT pass --dry-run separately--onboarding=false is REQUIRED — without it Renovate crashes trying to create an onboarding branch in local modeargocd manager has NO default fileMatch pattern and requires explicit configuration in the project's renovate.json (e.g. "argocd": {"fileMatch": ["argocd/.+\\.yaml$"]})GITHUB_COM_TOKEN is needed even locally for changelog lookups and registry rate limitsgh auth token provides the token from GitHub CLIrm does not support --force, use -f instead