[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BWWFTRKD6EBCXT2PQYMX7A":3,"skill-same:01M7BWWFTRKD6EBCXT2PQYMX7A":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7BWWFTRKD6EBCXT2PQYMX7A","data-model-creation",null,"Optional advanced tool for complex data modeling. For simple table creation, use relational-database-tool directly with SQL statements.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Plugin-插件协议\u002FYYC3-Plugin-插件协议-plugins\u002Fcloudbase\u002Fskills\u002Fcloudbase\u002Freferences\u002Fdata-model-creation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: data-model-creation\ndescription: Optional advanced tool for complex data modeling. For simple table creation, use relational-database-tool directly with SQL statements.\nalwaysApply: false\n---\n\n## When to use this skill\n\nThis is an **OPTIONAL advanced modeling tool** for complex database design. Most simple table creation should use `relational-database-tool` directly with SQL statements.\n\n**ONLY use this skill when you specifically need:**\n- Complex multi-table relationships with automatic foreign key management\n- Visual ER diagram generation for documentation\n- Automated field type mapping and constraint generation\n- Enterprise-level data model documentation\n\n**For most cases, use `relational-database-tool` skill instead:**\n- Simple table creation with CREATE TABLE statements\n- Basic CRUD operations\n- Schema modifications with ALTER TABLE\n- Direct SQL execution without Mermaid modeling\n\n**Do NOT use for:**\n- Querying or manipulating existing data (use database skills)\n- NoSQL database design (use NoSQL skills)\n- Frontend data structures (use appropriate frontend skills)\n\n---\n\n## How to use this skill (for a coding agent)\n\n**⚠️ NOTE: This is OPTIONAL. For simple tasks, skip this and use `relational-database-tool` directly.**\n\nWhen you do use this advanced modeling approach:\n\n1. **Optional modeling workflow** (only when complexity justifies it)\n   - Business analysis phase: Analyze user requirements, identify core entities and relationships\n   - Mermaid modeling phase: Create mermaid classDiagram following generation rules\n   - Model validation phase: Check completeness, consistency, and correctness\n\n2. **Apply generation rules strictly** (when using this tool)\n   - Use correct type mappings (string, number, boolean, x-enum, etc.)\n   - Convert Chinese to English naming (PascalCase for classes, camelCase for fields)\n   - Define required(), unique(), display_field() functions when needed\n   - Use proper relationship notation with field names\n\n3. **Use tools correctly** (only when you choose this approach)\n   - Call data model creation tools only for complex multi-entity business requirements\n   - Use `mermaidDiagram` parameter with complete mermaid classDiagram code\n   - Set `publish` to false initially, create then publish separately\n   - Choose appropriate `updateMode` for new or existing models\n\n---\n\n## Quick Decision Guide\n\n**Most Database Tasks → `relational-database-tool` skill**\n- ✅ Simple table creation\n- ✅ Data queries and modifications\n- ✅ Schema changes\n- ✅ Direct SQL execution\n\n**Complex Modeling Only → This skill (`data-model-creation`)**\n- 🎯 Multi-entity relationship modeling\n- 🎯 Automated foreign key management\n- 🎯 Visual ER diagram generation\n- 🎯 Enterprise documentation\n\n---\n\n# Data Model AI Modeling Professional Rules\n\n## ⚠️ IMPORTANT: Simplified Workflow Recommendation\n\n**For most database table creation tasks, use `relational-database-tool` skill directly:**\n\n- Simple table creation: `CREATE TABLE users (id INT PRIMARY KEY, name VARCHAR(255))`\n- Schema modifications: `ALTER TABLE users ADD COLUMN email VARCHAR(255)`\n- Data operations: `INSERT`, `UPDATE`, `SELECT`, `DELETE`\n\n**Only use this advanced Mermaid modeling approach when:**\n- You need automated relationship management\n- Complex multi-table schemas with foreign keys\n- Enterprise documentation requirements\n- Visual ER diagram generation\n\n**This rule exists for complex modeling scenarios, but most development should use direct SQL execution.**\n\n## AI Modeling Expert Prompt\n\nAs an expert in data modeling and a senior architect in software development, you are proficient in Mermaid. Your main task is to provide model structures in mermaid classDiagram format based on user descriptions, following the detailed rules below:\n\n### Generation Rules\n\n1. **Type Mapping Priority**: When user-described fields match the mapping relationship, prioritize using type as the field type. Mapping relationships are as follows:\n   | Business Field | type |\n   | --- | --- |\n   | Text | string |\n   | Number | number |\n   | Boolean | boolean |\n   | Enum | x-enum |\n   | Email | email |\n   | Phone | phone |\n   | URL | url |\n   | File | x-file |\n   | Image | x-image |\n   | Rich Text | x-rtf |\n   | Region | x-area-code |\n   | Time | time |\n   | Date | date |\n   | DateTime | datetime |\n   | Object | object |\n   | Array | string[] |\n   | Location | x-location |\n\n2. **Naming Convention**: Convert Chinese descriptions to English naming (except enum values). Use PascalCase for class names, camelCase for field names.\n\n3. **Field Visibility**: Use default visibility for fields, do not add \"+\" or \"-\".\n\n4. **Array Types**: When descriptions include array types, use specific array formats such as string[], number[], x-rtf[], etc.\n\n5. **Chinese Administrative Regions**: When involving Chinese administrative regions like \"province\u002Fcity\u002Fdistrict\", use x-area-code field type.\n\n6. **Required Fields**: When descriptions explicitly mention required fields, define a required() parameterless function, return value as string array of required field names, e.g., `required() [\"name\", \"age\"]`. By default, fields are not required.\n\n7. **Unique Fields**: When descriptions explicitly mention unique fields, define a unique() parameterless function, return value as string array of unique field names, e.g., `unique() [\"name\", \"age\"]`. By default, fields are not unique.\n\n8. **Default Values**: When descriptions explicitly require field default values, use \"= default value\" format after field definition, e.g., `age: number = 0`. By default, fields have no default values.\n\n9. **Field Descriptions**: For each field definition in user descriptions, use `\u003C\u003Cdescription>>` format at the end of the definition line, e.g., `name: string \u003C\u003CName>>`.\n\n10. **Display Field**: Each entity class should have a field for display when being referenced. Usually a human-readable name or unique identifier. Define display_field() parameterless function, return value is a field name representing the main display field, e.g., `display_field() \"name\"` means the main display field is name. Otherwise, default to the implicit _id of the data model.\n\n11. **Class Notes**: After all class definitions are complete, use note to describe class names. First use \"%% Class naming\" to anchor the area, then provide Chinese table names for each class.\n\n12. **Relationships**: When descriptions contain relationships, relationship label LabelText should not use original semantics, but use relationship field names. For example, `A \"n\" \u003C-- \"1\" B: field1` means A has many-to-one relationship with B, data exists in A's field1 field. Refer to examples for specifics.\n\n13. **Naming**: Field names and descriptions in Mermaid should be concise and accurately expressed.\n\n14. **Complexity Control**: Unless user requires, control complexity, e.g., number of classes should not exceed 5, control field complexity.\n\n### Standard Example\n\n```mermaid\nclassDiagram\n    class Student {\n        name: string \u003C\u003CName>>\n        age: number = 18 \u003C\u003CAge>>\n        gender: x-enum = \"Male\" \u003C\u003CGender>>\n        classId: string \u003C\u003CClass ID>>\n        identityId: string \u003C\u003CIdentity ID>>\n        course: Course[] \u003C\u003CCourses>>\n        required() [\"name\"]\n        unique() [\"name\"]\n        enum_gender() [\"Male\", \"Female\"]\n        display_field() \"name\"\n    }\n    class Class {\n        className: string \u003C\u003CClass Name>>\n        display_field() \"className\"\n    }\n    class Course {\n        name: string \u003C\u003CCourse Name>>\n        students: Student[] \u003C\u003CStudents>>\n        display_field() \"name\"\n    }\n    class Identity {\n        number: string \u003C\u003CID Number>>\n        display_field() \"number\"\n    }\n\n    %% Relationships\n    Student \"1\" --> \"1\" Identity : studentId\n    Student \"n\" --> \"1\" Class : student2class\n    Student \"n\" --> \"m\" Course : course\n    Student \"n\" \u003C-- \"m\" Course : students\n    %% Class naming\n    note for Student \"Student Model\"\n    note for Class \"Class Model\"\n    note for Course \"Course Model\"\n    note for Identity \"Identity Model\"\n```\n\n## Data Model Creation Workflow\n\n### 1. Business Analysis Phase\n- Carefully analyze user's business requirement descriptions\n- Identify core entities and business objects\n- Determine relationships between entities\n- Clarify required fields, unique constraints, and default values\n\n### 2. Mermaid Modeling Phase\n- Strictly follow the above generation rules to create mermaid classDiagram\n- Ensure field type mappings are correct\n- Properly handle relationship directions and cardinalities\n- Add complete Chinese descriptions and comments\n\n### 3. Model Validation Phase\n- Check model completeness and consistency\n- Verify relationship rationality\n- Confirm field constraint correctness\n- Check naming convention compliance\n\n## MySQL Data Type Support\n\n### Basic Type Mappings\n- `string` → VARCHAR\u002FTEXT\n- `number` → INT\u002FBIGINT\u002FDECIMAL\n- `boolean` → BOOLEAN\u002FTINYINT\n- `date` → DATE\n- `datetime` → DATETIME\n- `time` → TIME\n\n### Extended Type Mappings\n- `x-enum` → ENUM type\n- `x-file`\u002F`x-image` → File path storage\n- `x-rtf` → LONGTEXT rich text\n- `x-area-code` → Region code\n- `x-location` → Geographic location coordinates\n- `email`\u002F`phone`\u002F`url` → VARCHAR with validation\n\n### Relationship Implementation\n- One-to-one: Foreign key constraints\n- One-to-many: Foreign key associations\n- Many-to-many: Intermediate table implementation\n- Self-association: Same table foreign key\n\n## Tool Usage Guidelines\n\n### Tool Call Timing (RARE - Use Sparingly)\n1. **Only when user explicitly requests advanced data modeling with Mermaid diagrams**\n2. **Only for complex enterprise applications with multi-entity relationships**\n3. **Only when user provides detailed business requirement descriptions requiring automated modeling**\n4. **Only when you need to update existing data model structure AND want visual ER diagrams**\n\n### When to SKIP this tool (Most Cases)\n- Simple table creation → Use `executeWriteSQL` with CREATE TABLE\n- Schema changes → Use `executeWriteSQL` with ALTER TABLE\n- Basic CRUD → Use appropriate SQL statements directly\n- Data queries → Use `executeReadOnlySQL`\n\n### Parameter Usage Guide\n- `mermaidDiagram`: Complete mermaid classDiagram code\n- `publish`: Whether to publish model immediately (recommend default to false, create then publish)\n- `updateMode`: Create new model or update existing model\n\n### Error Handling Strategy\n- Syntax errors: Check Mermaid syntax format\n- Field type errors: Verify type mapping relationships\n- Relationship errors: Check relationship directions and cardinalities\n- Naming conflicts: Provide renaming suggestions\n\n## Best Practices\n\n### Model Design Principles\n1. **Single Responsibility**: Each entity class is responsible for only one business concept\n2. **Minimize Dependencies**: Reduce unnecessary relationships\n3. **Extensibility**: Reserve field space for future expansion\n4. **Consistency**: Maintain consistency in naming and type usage\n\n### Performance Considerations\n1. **Index Design**: Create indexes for commonly queried fields\n2. **Field Length**: Reasonably set string field lengths\n3. **Relationship Optimization**: Avoid excessive many-to-many relationships\n4. **Data Sharding**: Consider table sharding strategies for large tables\n\n### Security Standards\n1. **Sensitive Fields**: Encrypt storage for sensitive information like passwords\n2. **Permission Control**: Clarify read\u002Fwrite permissions for fields\n3. **Data Validation**: Set appropriate field constraints\n4. **Audit Logs**: Add operation records for important entities\n\n## Common Business Scenario Templates\n\n### User Management System\n```mermaid\nclassDiagram\n    class User {\n        username: string \u003C\u003CUsername>>\n        email: email \u003C\u003CEmail>>\n        password: string \u003C\u003CPassword>>\n        avatar: x-image \u003C\u003CAvatar>>\n        status: x-enum = \"active\" \u003C\u003CStatus>>\n        required() [\"username\", \"email\"]\n        unique() [\"username\", \"email\"]\n        enum_status() [\"active\", \"inactive\", \"banned\"]\n        display_field() \"username\"\n    }\n```\n\n### E-commerce System\n```mermaid\nclassDiagram\n    class Product {\n        name: string \u003C\u003CProduct Name>>\n        price: number \u003C\u003CPrice>>\n        description: x-rtf \u003C\u003CProduct Description>>\n        images: x-image[] \u003C\u003CProduct Images>>\n        category: string \u003C\u003CCategory>>\n        stock: number = 0 \u003C\u003CStock>>\n        required() [\"name\", \"price\"]\n        display_field() \"name\"\n    }\n    class Order {\n        orderNo: string \u003C\u003COrder Number>>\n        totalAmount: number \u003C\u003CTotal Amount>>\n        status: x-enum = \"pending\" \u003C\u003COrder Status>>\n        createTime: datetime \u003C\u003CCreate Time>>\n        required() [\"orderNo\", \"totalAmount\"]\n        unique() [\"orderNo\"]\n        enum_status() [\"pending\", \"paid\", \"shipped\", \"completed\", \"cancelled\"]\n        display_field() \"orderNo\"\n    }\n```\n\n### Content Management System\n```mermaid\nclassDiagram\n    class Article {\n        title: string \u003C\u003CTitle>>\n        content: x-rtf \u003C\u003CContent>>\n        author: string \u003C\u003CAuthor>>\n        publishTime: datetime \u003C\u003CPublish Time>>\n        status: x-enum = \"draft\" \u003C\u003CStatus>>\n        tags: string[] \u003C\u003CTags>>\n        required() [\"title\", \"content\", \"author\"]\n        enum_status() [\"draft\", \"published\", \"archived\"]\n        display_field() \"title\"\n    }\n```\n\nThese rules will guide AI Agents to generate high-quality, business-requirement-compliant data models during the data modeling process.\n\n","## When to use this skill\n\nThis is an **OPTIONAL advanced modeling tool** for complex database design. Most simple table creation should use `relational-database-tool` directly with SQL statements.\n\n**ONLY use this skill when you specifically need:**\n- Complex multi-table relationships with automatic foreign key management\n- Visual ER diagram generation for documentation\n- Automated field type mapping and constraint generation\n- Enterprise-level data model documentation\n\n**For most cases, use `relational-database-tool` skill instead:**\n- Simple table creation with CREATE TABLE statements\n- Basic CRUD operations\n- Schema modifications with ALTER TABLE\n- Direct SQL execution without Mermaid modeling\n\n**Do NOT use for:**\n- Querying or manipulating existing data (use database skills)\n- NoSQL database design (use NoSQL skills)\n- Frontend data structures (use appropriate frontend skills)\n\n---\n\n## How to use this skill (for a coding agent)\n\n**⚠️ NOTE: This is OPTIONAL. For simple tasks, skip this and use `relational-database-tool` directly.**\n\nWhen you do use this advanced modeling approach:\n\n1. **Optional modeling workflow** (only when complexity justifies it)\n   - Business analysis phase: Analyze user requirements, identify core entities and relationships\n   - Mermaid modeling phase: Create mermaid classDiagram following generation rules\n   - Model validation phase: Check completeness, consistency, and correctness\n\n2. **Apply generation rules strictly** (when using this tool)\n   - Use correct type mappings (string, number, boolean, x-enum, etc.)\n   - Convert Chinese to English naming (PascalCase for classes, camelCase for fields)\n   - Define required(), unique(), display_field() functions when needed\n   - Use proper relationship notation with field names\n\n3. **Use tools correctly** (only when you choose this approach)\n   - Call data model creation tools only for complex multi-entity business requirements\n   - Use `mermaidDiagram` parameter with complete mermaid classDiagram code\n   - Set `publish` to false initially, create then publish separately\n   - Choose appropriate `updateMode` for new or existing models\n\n---\n\n## Quick Decision Guide\n\n**Most Database Tasks → `relational-database-tool` skill**\n- ✅ Simple table creation\n- ✅ Data queries and modifications\n- ✅ Schema changes\n- ✅ Direct SQL execution\n\n**Complex Modeling Only → This skill (`data-model-creation`)**\n- 🎯 Multi-entity relationship modeling\n- 🎯 Automated foreign key management\n- 🎯 Visual ER diagram generation\n- 🎯 Enterprise documentation\n\n---\n\n# Data Model AI Modeling Professional Rules\n\n## ⚠️ IMPORTANT: Simplified Workflow Recommendation\n\n**For most database table creation tasks, use `relational-database-tool` skill directly:**\n\n- Simple table creation: `CREATE TABLE users (id INT PRIMARY KEY, name VARCHAR(255))`\n- Schema modifications: `ALTER TABLE users ADD COLUMN email VARCHAR(255)`\n- Data operations: `INSERT`, `UPDATE`, `SELECT`, `DELETE`\n\n**Only use this advanced Mermaid modeling approach when:**\n- You need automated relationship management\n- Complex multi-table schemas with foreign keys\n- Enterprise documentation requirements\n- Visual ER diagram generation\n\n**This rule exists for complex modeling scenarios, but most development should use direct SQL execution.**\n\n## AI Modeling Expert Prompt\n\nAs an expert in data modeling and a senior architect in software development, you are proficient in Mermaid. Your main task is to provide model structures in mermaid classDiagram format based on user descriptions, following the detailed rules below:\n\n### Generation Rules\n\n1. **Type Mapping Priority**: When user-described fields match the mapping relationship, prioritize using type as the field type. Mapping relationships are as follows:\n   | Business Field | type |\n   | --- | --- |\n   | Text | string |\n   | Number | number |\n   | Boolean | boolean |\n   | Enum | x-enum |\n   | Email | email |\n   | Phone | phone |\n   | URL | url |\n   | File | x-file |\n   | Image | x-image |\n   | Rich Text | x-rtf |\n   | Region | x-area-code |\n   | Time | time |\n   | Date | date |\n   | DateTime | datetime |\n   | Object | object |\n   | Array | string[] |\n   | Location | x-location |\n\n2. **Naming Convention**: Convert Chinese descriptions to English naming (except enum values). Use PascalCase for class names, camelCase for field names.\n\n3. **Field Visibility**: Use default visibility for fields, do not add \"+\" or \"-\".\n\n4. **Array Types**: When descriptions include array types, use specific array formats such as string[], number[], x-rtf[], etc.\n\n5. **Chinese Administrative Regions**: When involving Chinese administrative regions like \"province\u002Fcity\u002Fdistrict\", use x-area-code field type.\n\n6. **Required Fields**: When descriptions explicitly mention required fields, define a required() parameterless function, return value as string array of required field names, e.g., `required() [\"name\", \"age\"]`. By default, fields are not required.\n\n7. **Unique Fields**: When descriptions explicitly mention unique fields, define a unique() parameterless function, return value as string array of unique field names, e.g., `unique() [\"name\", \"age\"]`. By default, fields are not unique.\n\n8. **Default Values**: When descriptions explicitly require field default values, use \"= default value\" format after field definition, e.g., `age: number = 0`. By default, fields have no default values.\n\n9. **Field Descriptions**: For each field definition in user descriptions, use `\u003C\u003Cdescription>>` format at the end of the definition line, e.g., `name: string \u003C\u003CName>>`.\n\n10. **Display Field**: Each entity class should have a field for display when being referenced. Usually a human-readable name or unique identifier. Define display_field() parameterless function, return value is a field name representing the main display field, e.g., `display_field() \"name\"` means the main display field is name. Otherwise, default to the implicit _id of the data model.\n\n11. **Class Notes**: After all class definitions are complete, use note to describe class names. First use \"%% Class naming\" to anchor the area, then provide Chinese table names for each class.\n\n12. **Relationships**: When descriptions contain relationships, relationship label LabelText should not use original semantics, but use relationship field names. For example, `A \"n\" \u003C-- \"1\" B: field1` means A has many-to-one relationship with B, data exists in A's field1 field. Refer to examples for specifics.\n\n13. **Naming**: Field names and descriptions in Mermaid should be concise and accurately expressed.\n\n14. **Complexity Control**: Unless user requires, control complexity, e.g., number of classes should not exceed 5, control field complexity.\n\n### Standard Example\n\n```mermaid\nclassDiagram\n    class Student {\n        name: string \u003C\u003CName>>\n        age: number = 18 \u003C\u003CAge>>\n        gender: x-enum = \"Male\" \u003C\u003CGender>>\n        classId: string \u003C\u003CClass ID>>\n        identityId: string \u003C\u003CIdentity ID>>\n        course: Course[] \u003C\u003CCourses>>\n        required() [\"name\"]\n        unique() [\"name\"]\n        enum_gender() [\"Male\", \"Female\"]\n        display_field() \"name\"\n    }\n    class Class {\n        className: string \u003C\u003CClass Name>>\n        display_field() \"className\"\n    }\n    class Course {\n        name: string \u003C\u003CCourse Name>>\n        students: Student[] \u003C\u003CStudents>>\n        display_field() \"name\"\n    }\n    class Identity {\n        number: string \u003C\u003CID Number>>\n        display_field() \"number\"\n    }\n\n    %% Relationships\n    Student \"1\" --> \"1\" Identity : studentId\n    Student \"n\" --> \"1\" Class : student2class\n    Student \"n\" --> \"m\" Course : course\n    Student \"n\" \u003C-- \"m\" Course : students\n    %% Class naming\n    note for Student \"Student Model\"\n    note for Class \"Class Model\"\n    note for Course \"Course Model\"\n    note for Identity \"Identity Model\"\n```\n\n## Data Model Creation Workflow\n\n### 1. Business Analysis Phase\n- Carefully analyze user's business requirement descriptions\n- Identify core entities and business objects\n- Determine relationships between entities\n- Clarify required fields, unique constraints, and default values\n\n### 2. Mermaid Modeling Phase\n- Strictly follow the above generation rules to create mermaid classDiagram\n- Ensure field type mappings are correct\n- Properly handle relationship directions and cardinalities\n- Add complete Chinese descriptions and comments\n\n### 3. Model Validation Phase\n- Check model completeness and consistency\n- Verify relationship rationality\n- Confirm field constraint correctness\n- Check naming convention compliance\n\n## MySQL Data Type Support\n\n### Basic Type Mappings\n- `string` → VARCHAR\u002FTEXT\n- `number` → INT\u002FBIGINT\u002FDECIMAL\n- `boolean` → BOOLEAN\u002FTINYINT\n- `date` → DATE\n- `datetime` → DATETIME\n- `time` → TIME\n\n### Extended Type Mappings\n- `x-enum` → ENUM type\n- `x-file`\u002F`x-image` → File path storage\n- `x-rtf` → LONGTEXT rich text\n- `x-area-code` → Region code\n- `x-location` → Geographic location coordinates\n- `email`\u002F`phone`\u002F`url` → VARCHAR with validation\n\n### Relationship Implementation\n- One-to-one: Foreign key constraints\n- One-to-many: Foreign key associations\n- Many-to-many: Intermediate table implementation\n- Self-association: Same table foreign key\n\n## Tool Usage Guidelines\n\n### Tool Call Timing (RARE - Use Sparingly)\n1. **Only when user explicitly requests advanced data modeling with Mermaid diagrams**\n2. **Only for complex enterprise applications with multi-entity relationships**\n3. **Only when user provides detailed business requirement descriptions requiring automated modeling**\n4. **Only when you need to update existing data model structure AND want visual ER diagrams**\n\n### When to SKIP this tool (Most Cases)\n- Simple table creation → Use `executeWriteSQL` with CREATE TABLE\n- Schema changes → Use `executeWriteSQL` with ALTER TABLE\n- Basic CRUD → Use appropriate SQL statements directly\n- Data queries → Use `executeReadOnlySQL`\n\n### Parameter Usage Guide\n- `mermaidDiagram`: Complete mermaid classDiagram code\n- `publish`: Whether to publish model immediately (recommend default to false, create then publish)\n- `updateMode`: Create new model or update existing model\n\n### Error Handling Strategy\n- Syntax errors: Check Mermaid syntax format\n- Field type errors: Verify type mapping relationships\n- Relationship errors: Check relationship directions and cardinalities\n- Naming conflicts: Provide renaming suggestions\n\n## Best Practices\n\n### Model Design Principles\n1. **Single Responsibility**: Each entity class is responsible for only one business concept\n2. **Minimize Dependencies**: Reduce unnecessary relationships\n3. **Extensibility**: Reserve field space for future expansion\n4. **Consistency**: Maintain consistency in naming and type usage\n\n### Performance Considerations\n1. **Index Design**: Create indexes for commonly queried fields\n2. **Field Length**: Reasonably set string field lengths\n3. **Relationship Optimization**: Avoid excessive many-to-many relationships\n4. **Data Sharding**: Consider table sharding strategies for large tables\n\n### Security Standards\n1. **Sensitive Fields**: Encrypt storage for sensitive information like passwords\n2. **Permission Control**: Clarify read\u002Fwrite permissions for fields\n3. **Data Validation**: Set appropriate field constraints\n4. **Audit Logs**: Add operation records for important entities\n\n## Common Business Scenario Templates\n\n### User Management System\n```mermaid\nclassDiagram\n    class User {\n        username: string \u003C\u003CUsername>>\n        email: email \u003C\u003CEmail>>\n        password: string \u003C\u003CPassword>>\n        avatar: x-image \u003C\u003CAvatar>>\n        status: x-enum = \"active\" \u003C\u003CStatus>>\n        required() [\"username\", \"email\"]\n        unique() [\"username\", \"email\"]\n        enum_status() [\"active\", \"inactive\", \"banned\"]\n        display_field() \"username\"\n    }\n```\n\n### E-commerce System\n```mermaid\nclassDiagram\n    class Product {\n        name: string \u003C\u003CProduct Name>>\n        price: number \u003C\u003CPrice>>\n        description: x-rtf \u003C\u003CProduct Description>>\n        images: x-image[] \u003C\u003CProduct Images>>\n        category: string \u003C\u003CCategory>>\n        stock: number = 0 \u003C\u003CStock>>\n        required() [\"name\", \"price\"]\n        display_field() \"name\"\n    }\n    class Order {\n        orderNo: string \u003C\u003COrder Number>>\n        totalAmount: number \u003C\u003CTotal Amount>>\n        status: x-enum = \"pending\" \u003C\u003COrder Status>>\n        createTime: datetime \u003C\u003CCreate Time>>\n        required() [\"orderNo\", \"totalAmount\"]\n        unique() [\"orderNo\"]\n        enum_status() [\"pending\", \"paid\", \"shipped\", \"completed\", \"cancelled\"]\n        display_field() \"orderNo\"\n    }\n```\n\n### Content Management System\n```mermaid\nclassDiagram\n    class Article {\n        title: string \u003C\u003CTitle>>\n        content: x-rtf \u003C\u003CContent>>\n        author: string \u003C\u003CAuthor>>\n        publishTime: datetime \u003C\u003CPublish Time>>\n        status: x-enum = \"draft\" \u003C\u003CStatus>>\n        tags: string[] \u003C\u003CTags>>\n        required() [\"title\", \"content\", \"author\"]\n        enum_status() [\"draft\", \"published\", \"archived\"]\n        display_field() \"title\"\n    }\n```\n\nThese rules will guide AI Agents to generate high-quality, business-requirement-compliant data models during the data modeling process.\n\n",{"name":5,"alwaysApply":20,"description":7},"main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Plugin-插件协议\u002FYYC3-Plugin-插件协议-plugins\u002Fcloudbase\u002Fskills\u002Fcloudbase\u002Freferences\u002Fdata-model-creation",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill data-model-creation",{"tool":39,"command":40},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill data-model-creation",{"tool":42,"command":43},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill data-model-creation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Plugin-插件协议\u002FYYC3-Plugin-插件协议-plugins\u002Fcloudbase\u002Fskills\u002Fcloudbase\u002Freferences\u002Fdata-model-creation\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]