proflead

graphql-query-optimizer

Optimize GraphQL queries and resolvers for performance. Use when a mid-level developer needs to reduce N+1 or payload size.

proflead 106 22 Updated 4mo ago
GitHub

Install

npx skillscat add proflead/codex-skills-library/graphql-query-optimizer

Install via the SkillsCat registry.

SKILL.md

GraphQL Query Optimizer

Purpose

Optimize GraphQL queries and resolvers for performance.

Inputs to request

  • Slow query or resolver traces.
  • Schema and resolver stack.
  • Performance targets or budgets.

Workflow

  1. Identify resolver hotspots and query depth.
  2. Suggest batching, caching, or pagination.
  3. Recommend schema or query adjustments.

Output

  • Optimization plan with example changes.

Quality bar

  • Prioritize fixes with measurable impact.
  • Avoid breaking schema changes without migration.