본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

neo-graphql-ts-generator

martinforsulu 제작

Web & Frontend Development
—아직 평가 없음
내 평가

요약

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

설명

이 스킬이 하는 일

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.

사용 시점

  • 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

예시 워크플로

입력

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

에이전트
  1. 1

    Receives the schema file path from the user

  2. 2

    Runs graphql-ts-generator /docs/api.graphql via CLI

  3. 3

    Parser validates and converts the schema to an AST

  4. 4

    Generator transforms AST nodes to TypeScript interfaces, unions, and enums

  5. 5

    Writes output .ts files to the dist/ directory

출력

TypeScript type files ready to import into the project

설치

clawhub install martinforsulu/neo-graphql-ts-generator

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크