patchmon-admin

An administration tool for PatchMon, a server that manages software updates across Linux hosts. It uses PatchMon's REST API to manage host groups, update policies, patch runs, and notifications.

In plain words
What is it for?
Managing host inventory and groups, setting patch policies, starting package or full-host updates, configuring email, webhook, or ntfy alerts, and reviewing delivery logs.
Why use it?
It centralizes routine update management and makes patch results and notification delivery easier to inspect. Triggering a full patch run changes a live host immediately.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/rsenna/rs-agent-plugin/patchmon-admin
Any agent
npx skills add rsenna/rs-agent-plugin --skill patchmon-admin
Clone the repo
git clone --depth 1 https://github.com/rsenna/rs-agent-plugin

Made for: Claude Code, Codex.

Per session 149 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,301 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00149 $0.01301
Opus 5 $0.00075 $0.00651
Sonnet 5 $0.00030 $0.00260
Haiku 4.5 $0.00015 $0.00130

Measured yesterday against content hash cf3edb670198, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/patchmon-api.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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:
skills/patchmon-admin/SKILL.md · 88 lines

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/trigger to 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 synthetic test event for verifying a destination end-to-end.

Read the full file on GitHub · 88 lines

Files

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.

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. yesterday First seen · 88 lines · 149 tokens per session scan A cf3edb670198

Subscribe to this mod's changes

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.0007 per session on Opus 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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

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…

vercel/next.js · 95 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

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…

microsoft/vscode · 71 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens