db-naming-conventions

Enforce snake_case naming conventions across SQL migrations and Mermaid diagrams.

Updated Jan 18, 2026
One-click install
npx skills add https://github.com/333-333-333/agents --skill db-naming-conventions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-naming-conventions
Source: https://github.com/333-333-333/agents/tree/main/skills/db-naming-conventions
Command: npx skills add https://github.com/333-333-333/agents --skill db-naming-conventions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

Naming conventions for relational databases can drift across schemas, migrations, diagrams, and code, leading to confusion and costly refactors.

Core Features & Use Cases

  • Standardizes naming for databases, tables, columns, indexes, and constraints to ensure consistency across migrations and diagrams.
  • Guides ER diagram generation in Mermaid to mirror SQL schemas exactly.
  • Helps teams audit and refactor existing schemas to align with defined conventions.

Quick Start

Apply the db-naming-conventions skill to your SQL migrations and Mermaid diagrams to enforce consistent naming across your schema.

Frequently Asked Questions about db-naming-conventions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce consistent database naming conventions across SQL migrations and ER diagrams?

You can enforce consistent database naming by applying standardized rules across SQL migrations and Mermaid ER diagrams. This ensures schemas use snake_case formatting, plural table names, and proper foreign key patterns like singular_table_id, preventing naming drift and costly refactors.

What are the best naming conventions for database tables, columns, and foreign keys in SQL?

The best database naming conventions standardize identifiers by using snake_case for all elements, plural names for tables, id for primary keys, and singular_table_id for foreign keys. Booleans should use is_ prefixes, while enums require specific type and value naming patterns.

How do I keep Mermaid ER diagrams synchronized with my SQL schema naming?

To keep Mermaid ER diagrams synchronized with SQL schemas, apply consistent naming rules during database design. This guides ER diagram generation to mirror SQL schemas exactly by enforcing matching snake_case formatting, plural table names, and identical foreign key patterns across both representations.

Can I audit and refactor an existing database schema to align with standard naming rules?

Yes, you can audit and refactor existing database schemas to align with defined naming conventions. This involves reviewing databases, tables, columns, indexes, and constraints to ensure they follow snake_case formatting, plural table names, and proper foreign key patterns.

When should I use is_ prefixes and specific naming patterns for database booleans and enums?

You should use is_ prefixes for boolean columns and specific naming patterns for database enums when establishing consistent data models. These naming rules apply directly to SQL migrations and data models to standardize identifiers and prevent confusion across relational database schemas.