go-slog

Community

Standardized, context-rich Go logging.

Authorbrian861105
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Go projects often suffer from inconsistent, ad-hoc logging that makes debugging and tracing requests difficult. This Skill promotes using the standard library log/slog to create structured, context-aware logs across services, handlers, CLIs, and background jobs.

Core Features & Use Cases

  • Structured logging with slog fields to capture rich context.
  • Attach logger to context or pass *slog.Logger explicitly to functions.
  • Level-aware logging with Debug, Info, Warn, and Error for clear severity control.
  • Consistent guidance for aligning logs with request IDs, user identifiers, and component names.

Quick Start

Initialize a logger with slog and attach it to your context, then use its level methods to emit structured logs at the call sites.

Dependency Matrix

Required Modules

None required

Components

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: go-slog
Download link: https://github.com/brian861105/codex-skills/archive/main.zip#go-slog

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.