patch-sweep

patch-sweep is a cursor rule for Cursor from briiirussell/cybersecurity-skills. It costs 153 tokens per session (4,864 once invoked), scanned A, original, MIT.

A coordinated response to a security advisory, such as a CVE, across many applications and their hosting deployments. A CVE is a publicly recorded identifier for a known software vulnerability.

In plain words
What is it for?
It inventories repositories, domains, hosting projects, production branches, and stale manual deployments; then it helps mitigate, patch, deploy, and verify the affected applications. It is intended for portfolios rather than a single project.
Why use it?
It prevents teams from patching the wrong repository or branch while vulnerable code remains live. It connects each application to its real production deployment, identifies affected apps, and checks that fixes actually shipped.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit It inventories repositories, domains, hosting projects, production branches, and stale manual deployments; then it helps mitigate, patch, deploy, and verify the affected applications. It is intended for portfolios rather than a single project.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/briiirussell/cybersecurity-skills/patch-sweep
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/briiirussell/cybersecurity-skills

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for patch-sweep

README.md
[![agentmods](https://agentmods.dev/badge/rules/briiirussell/cybersecurity-skills/patch-sweep/github.svg)](https://agentmods.dev/rules/briiirussell/cybersecurity-skills/patch-sweep)
Your own site
<a href="https://agentmods.dev/rules/briiirussell/cybersecurity-skills/patch-sweep"><img src="https://agentmods.dev/badge/rules/briiirussell/cybersecurity-skills/patch-sweep/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for patch-sweep

Your own site · 80×15
<a href="https://agentmods.dev/rules/briiirussell/cybersecurity-skills/patch-sweep"><img src="https://agentmods.dev/badge/rules/briiirussell/cybersecurity-skills/patch-sweep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 153 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,864 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00153 $0.04864
Opus 5.5 $0.00061 $0.01946
Sonnet 5.5 $0.00031 $0.00973
Haiku 4.5 $0.00015 $0.00486

Measured today against content hash 9c8e4df599be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

patch-sweep scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -H "Authorization: Bearer $RENDER_API_KEY" "https://api.render.com/v1/services?limit=100"
adapters/cursor/patch-sweep.mdc · 230 lines

How it starts

The opening of the file, as written. The whole thing — 230 lines — stays where its author put it; the contents beside it link to each section on 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.

Authorization — confirm before touching anything

Ask the user, and write the answers at the top of the board:

  1. 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.
  2. 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.
  3. Who can approve an owner decision? Stale manual deploys, legacy projects, and duplicate projects need someone to decide. Name that person per account.
  4. Is a production deploy allowed today? Some clients have change windows or freeze periods.

Read the full file on GitHub · 230 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 230 lines · 153 tokens per session scan A 9c8e4df599be

Subscribe to this mod's changes

patch-sweep is a cursor rule published in the GitHub repository briiirussell/cybersecurity-skills (435 stars, last pushed today), licensed MIT. It adds 153 tokens to every session and 4,864 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-27.