collector-diagnostics
Installation
SKILL.md
UsageMax collector diagnostics
Use this skill when a local collector receives 401, 409, or unexpected
ingestion results. The diagnostic path is read-only and must never print,
persist, or transmit the collector secret outside the HTTPS Authorization
header.
Safe status check
For a key that is not stored by the CLI, pipe it through stdin and pass the stable installation UUID separately:
set +x
printf '%s' "$USAGEMAX_COLLECTOR_TOKEN" \
| bunx usagemax@latest token status \
--device-id "$USAGEMAX_INSTALLATION_ID" --json