---
name: "graphql-yoga-envelop-plugins"
description: "Build standards-compliant GraphQL servers with Envelop plugin extensibility and subscriptions."
metadata:
  author: "The Guild"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "create graphql yoga server"
  - "graphql subscriptions sse yoga"
  - "envelop plugins graphql"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# GraphQL Yoga Server & Envelop Plugin Ecosystem

Configures GraphQL Yoga: writing schema definitions with GraphQL SDL, resolving queries and mutations, Server-Sent Events (SSE) subscriptions, integrating Envelop plugins (rate-limiting, response caching, armor security).

## When to Invoke
Invoke this skill whenever you need to:
- create graphql yoga server
- graphql subscriptions sse yoga
- envelop plugins graphql

## Execution SOP & Rules
1. Create server instance: const yoga = createYoga({ schema, plugins: [useResponseCache(), useRateLimiter()] }).
2. Define schema: const schema = createSchema({ typeDefs: '...', resolvers: { ... } }).
3. Use in any environment: pass yoga.fetch directly to Node http.createServer, Next.js routes, or Cloudflare Workers.
4. Enforce query depth limits to mitigate denial-of-service vulnerabilities.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
