axolotl-schema

Generate type-safe GraphQL models and resolver boilerplates from a schema.

27|2|Updated Oct 10, 2023
One-click install
npx skills add https://github.com/aexol-studio/axolotl --skill axolotl-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axolotl-schema
Source: https://github.com/aexol-studio/axolotl/tree/main/examples/new/.opencode/skills/axolotl-schema
Command: npx skills add https://github.com/aexol-studio/axolotl --skill axolotl-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Schema-first GraphQL tooling that automatically generates models and resolver boilerplates from your GraphQL schema, reducing manual boilerplate work and accelerating project setup.

Core Features & Use Cases

  • Schema-first development with automatic type generation from schema.graphql.
  • Resolver boilerplate scaffolding generating placeholder files and structure.
  • CLI commands and inspect tool to build models and scaffold resolvers.
  • Use Case: Quickly bootstrap a new GraphQL service with consistent structure and typings.

Quick Start

Run the axolotl scaffold to generate models and resolver boilerplates from your GraphQL schema.

Frequently Asked Questions about axolotl-schema

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate type-safe GraphQL resolver boilerplates from a schema?

To generate type-safe GraphQL resolver boilerplates, use a schema-first CLI tool that parses your schema.graphql and scaffolds placeholder resolver files and type-safe models automatically, reducing manual setup.

What is schema-first GraphQL code generation and when do I need it?

Schema-first GraphQL code generation automatically derives type-safe models and resolver structures from your schema definition file. You need it to eliminate manual boilerplate work and accelerate project setup with consistent typings.

How do I scaffold GraphQL models and resolvers using a CLI?

Scaffold GraphQL models and resolvers by running CLI build commands that parse your schema, generate a models.ts file in the backend, and create placeholder resolver structures using the @resolver directive.

Can I use this schema-first scaffolding tool for an existing GraphQL project?

Yes, schema-first scaffolding applies to existing projects by parsing your current schema.graphql to generate type-safe models and boilerplate resolver files, ensuring consistent structure and typings across your backend.

What is the best way to bootstrap a new GraphQL service with consistent typings?

The best way to bootstrap a GraphQL service is schema-first development using CLI tooling to parse your schema and automatically generate type-safe models and resolver boilerplate, ensuring consistent project structure from the start.

Why does schema-first GraphQL development require boilerplate scaffolding?

Schema-first GraphQL development requires boilerplate scaffolding because manually writing type-safe models and resolver placeholders for every schema type is repetitive, so CLI tooling automates this generation to accelerate setup.