{"id":"c305eff0-4d8f-46b0-9d43-a1b8813f46b4","shortId":"4gj8gh","kind":"skill","title":"golang-graphql","tagline":"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/gqlge","description":"**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.\n\n**Modes:**\n\n- **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.\n- **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.\n\n> **Community default.** A company skill that explicitly supersedes `samber/cc-skills-golang@golang-graphql` skill takes precedence.\n\n# Go GraphQL Best Practices\n\nBoth major libraries are schema-first: write SDL (`.graphql` files), bind Go resolvers. Choose based on project size and team preferences.\n\nThis skill is not exhaustive. Refer to each library's official documentation and code examples for current API signatures. Context7 can help as a discoverability platform.\n\n## Library Choice\n\n| Library | Approach | Type safety | Build step | Best for |\n| --- | --- | --- | --- | --- |\n| `github.com/99designs/gqlgen` | Codegen | Compile-time | `go generate` | Large schemas, federation, strict types |\n| `github.com/graph-gophers/graphql-go` | Reflection | Parse-time | None | Simple schemas, fast iteration |\n| `github.com/graphql-go/graphql` | Code-first | Runtime | None | **Avoid** — verbose, no SDL |\n\nPick **gqlgen** when: Apollo Federation is required, schema is large (100+ types), or the team wants generated stubs and zero reflection overhead.\n\nPick **graph-gophers** when: schema is small/medium, the build pipeline should stay simple, or a dynamic schema is needed.\n\nFor deep-dive on each library, see [gqlgen reference](./references/gqlgen.md) and [graphql-go reference](./references/graphql-go.md).\n\n## Schema Design\n\n```graphql\n# ✓ Good — explicit nullability; ID scalar for opaque identifiers\ntype User {\n  id: ID!\n  email: String! # non-null: the server can always return this\n  bio: String # nullable: may be unset\n  posts(first: Int = 10, after: String): PostConnection!\n}\n\n# ✗ Bad — Int ID leaks implementation details, breaks client caching\ntype Post {\n  id: Int!\n}\n```\n\n**Nullability rule:** mark a field `!` only when the server can _always_ return a value. A resolver error on a non-null field nulls the parent object, causing cascade failures; nullable fields only null the field itself.\n\n**Pagination:** use Relay cursor connections (`Connection`/`Edge`/`PageInfo`) for list fields. Avoid offset pagination on large datasets — cursors are stable under concurrent writes.\n\n**Mutations:** wrap results in an envelope type so clients receive business errors alongside partial results without polluting the GraphQL `errors` array:\n\n```graphql\ntype CreateUserPayload {\n  user: User\n  errors: [UserError!]!\n}\n```\n\n## Resolver Patterns\n\nKeep resolvers thin — they translate GraphQL inputs to domain calls and domain responses to GraphQL outputs.\n\n```go\n// ✓ Good — resolver delegates to service layer\nfunc (r *mutationResolver) CreateUser(ctx context.Context, input model.CreateUserInput) (*model.CreateUserPayload, error) {\n    user, err := r.userService.Create(ctx, input.Email, input.Name)\n    if err != nil {\n        return nil, formatError(err)\n    }\n    return &model.CreateUserPayload{User: toGQLUser(user)}, nil\n}\n\n// ✗ Bad — SQL in resolver, no separation of concerns\nfunc (r *queryResolver) User(ctx context.Context, id string) (*model.User, error) {\n    row := r.db.QueryRowContext(ctx, \"SELECT * FROM users WHERE id = $1\", id)\n    // ...\n}\n```\n\nUse per-type resolver structs (`userResolver`, `postResolver`) rather than one monolithic resolver for all fields.\n\n## N+1 Prevention (DataLoaders)\n\nEach `User.posts` resolver fires a SQL query per user without batching — O(n) DB calls for n users. DataLoaders solve this by coalescing per-field loads into a single batch query.\n\n**Critical rule: DataLoaders MUST be created per-request in HTTP middleware, never globally.** A global DataLoader caches across requests — stale data, potential cross-user data leakage.\n\n```go\n// ✓ Good — per-request DataLoader in middleware\nfunc DataLoaderMiddleware(db *sql.DB, next http.Handler) http.Handler {\n    return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n        loaders := &Loaders{\n            PostsByUserID: newPostsByUserIDLoader(r.Context(), db),\n        }\n        ctx := context.WithValue(r.Context(), loadersKey, loaders)\n        next.ServeHTTP(w, r.WithContext(ctx))\n    })\n}\n\n// ✗ Bad — global DataLoader shared across all requests\nvar globalLoader = newPostsByUserIDLoader(context.Background(), db)\n```\n\nIn gqlgen, mark batched fields with `resolver: true` in `gqlgen.yml` to force a dedicated resolver method. See [gqlgen reference](./references/gqlgen.md) for full DataLoader wiring.\n\n## Authentication and Authorization\n\nTwo-layer model:\n\n1. **HTTP middleware** — extract and validate tokens, stash identity in `context.Context`.\n2. **Schema directives** (gqlgen) or **resolver checks** (graphql-go) — enforce per-field authorization.\n\n```go\n// HTTP middleware layer (both libraries)\nfunc AuthMiddleware(next http.Handler) http.Handler {\n    return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n        token := r.Header.Get(\"Authorization\")\n        user, err := validateToken(token)\n        if err != nil {\n            http.Error(w, \"Unauthorized\", http.StatusUnauthorized)\n            return\n        }\n        ctx := context.WithValue(r.Context(), userKey, user)\n        next.ServeHTTP(w, r.WithContext(ctx))\n    })\n}\n```\n\nIn gqlgen, use `@hasRole` schema directives for field-level authorization — authorization policy lives in the schema, not scattered across resolvers. See [gqlgen reference](./references/gqlgen.md).\n\n## Error Handling\n\nNever return raw internal errors — they leak SQL messages, stack traces, or service internals to clients.\n\n```go\n// gqlgen — custom ErrorPresenter strips internal details\nsrv.SetErrorPresenter(func(ctx context.Context, err error) *gqlerror.Error {\n    var gqlErr *gqlerror.Error\n    if errors.As(err, &gqlErr) {\n        return gqlErr // already formatted\n    }\n    // log internal err here\n    return gqlerror.Errorf(\"internal error\") // safe client message\n})\n\n// Add extension codes for client-side error handling\nreturn nil, &gqlerror.Error{\n    Message: \"user not found\",\n    Extensions: map[string]any{\"code\": \"NOT_FOUND\"},\n}\n```\n\nFor graph-gophers, implement the `ResolverError` interface to attach `Extensions()`. See [graphql-go reference](./references/graphql-go.md).\n\nUse `graphql.AddError(ctx, err)` in gqlgen for non-fatal field errors where the resolver can still return partial data.\n\nFor error wrapping patterns, see the `samber/cc-skills-golang@golang-error-handling` skill.\n\n## Subscriptions\n\nSubscriptions use long-lived WebSocket connections. The critical discipline: **always respect context cancellation** — a leaked goroutine per disconnected client exhausts resources silently.\n\n```go\n// ✓ Good — closes channel when client disconnects\nfunc (r *subscriptionResolver) MessageAdded(ctx context.Context, room string) (<-chan *model.Message, error) {\n    ch := make(chan *model.Message, 1)\n    sub := r.pubsub.Subscribe(room) // subscribe once before the goroutine\n    go func() {\n        defer close(ch) // always close; signals iteration to stop\n        for {\n            select {\n            case <-ctx.Done():\n                return // client disconnected\n            case msg := <-sub:\n                ch <- msg\n            }\n        }\n    }()\n    return ch, nil\n}\n\n// ✗ Bad — goroutine leaks forever when client disconnects\nfunc (r *subscriptionResolver) MessageAdded(ctx context.Context, room string) (<-chan *model.Message, error) {\n    ch := make(chan *model.Message, 1)\n    go func() {\n        for msg := range r.pubsub.Subscribe(room) {\n            ch <- msg // blocks forever after client gone\n        }\n    }()\n    return ch, nil\n}\n```\n\n## Performance and Safety\n\nProduction GraphQL servers require explicit limits. Without them, a single deeply nested query exhausts CPU and memory.\n\n```go\n// gqlgen — wire these into every production handler\nsrv := handler.NewDefaultServer(es)\nsrv.Use(extension.FixedComplexityLimit(200)) // max cost per query\n\n// Gate introspection — only in non-production environments\nif os.Getenv(\"ENV\") != \"production\" {\n    srv.Use(extension.Introspection{})\n}\n```\n\nFor graph-gophers: `graphql.MaxDepth(10)` and `graphql.MaxParallelism(10)` options at `ParseSchema` time.\n\n**Query allow-listing:** in production, consider persisted queries (gqlgen APQ extension) to reject arbitrary query strings.\n\n## Common Mistakes\n\n| Mistake | Why it matters | Fix |\n| --- | --- | --- |\n| N+1 queries in child resolvers | One SQL per parent row → O(n) DB calls | Use per-request DataLoader |\n| Global DataLoader | Cross-request cache — stale data, data leaks | Create DataLoader in request middleware |\n| Editing `models_gen.go` directly | Next `go generate` wipes hand edits | Use `autobind` or `models.<T>.model` in `gqlgen.yml` |\n| Forgetting `go generate` after schema change | Resolver interface mismatch at compile time | Re-run `go run github.com/99designs/gqlgen generate` |\n| `int` field in graph-gophers resolver | Library requires `int32` for `Int` scalar | Use `int32` (or `float64` for `Float`) |\n| Introspection enabled in production | Exposes full schema to attackers | Gate with `ENV` check |\n| No complexity cap | Deeply nested query → CPU/memory DoS | `extension.FixedComplexityLimit(N)` |\n| Leaking DB errors from resolvers | Exposes SQL internals to clients | Wrap in `ErrorPresenter` / `ResolverError` |\n| Subscription goroutine leak | Client disconnect → goroutine runs forever | `defer close(ch)` + `select ctx.Done()` |\n| Nullable field for always-required data | Clients must null-check everywhere | Mark `!` in schema; return error from resolver |\n\n## Deep Dives\n\n- **[gqlgen reference](./references/gqlgen.md)** — codegen workflow, `gqlgen.yml`, DataLoaders, Federation v2, directives\n- **[graphql-go reference](./references/graphql-go.md)** — reflection resolver model, type mapping, tracing\n- **[Testing](./references/testing.md)** — gqlgen client harness, gqltesting, httptest patterns\n\n## Cross-References\n\n- → See `samber/cc-skills-golang@golang-context` skill for context propagation in resolvers and subscriptions\n- → See `samber/cc-skills-golang@golang-error-handling` skill for error wrapping and sentinel patterns\n- → See `samber/cc-skills-golang@golang-testing` skill for table-driven and integration test patterns\n- → See `samber/cc-skills-golang@golang-observability` skill for tracing and metrics in resolvers\n- → See `samber/cc-skills-golang@golang-security` skill for input validation and injection prevention\n- → See `samber/cc-skills-golang@golang-database` skill for N+1 query patterns and DataLoader database batching\n\n## References\n\n- [gqlgen](https://github.com/99designs/gqlgen)\n- [graph-gophers/graphql-go](https://github.com/graph-gophers/graphql-go)\n- [Relay cursor connections spec](https://relay.dev/graphql/connections.htm)\n\nIf you encounter a bug or unexpected behavior in gqlgen, open an issue at https://github.com/99designs/gqlgen/issues.\n\nIf you encounter a bug or unexpected behavior in graph-gophers/graphql-go, open an issue at https://github.com/graph-gophers/graphql-go/issues.","tags":["golang","graphql","skills","samber","agent","agent-skills","antigravity","claude","claude-code","code","codex","coding"],"capabilities":["skill","source-samber","skill-golang-graphql","topic-agent","topic-agent-skills","topic-antigravity","topic-claude","topic-claude-code","topic-code","topic-codex","topic-coding","topic-copilot","topic-cursor","topic-gemini","topic-gemini-cli-extension"],"categories":["cc-skills-golang"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/samber/cc-skills-golang/golang-graphql","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add samber/cc-skills-golang","source_repo":"https://github.com/samber/cc-skills-golang","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 1478 github stars · SKILL.md body (11,568 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-03T00:52:52.918Z","embedding":null,"createdAt":"2026-04-28T12:53:53.459Z","updatedAt":"2026-05-03T00:52:52.918Z","lastSeenAt":"2026-05-03T00:52:52.918Z","tsv":"'+1':60,122,555,1128,1394 '/99designs/gqlge':42 '/99designs/gqlgen':221,1197 '/99designs/gqlgen)':1405 '/99designs/gqlgen/issues.':1436 '/graph-gophers/graphql-go':235 '/graph-gophers/graphql-go)':1412 '/graph-gophers/graphql-go/issues.':1456 '/graphql-go':1409,1449 '/graphql-go/graphql':247 '/graphql/connections.htm)':1419 '/references/gqlgen.md':309,686,790,1292 '/references/graphql-go.md':315,884,1304 '/references/testing.md':1312 '1':536,698,963,1020 '10':351,1095,1098 '100':267 '2':709 '200':1071 'access':56 'across':608,659,785 'add':845 'agent':91,117 'allow':1105 'allow-list':1104 'alongsid':440 'alreadi':832 'also':34 'alway':339,378,928,977,1272 'always-requir':1271 'api':6,200 'apollo':260 'appli':15,35 'approach':212 'apq':1113 'arbitrari':1117 'array':448 'attach':877 'attack':1226 'audit':107 'authent':691 'authmiddlewar':731 'author':693,723,744,776,777 'autobind':1172 'avoid':253,416 'background':90 'bad':355,510,655,998 'base':176 'batch':54,568,588,670,1400 'behavior':1427,1444 'best':159,217 'bind':172 'bio':342 'block':1030 'break':361 'bug':1424,1441 'build':17,73,215,288 'busi':140,438 'cach':363,607,1152 'call':467,572,1141 'cancel':931 'cap':127,1233 'cascad':396 'case':985,990 'caus':395 'ch':959,976,993,996,1016,1028,1036,1265 'chan':956,961,1013,1018 'chang':1183 'channel':944 'check':715,1230,1279 'child':1131 'choic':210 'choos':175 'client':362,436,808,843,850,937,946,988,1003,1033,1250,1258,1275,1314 'client-sid':849 'close':943,975,978,1264 'coalesc':580 'code':104,196,249,847,865 'code-first':248 'codebas':38,110 'codegen':222,1293 'common':1120 'communiti':142 'compani':145 'compil':224,1188 'compile-tim':223 'complex':64,126,1232 'concern':517 'concurr':426 'connect':409,410,924,1415 'consid':1109 'context':930,1326,1329 'context.background':665 'context.context':486,523,708,819,953,1010 'context.withvalue':647,758 'context7':202 'convent':100 'cost':1073 'cpu':1055 'cpu/memory':1237 'creat':595,1157 'createus':484 'createuserpayload':451 'critic':590,926 'cross':614,1150,1320 'cross-refer':1319 'cross-request':1149 'cross-us':613 'ctx':485,494,522,530,646,654,757,765,818,887,952,1009 'ctx.done':986,1267 'current':199 'cursor':408,422,1414 'custom':811 'data':611,616,904,1154,1155,1274 'databas':55,1390,1399 'dataload':129,557,576,592,606,623,657,689,1146,1148,1158,1296,1398 'dataloadermiddlewar':627 'dataset':421 'db':571,628,645,666,1140,1242 'dedic':680 'deep':301,1288 'deep-div':300 'deepli':1051,1234 'default':143 'defer':974,1263 'deleg':477 'deliber':53 'design':20,51,317 'detail':360,815 'direct':711,771,1164,1299 'disciplin':927 'disconnect':936,947,989,1004,1259 'discover':207 'dive':302,1289 'document':194 'domain':466,469 'dos':1238 'driven':1357 'dynam':295 'edg':411 'edit':1162,1170 'email':331 'enabl':132,1219 'encount':1422,1439 'enforc':719 'engin':49 'env':1086,1229 'envelop':433 'environ':1083 'err':492,498,503,746,750,820,828,836,888 'error':384,439,447,454,490,527,791,797,821,841,852,896,906,914,958,1015,1243,1285,1339,1343 'errorpresent':812,1253 'errors.as':827 'es':1068 'everi':1063 'everywher':1280 'exampl':197 'exhaust':187,938,1054 'exist':30,95 'explicit':148,320,1045 'expos':1222,1246 'extens':846,861,878,1114 'extension.fixedcomplexitylimit':1070,1239 'extension.introspection':1089 'extract':701 'failur':397 'fast':243 'fatal':894 'feder':230,261,1297 'field':372,390,399,403,415,553,583,671,722,774,895,1200,1269 'field-level':773 'file':171 'fire':561 'first':167,250,349 'fix':1126 'float':1217 'float64':1215 'follow':82 'forc':678 'forev':1001,1031,1262 'forget':1178 'format':833 'formaterror':502 'found':860,867 'full':688,1223 'func':481,518,626,635,730,737,817,948,973,1005,1022 'gate':1076,1227 'generat':75,102,227,273,1167,1180,1198 'github.com':41,220,234,246,1196,1404,1411,1435,1455 'github.com/99designs/gqlge':40 'github.com/99designs/gqlgen':219,1195 'github.com/99designs/gqlgen)':1403 'github.com/99designs/gqlgen/issues.':1434 'github.com/graph-gophers/graphql-go':233 'github.com/graph-gophers/graphql-go)':1410 'github.com/graph-gophers/graphql-go/issues.':1454 'github.com/graphql-go/graphql':245 'global':128,603,605,656,1147 'globalload':663 'go':14,31,47,157,173,226,313,474,618,718,724,809,882,941,972,1021,1058,1166,1179,1193,1302 'golang':2,8,152,913,1325,1338,1351,1365,1377,1389 'golang-context':1324 'golang-databas':1388 'golang-error-handl':912,1337 'golang-graphql':1,151 'golang-observ':1364 'golang-secur':1376 'golang-test':1350 'gone':1034 'good':319,475,619,942 'gopher':282,871,1093,1204,1408,1448 'goroutin':934,971,999,1256,1260 'gqlerr':824,829,831 'gqlerror.error':822,825,856 'gqlerror.errorf':839 'gqlgen':10,258,307,668,684,712,767,788,810,890,1059,1112,1290,1313,1402,1429 'gqlgen.yml':676,1177,1295 'gqltest':1316 'graph':281,870,1092,1203,1407,1447 'graph-goph':280,869,1091,1202,1406,1446 'graphql':3,5,13,18,28,48,109,153,158,170,312,318,446,449,463,472,717,881,1042,1301 'graphql-go':12,311,716,880,1300 'graphql.adderror':886 'graphql.maxdepth':1094 'graphql.maxparallelism':1097 'grep':93 'hand':1169 'handl':24,792,853,915,1340 'handler':1065 'handler.newdefaultserver':1067 'har':1315 'hasrol':769 'help':204 'http':32,600,699,725 'http.error':752 'http.handler':631,632,733,734 'http.handlerfunc':634,736 'http.request':639,741 'http.responsewriter':637,739 'http.statusunauthorized':755 'httptest':1317 'id':322,329,330,357,366,524,535,537 'ident':706 'identifi':326 'implement':4,359,872 'import':39 'inject':1384 'input':464,487,1381 'input.email':495 'input.name':496 'instruct':87 'int':350,356,367,1199,1210 'int32':1208,1213 'integr':27,1359 'interfac':875,1185 'intern':796,806,814,835,840,1248 'introspect':131,1077,1218 'issu':1432,1452 'iter':244,980 'keep':458 'larg':228,266,420 'launch':88 'layer':480,696,727 'leak':358,799,933,1000,1156,1241,1257 'leakag':617 'level':775 'librari':163,191,209,211,305,729,1206 'limit':65,1046 'list':414,1106 'live':779,922 'load':584 'loader':640,641,650 'loaderskey':649 'log':834 'logic':141 'long':921 'long-liv':920 'major':162 'make':960,1017 'map':862,1309 'mark':370,669,1281 'matter':1125 'max':1072 'may':345 'memori':1057 'messag':801,844,857 'messagead':951,1008 'method':682 'metric':1371 'middlewar':601,625,700,726,1161 'mismatch':1186 'miss':125 'mistak':1121,1122 'mode':72,74,106 'model':697,1174,1175,1307 'model.createuserinput':488 'model.createuserpayload':489,505 'model.message':957,962,1014,1019 'model.user':526 'models_gen.go':1163 'monolith':549 'msg':991,994,1024,1029 'must':593,1276 'mutat':428 'mutationresolv':483 'n':59,121,554,570,574,1127,1139,1240,1393 'name':99 'need':298 'nest':1052,1235 'never':602,793 'new':76,103 'newpostsbyuseridload':643,664 'next':630,732,1165 'next.servehttp':651,762 'nil':499,501,509,751,855,997,1037 'non':68,334,388,893,1081 'non-fat':892 'non-nul':333,387 'non-opt':67 'non-product':1080 'none':240,252 'null':335,389,391,401,1278 'null-check':1277 'nullabl':321,344,368,398,1268 'o':569,1138 'object':394 'observ':1366 'offici':193 'offset':417 'one':548,1133 'opaqu':325 'open':1430,1450 'option':69,1099 'os.getenv':1085 'output':473 'overhead':278 'pageinfo':412 'pagin':405,418 'parallel':136 'parent':393,1136 'pars':238 'parse-tim':237 'parseschema':1101 'partial':441,903 'pattern':97,124,457,908,1318,1347,1361,1396 'per':540,565,582,597,621,721,935,1074,1135,1144 'per-field':581,720 'per-request':596,620,1143 'per-typ':539 'perform':1038 'persist':1110 'persona':43 'pick':257,279 'pipelin':289 'platform':208 'polici':778 'pollut':444 'post':348,365 'postconnect':354 'postresolv':545 'postsbyuserid':642 'potenti':612 'pr':112 'practic':160 'preced':156 'prefer':182 'prevent':58,556,1385 'product':71,134,1041,1064,1082,1087,1108,1221 'project':178 'propag':1330 'queri':63,564,589,1053,1075,1103,1111,1118,1129,1236,1395 'queryresolv':520 'r':482,519,638,740,949,1006 'r.context':644,648,759 'r.db.queryrowcontext':529 'r.header.get':743 'r.pubsub.subscribe':965,1026 'r.userservice.create':493 'r.withcontext':653,764 'rang':1025 'rather':546 'raw':795 're':1191 're-run':1190 'read':138 'receiv':437 'refer':188,308,314,685,789,883,1291,1303,1321,1401 'reflect':236,277,1305 'reject':1116 'relay':407,1413 'relay.dev':1418 'relay.dev/graphql/connections.htm)':1417 'request':598,609,622,661,1145,1151,1160 'requir':263,1044,1207,1273 'resolv':23,78,96,123,174,383,456,459,476,513,542,550,560,673,681,714,786,899,1132,1184,1205,1245,1287,1306,1332,1373 'resolvererror':874,1254 'resourc':939 'respect':929 'respons':470 'result':430,442 'return':340,379,500,504,633,735,756,794,830,838,854,902,987,995,1035,1284 'review':105 'room':954,966,1011,1027 'row':528,1137 'rule':369,591 'run':1192,1194,1261 'runtim':251 'safe':842 'safeti':214,1040 'samber/cc-skills-golang':150,911,1323,1336,1349,1363,1375,1387 'scalar':323,1211 'scan':119 'scatter':784 'schema':21,52,77,166,229,242,264,284,296,316,710,770,782,1182,1224,1283 'schema-first':165 'sdl':169,256 'secur':1378 'see':306,683,787,879,909,1322,1335,1348,1362,1374,1386 'select':531,984,1266 'sentinel':1346 'separ':515 'sequenti':86 'server':19,80,337,376,1043 'servic':33,479,805 'setup':81 'share':658 'side':851 'signal':979 'signatur':201 'silent':940 'simpl':241,292 'singl':587,1050 'size':179 'skill':84,146,154,184,916,1327,1341,1353,1367,1379,1391 'skill-golang-graphql' 'small/medium':286 'solv':577 'source-samber' 'spec':1416 'sql':511,563,800,1134,1247 'sql.db':629 'srv':1066 'srv.seterrorpresenter':816 'srv.use':1069,1088 'stabl':424 'stack':802 'stale':610,1153 'stash':705 'stay':291 'step':216 'still':901 'stop':982 'strict':231 'string':332,343,353,525,863,955,1012,1119 'strip':813 'struct':543 'stub':274 'sub':116,964,992 'sub-ag':115 'subscrib':967 'subscript':25,917,918,1255,1334 'subscriptionresolv':950,1007 'supersed':149 'tabl':1356 'table-driven':1355 'take':155 'team':181,271 'test':1311,1352,1360 'thin':460 'time':225,239,1102,1189 'togqlus':507 'token':704,742,748 'topic-agent' 'topic-agent-skills' 'topic-antigravity' 'topic-claude' 'topic-claude-code' 'topic-code' 'topic-codex' 'topic-coding' 'topic-copilot' 'topic-cursor' 'topic-gemini' 'topic-gemini-cli-extension' 'trace':803,1310,1369 'translat':462 'treat':62 'true':674 'two':695 'two-lay':694 'type':213,232,268,327,364,434,450,541,1308 'unauthor':754 'unexpect':1426,1443 'unset':347 'use':9,113,406,538,768,885,919,1142,1171,1212 'user':328,452,453,491,506,508,521,533,566,575,615,745,761,858 'user.posts':559 'usererror':455 'userkey':760 'userresolv':544 'v2':1298 'valid':703,1382 'validatetoken':747 'valu':381 'var':662,823 'verbos':254 'w':636,652,738,753,763 'want':272 'websocket':923 'wipe':1168 'wire':690,1060 'without':443,567,1047 'workflow':1294 'wrap':429,907,1251,1344 'write':22,168,427 'zero':276","prices":[{"id":"b728f587-fef5-417d-ac63-1a4e52204bfa","listingId":"c305eff0-4d8f-46b0-9d43-a1b8813f46b4","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"samber","category":"cc-skills-golang","install_from":"skills.sh"},"createdAt":"2026-04-28T12:53:53.459Z"}],"sources":[{"listingId":"c305eff0-4d8f-46b0-9d43-a1b8813f46b4","source":"github","sourceId":"samber/cc-skills-golang/golang-graphql","sourceUrl":"https://github.com/samber/cc-skills-golang/tree/main/skills/golang-graphql","isPrimary":false,"firstSeenAt":"2026-04-28T12:53:53.459Z","lastSeenAt":"2026-05-03T00:52:52.918Z"}],"details":{"listingId":"c305eff0-4d8f-46b0-9d43-a1b8813f46b4","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"samber","slug":"golang-graphql","github":{"repo":"samber/cc-skills-golang","stars":1478,"topics":["agent","agent-skills","ai","antigravity","claude","claude-code","code","codex","coding","copilot","cursor","gemini","gemini-cli-extension","openclaw","opencode","plugin","skills","skillsmp","vibe-coding"],"license":"mit","html_url":"https://github.com/samber/cc-skills-golang","pushed_at":"2026-05-01T15:51:26Z","description":"🧑‍🎨 A collection of Golang agentic skills that works","skill_md_sha":"464f46776000f59f6e48e9ebf27e55975c52a301","skill_md_path":"skills/golang-graphql/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/samber/cc-skills-golang/tree/main/skills/golang-graphql"},"layout":"multi","source":"github","category":"cc-skills-golang","frontmatter":{"name":"golang-graphql","license":"MIT","description":"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`.","compatibility":"Designed for Claude Code or similar AI coding agents, and for projects using Golang."},"skills_sh_url":"https://skills.sh/samber/cc-skills-golang/golang-graphql"},"updatedAt":"2026-05-03T00:52:52.918Z"}}