Gin
Gin Go web framework with high performance and middleware. Use for Go APIs.From its SKILL.md
npx -y skills add G1Joshi/Agent-Skills --skill ginAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.1 KB, 253 tokens by cl100k_base, as published. Nobody here has run it
Gin
Gin is the most popular Go web framework, known for its martini-like API and performance (httprouter). v1.10 (2025) adds structured logging and better binding.
When to Use
- REST APIs: The industry standard for Go microservices.
- Performance: 40x faster than Martini.
- Middleware Ecosystem: Massive library of plugins.
Core Concepts
Router
Radix tree based routing. r.GET("/ping", handler).
Context (c *gin.Context)
Holds request, response, and metadata.
Binding
ShouldBindJSON automatically validates structs.
Best Practices (2025)
Do:
- Use
ShouldBind: Better error handling thanBind(which panics/writes 400). - Use
gin.Recovery(): Prevent crashes from taking down the server. - Use
Slog: Integrate with Go'slog/slogfor structured logs.
Don't:
- Don't abuse
c.Set/Get: Use type-safe struct passing where possible.
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.