Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aiskillstore/golang-enterprise-patterns
Enterprise-level Go architecture patterns including clean architecture, hexagonal architecture, DDD, and production-ready application structure.
Passed 21 of 22 test cases with the skill, and 20 of 22 without it.
and 1 more in the full report
2 fixed19 passed either way0 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write a Gin framework middleware in Go named `JWTMiddleware` that extracts a Bearer token from the `Authorization` header, returns `401 Unauthorized` with JSON `{"error": "missing token"}` if the header is missing, and halts request processing using `c.AbortWithStatusJSON`.
| Checked | Without skill | With skill |
|---|---|---|
| The middleware checks if the Authorization header is empty or missing. | Passed | Passed |
| The middleware calls c.AbortWithStatusJSON(http.StatusUnauthorized, ...) when unauthenticated. | Passed | Passed |
| The middleware attaches validated claims to the Gin context using c.Set. | Missed | Passed |
The instructions your model reads when the skill loads.
This skill provides guidance on enterprise-level Go application architecture, design patterns, and production-ready code organization.
/cmd
/api - HTTP/gRPC entry points
/worker - Background job runners
/internal
/domain - Business entities and interfaces
/application - Use cases and application services
/infrastructure
/persistence - Database implementations
/messaging - Queue implementations
/http - HTTP client implementations
/interfaces
/api - HTTP handlers
/grpc - gRPC handlers
/pkg - Shared libraries (public)
Dependencies flow inward only:
Interfaces → Application → Domain
↓ ↓
test cases passed, vs 20 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.