patch-sweep
БесплатноЗапускает вложенные скриптыНе проверенRespond to a CVE wave across a whole portfolio of apps at once: inventory every repo and the platform project and domain it actually serves, find the real…
от briiirussell★ 541 звезда на GitHubОб этом скилле
Patch Sweep — Fleet-Wide CVE Response
dependency-audit patches one project. This skill runs the response when a batch of advisories lands and you have 10, 40, or 100 apps across Vercel, Heroku, Render, Netlify, Fly, or Railway, split between a personal account, an agency org, and client repos.
Most of the real work in a sweep is outside npm audit: knowing which repo serves which domain, which branch production actually builds from, which production deploys no merge will ever replace, and which apps aren't affected at all. Get the map right first. Patching the wrong branch of the wrong repo is the most common way a sweep "finishes" with vulnerable code still live.
Cross-references:
dependency-audit— the per-project audit and fix procedure (in-range fixes, pnpm/yarn traps, duplicate singletons, engines floor, runtime pins). This skill calls it once per affected app.cloud-audit"PaaS" section — platform posture: stale manual deploys, broken git deploys, legacy projects, preview exposure, repo security defaults.scanner-pipeline— run osv-scanner / trivy once per repo instead of separate per-package-manager audits, and keep it running weekly afterward.finding-triage— rank the leftovers that can't be patched in range.security-comms— client and stakeholder notices, especially for client repos you can only PR.vuln-research— when an advisory's affected range or code path is unclear.personal-opsecC7 andagent-supply-chain-auditRT1 — the browsers agents download on one machine, and which extensions bring them.
Authorization — confirm before touching anything
Ask the user, and write the answers at the top of the board:
- Which accounts are in scope? List each GitHub owner/org and each platform team/account. Only repos and platform accounts the user controls are in scope for merges and deploys.
- Which repos belong to someone else? Client repos, repos owned by another maintainer, and anything where the user is a collaborator rather than the owner. These get a PR assigned to the owner, never a push or merge, even if the user's token has write access.
- Who can approve an owner decision? Stale manual deploys, legacy projects, and duplicate projects need someone to decide. Name that person per account.
- Is a production deploy allowed today? Some clients have change windows or freeze periods.
Refuse to: push to or merge into a repo the user doesn't own without that owner's explicit approval in the user's own message; deploy to a platform account the user doesn't control; delete projects, domains, or deployments as part of the sweep (that's an owner decision, recorded as an action); disable deployment protection, branch protection, or CI checks to make a patch land faster.
The listed allowed-tools are read-only inventory commands, scoped so no grant prefix-matches a write (heroku releases -a:*, never heroku releases:*, which would also match releases:rollback). Every merge, vercel deploy, git push, heroku config:set, and gh api -X PUT prompts on purpose.
Step 1 — Inventory and mapping
Build one row per deployed app, not per repo. A repo can feed several projects; a project can outlive its repo.
Repos (per owner/org; skip forks and archived repos):
gh repo list <owner> --limit 1000 --source --no-archived \
--json nameWithOwner,defaultBranchRef,isPrivate,pushedAt,viewerPermission
viewerPermission tells you whether you're ADMIN, WRITE, or below. It does not tell you whether the repo is yours to merge into; ownership comes from the authorization step.
Vercel (per team; repeat with --scope <team>):
vercel project ls --format json --scope <team>
vercel project inspect <project> --scope <team>
vercel domains ls --scope <team>
vercel api /v9/projects/<project> --scope <team> # link.org/repo, link.productionBranch, commandForIgnoringBuildStep
vercel api /v9/projects/<project>/domains --scope <team> # every domain attached to the project, incl. *.vercel.app
Heroku:
heroku apps --all --json # includes team apps
heroku domains -a <app>
heroku apps:info -a <app> --json # stack, region, git url
Self-managed Linux hosts (VPSes, EC2, bare metal, nodes and relays, self-hosted runners, Kubernetes nodes) get their own rows when the advisory set includes a kernel CVE: running vs installed kernel, distro tracker status, mitigations, reboot. The whole track, with CVE-2026-98432 as a worked example, is in references/linux-hosts.md.
Heroku doesn't record a "source repo" unless the GitHub integration or a pipeline is set up; check heroku pipelines:info <pipeline> or the dashboard's Deploy tab, and ask when it isn't there.
Render (API; token from the dashboard):
curl -s -H "Authorization: Bearer $RENDER_API_KEY" "https://api.render.com/v1/services?limit=100"
# per service: repo, branch, autoDeployTrigger, serviceD
Установить patch-sweep в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobWebFetchBash(gh repo list:*)Bash(gh repo view:*)Bash(git log:*)Bash(git ls-remote:*)Bash(vercel project ls:*)Bash(vercel project inspect:*)Bash(vercel ls:*)Bash(vercel inspect:*)Bash(vercel domains ls:*)Bash(heroku apps --all --json)Bash(heroku apps:info:*)Bash(heroku domains -a:*)Bash(heroku releases -a:*)Bash(heroku releases:info:*)Bash(heroku pipelines:info:*)Bash(aws ec2 describe-instances:*)Bash(doctl compute droplet list:*)Bash(hcloud server list:*)Bash(gcloud compute instances list:*)Вложенные файлы
FAQ
Что делает скилл patch-sweep?
Respond to a CVE wave across a whole portfolio of apps at once: inventory every repo and the platform project and domain it actually serves, find the real production branch, spot stale manual deploys, decide which apps are affected, mitigate, patch, ship, and confirm production. Use when the user mentions 'patch sweep,' 'patch all my apps,' 'fleet-wide CVE,' 'are any of my apps affected,' 'Next.js RCE across all projects,' 'Rails CVE on all our Heroku apps,' 'patch every repo,' 'CVE wave,' 'security release across the fleet,' 'which of our sites run the vulnerable version,' 'mass dependency update,' 'nginx CVE across all our servers and ingress,' or has more than a handful of apps to patch against the same advisories.
Как установить скилл patch-sweep?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл patch-sweep запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic