golang-graphql

golang graphql

samber ↓ 31k
Claude Code
View source ↗

What it does

  • gqlgen reference — codegen workflow, gqlgen.yml, DataLoaders, Federation v2, directives
  • graphql-go reference — reflection resolver model, type mapping, tracing
  • Testing — gqlgen client harness, gqltesting, httptest patterns
  • → See samber/cc-skills-golang@golang-context skill for context propagation in resolvers and subscriptions
  • → See samber/cc-skills-golang@golang-error-handling skill for error wrapping and sentinel patterns
  • → See samber/cc-skills-golang@golang-testing skill for table-driven and integration test patterns
  • → See samber/cc-skills-golang@golang-observability skill for tracing and metrics in resolvers

Requirements & configuration

  • token := r.Header.Get("Authorization")
  • user, err := validateToken(token)
  • Production GraphQL servers require explicit limits. Without them, a single deeply nested query exhausts CPU and memory.
  • | int field in graph-gophers resolver | Library requires int32 for Int scalar | Use int32 (or float64 for Float) |

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

golang graphql

Source

Repository: https://github.com/samber/cc-skills-golang

golang-graphql FAQ

What does the golang-graphql skill do?

Implements GraphQL APIs in Golang using gqlgen or graphql-go. Apply when building GraphQL servers, designing schemas, writing resolvers, handling subscriptions, or integrating GraphQL with existing Go HTTP services. Also apply when the codebase imports `github.com/99designs/gqlgen` or `github.com/graph-gophers/graphql-go`. gqlgen reference — codegen workflow, gqlgen.yml, DataLoaders, Federation v2, directives graphql-go reference — reflection resolver model, type mapping, tracing

What does golang-graphql require?

token := r.Header.Get("Authorization") user, err := validateToken(token) Production GraphQL servers require explicit limits. Without them, a single deeply nested query exhausts CPU and memory. | int field in graph-gophers resolver | Library requires int32 for Int scalar | Use int32 (or float64 for Float) |

How do I install golang-graphql?

Run: npx -y skills add https://github.com/samber/cc-skills-golang --skill golang-graphql --agent claude-code — the source lives at github.com/samber/cc-skills-golang.

Maintain golang-graphql?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

golang-graphql on getagentictools
[![golang-graphql on getagentictools](https://getagentictools.com/badge/skills/samber-cc-skills-golang-golang-graphql.svg)](https://getagentictools.com/skills/samber-cc-skills-golang-golang-graphql?ref=badge)
npx agentictools info skills/samber-cc-skills-golang-golang-graphql

The second line is the CLI lookup for this page — handy in READMEs and docs.