Helps you build GraphQL APIs in Go using either gqlgen or graphql-go, the two schema-first libraries that matter. The skill pushes you toward gqlgen for large schemas and federation, graphql-go for simpler cases. It's opinionated about the stuff that actually breaks in production: per-request DataLoaders to avoid N+1 queries, query complexity limits, nullable field design to prevent cascade failures, and keeping resolvers thin. Includes concrete patterns for auth middleware, directive-based authorization, and error handling that doesn't leak internals. The persona assumes you know Go but might not know GraphQL's footguns yet.

skills.sh installs
38.5K
GitHub stars
3.8K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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:

Sponsors

Details

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

More from samber/cc-skills-golang

All 47
1expo avatarexpo-api-routesexpo/skillsGuidelines for creating API routes in Expo Router with EAS Hosting37.2Kskills.sh installs
2firebase avatarfirebase-firestore-enterprise-native-modefirebase/agent-skillsComprehensive guide for Firestore enterprise native including provisioning, data model, security rules, and SDK usage. Use this skill when the user needs help s36Kskills.sh installs
3google avatargemini-apigoogle/skillsUse when the user asks about using Gemini in an enterprise environment or explicitly mentions Vertex AI, Google Cloud, or Agent Platform. Guides the usage of th18.2Kskills.sh installs
4affaan-m avatarbackend-patternsaffaan-m/everything-claude-codebackend patterns8.7Kskills.sh installs
5github avatarmcp-copilot-studio-server-generatorgithub/awesome-copilotGenerate a complete MCP server implementation optimized for Copilot Studio integration with proper schema constraints and streamable HTTP support8.7Kskills.sh installs
6sickn33 avatarapi-security-best-practicessickn33/antigravity-awesome-skillsapi security best practices7.9Kskills.sh installs