migrate-zap-to-slog
CommunityReplace Go zap logging with standard log/slog.
AuthorBizShuk
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill eliminates the overhead of maintaining the third-party go.uber.org/zap logging dependency in Go projects, allowing teams to adopt the built-in log/slog package (introduced in Go 1.21) to reduce external dependencies and align with standard library tooling.
Core Features & Use Cases
- Complete API Mapping: Includes a full reference table to translate all common zap logging calls (including Sugar-style formatted calls and Fatal levels, which have no direct slog equivalent) to correct log/slog syntax.
- Viper-Compatible Log Initializer: Provides a ready-to-use log setup implementation that supports LOG_LEVEL and LOG_FORMAT configuration via viper, matching the configuration patterns used in the gosdk repository.
- Use Case: Perfect for Go teams modernizing their logging stack, eliminating the zap dependency, or ensuring new code uses only standard library logging tooling.
Quick Start
Use the migrate-zap-to-slog skill to replace all go.uber.org/zap imports and call sites in your Go project with standard log/slog equivalents.
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: migrate-zap-to-slog Download link: https://github.com/BizShuk/gosdk/archive/main.zip#migrate-zap-to-slog 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 536,000+ vetted skills library on demand.