๐ฏ
logging-best-practices
๐ฏSkillfrom boristane/agent-skills
What it does
|Guidelines for effective logging using wide events and canonical log lines, enabling powerful debugging and analytics.
Overview
logging-best-practices is a skill that teaches AI coding assistants how to implement effective logging using wide events (canonical log lines). Instead of scattered log statements, it promotes emitting a single, context-rich event per request per service, enabling powerful debugging and analytics capabilities.
Key Features
- Wide events pattern โ Consolidates all request context into a single structured event emitted at request completion, replacing scattered log lines throughout handlers
- High cardinality and dimensionality โ Advocates for including user IDs, request IDs, and many fields per event to enable specific user queries and answer unanticipated questions
- Business context integration โ Guides including subscription tier, cart value, feature flags, and account age so logs reveal business impact (e.g., "premium customer couldn't complete $2,499 purchase" not just "checkout failed")
- Middleware pattern and consistency โ Recommends using middleware for wide event infrastructure (timing, status, environment) with handlers adding only business context, plus consistent JSON formatting and field naming
Who is this for?
Developers and engineering teams who want their AI assistant to generate production-quality logging code. Particularly useful for backend and API developers who need structured, queryable logs that support debugging, analytics, and incident investigation across distributed services.
logging-best-practices
Installation
Vibe Index InstallInstalls to .claude/skills/ - auto-recognized by Claude Code
npx vibeindex add boristane/agent-skills --skill logging-best-practicesskills.sh Installโ Installs to .agents/skills/ - may not be auto-recognized by Claude Code
npx skills add boristane/agent-skills --skill logging-best-practicesManual InstallCopy SKILL.md content and save to the path below
~/.claude/skills/logging-best-practices/SKILL.mdSKILL.md
2,084Installs
26
-
Last UpdatedJan 21, 2026