model-gen

Generate model classes from MCP schemas for Dart, TypeScript, and Go.

1|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/jaturapornchai/bcaicloudskill --skill model-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-gen
Source: https://github.com/jaturapornchai/bcaicloudskill/tree/main/skills/model-gen
Command: npx skills add https://github.com/jaturapornchai/bcaicloudskill --skill model-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of model classes based on existing schemas, reducing manual coding effort and ensuring consistency across projects.

Core Features & Use Cases

  • Schema-driven generation: Creates models for GoAPI and MainAPI schemas.
  • Multi-language support: Generates code for Dart, TypeScript, and Go.
  • Use Case: When developing a new feature that requires a Product model, use this Skill to generate the corresponding Dart class based on its MCP schema.

Quick Start

Use the model-gen skill to generate a model class for 'Shop'.

Frequently Asked Questions about model-gen

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

FAQPage Schema
How do I generate model classes from schemas for TypeScript and Dart?

You can generate model classes from schemas by using this Skill to automate boilerplate code creation for Dart, TypeScript, and Go, mapping Go types to language-specific equivalents while handling nullability based on schema requirements.

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

Schema-driven code generation is the process of creating model classes from existing schemas, needed when developing features that require consistent data structures across multiple programming languages like Dart, TypeScript, and Go.

Can I generate Go models from MCP schemas?

Yes, you can generate Go models from MCP schemas, as this Skill supports multi-language code generation for Go, Dart, and TypeScript, automatically mapping Go types to language-specific equivalents.

How do I handle nullability when generating model classes from schemas?

To handle nullability when generating model classes, this Skill processes schema requirements and automatically determines field nullability, mapping Go types to language-specific equivalents for Dart, TypeScript, and Go.

What's the best way to automate boilerplate code for data structures across different languages?

The best way to automate boilerplate code for data structures is using schema-driven generation to create model classes from MCP schemas, supporting Dart, TypeScript, and Go to ensure consistency across projects.

Does model generation support both GoAPI and MainAPI schemas?

Yes, schema-driven model generation supports both GoAPI and MainAPI schemas, creating corresponding model classes for Dart, TypeScript, and Go based on the provided schema definitions.