Graphql schema

From berkcangumusisik/claude-code-practices · View interactive version

Graphql schema is an AI agent skill from the GitHub repository berkcangumusisik/claude-code-practices. Generates or reviews a GraphQL schema with types, queries, mutations, and resolvers

How to use this skill

Skill file

GraphQL Schema

Target: $ARGUMENTS

  1. Detect GraphQL setup:
cat package.json | grep -E '"graphql"|"apollo-server"|"pothos"|"nexus"|"typegraphql"|"@graphql-yoga"'
ls src/graphql/ src/schema/ 2>/dev/null | head -10
  1. If reviewing existing schema:
  1. If generating new schema for $ARGUMENTS:
type $ARGUMENTS {
  id: ID!
  # ... fields
  createdAt: DateTime!
  updatedAt: DateTime!
}

type Query {
  $ARGUMENTS(id: ID!): $ARGUMENTS
  ${ARGUMENTS}s(first: Int, after: String, filter: ${ARGUMENTS}Filter): ${ARGUMENTS}Connection!
}

type Mutation {
  create$ARGUMENTS(input: Create${ARGUMENTS}Input!): ${ARGUMENTS}MutationResult!
  update$ARGUMENTS(id: ID!, input: Update${ARGUMENTS}Input!): ${ARGUMENTS}MutationResult!
  delete$ARGUMENTS(id: ID!): Boolean!
}
  1. Generate resolver stubs and DataLoader for the entity.
  1. Add input validation and proper error types.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.