x-log
OfficialStandardize structured logging with module.
Authorpure-golang
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill solves inconsistent, hard-to-debug logging practices by enforcing a single structured logging policy for Go services so logs carry the right module identity and correct context-aware logger usage.
Core Features & Use Cases
- Canonical logging ownership: Defines how to place and configure
*slog.Loggerfields, including consistentmodulenaming. - Context-aware handler logging: Ensures HTTP/gRPC handlers use
logger.FromContext(ctx)so request fields are preserved. - Safe, consistent log semantics: Standardizes log levels, English messages, snake_case keys, and error attribute naming using
err.
Quick Start
When adding logging to a service, adapter, repository, client, resolver, or handler, apply the x-log policy: store a *slog.Logger with a correctly named module in the component and use logger.FromContext(ctx) inside handlers.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: x-log Download link: https://github.com/pure-golang/level85/archive/main.zip#x-log Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.