LaunchKit · 2026
Back to Skills

neo-graphql-ts-generator

Automatically generates TypeScript types from GraphQL schema files with CLI integration for developers and AI agents.

0
0 downloads
by @martinforsulu

Setup & Installation

openclaw skills install @martinforsulu/neo-graphql-ts-generator

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install neo-graphql-ts-generator

What This Skill Does

Converts GraphQL schema files (.graphql, .gql) to TypeScript interfaces, types, unions, and enums via a CLI tool. Handles complex schema features including discriminated unions, interfaces, and nullability. Can process single files or batches.

Eliminates hand-writing TypeScript types that must stay in sync with a GraphQL schema, removing a common source of type drift.

When to use it

  • Generate TypeScript types from a REST-to-GraphQL migration
  • Sync client-side types after backend schema updates
  • Batch-convert all schemas in a monorepo at once
  • Automate type generation in a CI pipeline
  • Get typed interfaces from a third-party GraphQL API schema

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Generate TypeScript types from /docs/api.graphql

AGENT
  1. 1Receives the schema file path from the user
  2. 2Runs graphql-ts-generator /docs/api.graphql via CLI
  3. 3Parser validates and converts the schema to an AST
  4. 4Generator transforms AST nodes to TypeScript interfaces, unions, and enums
  5. 5Writes output .ts files to the dist/ directory
OUTPUT

TypeScript type files ready to import into the project