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.
npx skills add rsenna/rs-agent-plugin --skill patchmon-admingit clone --depth 1 https://github.com/rsenna/rs-agent-pluginWrote 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.
[](https://agentmods.dev/skills/rsenna/rs-agent-plugin/patchmon-admin)<a href="https://agentmods.dev/skills/rsenna/rs-agent-plugin/patchmon-admin"><img src="https://agentmods.dev/badge/skills/rsenna/rs-agent-plugin/patchmon-admin/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.
<a href="https://agentmods.dev/skills/rsenna/rs-agent-plugin/patchmon-admin"><img src="https://agentmods.dev/badge/skills/rsenna/rs-agent-plugin/patchmon-admin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00149 | $0.01301 |
| Opus 5.5 | $0.00060 | $0.00520 |
| Sonnet 5.5 | $0.00030 | $0.00260 |
| Haiku 4.5 | $0.00015 | $0.00130 |
Grade A, and why
patchmon-admin 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 1mo ago.
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: How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PatchMon administration via REST API
PatchMon exposes host inventory, patch policies, patch runs, and its
notification pipeline over a REST API. Most of the admin surface (host
groups, policies, notifications, triggering runs) is JWT-authenticated via a
regular username/password login - there is no long-lived admin API key for
this part. A separate, unrelated auth scheme (X-API-ID/X-API-KEY Basic
auth) exists for per-host agent traffic and a narrower "integration" token
type - don't confuse the two, see references/lessons-learned.md.
Triggering a patch_all run is a real, immediate action on a live host -
it runs apt-get upgrade (or the distro equivalent) right now, restarts
services as needed (openssh-server, etc.), and there is no dry-run for
patch_all (only patch_package supports dry_run). Treat every call to
/patching/trigger with the same care as SSHing in and running the upgrade
yourself - confirm with the user before the first real trigger against any
given host, and prefer testing against a low-criticality host first.
Getting access
Ask the user for a dedicated PatchMon account's username/password (least
privilege that still covers host-groups/policies/notifications management -
not necessarily full admin, if PatchMon's role model allows narrower). Store
as PATCHMON_USERNAME/PATCHMON_PASSWORD in Doppler or your own env - see
doppler-secrets skill for the Doppler-side patterns.
Use scripts/patchmon-api.sh as the base for any calls - it logs in fresh
every call (JWTs are short-lived, not worth caching) and forwards the rest to
curl:
export PATCHMON_HOST=patchmon.example.com PATCHMON_USERNAME=... PATCHMON_PASSWORD=...
./scripts/patchmon-api.sh /api/v1/host-groups
./scripts/patchmon-api.sh /api/v1/patching/trigger -X POST -H "Content-Type: application/json" \
-d '{"host_id":"<uuid>","patch_type":"patch_all"}'
The core model
- Host groups (
/api/v1/host-groups) are just selectors - hosts belong to one or more, groups feed policies/notifications/filtering. - Patch policies (
/api/v1/patching/policies) control timing/approval of a run once it's triggered (immediate/ delayed N minutes / fixed daily time) - assigned to host groups (or individual hosts) via a separate assignments sub-resource. A policy does NOT create a recurring schedule by itself - something still has to call/patching/triggerto actually start a run. If the ask is "patch everything automatically every week", you need both: a policy assigned to every relevant group/host (so runs don't sit in a pending-approval limbo), AND an external cron/systemd-timer/etc. that calls trigger on a schedule. See references/lessons-learned.md for a working trigger-loop script. - Notifications: destinations (email/SMTP, generic webhook - auto-detects
Discord/Slack URLs, ntfy, built-in Internal Alerts) + routing rules
(destination + event_types + min_severity + optional host/group scoping).
Key events:
patch_run_started/completed/failed/cancelled,host_down,host_recovered,server_update,agent_update,compliance_scan_completed, and a synthetictestevent for verifying a destination end-to-end.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago First seen · 88 lines · 149 tokens per session scan A cf3edb670198
patchmon-admin is a skill published in the GitHub repository rsenna/rs-agent-plugin (2 stars, last pushed 2d ago), licensed MIT. It adds 149 tokens to every session and 1,301 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-08-31.
Other skills, from other repositories
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
next-cache-components-optimizer
Optimize the meaningful UI available immediately from a Next.js route on an initial load (hard navigation) or named client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route and entry point at a time; the shipped test then guards…