⚠
High Risk:This skill has significant security concerns. Review the findings below before installing.
logging-best-practices
⚠Caution·Scanned 2/12/2026
Dangerous skill collects many process.env values into wide events and emits them via logger.info, and its examples include fetch('http://downstream-service/endpoint'). It explicitly references process.env.COMMIT_SHA, process.env.SERVICE_VERSION, process.env.AWS_REGION, process.env.INSTANCE_ID, and similar environment fields.
Scanned from main at 8aa14dd · Transparency log ↗
$ vett add boristane/agent-skills/logging-best-practicesReview security findings before installing
Logging Best Practices Skill
A skill for AI coding assistants to apply logging best practices when writing or reviewing code.
Overview
This skill teaches the wide events pattern (also known as canonical log lines) - emit a single, context-rich event per request per service instead of scattered log statements.
Key Concepts
- Wide Events: One comprehensive event per request, emitted at completion
- High Cardinality: Support fields with millions of unique values (user_id, request_id)
- High Dimensionality: Include many fields (20+) per event
- Business Context: Always include user subscription, cart value, feature flags
- Environment Context: Always include commit hash, version, region, instance ID
- Single Logger: One logger instance configured at startup, used everywhere
- Middleware Pattern: Handle logging infrastructure in middleware, business context in handlers
Structure
logging-best-practices/
├── SKILL.md # Agent instructions
├── README.md # This file
├── metadata.json # Version and references
└── rules/
├── wide-events.md # Core pattern (CRITICAL)
├── context.md # Cardinality, business & environment context (CRITICAL)
├── structure.md # Single logger, middleware, JSON format (HIGH)
└── pitfalls.md # Common mistakes (MEDIUM)
Rules
- Wide Events (CRITICAL) - One event per request, emit in finally block, request ID correlation
- Context (CRITICAL) - High cardinality, dimensionality, business context, environment characteristics
- Structure (HIGH) - Single logger, middleware pattern, JSON format, consistent schema
- Pitfalls (MEDIUM) - Scattered logs, unknown unknowns, missing request correlation