skill-security-graphql

Enforce depth limits, complexity analysis, and introspection controls on GraphQL APIs.

4|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/ryan-nguyen-01/agent-platform --skill skill-security-graphql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-security-graphql
Source: https://github.com/ryan-nguyen-01/agent-platform/tree/main/.claude/skills/skill-security-graphql
Command: npx skills add https://github.com/ryan-nguyen-01/agent-platform --skill skill-security-graphql

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Protect GraphQL APIs from query-based attacks by enforcing depth limits, complexity analysis, and introspection controls.

Core Features & Use Cases

  • Depth limiting to prevent deeply nested queries from causing server overload.
  • Complexity analysis to estimate and cap query cost.
  • Introspection control to disable or restrict schema discovery in production.
  • Batch request prevention and rate limiting per operation.
  • Support for persisted queries to solidify pre-registered workloads.

Quick Start

Configure your GraphQL server to enable depth limiting, complexity analysis, introspection control, rate limiting, and persisted queries to mitigate common attack vectors.

Frequently Asked Questions about skill-security-graphql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I protect my GraphQL API from query-based attacks?

Protect GraphQL APIs from query-based attacks by enforcing depth limits, complexity analysis, introspection controls, and rate limiting to prevent server overload and schema discovery abuse.

How do I prevent deeply nested queries from overloading a GraphQL server?

Prevent deeply nested GraphQL queries from overloading your server by applying depth limiting using a library like graphql-depth-limit to cap query nesting levels.

What is the best way to cap expensive GraphQL query costs?

Cap expensive GraphQL query costs by implementing complexity analysis with graphql-query-complexity to estimate and limit the computational cost of incoming operations.

Should I disable GraphQL introspection in production environments?

Disable or restrict GraphQL introspection in production to prevent malicious actors from discovering your schema structure and mapping potential attack vectors against your API.

Can I apply per-operation rate limiting to GraphQL batch requests?

Apply per-operation rate limiting and batch request prevention to GraphQL APIs to stop clients from sending large batches of operations that could overwhelm server resources.

Do I need persisted queries to solidify GraphQL workloads?

Use persisted queries to solidify pre-registered GraphQL workloads, ensuring only approved queries execute and reducing the attack surface for dynamic query injection.