CLI-Anything Bundle #93 — Prometheus Monitoring Trust Recon Pack (4 New AI Agent Skills)
v1.0.0 · MIT · stdlib-only · read-only by construction
Four agent-native, read-only trust-recon CLI tools covering the Prometheus monitoring trust surface — the layer that tells you whether a deployment's install, scrape/config posture, rule hygiene and TSDB state can still be TRUSTED (an operator whose prometheus binary, prometheus.yml, rule files and WAL/blocks cannot be honestly censused has no monitoring-trust story at all): the install + runtime posture layer, the config grammar + security posture layer, the rule-file grammar + hygiene layer, and the TSDB block/WAL layer. Each tool stats/globs binaries, configs and data files and parses documented grammar line-based — nothing is ever executed, no prometheus binary is ever spawned, nothing is ever written, nothing networks, and no credential VALUE, rule subject or metric body is ever read or printed (CRED-PRESENT presence rows only; rule subjects ride RULE1/GROUP1/ALERT1/REC1 tokens; TSDB blocks ride BLK1/WALSEG tokens; expression/meta/WAL bodies never read beyond size/mtime or tokenized shape classes).
- prometheuspeek — Prometheus install + runtime posture census: exact prometheus + promtool binaries stat-only across lookup dirs (TOOL_BINS presence rows, BIN1/BIN2 tokens, binaries NEVER executed); config-dir presence + PERM class (contents never parsed by this tool); rule-dir stat-only file-count shapes; tsdb marker census (wal/, chunks_head/, ULID block dirs on DATA1 tokens, bodies never read); log mtime-bucket census; prometheus.pid run-state row; prometheus* systemd unit census; findings CONF_PERM / DATA_PERM; posture findings BARE_TOOL, CONF_WITHOUT_TOOL, honest NOT_RUNNING and EMPTY_WAL; rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- promconfpeek — Prometheus config grammar + security posture census: prometheus.yml/*.yml/*.yaml census with perm class rows; LINE-BASED indentation-tolerant grammar census (NEVER a yaml module) over the ten vocabulary keys as KEY-PRESENCE rows (GRAMMAR/KEY/UNK_KEY/UNPARSEABLE); secret-value blackout (CRED_PRESENT presence rows only, values blackholed at any length, canary-asserted in battery); bind posture classing (doc-shaped 127.0.0.1:9090 may print; wildcard 0.0.0.0/:: rides a WILD_BIND finding); TLS_OFF_REMOTE and NO_AUTH findings on non-loopback binds; TLS_PRESENT / AUTH_ON presence rows; remote-write rows on HOST1 tokens; scrape-job JOB1 rows with public shapes; findings CONF_PERM; rc 0 / 4 / 6 / 3 law.
- promrulepeek — Prometheus rule-file grammar + hygiene census: *.yml/*.yaml rule file census (RULE rows with RULE1 tokens + PERM class); group/block shape grammar (GROUP1/GROUP2 block counts); ALERT1/REC1 name-shape rows; rule bodies NEVER read; NO_FOR finding (rule dir configured, zero matching files); RULE_PERM on group/world-writable rule files; TRUNC-capped rows; rc 0 / 4 / 6 / 3 law.
- promtsdbpeek — Prometheus TSDB block/journal census: block dirs ULID shape classes (BLK1 tokens); meta.json presence/size buckets (bodies never read); wal/ + chunks_head/ census (WALSEG token law); TSDB_WIDE finding (world-readable data dir); DATA_PERM; honest NO_BLOCKS / EMPTY_TSDB notes; rc 0 / 4 / 6 / 3 law.
Read-only by construction — no binary is ever executed, nothing is ever written, nothing networks, and no credential value, rule subject, TSDB block body or metric expression ever prints raw (values ride BIN1/CONF1/DATA1/RULE1/GROUP1/ALERT1/REC1/BLK1/WALSEG/HOST1/JOB1/CRED-PRESENT class tokens only); MIT, stdlib-only, self-test batteries inside (1149 executed checks across the four tools — 260 + 226 + 328 + 335 — fired three times at 0 failed, plus clean-room fires unpacked from this exact shipping zip — one /tmp room, one home-path room — 0 failed in both).