Backend Graphql Patterns

Use when the user asks about GraphQL schema design, resolvers, fixing N+1 queries in GraphQL resolvers, DataLoader, cursor pagination, query depth/complexity limits or persisted queries. Produces schema and resolver code. Not for subgraph composition (use api-graphql-federation).

45 stars 6 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill backend-graphql-patterns
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/backend/universal/graphql-patterns ~/.claude/skills/backend-graphql-patterns

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Backend GraphQL Patterns

## Purpose
Design production GraphQL schemas with resolvers, DataLoader batching, and auth.

## Agent Protocol

### Trigger
Exact user phrases: "GraphQL", "schema", "resolver", "query", "mutation", "subscription", "Apollo", "Relay", "GraphQL federation", "GraphQL gateway", "data loader", "N+1 GraphQL", "GraphQL authorization", "GraphQL pagination", "GQL schema design", "GraphQL error handling".

### Input Context
Before activating, verify:
- Schema size (number of types, depth of nesting)
- Data sources (primary database, REST APIs, gRPC services, external APIs)
- Authentication and authorization model (RBAC, ABAC, claims-based)
- Client types consuming the API (web SPA, mobile native, third-party, internal services)

### Output Artifact
GraphQL schema design with resolver patterns and DataLoader setup as formatted text.

### Response Format
```graphql
# Schema types, queries, mutations
```
```typescript
// DataLoader setup
// Resolver patterns
// Auth directive definitions
```
```yaml
# Query complexity limits
# Rate limiting rules
```

No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.

### Completion Criteria
- [ ] Schema defined with types, queries, mutations, subscriptions
- [ ] N+1 query prevention via DataLoader batching
- [ ] Auth directives (@auth, @hasRole) applied to schema
- [ ] Pagination implemented as cursor-based (Relay edges/node pattern)
Read the full skill on GitHub

Details

Skill name
backend-graphql-patterns
Path
skills/backend/universal/graphql-patterns/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the Backend Graphql Patterns skill do?

Use when the user asks about GraphQL schema design, resolvers, fixing N+1 queries in GraphQL resolvers, DataLoader, cursor pagination, query depth/complexity limits or persisted queries. Produces schema and resolver code. Not for subgraph composition (use api-graphql-federation).

How do I install the Backend Graphql Patterns skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill backend-graphql-patterns. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Backend Graphql Patterns popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

Backend Grpc Patterns

45

j4flmao/agent-skills

Use when the user asks about gRPC, protobuf messages and a gRPC service, unary or streaming RPCs, deadlines, interceptors, gRPC status codes or proto evolution with reserved fields. Produces .proto definitions and server/client code. Not for REST design (use backend-api-design).

Software Development

Backend File Storage

45

j4flmao/agent-skills

Use when the user asks about file uploads, S3 presigned URLs, direct-to-storage uploads, object keys, Azure Blob or GCS, CDN delivery of files, virus scanning or lifecycle policies. Produces an upload and storage design with validation. Not for CSV data imports (use backend-bulk-import).

Software Development

Backend Idempotency

45

j4flmao/agent-skills

Use when the user asks about idempotency keys, a payment endpoint that charges twice when the client retries, safe retries, duplicate requests or deduplication. Produces an idempotency-key store and middleware. Not for message consumer dedupe in brokers (use backend-message-queue) or locks (use backend-distributed-locking).

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.