jolitz-fleet-audit
/jolitz-fleet-audit
Porównuje kluczowe polityki na wszystkich serwerach z listy i wykrywa ciche rozjazdy, bez zmiany konfiguracji, zapisując wyniki jako zadania do wykonania.
- Autor
- superlab-by-supbrt ↗
- Repozytorium
- jolitz ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 03.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 4
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 03.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Porównuje kluczowe polityki na wszystkich serwerach z listy i wykrywa ciche rozjazdy, bez zmiany konfiguracji, zapisując wyniki jako zadania do wykonania.
Wyzwalacze z opisu
Argumenty
/jolitz-fleet-audit [hostname1 hostname2 ... | tag:<name>]
Oryginalny opis (EN)
Compare key policies across all servers in memory/servers/ to surface silent drift. Makes no configuration changes; writes one audit-trail line to each host's journal, one local snapshot to memory/audits/ for comparison, and each drift entry as an "audit:" to-do in the host's todo.md. Probes unattended-upgrades, sshd effective config, firewall posture, MTA, time sync, auto-reboot behaviour and TLS certificate expiry on Linux; pkg audit, pf, rc services and time sync on FreeBSD; softwareupdate, Application Firewall and network time on macOS. Use when the user asks to "fleet audit", "vergleiche
Jak działa
- When to use
- Workflow
- References
- Scope and limits
Podgląd SKILL.md
---
name: jolitz-fleet-audit
argument-hint: "[hostname1 hostname2 ... | tag:<name>]"
description: Compare key policies across all servers in
memory/servers/ to surface silent drift. Makes no configuration
changes; writes one audit-trail line to each host's journal,
one local snapshot to memory/audits/ for comparison, and each
drift entry as an "audit:" to-do in the host's todo.md.
Probes unattended-upgrades, sshd effective config, firewall
posture, MTA, time sync, auto-reboot behaviour and TLS
certificate expiry on Linux; pkg audit, pf, rc services and
time sync on FreeBSD; softwareupdate, Application Firewall and
network time on macOS. Use when the user asks to "fleet
audit", "vergleiche alle server", "policy drift check", "are
my servers configured the same?", or after a fix on one host
to find which others carry the same bug.
---
# jolitz-fleet-audit
Cross-server policy audit. jolitz 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 on a host is a single
audit-trail line to its system journal (step 6 below);
locally it saves one snapshot for the next comparison
(step 7). Acting on findings is a separate step
(jolitz-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. An argument `tag:<name>`
("fleet audit for prod") selects the hosts whose
`memory.md` has `<name>` in its `- Tags:` line.
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 `AGENTS.md` →
SSH Options and the port from `- SSH port:` in the host's
`memory.md`.
The probe set follows the OS family from the pipeline:
Linux runs sections 1 to 7 of `references/probes.md`,
FreeBSD sections 2, 7 and 8, macOS sections 2, 7 and 9.
NetBSD and AIX hosts are skipped with "NetBSD not yet
covered" or "AIX not yet covered".
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 on the host. Then write every entry,
and every certificate under 30 days, as an open to-do in
the named host's `memory/servers/<hostname>/todo.md`
(`references/output-format.md` → To-do lines): one line
per key, never a second one for the same key.
6. **Log to the system journal** on each audited host:
logger -t jolitz "fleet-audit: read-only policy probe"
(One line per host — this is an audit trail, not a
change record.)
7. **Save the snapshot.** Write every probed value to
`memory/audits/<YYYY-MM-DD-HHMM>.json` in the format of
`references/snapshot.md`, with the agent's file-edit
tool. Then compare it with the newest earlier snapshot
and add a "Changed since <date>" section to the report:
each host and setting whose value changed. A changed
value nobody logged in `changelog.log` is the drift
worth naming first. `bin/jolitz-overview` shows the
newest snapshot and these changes.
8. **No server memory updates.** The audit does not own
server state: `memory/servers/` stays as it is. 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,
certificates, FreeBSD, macOS).
- `references/output-format.md` — table layout, the
"Drift detected" section and the to-do lines.
- `references/snapshot.md` — the JSON file written to
`memory/audits/`.
## Scope and limits
- Linux (Debian family) is fully covered. RHEL/SUSE
probes share the same shape but use `dnf`/`firewalld`/
`zypper` equivalents. FreeBSD and macOS have their own
sections in `references/probes.md`; the sshd, firewall,
time, reboot and certificate rows are shared with Linux,
so those tables hold every host. NetBSD and AIX hosts are
skipped as not yet covered; AIX needs its own probes
(SRC, `lsfilt`, `suma`, `xntpd`) once it has run on a
host.
- Certificates do not drift between hosts. Their rows show
the days left; the threshold, not a disagreement, makes
the entry.
- 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.
Pliki w paczce (4)
- SKILL.md 6 KB
- references/output-format.md 6 KB
- references/probes.md 14 KB
- references/snapshot.md 4 KB
Wersje
W bazie nie ma innych skilli o nazwie jolitz-fleet-audit.
Migawka bazy z 13.11.2026 · wersja paczki b93e9fbed6df (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Podobne skille
- 90jolitz-updates
Planuje aktualizacje pakietów na flocie serwerów: suchy przebieg na każdym hoście i proponowaną kolejność, bez wykonania przed zgodą. - 90jolitz-housekeeping
Przeprowadza przegląd stanu serwera: dysk, pamięć, obciążenie, aktualizacje, certyfikaty SSL i błędy usług systemd. - 85fleet-audit
Odpowiada na pytania o cały park serwerów: inwentarz, dryf konfiguracji, alerty, kopie zapasowe i oczekujące aktualizacje lub restarty. - 100remote-systems-administration
Administruje zdalnymi systemami Linux, FreeBSD, NetBSD, OpenBSD i macOS, pojedynczo lub we flocie, przez SSH, Ansible i Paramiko: diagnostyka, usługi, aktualizacje, konfiguracja i firewall. - 100linux-ops
Rozwiązuje problemy na serwerach Linux: usługi systemd, uprawnienia, dyski, DNS, TLS, zapory i przywracanie kopii. - 100certificate-lifecycle-management-at-scale
Prowadzi przez zarządzanie cyklem życia certyfikatów TLS i mTLS w wielu usługach i środowiskach: korporacyjne CA, rotacja, monitoring wygasania i hierarchia zaufania.