backend-go
Deliver Go backends with clear handler, service, auth, validation, and concurrency patterns across Gin, Echo, and Fiber style services.
by HanTechnology★ 38 GitHub stars
Install backend-go in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Backend Go
Use this pack for Go backend work: HTTP APIs, service boundaries, auth middleware, background workers, streaming paths, and operationally focused backend delivery in the Go ecosystem.
Defer first-pass route choice and lane selection to ../../reference/routing-matrix.md.
This is the general Go backend pack for the repo. Use the overlay in reference/gin-echo-fiber.md to tune decisions for common Go web frameworks while preserving the same expectations for contracts, validation, documentation, and concurrency safety.
Setup posture
- Prefer modernizing, refining, or extending an existing project in place.
- Treat scaffold,
create,init, ornewflows as greenfield-only and explicit-request-only. Defer to.opencode/reference/project-setup-policy.md.
Core focus
- Design JSON, HTTP, and service contracts that are readable from handler to domain logic to client.
- Keep request validation, response shaping, and error mapping explicit instead of burying them in ad hoc helper code.
- Choose authentication and authorization flows deliberately: sessions, JWTs, service credentials, middleware checks, or policy gates.
- Treat goroutines, worker pools, streaming, and queue consumers as architectural choices with ownership and cancellation rules.
- Keep documentation, health checks, and graceful shutdown behavior visible at the service edge.
Shared Go backend standards
- Keep handlers thin and move durable business rules into services or packages that are not coupled to framework context objects.
- Pass
context.Contextthrough downstream calls so deadlines, cancellation, auth context, and tracing stay intact. - Use explicit validation and binding rules for inbound payloads, query params, and headers.
- Make timeouts, retries, idempotency, and background worker ownership visible wherever the service touches external systems.
- Publish OpenAPI or equally clear API docs for shared endpoints instead of relying on handler names and comments alone.
- Keep concurrency readable: every goroutine, channel, and shared state path should have an owner and a shutdown story.
Default workflow
- Inspect the existing router, middleware, package boundaries, and deployment assumptions.
- Choose the Go framework overlay in
reference/gin-echo-fiber.md. - Define contracts, validation, auth flow, context propagation, and concurrency behavior before widening the implementation.
- Implement handlers, service calls, and docs together so operations and correctness stay aligned.
- Run
review-workafter substantial backend changes.
Collaboration in this repo
- Use
Explorebefore editing so the new work matches local package, middleware, and service patterns. - Use
LibrarianorContext7when framework APIs, transport details, or library tradeoffs need a source-of-truth check. - Pair with
architecture-integrationwhen the task is mainly about boundaries, integration contracts, or multi-service coordination.
Overlays
reference/gin-echo-fiber.mdfor common Go HTTP frameworks, middleware chains, request binding, and performance-sensitive API delivery.
Guardrails
- Do not start goroutines without clear ownership, cancellation, and shutdown behavior.
- Do not let framework context objects become the domain model.
- Do not hide timeout, retry, or auth behavior inside helper functions that make request flow impossible to follow.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- reference/gin-echo-fiber.md
FAQ
What does the backend-go skill do?
Deliver Go backends with clear handler, service, auth, validation, and concurrency patterns across Gin, Echo, and Fiber style services.
How do I install the backend-go skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the backend-go skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…