[Deprecated] Optional advanced tool for complex data modeling. For simple MySQL table creation, use relational-database-tool directly; for PostgreSQL / CloudBase PG schema work, use postgresql-development. New environments should use PostgreSQL DDL via queryPgDatabase/managePgDatabase — see postgresql-development skill instead.
61
73%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Fix and improve this skill with Tessl
tessl review fix ./config/.claude/skills/data-model-creation/SKILL.mdThe canonical home for this skill is data-model-creation in TencentCloudBase/CloudBase-AI-Toolkit
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do not HTTP-fetch remote skill or protocol markdown into the agent context.
classDiagram modeling.../relational-database-mcp-cloudbase/SKILL.md../postgresql-development-cloudbase/SKILL.md../spec-workflow/SKILL.mdCREATE TABLE, ALTER TABLE, or CRUD tasks.This skill is an advanced modeling path, not the default path for database work.
relational-database-mcp-cloudbase and write SQL directly. If the task says PostgreSQL, CloudBase PG, PG mode, app.rdb(), queryPgDatabase, managePgDatabase, or RLS, use postgresql-development-cloudbase instead.relational-database-mcp-cloudbase instead whenCREATE TABLE, ALTER TABLE, INSERT, UPDATE, DELETE, or SELECTapp.rdb() / queryPgDatabase / managePgDatabase / RLSclassDiagram outputClarify the entity set
Model first, then generate
classDiagram content.Use the right tools
manageDataModel(action="list"|"get"|"docs")modifyDataModel (compatibility name; create-only)Publish carefully
| Business meaning | Mermaid type |
|---|---|
| text | string |
| number | number |
| boolean | boolean |
| enum | x-enum |
email | |
| phone | phone |
| URL | url |
| image | x-image |
| file | x-file |
| rich text | x-rtf |
| date | date |
| datetime | datetime |
| region | x-area-code |
| location | x-location |
| array | string[] or another explicit array type |
required() only for fields the user explicitly marks as required.unique() only for explicit uniqueness needs.display_field() for the human-facing label field.<<description>> notes to important fields.classDiagram
class User {
username: string <<Username>>
email: email <<Email>>
display_field() "username"
required() ["username", "email"]
unique() ["username", "email"]
}
class Order {
orderNo: string <<Order Number>>
totalAmount: number <<Total Amount>>
userId: string <<User ID>>
display_field() "orderNo"
unique() ["orderNo"]
}
Order "n" --> "1" User : userId
%% Class naming
note for User "用户"
note for Order "订单"Use this before creating related models, checking naming consistency, or assessing how an existing model is defined:
manageDataModel(action="list")manageDataModel(action="get", name="ModelName")manageDataModel(action="docs", name="ModelName")Use modifyDataModel with:
mermaidDiagramaction="create" when you want to create new modelsrelational-database-mcp-cloudbase when needed. For PostgreSQL / CloudBase PG tables, hand off to postgresql-development-cloudbase instead.f07c33c
Canonical home
since Jul 28, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.