heinzel-fleet-audit
Skill94 starsChanged 2 months agoMITView on GitHub
Compare key policies across all servers in
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- heinzel-emailSkill
- heinzel-housekeepingSkill
- heinzel-macos-cleanupSkill
- heinzel-securitySkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
After fixing a config bug on one host: "which other hosts have the same problem?"
- Distinctive: line 39
Do NOT auto-invoke for generic phrases like "check my servers" — that maps to single-host housekeeping.
- Very specific: line 51
Resolve SSH users: Read memory/user.md for the per-host SSH user.
- Distinctive: line 68
Surface drift: After the tables, emit a short "Drift detected" section that lists each disagreement and the recommended fix (link to the …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
heinzel-fleet-audit
Cross-server policy audit. Heinzel knows every host
individually but has nothing that holds hosts against each
other. This skill closes that gap by probing the same set of
settings on every server in memory/servers/ and rendering a
side-by-side comparison so silent drift becomes visible.
No configuration changes. The audit never alters any host's configuration. The only write is a single audit-trail line to each host's system journal (step 6 below). Acting on findings is a separate step (heinzel-housekeeping for per-host fixes, or manual edits with explicit user approval).
Never run automatically — only on explicit user request.
When to use
- "Run a fleet audit"
- "Vergleiche die Policies auf allen Servern"
- "Drift check across the fleet"
- After fixing a config bug on one host: "which other hosts have the same problem?"
Do NOT auto-invoke for generic phrases like "check my servers" — that maps to single-host housekeeping.
Workflow
- Discover hosts. List directories under
memory/servers/whose name resolves to a real host (skip placeholders likeserver1.example.comand192.168.64.20unless the user names them explicitly). The user may pass an explicit subset as arguments — in that case audit only those. - Resolve SSH users. Read
memory/user.mdfor the per-host SSH user. Hosts without a mapping go on a "skipped: no SSH user known" list (do not prompt — just report). - Probe in parallel. For each in-scope host, run the
probes from
references/probes.mdin a single batched SSH command, with the standard options fromCLAUDE.md→ SSH Options. Hosts that time out or refuse the connection go on a "skipped: unreachable" list. - Render comparison. Build one table per probe category
using the format in
references/output-format.md. Hosts are columns, settings are rows. Cells that differ across columns get visual emphasis. - Surface drift. After the tables, emit a short "Drift detected" section that lists each disagreement and the recommended fix (link to the relevant rule or skill). Do not change anything.
Log to the system journal on each audited host:
logger -t heinzel "fleet-audit: read-only policy probe"(One line per host — this is an audit trail, not a change record.)
- No memory updates. The audit is a snapshot; it does not own server state. If the audit uncovers a memory file that contradicts the live config, mention it in the "Drift detected" section so the user can decide what to fix.
References
Read on demand:
references/probes.md— the exact commands to run per category (UA, sshd, firewall, MTA, time, auto-reboot).references/output-format.md— table layout and the "Drift detected" section format.
Scope and limits
- Linux (Debian family) is fully covered. RHEL/SUSE
probes share the same shape but use
dnf/firewalld/zypperequivalents. macOS hosts are skipped with a "macOS not yet supported" note — covering them is a separate effort. - The audit does not check that running services are healthy (that is housekeeping's job). It only compares declared policy.
- BatchMode SSH means no password prompts. Hosts that need a passphrase get skipped — fix the agent setup separately.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

