Skip to main content
skill CX Codex

logging-best-practices · ncklrs — Claude Code skill: what it does & install

logging-best-practices guides AI coding agents to implement wide request events, structured records, and tail sampling instead of scattered debug strings.

no license 148 installs ★ 54 updated 2026-02-26

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ncklrs/startup-os-skills --skill logging-best-practices -a claude-code
Open on GitHub

What logging-best-practices does

This skill guides coding assistants to replace fragmented console messages with rich per-request events. Based on Boris Tane's observability philosophy, the pattern collects contextual attributes during execution and writes out a single structured payload when processing completes.

Guidance covers field selection for high-cardinality metadata, tail-sampling logic to keep storage costs predictable, and automated detection of noisy logging habits during code reviews. It pushes designs toward events with 40 or more descriptive attributes. That makes querying in production faster.

Adopting this model requires a request-scoped context across your stack, because wide events fail if contextual data cannot travel between functions.

What it helps with

  • replace scattered debug log lines with a single wide event per request
  • design high-cardinality field schemas for root-cause analysis
  • configure tail sampling to keep storage costs under control
  • flag legacy logging anti-patterns during pull request reviews

Example prompts for the agent

  • Review the logging in src/checkout.ts and convert it into wide events
  • Design structured log fields for our new auth microservice
  • Set up tail sampling rules to capture all failed payment attempts

How to install logging-best-practices

1Skills CLI (Vercel)

npx skills add ncklrs/startup-os-skills --skill logging-best-practices -a claude-code

2Manually: put the files in place

~/.claude/skills/logging-best-practices/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/logging-best-practices/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about logging-best-practices

How do I install logging-best-practices in Claude Code?

Run npx skills add ncklrs/startup-os-skills --skill logging-best-practices -a claude-code.

What does the logging-best-practices skill do?

It teaches coding agents how to emit rich, queryable events per request instead of scattered text logs across codebase functions.

What is a wide event in this skill?

It is an architecture where code gathers context into a single JSON record with dozens of fields and emits it once the transaction ends.

Similar skills

All skills for Backend and APIs →

logging-best-practices by other authors comes first.

logging-best-practices boristane The logging-best-practices skill guides your agent to implement wide events (canonical log lines) instead of scattered logs. It consolidates request metrics, business context, and errors into one JSON event. CX Codex +1 5,000installs logging-best-practices aj-geddes logging-best-practices — a skill for setting up logging: levels, JSON output, context fields, PII handling and centralized collection. CX Codex +1 744installs logging-best-practices Mindrally logging-best-practices — a skill that spells out logging rules: structured JSON, log levels, shared fields and request context. Useful when every service logs its own way. CX Codex +1 842installs logging-best-practices secondsky logging-best-practices — a skill for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode that enforces structured logging standards: log levels, request context propagation, PII sanitization and centralized aggregation. CX Codex +1 415installs logging-best-practices andrelandgraf logging-best-practices teaches the agent to write structured Pino logs: context-first signature, levels for different scenarios, workflow-safe wrapper. CX Codex +1 111installs go-logging cxuu Steers your coding agent toward sane Go logging: slog, levels, structured fields, request-scoped context. Useful once a Go service grows more log lines than anyone reads. CX Codex +1 1,100installs encore-go-logging encoredev The encore-go-logging Claude Code skill helps add and review structured logs in Encore.go services. It activates for work on log levels, event fields, errors, and noisy output. CX Codex +1 136installs logging codewithmukesh logging — a skill for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode that owns the cross-cutting observability layer in .NET 10: health check endpoints, correlation ID middleware, and log-level strategy. CX Codex +1 4,000installs review-logging-patterns HugoRCD review-logging-patterns is a Claude Code skill that reviews logs and errors in TypeScript and JavaScript. It suggests evlog adoption during logging setup or code review. CX Codex +1 767installs 181-java-observability-logging Juan Antonio Breña Moral 181-java-observability-logging is a Claude Code skill for improving Java logging and observability. It activates on requests to add, review, or refactor logging. CX Codex +1 325installs

From the same set51

The whole set →

Project sponsors

Companies that keep this analytics open