middleware-skill
CommunityBuild and register Go middleware quickly.
AuthorPenitence1992
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a standardized approach to building and wiring HTTP middleware for go-zero services, including reusable templates and clear integration steps.
Core Features & Use Cases
- Template-based middleware: Create reusable middleware templates that can be instantiated for different routes or services.
- Registration guidance: Instructions to attach middleware to specific routes via .api files or globally via the ServiceContext.
- Real-world example: Implement a logging or authentication middleware and wire it into an existing API with minimal boilerplate.
Quick Start
Create a new middleware using the provided template under internal/middleware/. Then register it in the API definition or in main.go as part of the server setup, and wire it in service_context.go if needed.
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: middleware-skill Download link: https://github.com/Penitence1992/go-zero-backend-skills/archive/main.zip#middleware-skill 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 223,000+ vetted skills library on demand.