Petrovc AI Agent Kit GRAPHQL

GraphQL Skill

tomevault-io Updated

File contents

GraphQL Skill

Goal

Implement correct, performant, and evolvable GraphQL APIs. The schema is the contract — design it for consumers, not for the database.

Quick reference

Concept Best practice
Schema Design schema first, use descriptive names, avoid breaking changes
N+1 Problem Always use DataLoaders for batching child entity resolution
Security Disable introspection in production, enforce query depth & cost limits
Client Use codegen for frontend types, use variables for dynamic inputs
Validation Validate query syntax, variables, and custom scalar inputs

Full guidance

Extended how-to, patterns, anti-patterns, and checklists: SKILL.deep.md


Source: PetrovC/ai-agent-kit — distributed by TomeVault.

tomevault-io/skills-registry/tree/main/petrovc--ai-agent-kit--graphql commit 1f60977814

Frequently asked questions

npx skillmds@latest add tomevault-io/petrovc-ai-agent-kit-graphql