Graphql Schema Generator
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.
Run in terminal (recommended)
claude mcp add graphql-schema-generator npx -- -y @trustedskills/graphql-schema-generator
Or manually add to ~/.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 Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
π Community
Passed automated security scans.