agentleFS
wintermeyerwintermeyer/heinzel/.claude/skills/heinzel-fleet-audit/SKILL.md

heinzel-fleet-audit

Skill94 starsChanged 2 months agoMITView on GitHub

Compare key policies across all servers in

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
  1. Distinctive:

    After fixing a config bug on one host: "which other hosts have the same problem?"

    line 36
  2. Distinctive:

    Do NOT auto-invoke for generic phrases like "check my servers" — that maps to single-host housekeeping.

    line 39
  3. Very specific:

    Resolve SSH users: Read memory/user.md for the per-host SSH user.

    line 51
  4. Distinctive:

    Surface drift: After the tables, emit a short "Drift detected" section that lists each disagreement and the recommended fix (link to the …

    line 68

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Discover hosts. List directories under memory/servers/ whose name resolves to a real host (skip placeholders like server1.example.com and 192.168.64.20 unless the user names them explicitly). The user may pass an explicit subset as arguments — in that case audit only those.
  2. Resolve SSH users. Read memory/user.md for the per-host SSH user. Hosts without a mapping go on a "skipped: no SSH user known" list (do not prompt — just report).
  3. Probe in parallel. For each in-scope host, run the probes from references/probes.md in a single batched SSH command, with the standard options from CLAUDE.md → SSH Options. Hosts that time out or refuse the connection go on a "skipped: unreachable" list.
  4. 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.
  5. 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.
  6. 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.)

  7. 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/ zypper equivalents. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.