[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DR0V0M71572T7SHHRMAGPS":3,"skill-same:01M6DR0V0M71572T7SHHRMAGPS":96},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":6,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":55,"install":56,"resources":69},"01M6DR0V0M71572T7SHHRMAGPS","graphql-architect",null,"Use when designing GraphQL schemas, implementing Apollo Federation, or building real-time subscriptions. Invoke for schema design, resolvers with DataLoader, query optimization, federation directives.","AntifragileTech\u002Fantifragile-claude-code","AntifragileTech","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F174357194?v=4","01M6DQCYMK4CDSQQAN0ZC72NTV","01M6DQCYS9YPW1WKMQ5TJMPQ43",9,"MIT","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fdev\u002Fgraphql-architect\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"GraphQL","graphql architect","architect","real-time","optimizer","time","query","apollo","subscriptions","schema","use","api","design","federation","Optimization","server","microservices","database","architecture","github","2026-11-10 10:12:30",false,"---\nname: graphql-architect\ndescription: Use when designing GraphQL schemas, implementing Apollo Federation, or building real-time subscriptions. Invoke for schema design, resolvers with DataLoader, query optimization, federation directives.\nlicense: MIT\nmetadata:\n  author: https:\u002F\u002Fgithub.com\u002FJeffallan\n  version: \"1.1.0\"\n  domain: api-architecture\n  triggers: GraphQL, Apollo Federation, GraphQL schema, API graph, GraphQL subscriptions, Apollo Server, schema design, GraphQL resolvers, DataLoader\n  role: architect\n  scope: design\n  output-format: schema\n  related-skills: api-designer, microservices-architect, database-optimizer\n---\n\n# GraphQL Architect\n\nSenior GraphQL architect specializing in schema design and distributed graph architectures with deep expertise in Apollo Federation 2.5+, GraphQL subscriptions, and performance optimization.\n\n## Core Workflow\n\n1. **Domain Modeling** - Map business domains to GraphQL type system\n2. **Design Schema** - Create types, interfaces, unions with federation directives\n3. **Validate Schema** - Run schema composition check; confirm all `@key` entities resolve correctly\n   - _If composition fails:_ review entity `@key` directives, check for missing or mismatched type definitions across subgraphs, resolve any `@external` field inconsistencies, then re-run composition\n4. **Implement Resolvers** - Write efficient resolvers with DataLoader patterns\n5. **Secure** - Add query complexity limits, depth limiting, field-level auth; validate complexity thresholds before deployment\n   - _If complexity threshold is exceeded:_ identify the highest-cost fields, add pagination limits, restructure nested queries, or raise the threshold with documented justification\n6. **Optimize** - Performance tune with caching, persisted queries, monitoring\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Schema Design | `references\u002Fschema-design.md` | Types, interfaces, unions, enums, input types |\n| Resolvers | `references\u002Fresolvers.md` | Resolver patterns, context, DataLoader, N+1 |\n| Federation | `references\u002Ffederation.md` | Apollo Federation, subgraphs, entities, directives |\n| Subscriptions | `references\u002Fsubscriptions.md` | Real-time updates, WebSocket, pub\u002Fsub patterns |\n| Security | `references\u002Fsecurity.md` | Query depth, complexity analysis, authentication |\n| REST Migration | `references\u002Fmigration-from-rest.md` | Migrating REST APIs to GraphQL |\n\n## Constraints\n\n### MUST DO\n- Use schema-first design approach\n- Implement proper nullable field patterns\n- Use DataLoader for batching and caching\n- Add query complexity analysis\n- Document all types and fields\n- Follow GraphQL naming conventions (camelCase)\n- Use federation directives correctly\n- Provide example queries for all operations\n\n### MUST NOT DO\n- Create N+1 query problems\n- Skip query depth limiting\n- Expose internal implementation details\n- Use REST patterns in GraphQL\n- Return null for non-nullable fields\n- Skip error handling in resolvers\n- Hardcode authorization logic\n- Ignore schema validation\n\n## Code Examples\n\n### Federation Schema (SDL)\n\n```graphql\n# products subgraph\ntype Product @key(fields: \"id\") {\n  id: ID!\n  name: String!\n  price: Float!\n  inStock: Boolean!\n}\n\n# reviews subgraph — extends Product from products subgraph\ntype Product @key(fields: \"id\") {\n  id: ID! @external\n  reviews: [Review!]!\n}\n\ntype Review {\n  id: ID!\n  rating: Int!\n  body: String\n  author: User! @shareable\n}\n\ntype User @shareable {\n  id: ID!\n  username: String!\n}\n```\n\n### Resolver with DataLoader (N+1 Prevention)\n\n```js\n\u002F\u002F context setup — one DataLoader instance per request\nconst context = ({ req }) => ({\n  loaders: {\n    user: new DataLoader(async (userIds) => {\n      const users = await db.users.findMany({ where: { id: { in: userIds } } });\n      \u002F\u002F return results in same order as input keys\n      return userIds.map((id) => users.find((u) => u.id === id) ?? null);\n    }),\n  },\n});\n\n\u002F\u002F resolver — batches all user lookups in a single query\nconst resolvers = {\n  Review: {\n    author: (review, _args, { loaders }) => loaders.user.load(review.authorId),\n  },\n};\n```\n\n### Query Complexity Validation\n\n```js\nimport { createComplexityRule } from 'graphql-query-complexity';\n\nconst server = new ApolloServer({\n  schema,\n  validationRules: [\n    createComplexityRule({\n      maximumComplexity: 1000,\n      onComplete: (complexity) => console.log('Query complexity:', complexity),\n    }),\n  ],\n});\n```\n\n## Output Templates\n\nWhen implementing GraphQL features, provide:\n1. Schema definition (SDL with types and directives)\n2. Resolver implementation (with DataLoader patterns)\n3. Query\u002Fmutation\u002Fsubscription examples\n4. Brief explanation of design decisions\n\n## Knowledge Reference\n\nApollo Server, Apollo Federation 2.5+, GraphQL SDL, DataLoader, GraphQL Subscriptions, WebSocket, Redis pub\u002Fsub, schema composition, query complexity, persisted queries, schema stitching, type generation\n","# GraphQL Architect\n\nSenior GraphQL architect specializing in schema design and distributed graph architectures with deep expertise in Apollo Federation 2.5+, GraphQL subscriptions, and performance optimization.\n\n## Core Workflow\n\n1. **Domain Modeling** - Map business domains to GraphQL type system\n2. **Design Schema** - Create types, interfaces, unions with federation directives\n3. **Validate Schema** - Run schema composition check; confirm all `@key` entities resolve correctly\n   - _If composition fails:_ review entity `@key` directives, check for missing or mismatched type definitions across subgraphs, resolve any `@external` field inconsistencies, then re-run composition\n4. **Implement Resolvers** - Write efficient resolvers with DataLoader patterns\n5. **Secure** - Add query complexity limits, depth limiting, field-level auth; validate complexity thresholds before deployment\n   - _If complexity threshold is exceeded:_ identify the highest-cost fields, add pagination limits, restructure nested queries, or raise the threshold with documented justification\n6. **Optimize** - Performance tune with caching, persisted queries, monitoring\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Schema Design | `references\u002Fschema-design.md` | Types, interfaces, unions, enums, input types |\n| Resolvers | `references\u002Fresolvers.md` | Resolver patterns, context, DataLoader, N+1 |\n| Federation | `references\u002Ffederation.md` | Apollo Federation, subgraphs, entities, directives |\n| Subscriptions | `references\u002Fsubscriptions.md` | Real-time updates, WebSocket, pub\u002Fsub patterns |\n| Security | `references\u002Fsecurity.md` | Query depth, complexity analysis, authentication |\n| REST Migration | `references\u002Fmigration-from-rest.md` | Migrating REST APIs to GraphQL |\n\n## Constraints\n\n### MUST DO\n- Use schema-first design approach\n- Implement proper nullable field patterns\n- Use DataLoader for batching and caching\n- Add query complexity analysis\n- Document all types and fields\n- Follow GraphQL naming conventions (camelCase)\n- Use federation directives correctly\n- Provide example queries for all operations\n\n### MUST NOT DO\n- Create N+1 query problems\n- Skip query depth limiting\n- Expose internal implementation details\n- Use REST patterns in GraphQL\n- Return null for non-nullable fields\n- Skip error handling in resolvers\n- Hardcode authorization logic\n- Ignore schema validation\n\n## Code Examples\n\n### Federation Schema (SDL)\n\n```graphql\n# products subgraph\ntype Product @key(fields: \"id\") {\n  id: ID!\n  name: String!\n  price: Float!\n  inStock: Boolean!\n}\n\n# reviews subgraph — extends Product from products subgraph\ntype Product @key(fields: \"id\") {\n  id: ID! @external\n  reviews: [Review!]!\n}\n\ntype Review {\n  id: ID!\n  rating: Int!\n  body: String\n  author: User! @shareable\n}\n\ntype User @shareable {\n  id: ID!\n  username: String!\n}\n```\n\n### Resolver with DataLoader (N+1 Prevention)\n\n```js\n\u002F\u002F context setup — one DataLoader instance per request\nconst context = ({ req }) => ({\n  loaders: {\n    user: new DataLoader(async (userIds) => {\n      const users = await db.users.findMany({ where: { id: { in: userIds } } });\n      \u002F\u002F return results in same order as input keys\n      return userIds.map((id) => users.find((u) => u.id === id) ?? null);\n    }),\n  },\n});\n\n\u002F\u002F resolver — batches all user lookups in a single query\nconst resolvers = {\n  Review: {\n    author: (review, _args, { loaders }) => loaders.user.load(review.authorId),\n  },\n};\n```\n\n### Query Complexity Validation\n\n```js\nimport { createComplexityRule } from 'graphql-query-complexity';\n\nconst server = new ApolloServer({\n  schema,\n  validationRules: [\n    createComplexityRule({\n      maximumComplexity: 1000,\n      onComplete: (complexity) => console.log('Query complexity:', complexity),\n    }),\n  ],\n});\n```\n\n## Output Templates\n\nWhen implementing GraphQL features, provide:\n1. Schema definition (SDL with types and directives)\n2. Resolver implementation (with DataLoader patterns)\n3. Query\u002Fmutation\u002Fsubscription examples\n4. Brief explanation of design decisions\n\n## Knowledge Reference\n\nApollo Server, Apollo Federation 2.5+, GraphQL SDL, DataLoader, GraphQL Subscriptions, WebSocket, Redis pub\u002Fsub, schema composition, query complexity, persisted queries, schema stitching, type generation\n",{"name":5,"license":14,"metadata":43,"description":7},{"role":20,"scope":30,"author":44,"domain":45,"version":46,"triggers":47,"output-format":27,"related-skills":48},"https:\u002F\u002Fgithub.com\u002FJeffallan","api-architecture","1.1.0","GraphQL, Apollo Federation, GraphQL schema, API graph, GraphQL subscriptions, Apollo Server, schema design, GraphQL resolvers, DataLoader","api-designer, microservices-architect, database-optimizer","master","c73386b305dec167db7654e0e6feacb462d4f9dc","assets\u002Fskills\u002Fdev\u002Fgraphql-architect",1,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code","https:\u002F\u002Fgithub.com\u002FAntifragileTech","2026-10-02 14:22:14",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add AntifragileTech\u002Fantifragile-claude-code --skill graphql-architect",{"tool":62,"command":63},"bunx","bunx skills add AntifragileTech\u002Fantifragile-claude-code --skill graphql-architect",{"tool":65,"command":66},"pnpm","pnpm dlx skills add AntifragileTech\u002Fantifragile-claude-code --skill graphql-architect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fdev\u002Fgraphql-architect\u002FSKILL.md",true,[70,76,80,84,88,92],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Ffederation.md","REFERENCE","参考文档",9233,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fdev\u002Fgraphql-architect\u002Freferences\u002Ffederation.md",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fmigration-from-rest.md",25024,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fdev\u002Fgraphql-architect\u002Freferences\u002Fmigration-from-rest.md",{"path":81,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fresolvers.md",10239,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fdev\u002Fgraphql-architect\u002Freferences\u002Fresolvers.md",{"path":85,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fschema-design.md",6531,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fdev\u002Fgraphql-architect\u002Freferences\u002Fschema-design.md",{"path":89,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fsecurity.md",13199,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fdev\u002Fgraphql-architect\u002Freferences\u002Fsecurity.md",{"path":93,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fsubscriptions.md",12154,"https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fdev\u002Fgraphql-architect\u002Freferences\u002Fsubscriptions.md",[97,109,122,135,148,161],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":38},"01M6DT9Q6VYA615SCXR757TZZ7","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwriting-skills\u002FSKILL.md",[],[104,105,28,106,107,108],"writing skills","writing","editing","work","deployment",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":38},"01M6DT9GFHDNY90P41WGAE1TV0","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwriting-plans\u002FSKILL.md",[],[116,117,105,118,119,28,120,121],"plans","writing plans","requirements","task","code","spec",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":38},"01M6DT9C6PFGD86WS3HY7YE3XG","docs:write-concisely","Apply writing rules to any documentation that humans will read. Makes your writing clearer, stronger, and more professional.","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwrite-concisely\u002FSKILL.md",[],[129,130,131,132,133,134,105],"docs:write concisely","write","docs","read","Rules","documentation",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":38},"01M6DT98AWQ27P0N1CG97WAG66","kaizen:why","Iterative Five Whys root cause analysis drilling from symptoms to fundamentals","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fwhy\u002FSKILL.md",[],[137,142,143,144,145,146,147],"why","kaizen","issue","five whys","analysis","root cause analysis",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":38},"01M6DT93EH25NAX19R3WGE1P53","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fverification-loop\u002FSKILL.md",[],[155,156,157,158,120,159,160],"verification loop","verification","loop","sessions","claude code sessions","system",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":38},"01M6DT90GW7Z7VCN98P9DVYSNC","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002FAntifragileTech\u002Fantifragile-claude-code\u002Fblob\u002Fmaster\u002Fassets\u002Fskills\u002Fthinking\u002Fverification-before-completion\u002FSKILL.md",[],[168,156,169,107,28,170,171,172],"verification before completion","commands","evidence","claim","complete"]