go-zero-service-pattern-skill

Community

Standardize and reuse Go-zero service patterns.

AuthorPenitence1992
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The go-zero-service-pattern-skill provides a standardized approach to building service layers in Go-zero projects, enabling clean separation of concerns, caching strategies, transaction handling, and concurrent initialization.

Core Features & Use Cases

  • ServiceContext pattern: centralizes dependencies and global context for services.
  • Service layer design: defined patterns for service structs, initialization, and caching.
  • Cache + transaction patterns: safe update with cache invalidation.
  • Concurrency patterns: errgroup-based parallel work during startup.
  • Use Case: establish a consistent service layer across multiple microservices to improve maintainability and testability.

Quick Start

Use the go-zero-service-pattern-skill to scaffold a new service layer with a ServiceContext and a basic service struct, then wire up caching and transactional updates.

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-zero-service-pattern-skill
Download link: https://github.com/Penitence1992/go-zero-backend-skills/archive/main.zip#go-zero-service-pattern-skill

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.