LaunchKit · 2026

Setup & Installation

npx skills add https://github.com/apollographql/skills --skill graphql-operations
or paste the link and ask your coding assistant to install it
https://github.com/apollographql/skills/tree/main/skills/graphql-operations
View on GitHub

What This Skill Does

A guide for writing GraphQL queries, mutations, and subscriptions that follow established conventions. Covers operation naming, fragment organization, variable usage, conditional directives, and colocating fragments with UI components. Works with any GraphQL client.

Keeps your GraphQL operations consistent and avoids common mistakes like over-fetching, anonymous queries, or duplicated field selections that make a codebase harder to maintain.

When to use it

  • Writing a new query that fetches only the fields a specific component needs
  • Refactoring duplicate field selections into shared fragments
  • Setting up operation naming conventions across a team's GraphQL codebase
  • Reviewing a mutation for proper variable usage and input typing
  • Organizing fragment definitions so they stay next to the components that use them