graphql-builder

Error: --type required. Use when you need graphql builder capabilities. Triggers on: graphql builder, type, entity, fields, relations, lang.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "graphql-builder" with this command: npx skills add ckchzh/graphql-builder

graphql-builder

Generate complete GraphQL schemas, type definitions, resolvers, queries, mutations, and subscriptions from natural language descriptions. Supports custom scalars, enums, interfaces, unions, input types, pagination (Relay-style cursor and offset), authentication directives, field validation, N+1 query prevention with DataLoader patterns, and subscription setup. Outputs production-ready schema files with proper documentation and examples.

Commands

CommandDescription
schemaGenerate a complete GraphQL schema from description
typeGenerate type definitions with fields and relations
resolverGenerate resolver functions (Query/Mutation/Field)
queryGenerate query operations with variables
mutationGenerate mutation operations with input types
subscriptionGenerate subscription definitions
enumGenerate enum type definitions
interfaceGenerate interface and implementing types
paginationAdd Relay-style cursor pagination
authAdd authentication/authorization directives

Usage

# Generate complete schema for a blog API
graphql-builder schema --domain "blog with users, posts, comments, tags"

# Generate type definitions
graphql-builder type --name User --fields "id:ID!,name:String!,email:String!,posts:[Post!]!"

# Generate resolvers for a type
graphql-builder resolver --type User --operations "getUser,listUsers,createUser,updateUser"

# Generate query with pagination
graphql-builder query --name listPosts --pagination cursor --filters "status,author"

# Generate mutation with validation
graphql-builder mutation --name createPost --input "title:String!,body:String!,tags:[String!]"

# Generate subscription
graphql-builder subscription --name onPostCreated --type Post

# Add authentication directives
graphql-builder auth --strategy jwt --roles "admin,editor,viewer"

Examples

E-commerce Schema

graphql-builder schema --domain "e-commerce with products, categories, orders, users, reviews, cart"

Social Media Schema

graphql-builder schema --domain "social media with users, posts, comments, likes, follows, messages"

SaaS Schema

graphql-builder schema --domain "SaaS with organizations, users, projects, tasks, billing"

Features

  • Full schema generation — Types, queries, mutations, subscriptions
  • Relay pagination — Cursor-based connection types
  • Authentication — JWT/session-based auth directives
  • Validation — Input validation with custom directives
  • DataLoader — N+1 prevention patterns
  • Documentation — Inline descriptions and examples
  • Resolvers — Complete resolver implementations

Keywords

graphql, schema, api, query, mutation, subscription, resolver, type system, api design, backend

💬 Feedback & Feature Requests: https://bytesagain.com/feedback Powered by BytesAgain | bytesagain.com

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

115 Publish

智能管理115网盘,支持扫码登录、文件浏览、搜索、转存分享、离线下载、智能整理和容量查询。

Registry SourceRecently Updated
039
Profile unavailable
General

Openclaw Diary Setup

OpenClaw Diary 日记系统安装向导。引导用户完成日记系统的初始化设置,包括人设选择、用户身份建立、存储配置和授权管理。 **立即触发当**:用户说「setup my journal」「初始化日记」「配置日记系统」「journal setup」「开始设置日记」。 **主动触发当**:用户首次尝试使用 d...

Registry SourceRecently Updated
058
Profile unavailable
General

Unit Converter

单位换算工具。长度、重量、温度、货币、时间、速度换算,含公式和常用对照表。Unit converter for length, weight, temperature, currency, time, speed with formulas and reference tables. Use when you n...

Registry SourceRecently Updated
0152
Profile unavailable