p3c-mysql-database

Community

P3C MySQL standards for solid DB design.

Authorjie023
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill provides standardized MySQL database guidelines aligned with P3C, covering table creation rules, SQL statement standards, indexing strategies, and ORM mapping requirements to improve consistency and quality.

Core Features & Use Cases

  • Enforces mandatory fields and conventions: id as primary key, business_id as unique foreign key, create_time, update_time, delete_state, delete_time; field naming uses lowercase with underscores; all fields include comments.
  • Provides SQL and indexing rules: proper data types, using decimals for numbers, avoiding reserved words, and recommended index strategies for performance.
  • Use Case: An enterprise Java service schema is refactored to align with P3C standards to ensure maintainability and easier code reviews.

Quick Start

Apply the p3c-mysql-database skill to audit a schema.sql or ORM mapping file against the P3C guidelines and generate a compliant schema template.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: p3c-mysql-database
Download link: https://github.com/jie023/trae-setting/archive/main.zip#p3c-mysql-database

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.