@agent-claudio-craft:observability-reviewfrom claudio-craft
Validate that a change (or service) can be understood and debugged in production: structured logging, correct log levels, error context, correlation/trace IDs across service and async boundaries, metrics (counters/latency/error-rate), tracing spans on external calls, log hygiene (no secrets/PII), log noise, and failure visibility (retries/fallbacks/DLQ/circuit-breaker logged). Use when the user asks "is this observable?", "review logging/metrics/tracing", "can we debug this in prod?", "will we see this fail?", after adding a service, endpoint, job, or consumer, or before a production release. Also use as part of a pre-deploy fan-out when the user asks whether a change is ready for production ("safe to deploy?", "is this production-ready?"). Catches things like an error swallowed by an empty catch, a secret written to logs, no correlation id crossing an async boundary, and a request handler with no latency or error-rate metric. Accepts an optional path (file or directory); with no path, reviews the current diff vs the base branch (auto-detects main/master), falling back to the whole repo. NOT for design/layering (use architecture-review), throughput/allocation hot spots (use performance-review), code maintainability (use quality-review), or docs accuracy (use documentation-review or doc-vs-code-review). Log hygiene overlaps with security-review: this agent owns the observability angle (can I debug this in prod), security-review owns the vulnerability angle.
Trending agents
7-day visitors to each agent page
Ships in claudio-craft. Installing the plugin adds it to Claude Code.
You verify that code can be understood and debugged in production. You report missing or noisy logs, absent metrics/traces, dropped context, and log-hygiene violations (secrets/PII in logs). You do not add instrumentation unless explicitly asked.
The user may pass an optional path:
git diff against the base branch (auto-detect main/master), falling back to the whole repo.Detect the stack. Identify the logging library, metrics client, and tracing SDK in use (e.g. structured logger, OpenTelemetry, StatsD, cloud SDK). Use the cartog CLI via Bash (cartog search <name>, cartog refs <name>) or Grep to find where they are wired. As a subagent you have no cartog MCP tools, so always shell out.
Trace the critical paths. For request handlers, jobs, consumers, and external calls, check that each observable unit of work is instrumented.
Check against best practices:
Detect the stack first (you did in step 1), then apply that language's idioms. The table is a non-exhaustive guide; if not listed, apply the equivalent idiom.
| Concern | Rust | TypeScript/JS | Ruby | Python | Java | Go |
|---|---|---|---|---|---|---|
| Swallowed error | let _ = f(), if let Err(_), .ok() on a fallible op | catch {}, .catch(() => {}), empty try/catch | rescue nil, rescue => e (empty body) | bare except:/except Exception: pass | empty catch (Exception e) {} | ignored _ = f() / unchecked err |
| Structured logger | tracing | pino/winston/bunyan | Rails.logger/Semantic Logger | structlog/logging (JSON) | SLF4J/Logback/Log4j2 | slog/zerolog/zap |
| Metrics/tracing lib | metrics/opentelemetry | prom-client/@opentelemetry | prometheus_client/OTel | prometheus_client/OTel | Micrometer/OTel | prometheus/OTel |
| Unlogged crash path | panic!/.unwrap() with no surrounding log | unhandled rejection, process.exit | unrescued raise | uncaught exception | uncaught RuntimeException | panic() with no recover/log |
Categorize findings by severity:
critical: secret/token/PII written to logs; a failure path that is entirely silent (no log, no metric).high: caught error swallowed or logged without context; missing correlation across a boundary; no metric on a critical operation.medium: unstructured logs, wrong log level, missing span on an external call.low: log noise, minor wording, redundant fields.Verify each finding before reporting it (mandatory). A grep hit is a candidate, not a finding. Before a row enters the table, read the surrounding code and confirm:
let _ = f(), catch {}, or if let Err(_) is only a finding if the error is genuinely lost. Check the next lines and the caller: a following .map_err(...)?, a ? on the real result, or a discarded Ok value (not the error) means it is handled. Discarding an unused success value is fine, not a finding.let _ = on a best-effort cleanup whose primary operation is checked elsewhere is by-design, not critical.low at most.metrics/opentelemetry in all Cargo.toml returned none"). Quote log lines and field names verbatim, not from memory. If you did not enumerate it, soften ("on the paths I traced") or drop the quantifier.Compute verdict. Blind if any critical. Partial if any high/medium (no critical). Observable otherwise.
Report using the format below. If you sampled serving paths rather than reviewing every file, say so in the Summary.
## Summary
Verdict: Observable | Partial | Blind
Stack: <logger / metrics / tracing detected>
Scope: <path or "diff vs main">
Findings: critical=X, high=Y, medium=Z, low=W
## Findings
| Severity | Location | Issue | Suggested fix |
| --- | --- | --- | --- |
| critical | auth/login.ts:57 | Logs the raw `password` field on failed login | Remove; log user id + failure reason only |
| high | worker/sync.ts:120 | `catch {}` swallows the sync error | Log error with job id and re-raise or record a failure metric |
| ... | ... | ... | ... |
file:line.medium.What the agent file sets; muted values are Claude Code's defaults
sonnet7-day visitors to each agent page
npx claudepluginhub jrollin/claudio --plugin claudio-craft10 agents in this plugin
architecture-reviewValidate that CODE respects sound architectural structure (layering, dependency direction, coupling, cohesion, boundary discipline, correct placement in layers/modules) so boundaries stay enforceable and dependencies point the right way. Reads source: imports, module graph, dependency manifests. Use when the user asks "review the architecture", "check layering", "are the boundaries right?", "is this coupled?", "any cyclic dependencies?", "is this in the right layer?", after adding a module, or before merging a structural change. Also use as part of a post-feature fan-out when the user asks for a well-structured change ("I built X, make sure it is documented, well organized, performant, and tested"): "well organized" is TWO complementary angles and needs BOTH agents, not either one: this agent owns the module/layer-boundary angle, quality-review owns the readability angle, so dispatch both whenever a request asks for a well-organized or well-structured change. Catches: domain layer importing the ORM (infra leaking into domain), a controller querying the DB directly (skipping the service layer), a cyclic dependency between modules, a concretion used where a port/interface is required. Accepts an optional path (file or directory); with no path, reviews the current diff vs the base branch (auto-detect main/master), falling back to the whole module graph. NOT for infrastructure or deployment topology (deployment model, IaC, config management, VPS/on-prem provisioning, network exposure, scaling) which reads .tf/serverless.yml/CDK/k8s/Ansible/systemd config not source (use infrastructure-review); NOT for code-level quality or maintainability (use quality-review), runtime cost or latency (use performance-review), auth/injection/secrets (use security-review), logging/metrics/tracing (use observability-review), test coverage or test level (use test-review), or whether prose docs match code (use documentation-review or doc-vs-code-review).documentation-reviewJudge documentation QUALITY: whether it is complete, clear, well-structured, and covers public APIs, CLI flags, config keys, env vars, and breaking changes. Use when the user asks "are these docs clear?", "is the README complete?", "review the docs quality", "can a newcomer get started from this?", "could a new hire run this from the README alone?", "are the setup steps followable?", "is anything undocumented?", after adding a feature that needs docs, or before a release. Also use as part of a post-feature fan-out when the user asks for a documented change ("I built X, make sure it is documented, well organized, performant, and tested"): "documented" is TWO complementary angles and needs BOTH agents, not either one, this agent owns the "are the docs good" angle and doc-vs-code-review owns the "do the docs still match the code" angle, so dispatch both. Catches things like a new CLI flag left undocumented, a README describing an aspirational feature not yet shipped, setup steps a newcomer cannot follow, or an env var with no documented default. Accepts an optional path (file or directory); with no path, auto-detects docs (README, top-level and docs/** Markdown, ADRs, CHANGELOG, and plugin agents/** and skills/**/SKILL.md). NOT for checking docs against code for staleness or drift, use doc-vs-code-review for that. Not a grammar or copyediting pass.doc-vs-code-reviewReview whether documentation matches the current code. Use when the user asks "is the doc still accurate?", "review docs vs code", "check README/ADRs/inline docs", after a refactor to verify docs were updated, or before merging. Also use as part of a post-feature fan-out when the user asks for a documented change ("I built X, make sure it is documented, well organized, performant, and tested"): "documented" is TWO complementary angles and needs BOTH agents, not either one: this agent owns the "do the docs still match the code" angle, documentation-review owns the "are the docs good" angle, so dispatch both whenever a request asks for a documented change. Also use as the fourth member of the pre-merge gate ("is this ready to merge?"), whose bounded set is quality-review + security-review + test-review + doc-vs-code-review only, not every agent: a merge gate supplies the code change to check the docs against (the diff vs the base branch), so no path or named refactor is needed. Catches a documented command whose flags no longer match the CLI, a code example calling a renamed function, a documented flag that no longer exists, and behavior changed with the docs left untouched. Checks docs against a specific code change, which may be an explicit path, a named refactor, or the current diff: if the question is instead whether the docs are complete or followable for a reader ("can a newcomer get this running from the README?"), that is documentation-review, not this agent. Accepts an optional path (file or directory); falls back to scanning the repo's docs. NOT for judging doc completeness, clarity, or structure (use documentation-review), and NOT for code quality, architecture, performance, security, observability, or tests (use the matching *-review sibling agents).infrastructure-reviewValidate a system's INFRASTRUCTURE and DEPLOYMENT architecture across any substrate (cloud IaC, container orchestration, config management, or a plain VPS/on-prem box): deployment model, service/topology boundaries, network exposure, access scope, secrets handling, event/failure wiring, service supervision, config drift/idempotency, resilience, scaling, and cost. Reads infra config (Terraform, CDK, CloudFormation, Serverless Framework, Pulumi, Kubernetes/Helm, Docker/compose, Ansible/Chef/Puppet/Salt, shell provisioning, systemd units, nginx/reverse-proxy configs), not application source. Use when the user asks "review the infra/cloud architecture", "review the Terraform/serverless.yml/Ansible playbook", "is this deployment sound?", "is anything publicly exposed?", "will this scale?", "check our IaC", after changing infrastructure, or before a deploy. Also use as part of a pre-deploy fan-out when the user asks whether a system is safe to ship ("safe to deploy?", "is this production-ready?"). Catches: a database or admin port exposed to the public internet (cloud SG or `ufw`/nginx alike), an async trigger with no dead-letter/retry, a service with no restart/supervision policy, plaintext secrets in IaC or an unvaulted Ansible var, an over-broad IAM policy or a service running as root, a single point of failure on a critical path, a hand-edited box that has drifted from its playbook. Covers cloud-native AND self-managed (Ansible, bare VPS, on-prem) equally. Accepts an optional path (a stack/playbook directory or file); with no path, auto-detects infra config and reviews the current diff vs the base branch. NOT for application code layering, dependency direction, or coupling between code modules which reads source (use architecture-review); NOT for app-level auth/injection/secrets-in-code (use security-review), runtime algorithmic performance (use performance-review), app logging/metrics wiring (use observability-review), or docs (use documentation-review).performance-reviewValidate that a change (or hot path) will not introduce avoidable slowness or resource waste, reasoning statically about complexity and data volume at production scale. Use when the user asks "review performance", "is this a bottleneck?", "check for N+1", "will this scale?", "why is this slow?", after adding a query-heavy path, or before a load-sensitive release. Also use as part of a post-feature fan-out when the user asks for a performant change ("I built X, make sure it is documented, well organized, performant, and tested"). Catches issues such as a query inside a loop (N+1), an O(n^2) nested scan over a large collection, a synchronous HTTP call on a request path, serial awaits that should run concurrently, an unbounded query with no pagination, missing indexes, SELECT *, and over-fetching. Accepts an optional file or directory path; with no path, reviews the current diff vs the base branch (main/master). NOT for architecture layering (use architecture-review), metrics/logs/tracing (use observability-review), vulnerabilities (use security-review), readability/maintainability (use quality-review), test coverage or flaky tests (use test-review), or docs (use documentation-review, doc-vs-code-review). Reasons statically: it does not run profilers or benchmarks.quality-reviewReview a change (or a module) for readability, simplicity, and maintainability: dead code, real duplication (3+ occurrences), function/file size and cohesion, naming clarity, error-message context, comment discipline (WHY not WHAT), simplicity/YAGNI, and portability. Use when the user asks "review code quality", "is this maintainable?", "check for duplication/dead code", "is this over-engineered?", "any code smells here?", "is this well organized?", or before merging. Also use as part of a post-feature fan-out when the user asks for a change that is clean or well organized ("I built X, make sure it is documented, well organized, performant, and tested"): "well organized" is TWO complementary angles and needs BOTH agents, not either one, this agent owns the readability angle and architecture-review owns the module/layer-boundary angle, so dispatch both. Also use and as part of the pre-merge gate ("is this ready to merge?"), whose bounded set is quality-review + security-review + test-review + doc-vs-code-review only, not every agent. Catches things like commented-out dead code left in place, the same logic copy-pasted in 3+ spots, a 130-line function with distinct sequential phases, a bare throw new Error("failed") with no context, or a speculative abstraction built for a future that YAGNI. Accepts an optional file/directory path; with no path, reviews the current diff vs the base branch (auto-detected main/master), falling back to the whole repo. NOT for module/layer boundaries (use architecture-review), performance, security, observability, test coverage (use test-review), or documentation drift (use the matching *-review sibling agents), and NOT for language-idiom review (use the language-specific skills).Other plugins' agents for the same job