Token导航 LogoToken导航

Agent Skill · 研究检索

data-model-creation(数据模型创建)

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

data-model-creation 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 56,510。

总安装 449周安装 18GitHub Stars 公开资料未说明下载 145核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:data-model-creation(数据模型创建)
来源仓库:https://github.com/microck/ordinary-claude-skills
仓库路径:skills/data-model-creation
安装命令:
npx skills add microck/ordinary-claude-skills --skill "data-model-creation"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add microck/ordinary-claude-skills --skill "data-model-creation"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

data-model-creation 用于构建数据模型与实体关系图。适用于 Codex、Claude、Cursor、Gemini CLI 中数据库设计场景。

通过 npx skills add microck/ordinary-claude-skills --skill "data-model-creation" 安装。输出为结构建议,需结合实际业务逻辑调整字段定义。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/data-model-creation

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add microck/ordinary-claude-skills --skill "data-model-creation";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

data-model-creation 怎么安装?

在终端执行 npx skills add microck/ordinary-claude-skills --skill "data-model-creation"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

data-model-creation 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

data-model-creation 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

data-model-creation 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

data-model-creation 用的人多吗?

公开数据是累计安装 449 次,近一周安装 18 次,下载 145 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

data-model-creation 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
data-model-creation

数据模型创建 · 本页

449—只读MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
data-model-creation
description
Optional advanced tool for complex data modeling. For simple table creation, use relational-database-tool directly with SQL statements.
alwaysApply
false

When to use this skill

This is an OPTIONAL advanced modeling tool for complex database design. Most simple table creation should use relational-database-tool directly with SQL statements.

ONLY use this skill when you specifically need:

  • Complex multi-table relationships with automatic foreign key management
  • Visual ER diagram generation for documentation
  • Automated field type mapping and constraint generation
  • Enterprise-level data model documentation

For most cases, use rules/relational-database-tool/rule.md instead:

  • Simple table creation with CREATE TABLE statements
  • Basic CRUD operations
  • Schema modifications with ALTER TABLE
  • Direct SQL execution without Mermaid modeling

Do NOT use for:

  • Querying or manipulating existing data (use database skills)
  • NoSQL database design (use NoSQL skills)
  • Frontend data structures (use appropriate frontend skills)

How to use this skill (for a coding agent)

⚠️ NOTE: This is OPTIONAL. For simple tasks, skip this and use relational-database-tool directly.

When you do use this advanced modeling approach:

  1. Optional modeling workflow (only when complexity justifies it)

- Business analysis phase: Analyze user requirements, identify core entities and relationships - Mermaid modeling phase: Create mermaid classDiagram following generation rules - Model validation phase: Check completeness, consistency, and correctness

  1. Apply generation rules strictly (when using this tool)

- Use correct type mappings (string, number, boolean, x-enum, etc.) - Convert Chinese to English naming (PascalCase for classes, camelCase for fields) - Define required(), unique(), display_field() functions when needed - Use proper relationship notation with field names

  1. Use tools correctly (only when you choose this approach)

- Call data model creation tools only for complex multi-entity business requirements - Use mermaidDiagram parameter with complete mermaid classDiagram code - Set publish to false initially, create then publish separately - Choose appropriate updateMode for new or existing models


Quick Decision Guide

Most Database Tasks → rules/relational-database-tool/rule.md

  • ✅ Simple table creation
  • ✅ Data queries and modifications
  • ✅ Schema changes
  • ✅ Direct SQL execution

Complex Modeling Only → This rule (rules/data-model-creation/rule.md)

  • 🎯 Multi-entity relationship modeling
  • 🎯 Automated foreign key management
  • 🎯 Visual ER diagram generation
  • 🎯 Enterprise documentation

Data Model AI Modeling Professional Rules

⚠️ IMPORTANT: Simplified Workflow Recommendation

For most database table creation tasks, use rules/relational-database-tool/rule.md directly:

  • Simple table creation: CREATE TABLE users (id INT PRIMARY KEY, name VARCHAR(255))
  • Schema modifications: ALTER TABLE users ADD COLUMN email VARCHAR(255)
  • Data operations: INSERT, UPDATE, SELECT, DELETE

Only use this advanced Mermaid modeling approach when:

  • You need automated relationship management
  • Complex multi-table schemas with foreign keys
  • Enterprise documentation requirements
  • Visual ER diagram generation

This rule exists for complex modeling scenarios, but most development should use direct SQL execution.

AI Modeling Expert Prompt

As 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:

Generation Rules

  1. Type Mapping Priority: When user-described fields match the mapping relationship, prioritize using type as the field type. Mapping relationships are as follows:
Business Fieldtype
Textstring
Numbernumber
Booleanboolean
Enumx-enum
Emailemail
Phonephone
URLurl
Filex-file
Imagex-image
Rich Textx-rtf
Regionx-area-code
Timetime
Datedate
DateTimedatetime
Objectobject
Arraystring[]
Locationx-location
  1. Naming Convention: Convert Chinese descriptions to English naming (except enum values). Use PascalCase for class names, camelCase for field names.
  1. Field Visibility: Use default visibility for fields, do not add "+" or "-".
  1. Array Types: When descriptions include array types, use specific array formats such as string[], number[], x-rtf[], etc.
  1. Chinese Administrative Regions: When involving Chinese administrative regions like "province/city/district", use x-area-code field type.
  1. 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.
  1. 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.
  1. 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.
  1. Field Descriptions: For each field definition in user descriptions, use <<description>> format at the end of the definition line, e.g., name: string <<Name>>.
  1. 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.
  1. 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.
  1. Relationships: When descriptions contain relationships, relationship label LabelText should not use original semantics, but use relationship field names. For example, A "n" <-- "1" B: field1 means A has many-to-one relationship with B, data exists in A's field1 field. Refer to examples for specifics.
  1. Naming: Field names and descriptions in Mermaid should be concise and accurately expressed.
  1. Complexity Control: Unless user requires, control complexity, e.g., number of classes should not exceed 5, control field complexity.

Standard Example

classDiagram
    class Student {
        name: string <<Name>>
        age: number = 18 <<Age>>
        gender: x-enum = "Male" <<Gender>>
        classId: string <<Class ID>>
        identityId: string <<Identity ID>>
        course: Course[] <<Courses>>
        required() ["name"]
        unique() ["name"]
        enum_gender() ["Male", "Female"]
        display_field() "name"
    }
    class Class {
        className: string <<Class Name>>
        display_field() "className"
    }
    class Course {
        name: string <<Course Name>>
        students: Student[] <<Students>>
        display_field() "name"
    }
    class Identity {
        number: string <<ID Number>>
        display_field() "number"
    }

    %% Relationships
    Student "1" --> "1" Identity : studentId
    Student "n" --> "1" Class : student2class
    Student "n" --> "m" Course : course
    Student "n" <-- "m" Course : students
    %% Class naming
    note for Student "Student Model"
    note for Class "Class Model"
    note for Course "Course Model"
    note for Identity "Identity Model"

Data Model Creation Workflow

1. Business Analysis Phase

  • Carefully analyze user's business requirement descriptions
  • Identify core entities and business objects
  • Determine relationships between entities
  • Clarify required fields, unique constraints, and default values

2. Mermaid Modeling Phase

  • Strictly follow the above generation rules to create mermaid classDiagram
  • Ensure field type mappings are correct
  • Properly handle relationship directions and cardinalities
  • Add complete Chinese descriptions and comments

3. Model Validation Phase

  • Check model completeness and consistency
  • Verify relationship rationality
  • Confirm field constraint correctness
  • Check naming convention compliance

MySQL Data Type Support

Basic Type Mappings

  • string → VARCHAR/TEXT
  • number → INT/BIGINT/DECIMAL
  • boolean → BOOLEAN/TINYINT
  • date → DATE
  • datetime → DATETIME
  • time → TIME

Extended Type Mappings

  • x-enum → ENUM type
  • x-file/x-image → File path storage
  • x-rtf → LONGTEXT rich text
  • x-area-code → Region code
  • x-location → Geographic location coordinates
  • email/phone/url → VARCHAR with validation

Relationship Implementation

  • One-to-one: Foreign key constraints
  • One-to-many: Foreign key associations
  • Many-to-many: Intermediate table implementation
  • Self-association: Same table foreign key

Tool Usage Guidelines

Tool Call Timing (RARE - Use Sparingly)

  1. Only when user explicitly requests advanced data modeling with Mermaid diagrams
  2. Only for complex enterprise applications with multi-entity relationships
  3. Only when user provides detailed business requirement descriptions requiring automated modeling
  4. Only when you need to update existing data model structure AND want visual ER diagrams

When to SKIP this tool (Most Cases)

  • Simple table creation → Use executeWriteSQL with CREATE TABLE
  • Schema changes → Use executeWriteSQL with ALTER TABLE
  • Basic CRUD → Use appropriate SQL statements directly
  • Data queries → Use executeReadOnlySQL

Parameter Usage Guide

  • mermaidDiagram: Complete mermaid classDiagram code
  • publish: Whether to publish model immediately (recommend default to false, create then publish)
  • updateMode: Create new model or update existing model

Error Handling Strategy

  • Syntax errors: Check Mermaid syntax format
  • Field type errors: Verify type mapping relationships
  • Relationship errors: Check relationship directions and cardinalities
  • Naming conflicts: Provide renaming suggestions

Best Practices

Model Design Principles

  1. Single Responsibility: Each entity class is responsible for only one business concept
  2. Minimize Dependencies: Reduce unnecessary relationships
  3. Extensibility: Reserve field space for future expansion
  4. Consistency: Maintain consistency in naming and type usage

Performance Considerations

  1. Index Design: Create indexes for commonly queried fields
  2. Field Length: Reasonably set string field lengths
  3. Relationship Optimization: Avoid excessive many-to-many relationships
  4. Data Sharding: Consider table sharding strategies for large tables

Security Standards

  1. Sensitive Fields: Encrypt storage for sensitive information like passwords
  2. Permission Control: Clarify read/write permissions for fields
  3. Data Validation: Set appropriate field constraints
  4. Audit Logs: Add operation records for important entities

Common Business Scenario Templates

User Management System

classDiagram
    class User {
        username: string <<Username>>
        email: email <<Email>>
        password: string <<Password>>
        avatar: x-image <<Avatar>>
        status: x-enum = "active" <<Status>>
        required() ["username", "email"]
        unique() ["username", "email"]
        enum_status() ["active", "inactive", "banned"]
        display_field() "username"
    }

E-commerce System

classDiagram
    class Product {
        name: string <<Product Name>>
        price: number <<Price>>
        description: x-rtf <<Product Description>>
        images: x-image[] <<Product Images>>
        category: string <<Category>>
        stock: number = 0 <<Stock>>
        required() ["name", "price"]
        display_field() "name"
    }
    class Order {
        orderNo: string <<Order Number>>
        totalAmount: number <<Total Amount>>
        status: x-enum = "pending" <<Order Status>>
        createTime: datetime <<Create Time>>
        required() ["orderNo", "totalAmount"]
        unique() ["orderNo"]
        enum_status() ["pending", "paid", "shipped", "completed", "cancelled"]
        display_field() "orderNo"
    }

Content Management System

classDiagram
    class Article {
        title: string <<Title>>
        content: x-rtf <<Content>>
        author: string <<Author>>
        publishTime: datetime <<Publish Time>>
        status: x-enum = "draft" <<Status>>
        tags: string[] <<Tags>>
        required() ["title", "content", "author"]
        enum_status() ["draft", "published", "archived"]
        display_field() "title"
    }

These rules will guide AI Agents to generate high-quality, business-requirement-compliant data models during the data modeling process.

平台分布

Claude Code

28.09%
按下载量换算41

Codex

22.02%
按下载量换算32

OpenCode

19.09%
按下载量换算28

Antigravity

14.11%
按下载量换算20

windsurf

8.49%
按下载量换算12

qwen-code

3.21%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills