observability
Structured logging, request correlation, Prometheus metrics, health probes, and sensitive data redaction.
Skill by Mihir-Rabari
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mihir-rabari-observability
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
observability- Description
- Structured logging, request correlation, Prometheus metrics, health probes, and sensitive data redaction.
- License
- MIT
- Instructions
- 32 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Observability Skill
## 1. When to Use
Use this skill when configuring logging, request correlation, Prometheus metrics, health probes, or structured diagnostics.
## 2. Structured Logging
- **Universal Canonical Logger**: Always use `logger` or `createLogger` from `@packages/shared`.
- **No `console.log`**: Never use `console.log`, `console.error`, or `console.warn` in backend application code.
- **Environment Formatting**: Pretty-formatted human-readable logs in development (`pino-pretty`); structured newline-delimited JSON in production.
## 3. Request Correlation
- Every HTTP request receives an `x-request-id` header.
- Safe header sanitization: Incoming `x-request-id` headers are validated against `^[a-zA-Z0-9_-]{1,64}$` to prevent log injection.
- Correlated Errors: Client error responses include `requestId` matching server diagnostic logs.
## 4. Inviolable Redaction Rules
The logger automatically redacts sensitive fields on top-level and nested objects:
- `*.password`, `*.passwordHash`
- `*.token`, `*.sessionToken`, `*.tokenHash`
- `*.secret`, `*.sessionSecret`
- `*.accessKey`, `*.secretKey`, `*.apiKey`
- `*.authorization`, `req.headers.authorization`
- `*.cookie`, `req.headers.cookie`, `res.headers['set-cookie']`
- `*.databaseUrl`, `*.DATABASE_URL`, `*.SESSION_SECRET`, `*.RESEND_API_KEY`
## 5. Metrics & Probes
- **`/health`**: Fast summary probe.
- **`/health/live`**: Liveness probe.
- **`/health/ready`**: Deep readiness probe verifying PostgreSQL, Redis, and Object Storage connections.
- **`/metrics`**: Prometheus scrape endpoint. Never use high-cardinality request IDs or user IDs as Prometheus labels.From Mihir-Rabari/baseline, MIT.
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Oct 3, 2026 (25 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Mihir-Rabari/baseline
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from Mihir-Rabari
- 0.561score
agent
Mihir-Rabari
AI chat agent that acts as the signed-in user, tool registry, staged write actions with confirmation, permission-filtered tools, and prompt-injection rules.
SkillAFreshness: AClaude Code +9 - 0.561score
design
Mihir-Rabari
Visual design law for the generated app — screen structure, colour tokens, typography, icons, spacing, and the states every screen owes the user.
SkillAFreshness: AClaude Code +9 - 0.558score
authentication
Mihir-Rabari
Password hashing (scrypt), server-side session tokens, HTTP-only cookies, and auth events.
SkillAFreshness: AClaude Code +9 - 0.558score
architecture
Mihir-Rabari
Monorepo package boundaries, layering rules, and extension patterns.
SkillAFreshness: AClaude Code +9 - 0.558score
api
Mihir-Rabari
Fastify route development, Zod type providers, OpenAPI documentation, structured logging, and error responses.
SkillAFreshness: AClaude Code +9 - 0.558score
database
Mihir-Rabari
PostgreSQL schema conventions, Drizzle ORM, migrations, deterministic seeding, and database integrity.
SkillAFreshness: AClaude Code +9
Cite this page
observability skill. Agent Mart. https://agentmart.dev/skills/mihir-rabari-observability (last updated 2026-10-24)