Token导航 LogoToken导航

Agent Skill · 开发

mysql8-crm-schema-expert(mysql8 CRM schema expert 开发)

用于辅助数据库表结构、查询语句、迁移脚本和数据维护任务。它适合让 Agent 分析 schema、编写 SQL、排查查询问题、整理索引或生成迁移建议。使用时需要明确数据库类型、连接环境和目标表,区分只读分析与写入变更;涉及删除、更新、迁移和批量导入时,应优先 dry-run、备份或事务保护,避免误操作。

mysql8-crm-schema-expert 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为只读;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 9,295。

总安装 2,775周安装 118GitHub Stars 公开资料未说明下载 972核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:mysql8-crm-schema-expert(mysql8 CRM schema expert 开发)
来源仓库:https://github.com/encryptshawn/mysql8-crm-schema-expert
安装命令:
openclaw skills install mysql8-crm-schema-expert
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install mysql8-crm-schema-expert

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

mysql8-crm-schema-expert 专注于 CRM 系统的 MySQL 8 数据库设计。提供表结构设计、索引优化与模式审查服务。适用于客户管理系统开发与性能调优需求。mysql8-crm-schema-expert 属于开发类 Skill,可作为该场景下的辅助能力补充。

输出结果应结合具体业务实体与查询模式定制。避免通用模板,需根据实际数据量与并发要求评估方案。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install mysql8-crm-schema-expert;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

mysql8-crm-schema-expert 怎么安装?

在终端执行 openclaw skills install mysql8-crm-schema-expert。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

mysql8-crm-schema-expert 支持哪些 AI 工具?

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

mysql8-crm-schema-expert 需要什么权限?

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

mysql8-crm-schema-expert 是免费的吗?

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

mysql8-crm-schema-expert 用的人多吗?

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

mysql8-crm-schema-expert 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

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

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
mysql8-crm-schema-expert

mysql8 CRM schema expert 开发 · 本页

2,775—只读MIT-0通过

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

SKILL.md 原文

name
mysql8-design-crm
version
1.0.0
description
>

MySQL 8 CRM Database Design Skill

A comprehensive guide for designing production-quality MySQL 8 database schemas for CRM (Customer Relationship Management) systems. This skill covers everything from core entity design to advanced patterns like EAV custom fields, polymorphic activities, audit trails, and multi-tenant architectures.

How to Use This Skill

This skill is organized into a main guide (this file) and detailed reference documents. Read the relevant reference file before generating any SQL or making design decisions.

Reference Files

Read these from references/ as needed:

FileWhen to Read
core-entities.mdDesigning the foundational CRM tables (accounts, contacts, leads, opportunities, etc.)
relationships-and-normalization.mdEstablishing foreign keys, junction tables, and achieving proper normal forms
indexing-and-performance.mdCreating indexes, query optimization, partitioning, and performance tuning
custom-fields-and-flexibility.mdImplementing EAV patterns, JSON columns, or hybrid approaches for user-defined fields
audit-and-soft-deletes.mdChange tracking, audit trails, soft delete patterns, and compliance logging
activities-and-timeline.mdPolymorphic activity feeds, notes, tasks, emails, calls, and event tracking
security-and-multitenancy.mdRow-level security, role-based access, tenant isolation, and data privacy
migrations-and-seeding.mdSchema versioning, migration scripts, and realistic test data generation
reference-schemas.mdComplete example schemas you can use as starting points

Core Design Principles

When designing a CRM database on MySQL 8, always follow these principles:

  1. Relational integrity first. Define FOREIGN KEY constraints at the database level. Never rely on application code alone to maintain referential integrity.
  1. Normalize to 3NF, then denormalize deliberately. Start at Third Normal Form. Only denormalize when you have measured performance evidence, and document the reason.
  1. Consistent naming conventions. Use snake_case for all identifiers. Table names are plural (contacts, accounts). Foreign keys follow the pattern {singular_referenced_table}_id (e.g., account_id). Timestamps are created_at, updated_at, deleted_at.
  1. Every table gets an audit baseline. At minimum: id (BIGINT UNSIGNED AUTO_INCREMENT), created_at, updated_at. Most CRM tables also need created_by and updated_by.
  1. Soft deletes over hard deletes. CRM data has legal, compliance, and historical reporting value. Use deleted_at (TIMESTAMP NULL) rather than DELETE statements.
  1. Use BIGINT UNSIGNED for primary keys. INT runs out at ~2.1 billion. CRM tables like activities and audit logs grow fast. BIGINT UNSIGNED gives you headroom through 18.4 quintillion.
  1. UTF8MB4 everywhere. Always CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci. Customer names, notes, and communications contain international characters and emoji.
  1. InnoDB only. All tables use InnoDB for transaction support, row-level locking, foreign key enforcement, and crash recovery.
  1. Timestamps use DATETIME(3) or TIMESTAMP. For CRM, prefer DATETIME(3) for event times (timezone-independent, millisecond precision). Use TIMESTAMP for created_at/updated_at with DEFAULT CURRENT_TIMESTAMP and ON UPDATE CURRENT_TIMESTAMP.
  1. Design for integration. CRM systems connect to email, marketing, billing, and support tools. Include external_id or external_source columns on entities that sync with third-party systems.

Standard Table Template

Every CRM table should follow this baseline structure:

CREATE TABLE `table_name` (
    `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,

    -- entity-specific columns here --

    `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    `deleted_at` TIMESTAMP NULL DEFAULT NULL,
    `created_by` BIGINT UNSIGNED NULL DEFAULT NULL,
    `updated_by` BIGINT UNSIGNED NULL DEFAULT NULL,

    PRIMARY KEY (`id`),
    INDEX `idx_table_name_deleted_at` (`deleted_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

Workflow for Designing a CRM Schema

Follow this sequence when the user asks you to design a CRM database:

  1. Clarify scope. Determine which CRM modules are needed: contacts/accounts, sales pipeline, marketing/campaigns, support/tickets, or all of the above.
  1. Read the relevant reference files. Always start with core-entities.md. Add others based on the modules identified.
  1. Design entities first, relationships second. List the tables and their columns, then define the foreign keys and junction tables.
  1. Apply indexing strategy. Read indexing-and-performance.md and add indexes for every foreign key, every column used in WHERE/JOIN/ORDER BY, and composite indexes for common query patterns.
  1. Add flexibility layer. If the user needs custom fields, read custom-fields-and-flexibility.md and choose between EAV, JSON columns, or a hybrid approach.
  1. Add audit and compliance. Read audit-and-soft-deletes.md and implement the appropriate level of change tracking.
  1. Generate migration scripts. Read migrations-and-seeding.md and output versioned, idempotent migration SQL.
  1. Review and validate. Walk through the schema checking for: missing indexes on FKs, missing NOT NULL constraints, missing default values, orphan risk, and query patterns that would cause full table scans.

MySQL 8 Features to Leverage

These MySQL 8 specific features are particularly valuable for CRM schemas:

  • JSON columns for semi-structured data (custom fields, metadata, integration payloads). See custom-fields-and-flexibility.md.
  • Generated columns (VIRTUAL or STORED) to extract and index JSON values.
  • Functional indexes (8.0.13+) to index expressions without explicit generated columns.
  • Multi-valued indexes (8.0.17+) to index JSON arrays efficiently.
  • Common Table Expressions (CTEs) for recursive queries on hierarchical data (org charts, account hierarchies, nested categories).
  • Window functions for pipeline analytics (running totals, rank, lead/lag).
  • CHECK constraints for data validation at the database level.
  • DEFAULT expressions for computed defaults.
  • Invisible indexes for safe testing of index removal.
  • Descending indexes for optimizing ORDER BY ... DESC queries.

Quick Decision Guide

SituationAction
User needs a full CRM from scratchRead core-entities.md + reference-schemas.md, design all modules
User needs just contacts + accountsRead core-entities.md, design the contact/account module only
User asks about custom fieldsRead custom-fields-and-flexibility.md
User has performance concernsRead indexing-and-performance.md
User needs GDPR/compliance supportRead audit-and-soft-deletes.md + security-and-multitenancy.md
User is building multi-tenant SaaS CRMRead security-and-multitenancy.md
User wants to track all user activityRead activities-and-timeline.md
User needs migration scriptsRead migrations-and-seeding.md
User wants a ready-to-use schemaRead reference-schemas.md

平台分布

OpenClaw

98.37%
按下载量换算956

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

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

安装前确认

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

继续浏览同类 Skills