graphql-api-review
Skill1 starsChanged 33 days agoMITView on GitHub
Review GraphQL APIs for authorization, abuse resistance and performance — field-level authorization, query depth and cost limits, introspection in production, batching, N+1 resolvers and schema evolution. Use when building or reviewing a GraphQL server or gateway.
In this repository105 other files it gives its agents.
- AGENTS.mdAGENTS.md
- instructions/AGENTS.mdAGENTS.md
- accessibility-reviewSkill
- agent-evaluationSkill
- agent-guardrailsSkill
- agenthub-routerSkill
- ai-red-teamingSkill
- ansible-reviewSkill
- api-designSkill
- api-integrationSkill
- architecture-decisionSkill
- backup-restoreSkill
- caching-strategySkill
- chaos-engineeringSkill
- ci-cd-pipeline-designSkill
- cloud-cost-optimizationSkill
- cloud-iam-least-privilegeSkill
- code-reviewSkill
- container-image-optimizationSkill
- cyber-resilience-actSkill
- database-migrationsSkill
- data-pipeline-reviewSkill
- data-privacySkill
- data-quality-checksSkill
- debugging-root-causeSkill
- dependency-auditSkill
- dependency-upgradeSkill
- disaster-recovery-drillSkill
- docker-hardeningSkill
- documentationSkill
- dora-readinessSkill
- dpiaSkill
- email-deliverabilitySkill
- embedding-model-selectionSkill
- error-handling-reviewSkill
- eu-ai-act-readinessSkill
- eu-data-sovereigntySkill
- european-accessibility-actSkill
- event-driven-architectureSkill
- feature-flagsSkill
- frontend-reviewSkill
- gdpr-dsar-handlingSkill
- github-actionsSkill
- gitlab-ciSkill
- git-workflowSkill
- go-developmentSkill
- helm-chart-reviewSkill
- i18n-localizationSkill
- incident-responseSkill
- java-spring-reviewSkill
- kubernetes-reviewSkill
- linux-server-hardeningSkill
- llm-cost-analysisSkill
- llm-gateway-routingSkill
- llm-observabilitySkill
- llm-output-evaluationSkill
- llm-structured-extractionSkill
- load-testingSkill
- local-llm-servingSkill
- log-analysisSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Do not run abusive queries against production.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GraphQL API Review
Goal
A GraphQL API where every field enforces authorization, expensive queries are bounded, and resolvers do not multiply database calls.
Inputs
- Schema (SDL), server implementation, authentication context, persisted-query or gateway setup, clients that depend on the schema.
Review checklist
- Authorization in resolvers or a policy layer, per object and per field — not only at the HTTP endpoint. Nested paths (
user { orders { customer { email } } }) must not bypass checks. - Abuse limits: maximum query depth, cost or complexity analysis, limits on list sizes (
first: Int = 20with a maximum), alias and batch-operation limits, request timeouts. - Introspection and errors: introspection disabled or restricted in production unless the API is public by design; error messages without stack traces or SQL; field suggestions disabled for private APIs.
- Persisted queries for first-party clients where possible, rejecting arbitrary queries on high-risk endpoints.
- Performance: DataLoader (or equivalent batching) per request for related objects; avoid per-field database calls in lists; cache keys include the user when results are user-specific.
- Inputs: custom scalars validated (email, URL, dates); mutations idempotent where retried; file uploads limited (and CSRF considered for multipart uploads).
- Schema evolution: additive changes; deprecate fields with
@deprecated(reason:)before removal; track field usage before deleting; schema diff checks in CI. - Observability: log operation names (not full variables with personal data), per-resolver timing, rejected-query counts.
Example fixture
query { users(first: 10000) { orders { items { product { reviews { author { email } } } } } } }Expected findings: no maximum on first, unbounded depth, author email exposed without a field-level rule, N+1 explosion without batching.
Acceptance checks
- Tests prove a non-admin cannot read restricted fields through any nesting path.
- Negative case: a query above the depth or cost limit is rejected with a clear error before execution.
- Resolver database call counts for a list query are measured before and after batching.
Output
Findings, schema and resolver changes, limit configuration, tests.
Safety
Do not run abusive queries against production; use a staging environment and agreed limits.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

