Skip to content
Back to skills

Graphql Schema Generator

ASecurity

Generate GraphQL schemas from data models with resolver stubs and federation support

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 2, 2026
ai-agentsjavascriptjavabashapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add a5c-ai/babysitter --skill graphql-schema-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Graphql Schema Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Graphql Schema Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-graphql-schema-generator-babysitter/badge)](https://www.skillsdirectory.com/skills/a5c-ai-graphql-schema-generator-babysitter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: graphql-schema-generator
description: Generate GraphQL schemas from data models with resolver stubs and federation support
allowed-tools:
  - Bash
  - Read
  - Write
  - Glob
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:software-architecture]
  skillAreas: [skill-area:graphql-schema-design, skill-area:backend-api-design]
  roles: [role:backend-engineer, role:architect]
  workflows: [workflow:api-design-review]
  topics: [topic:graphql-schema-design]

---

# GraphQL Schema Generator Skill

## Overview

Generates GraphQL SDL schemas from data models with type inference, resolver stub generation, schema validation, and Apollo Federation support.

## Capabilities

- Generate GraphQL SDL from data models
- Type inference from existing data structures
- Resolver stub generation
- Schema validation and linting
- Apollo Federation support
- Subscription type generation
- Input type and mutation generation

## Target Processes

- api-design-specification

## Input Schema

```json
{
  "type": "object",
  "required": ["dataModels"],
  "properties": {
    "dataModels": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": { "type": "string" },
          "fields": { "type": "array" },
          "relationships": { "type": "array" }
        }
      }
    },
    "outputPath": {
      "type": "string",
      "description": "Output schema file path"
    },
    "options": {
      "type": "object",
      "properties": {
        "generateResolvers": {
          "type": "boolean",
          "default": true
        },
        "federation": {
          "type": "boolean",
          "default": false
        },
        "generateSubscriptions": {
          "type": "boolean",
          "default": false
        },
        "generateInputTypes": {
          "type": "boolean",
          "default": true
        }
      }
    }
  }
}
```

## Output Schema

```json
{
  "type": "object",
  "properties": {
    "schemaPath": {
      "type": "string"
    },
    "resolversPath": {
      "type": "string"
    },
    "types": {
      "type": "array",
      "items": { "type": "string" }
    },
    "queries": {
      "type": "array"
    },
    "mutations": {
      "type": "array"
    }
  }
}
```

## Usage Example

```javascript
{
  kind: 'skill',
  skill: {
    name: 'graphql-schema-generator',
    context: {
      dataModels: [
        { name: 'User', fields: ['id', 'name', 'email'] },
        { name: 'Post', fields: ['id', 'title', 'authorId'] }
      ],
      outputPath: 'graphql/schema.graphql',
      options: {
        generateResolvers: true,
        federation: false
      }
    }
  }
}
```

Files in this skill

  • README.md397 B
  • SKILL.md2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.