MySQL Database Test Assistant: Generating Standardized CREATE TABLE Statements from Business Documents and Existing DDLs

Introduction

Aligning business rules written in Markdown with legacy CREATE TABLE scripts from old systems into a set of production-ready table structures often requires repeatedly cross-referencing database conventions from the Alibaba Java Development Manual, syntax differences between MySQL 5.7/8.0, and table creation requirements for Alibaba Cloud RDS. Manually organizing DDL is time-consuming and prone to omissions regarding field types, naming, and comments.

The following introduces the MySQL Database Test Assistant (Coordinate @user_1a9d72e6/mysql-design) on SkillHub. Within a conversation, it takes business rule documents and existing SQL as input to output table designs suitable for MySQL 5.7/8.0, referencing Alibaba conventions and Alibaba Cloud RDS. It is suitable for assisting with “Document + Old DB → New DDL” workflows within Agents.

What is this

MySQL Database Test Assistant is a community-sourced (community) Agent Skill, currently at version 1.0.0, categorized under dev-programming, and published by user_1a9d72e6. The page intro positions it as a MySQL Database Design Assistant: it reads business rules (.md) and SQL scripts (.sql) to generate MySQL 5.7/8.0 CREATE TABLE statements that comply with Alibaba conventions, emphasizing output that follows Alibaba Cloud RDS table design constraints.

The Skill is marked with requires_api_key=false, meaning it does not rely on additional API Keys. It has a rating of 100000 and 1175 downloads on SkillHub (data sourced from the SkillHub page and crawled metadata).

Official Access:

  • SkillHub Display Page: https://www.skillhub.cn/skills/user_1a9d72e6/mysql-design
  • API Resource Address: https://api.skillhub.cn/user_1a9d72e6/mysql-design

Core Functions

The following capabilities are derived from the official introduction without extension:

  1. Trigger Method: The Skill can be invoked to participate in tasks when expressions like “Database Design”, “Create Table Statement”, “DDL”, “Table Structure Design”, or “CREATE TABLE” appear in the conversation.
  2. Input Type: Supports reading Business Rule Documents (.md) and Existing DDL/SQL Scripts (.sql).
  3. Output Target: Generates CREATE TABLE statements usable in MySQL 5.7 / 8.0; aligns with Alibaba database conventions and targets Alibaba Cloud RDS table design habits.
  4. Collaboration Form: In Agents supporting Skills, the model organizes the context according to the Skill instructions. You provide document and script paths or content, and the assistant produces or revises CREATE TABLE DDL.

Installation and Activation

SkillHub officially suggests: Let the AI install the coordinate @user_1a9d72e6/mysql-design following the SkillHub Installation Instructions. For manual operation, the typical workflow is as follows:

1. Install SkillHub CLI (if not installed)

command -v skillhub && skillhub --version

If not installed, you can execute the full installation (CLI + Default Skill):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install this Skill to the current Agent’s skills directory

When installing, you must use --dir to point to the skills directory recognized by the current client; otherwise, defaulting to ./skills/ might prevent the Agent from loading it.

skillhub install user_1a9d72e6/mysql-design --dir <your skills directory>

Common paths (excerpted from SkillHub installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, restart or refresh the Agent according to your client’s requirements to enable the Skill.

Typical Usage

The official page does not provide fixed one-click example dialogues, but the intro clarifies reproducible materials and intent. You can use it in an Agent following these steps:

  1. Prepare Materials: Organize business rules into .md (entities, field meanings, constraints, enums, etc.); if there is a production or legacy database, export the relevant table .sql DDL.
  2. State Goal in Conversation: Use one of the trigger words from the intro, for example, stating the need for “Table Structure Design based on business documents and existing DDL”, and specify the MySQL version (5.7 or 8.0).
  3. Provide Files: In environments like Cursor, @-reference the above .md / .sql files, or paste key fragments, requesting a complete CREATE TABLE output with necessary explanations.
  4. Review Output: Manually review against Alibaba conventions and RDS requirements (character set, primary keys, indexes, comments, field types, etc.); the Skill output is a design draft. Before going live, it should still be executed in a test database and undergo the change process.

Example Intent (not official text, illustrates input/output relationship):

Please based on @docs/order-rules.md and @sql/legacy_order.sql,
design new tables for the order domain for MySQL 8.0, output CREATE TABLE,
following Alibaba database conventions and Alibaba Cloud RDS table creation habits.

Applicable Scenarios and Notes

Who is it for

  • Backend developers or DBAs who need to quickly align Product/Business Documents with Legacy DDL into unified CREATE TABLE statements within an Agent.
  • Teams that have agreed to reference Alibaba database conventions and are planning to use or are already using Alibaba Cloud RDS.

Limitations and Notes

  • The Skill name contains “Test Assistant”, but the official intro positions it as a Database Design Assistant; rely on the design, DDL, and table creation capabilities in the intro.
  • Implementation of conventions depends on the model’s execution of Skill instructions; it cannot replace code reviews, stress testing, and real-machine verification on the target MySQL version.
  • No API Key is required, but if the SkillHub CLI is not installed locally or the Skill is not installed to the correct --dir, the Agent will be unable to load the skill.
  • The intro does not promise automatic connection to online databases; actual input relies primarily on the .md / .sql and conversation content you provide.

Conclusion

MySQL Database Test Assistant converges “Business Rule Markdown + Existing SQL” into MySQL 5.7/8.0 table creation DDL, aligning with Alibaba conventions and Alibaba Cloud RDS table design orientations. It is suitable for reducing the time spent on manual DDL assembly in a Skill-driven development workflow. For installation and coordinates, refer to SkillHub: @user_1a9d72e6/mysql-design, page: https://www.skillhub.cn/skills/user_1a9d72e6/mysql-design .

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye