Skip to content
Back to skills

Graphql Patterns

ASecurity

GraphQL client patterns for operations, fragments, the codegen client preset, and Apollo Client 4. Load before any edit to a .graphql or .gql file, however small, or for GraphQL questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 5, 2026
ai-agentstypescriptgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill graphql-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Graphql Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Graphql Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-graphql-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-graphql-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: graphql-patterns
description: GraphQL client patterns for operations, fragments, the codegen client preset, and Apollo Client 4. Load before any edit to a .graphql or .gql file, however small, or for GraphQL questions.
---

# GraphQL patterns

Default assumption: a TypeScript client on Apollo Client 4.3, typed by GraphQL Code Generator's `typescript-operations`, per the Apollo Client releases on GitHub.

A row applies when the version of its package (`@apollo/client`, `@graphql-codegen/*`, or `graphql`) in the project's `package.json` and lockfile is at least its version. Rules on operations, variables, and fragments hold for every client: Apollo, urql, graphql-request.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                                     | Read                                                     |
| ------------------------------------------------------------------------------------------ | -------------------------------------------------------- |
| Writing Apollo Client or codegen code, or raising their versions                           | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing GraphQL client code                                        | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Writing an operation, a fragment, a cache policy, a link, a test mock, or `codegen.ts`     | [reference/practices.md](reference/practices.md)         |
| Configuring or running graphql-eslint, codegen's validation, or TypeScript on GraphQL code | [reference/tooling.md](reference/tooling.md)             |

Files in this skill

  • SKILL.md2.9 KB
  • reference/anti-patterns.md2.2 KB
  • reference/apollo-client.md3 KB
  • reference/codegen.md1.8 KB
  • reference/documents.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.