apollo-client
Guide for building React applications with Apollo Client 4.x. Use this skill when: (1) setting up Apollo Client in a React…
Guide for designing and changing GraphQL schemas following industry best practices. Use this skill whenever you create or edit GraphQL SDL, such as a `schema.graphql` file or `typeDefs`, including when: (1) designing a new GraphQL schema or API, (2) adding or changing types,
Claude Code
$ npx -y skills add apollographql/skills --skill graphql-schema --agent claude-code
Codex
$ npx skills add apollographql/skills --skill graphql-schema -a codex -y
Cursor
$ npx skills add apollographql/skills --skill graphql-schema -a cursor -y
Gemini CLI
$ npx skills add apollographql/skills --skill graphql-schema -a gemini-cli -y
GitHub Copilot
$ npx skills add apollographql/skills --skill graphql-schema -a github-copilot -y
OpenCode
$ npx skills add apollographql/skills --skill graphql-schema -a opencode -y
Windsurf
$ npx skills add apollographql/skills --skill graphql-schema -a windsurf -y
name: graphql-schema description: > Guide for designing and changing GraphQL schemas following industry best practices. Use this skill whenever you create or edit GraphQL SDL, such as a `schema.graphql` file or `typeDefs`, including when: (1) designing a new GraphQL schema or API, (2) adding or changing types, fields, arguments, mutations, or descriptions in an existing schema, (3) reviewing existing schema for improvements, (4) deciding on type structures or nullability, (5) implementing pagination or error patterns, (6) ensuring security in schema design. license: MIT compatibility: Any GraphQL implementation (Apollo Server, graphql-js, Yoga, etc.) metadata: author: apollographql version: "1.0.2" allowed-tools: Bash(npm:*) Bash(npx:*) Read Write Edit Glob Grep
This guide covers best practices for designing GraphQL schemas that are intuitive, performant, and maintainable. Schema design is primarily a server-side concern that directly impacts API usability.
"""
A user in the system.
"""
type User {
id: ID!
email: String!
name: String
posts(first: Int = 10, after: String): PostConnection!
createdAt: DateTime!
}| Pattern | Meaning | |---------|---------| | String | Nullable - may be null | | String! | Non-null - always has value | | [String] | Nullable list, nullable items | | [String!] | Nullable list, non-null items | | [String]! | Non-null list, nullable items | | [String!]! | Non-null list, non-null items |
**Best Practice:** Use **[Type!]!** for lists - empty list over null, no null items.
# Output type - what clients receive
type User {
id: ID!
email: String!
createdAt: DateTime!
}
# Input type - what clients send
input CreateUserInput {
email: String!
name: String
}
# Mutation using input type
type Mutation {
createUser(input: CreateUserInput!): User!
}interface Node {
id: ID!
}
type User implements Node {
id: ID!
email: String!
}
type Post implements Node {
id: ID!
title: String!
}union SearchResult = User | Post | Comment
type Query {
search(query: String!): [SearchResult!]!
}Detailed documentation for specific topics:
A collection of skills for AI coding agents working with Apollo GraphQL tools and technologies. Apollo Skills follow the Agent Skills format and are available on skills.sh.
Guide for building React applications with Apollo Client 4.x. Use this skill when: (1) setting up Apollo Client in a React…
DEPRECATED: superseded by the graphos-factory skill (npx skills add apollographql/skills@graphos-factory), which builds and…
Guide for authoring Apollo Federation subgraph schemas. Use this skill when: (1) creating new subgraph schemas for a federated…
Guide for building Apple-platform applications with Apollo iOS, the strongly-typed GraphQL client for Swift. Use this skill when:…
Guide for building applications with Apollo Kotlin, the GraphQL client library for Android and Kotlin. Use this skill when: (1)…
Guide for using Apollo MCP Server to connect AI agents with GraphQL APIs. Use this skill when: (1) setting up or configuring…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.