Mav bp operability

From thermiteau/maverick · View interactive version

Mav bp operability is an AI agent skill from the GitHub repository thermiteau/maverick. Operability standards — logging, alerting, and observability as one discipline. Maverick''s opinionated rules: error-only log levels (no info), structured JSON logs, alert-at-the-boundary, correlation across logs/metrics/traces. Applied when writing or reviewing code that logs, alerts, or instrument

How to use this skill

Skill file

Operability Standards

Logging, alerting, and observability as one discipline: record what

happened, demand attention when it matters, and make internal state

diagnosable from outside. Logs record; alerts interrupt; metrics and

traces correlate.

Maverick's Rules

Logging

error; if it only helps during development it is debug. Info-level

logging is a noise dumping ground — this is Maverick's most-fought

deviation from default LLM behaviour; hold the line.

the platform ships it — container log drivers, CloudWatch agents).

Required fields: timestamp, level, message, service, context

(put correlationId and error details inside context).

layer. Never log PII, tokens, or secrets.

Alerting

outermost error boundary (global handlers, health checks) — never

inside low-level functions, loops, or retries.

warning (next business day). **Alert severities are not log

levels** — do not map one onto the other.

message ("checkout is down", not "error occurred"), scope, and a log

pointer. Always log first, then alert.

error-reporting service or a backend endpoint.

Observability

spike must find the requests and their logs.

no high-cardinality metric labels (user ids belong in traces/logs).

conflating them causes cascading restarts.

never hand-rolled collection.

Project Implementation Lookup

Check docs/maverick/skills/logging/SKILL.md,

docs/maverick/skills/alerting/SKILL.md, and

docs/maverick/skills/observability/SKILL.md for project-specific

implementations (library, transport, service names). If present, they

win on specifics. If missing, proceed with these standards and note the

gap in your summary — do not trigger skill generation mid-task.

Detecting Operability Issues in Code Review

| Pattern | Issue | Fix |

| -------------------------------------------------- | ----------------------------- | -------------------------------------------- |

| console.log(...) | Unstructured, not centralised | Replace with logger.debug(...) or remove |

| logger.info(...) | Creates noise | Evaluate: is it warn, error, or debug? |

| logger.error('Error') | No context | Add contextual metadata |

| catch (err) { logger.error(err) } then re-throws | Duplicate logging | Log at the boundary only |

| Logging PII/secrets | Security risk | Mask or remove |

| Different loggers/alerters in different files | Inconsistency | Use single logger/alerter module |

| try/catch that silently swallows | Lost errors | Log or re-throw |

| Fatal error with no alert | Silent failure | Add alert at the error boundary |

| Alert inside a loop or retry | Alert flood | Move alert outside loop, add dedup |

| Alert with no context | Unactionable | Add service, error, scope, log pointer |

| Alert on expected conditions | Alert fatigue | Remove — only alert on unexpected failures |

| Alert but no log | Missing investigation trail | Always log before alerting |

| Frontend calling alerting service directly | Security risk | Route through backend API |

| No trace context propagation on outbound calls | Broken traces | Add middleware for automatic propagation |

| Liveness probe checking all dependencies | Cascading restarts | Liveness: process only; readiness: deps |

| High-cardinality metric labels (user/request ids) | Metric explosion, cost | Ids belong in traces and logs, not labels |

| No correlation ID in log entries | Cannot link logs to traces | Include trace ID in structured log context |

| SLO defined but not measured | False confidence | Instrument the SLI and track the target |

<!-- maverick-plugin-version: 5.3.1 -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.