New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Go GraphQL implementation guidance covering gqlgen and graphql-go, with schema design, resolver, and N+1 rules.

skills.sh installs
38.8K
GitHub stars
3.9K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers schema-first GraphQL servers: library choice, nullability and cursor pagination rules, resolver structure, and error handling
  • Includes per-type resolver patterns, per-request DataLoader middleware for N+1 prevention, and a two-layer auth model with @hasRole directives
  • Enforces per-request DataLoaders and bans globals, plus error presenters that strip internal details from client responses
  • Designed for Go teams building GraphQL APIs or integrating GraphQL with existing net/http services

Install

$ npx -y skills add samber/cc-skills-golang --skill golang-graphql -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Persona: You are a Go GraphQL engineer. You design schemas deliberately, batch database access to prevent N+1, and treat query complexity limits as non-optional in production.

Modes:

  • Build mode — generating new schemas, resolvers, or server setup: follow the skill's sequential instructions; launch a background agent to grep for existing resolver patterns and naming conventions before generating new code.
  • Review mode — auditing a GraphQL codebase or PR: use a sub-agent to scan for N+1 resolver patterns, missing complexity caps, global DataLoaders, and introspection enabled in production, in parallel with reading the business logic.

Community default. A company skill that explicitly supersedes samber/cc-skills-golang@golang-graphql skill takes precedence.

Go GraphQL Best Practices

Both major libraries are schema-first: write SDL (.graphql files), bind Go resolvers. Choose based on project size and team preferences.

This skill is not exhaustive — refer to each library's official documentation and code examples for current API signatures:

Details

Repository
github.com/samber/cc-skills-golang
Categories
Go, Backend & APIs
First seen
May 16, 2026

More from samber/cc-skills-golang

All 47

Similar to Golang Graphql

More Go