Validate and review GraphQL schema files for technical correctness and enterprise standards compliance. Use when asked to "review my graphql schema", "review my graphql specification", "validate graphql", or "check graphql schema". Validates schema against standard rules and your enterprise guidelines, detailing violations with explanations and solutions.
A specialized skill for validating and auditing GraphQL schema files against both standard validation rules and enterprise standards.
/src/schemas/*.graphql@graphql-schema/validate-schema NPM package installed in the project/src/schemas/ directory@graphql-schema/validate-schema packageIf validation errors are found:
If standards violations are found:
| Issue | Solution |
|---|---|
| Schema files not found | Verify files exist in /src/schemas/ with .graphql extension |
| Validation package error | Ensure @graphql-schema/validate-schema is installed: npm install @graphql-schema/validate-schema |
| Unable to find enterprise standards | Refer to Enterprise GraphQL Guidelines |
| Mixed validation and standards issues | Address validation errors first, then review against standards |
When reviewing a schema, the output should be structured like:
VALIDATION RESULTS
==================
✓ Schema syntax is valid
STANDARDS REVIEW RESULTS
========================
⚠ Type "User" missing description
⚠ Field "createdAt" should use @deprecated directive
✗ Query naming does not follow camelCase convention