data-model-creation

Generates Mermaid classDiagram data models for CloudBase relational databases.

Updated May 14, 2026
One-click install
npx skills add https://github.com/study-yang/Vieb-Coding-- --skill data-model-creation-study-yang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-model-creation
Source: https://github.com/study-yang/Vieb-Coding--/tree/main/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F-%E5%BF%AB%E8%AE%B0/.codebuddy/skills/data-model-creation
Command: npx skills add https://github.com/study-yang/Vieb-Coding-- --skill data-model-creation-study-yang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Designing multi-entity relational schemas by hand is error-prone, and jumping straight to SQL often skips proper entity and relationship planning. This Skill provides a diagram-driven modeling path that turns business requirements into validated Mermaid classDiagram definitions and CloudBase data models. ## Core Features & Use Cases - Mermaid classDiagram Generation: Converts business entities into PascalCase classes with typed fields, required/unique constraints, and relationship cardinality. - CloudBase Model Management: Lists, inspects, and creates data models via manageDataModel and modifyDataModel tools. - Routing Guidance: Directs simple CREATE TABLE or CRUD tasks to direct SQL instead of over-modeling. - Use Case: When building an order system, model User and Order entities with their one-to-many relationship as a Mermaid diagram, validate field types and constraints, then create the CloudBase data model before writing any SQL. ## Quick Start Ask the AI to design a Mermaid classDiagram data model for your entities, for example a User and Order model with their relationship, and create it in CloudBase.

Frequently Asked Questions about data-model-creation

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

FAQPage Schema
How do I create a data model with Mermaid classDiagram?

Define your entities as PascalCase classes with camelCase fields and types like string, number, or email, then declare relationships with cardinality such as Order "n" --> "1" User. Pass the complete diagram to modifyDataModel with action create.

When should I use data modeling instead of writing SQL directly?

Use diagram-driven modeling for multi-entity relational design, visual ER output, or generated model structure. For simple CREATE TABLE, ALTER TABLE, or CRUD tasks, write SQL directly with the relational-database-tool instead.

How do I inspect an existing CloudBase data model?

Use manageDataModel with action list to see all models, action get with a model name to retrieve its definition, or action docs to read its documentation. Do this before creating related models to keep naming consistent.

Can I update an existing CloudBase data model structure?

No, the modifyDataModel tool currently supports creating new models only and does not update existing model structures. Plan field names, constraints, and relationships carefully before publishing.

What field types are supported in Mermaid data models?

Supported types include string, number, boolean, date, datetime, email, phone, url, x-enum, x-image, x-file, x-rtf, x-area-code, x-location, and array types like string[]. Map each business meaning to the matching type.