Graphql Schema Generator

🌐Community
by jeremylongshore Β· vlatest Β· Repository

Helps with GraphQL, schema design as part of developing backend services and APIs workflows.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add graphql-schema-generator npx -- -y @trustedskills/graphql-schema-generator
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "graphql-schema-generator": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/graphql-schema-generator"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The graphql-schema-generator skill automatically generates GraphQL schemas from existing data sources. It can take a JSON schema or OpenAPI specification as input and produce a corresponding GraphQL schema definition language (SDL) file. This simplifies the process of exposing data through a GraphQL API, reducing manual effort and potential errors.

When to use it

  • Rapid API Development: Quickly create a GraphQL API for an existing REST API documented with OpenAPI.
  • Data Integration: Generate a GraphQL schema from a JSON schema representing your database structure.
  • Schema Evolution: Automate the creation of new schemas when data models change, ensuring consistency between your data and API.
  • Prototyping: Quickly prototype GraphQL APIs without manually writing complex schema definitions.

Key capabilities

  • Generates GraphQL SDL from JSON Schema input.
  • Generates GraphQL SDL from OpenAPI specification input.
  • Automated schema creation.

Example prompts

  • "Generate a GraphQL schema from this JSON schema: [paste JSON schema here]"
  • "Create a GraphQL schema based on the following OpenAPI spec: [paste OpenAPI spec here]"
  • β€œCan you generate a graphql schema for my database?”

Tips & gotchas

The quality of the generated schema depends heavily on the accuracy and completeness of the input JSON Schema or OpenAPI specification. Ensure these documents are well-defined to achieve optimal results.

Tags

πŸ›‘οΈ

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates β€” what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
jeremylongshore
Installs
14

🌐 Community

Passed automated security scans.