A MySQL 8.0 schema design and review skill that produces executable DDL, indexing strategies, validation checklists, and actionable risk warnings.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install mysql-schema-best-practice-generator
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install mysql-schema-best-practice-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
MySQL Schema Best Practice Generator is one of the Openclaw Skills designed to turn business table requirements into production-ready MySQL 8.0 database schemas. It generates normalized DDL with InnoDB, utf8mb4, explicit constraints, audit columns, indexes, foreign keys, naming conventions, partition guidance, and performance-aware defaults.
The skill also reviews existing DDL for structural, performance, security, and maintainability issues. It identifies missing primary keys, unsuitable data types, inconsistent time handling, redundant indexes, weak naming, partitioning errors, and migration risks, then returns repair recommendations or corrected SQL where possible.
generate for a new schema or review for existing MySQL DDL.NOT NULL and defaults, UTC-oriented time handling, table comments, and required primary keys.CREATE DATABASE, CREATE TABLE, index, constraint, generated-column, and related DDL statements.ERROR, WARN, or INFO, explain each issue, provide a fix and example SQL, and return fixed_ddl when automatic correction is practical.This skill is primarily a static specification generator and reviewer. It does not require an external MCP service or a live MySQL connection.
generate request or a review request.Example generation payload:
cat > schema-request.json <<'JSON'
{
"mode": "generate",
"db_name": "app_db",
"tables": [
{
"table": "users",
"comment": "Application users",
"columns": [
{
"name": "id",
"type": "BIGINT UNSIGNED",
"nullable": false,
"pk": true,
"auto_increment": true,
"comment": "Surrogate primary key"
},
{
"name": "email",
"type": "VARCHAR",
"length": 255,
"nullable": false,
"unique": true,
"comment": "User email address"
}
]
}
],
"naming": {"snake_case": true, "lowercase": true},
"collation": {"charset": "utf8mb4", "collate": "utf8mb4_0900_ai_ci"}
}
JSON
Optional SQL formatting can use an available sql-formatter MCP server. The skill should first check capabilities, add the configured server if needed, call format_sql, and fall back to built-in formatting when the tool is unavailable.
| Object | Key fields |
|---|---|
| Request | mode, db_name, tables, naming, collation |
| Table | table, comment, columns, unique_keys, indexes, foreign_keys, partition, engine, extras |
| Column | name, type, nullable, default, comment, enum, length, precision, scale, pk, auto_increment, unique |
| Index | name, columns, type, comment |
| Foreign key | columns, ref_table, ref_columns, on_update, on_delete |
| Partition | type, expr, partitions |
| Extras | soft_delete, tenant_id |
mode: Must be review.ddl: Original MySQL DDL string.context: Optional workload such as OLTP, OLAP, or mixed; expected data_size; and peak qps.ddl: Executable generated SQL containing database, tables, comments, indexes, constraints, and required table options.issues: Review findings with level, item, detail, fix, and optional example SQL.fixed_ddl: Corrected DDL when automatic repair is possible.checklist: Standards and release-validation items.rationale: Key design tradeoffs and decisions.migration_notes: Deployment and rollback guidance.risk_warnings: Potential data, locking, compatibility, or performance risks.Default metadata conventions include ENGINE=InnoDB, utf8mb4, utf8mb4_0900_ai_ci, ROW_FORMAT=DYNAMIC, UTC-aware timestamp handling, created_at, updated_at, created_by, updated_by, and optional indexed deleted_at for soft deletion. Names should use lowercase snake_case with pk_, uk_, idx_, and fk_ prefixes.
ON UPDATE CURRENT_TIMESTAMP behavior.fixed_ddl.sql-formatter MCP tool without making the main workflow dependent on MCP.Loading
A rigorous Openclaw Skills workflow that verifies the exact public npm tarball before a maintainer announces a release.

A practical writing skill that turns workplace intent into clear, tactful, ready-to-send emails and long-form chat messages.

Product Page Designer creates complete, conversion-optimized consumer electronics product pages with premium copy, structured specifications, image prompts, and implementation guidance.

A practical guide to authoring FlightGear PropertyList XML files with structured properties, reusable includes, aliases, expressions, tables, and conditional logic.

Contracko Contract Review helps agents analyze contracts, monitor renewal deadlines, compare versions, audit risks, and prioritize portfolio actions.

M5Stack Firmware Query provides safe, read-only access to live public M5Burner firmware data for discovery, verification, and device-specific recommendations.








































