common-accessibility
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Build HTTP services, REST APIs, and middleware in Go. Use when building Go HTTP servers, REST APIs, or custom middleware.
Claude Code
$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill golang-api-server --agent claude-code
Codex
$ npx skills add hoangnguyen0403/agent-skills-standard --skill golang-api-server -a codex -y
Cursor
$ npx skills add hoangnguyen0403/agent-skills-standard --skill golang-api-server -a cursor -y
Gemini CLI
$ npx skills add hoangnguyen0403/agent-skills-standard --skill golang-api-server -a gemini-cli -y
GitHub Copilot
$ npx skills add hoangnguyen0403/agent-skills-standard --skill golang-api-server -a github-copilot -y
OpenCode
$ npx skills add hoangnguyen0403/agent-skills-standard --skill golang-api-server -a opencode -y
Windsurf
$ npx skills add hoangnguyen0403/agent-skills-standard --skill golang-api-server -a windsurf -y
name: golang-api-server
description: Build HTTP services, REST APIs, and middleware in Go. Use when building Go HTTP servers, REST APIs, or custom middleware.
metadata:
triggers:
files:
- 'cmd/server/*.go'
- 'internal/adapter/handler/**'
keywords:
- http server
- rest api
- gin
- echo
- middleware1. **Choose transport layer** — REST (Echo/Gin/stdlib) or GraphQL (gqlgen). 2. **Thin Handlers & Resolvers** — Handlers and resolvers parse/validate inputs, invoke use-case services, and map to transport models. Zero direct database queries or business rules. 3. **Transport-to-Domain Mapping** — Domain models remain pure; transport models adapt to domain models via dedicated mappers. 4. **Response Nullability & Slice Defaulting** — Default empty slices to `[]` (not `null`) unless the schema explicitly requires null. Avoid unnecessary `nullable` fields in GraphQL response schemas when zero-values suffice. 5. **Add middleware** — Use middleware for cross-cutting concerns (Logging, Recovery, CORS, Auth, Tracing, RequestID). 6. **Enforce pagination limits** — Support `first/after` (GraphQL cursor) or `limit/offset` (REST) with strict max caps to prevent memory exhaustion. 7. **Implement graceful shutdown** — Handle SIGINT/SIGTERM to drain in-flight requests.
See [graceful shutdown example](references/graceful-shutdown.md) and [Echo handler patterns](references/middleware-patterns.md)
The portable standards layer for AI coding agents. Sync once, then work in your own runtime.
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Define deterministic guardrails for agent tool calls — protected paths, test-file locks during bug fixes, post-edit formatters,…
Apply REST API conventions — HTTP semantics, status codes, versioning, pagination, and OpenAPI standards for any framework. Use…
Audit structural debt, logic leakage, and monolithic components across Web, Mobile, and Backend codebases. Use when reviewing…
Draws architecture diagrams as editable draw.io files with a fixed house style, C4 levels, evidence-tagged shapes, and optional…
Enforce SOLID principles, guard-clause style, function size limits, and intention-revealing naming across all languages. Use when…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.