home / skills / jcastillotx / vibe-skeleton-app / mariadb-best-practices
This skill helps optimize MariaDB development by applying best-practice rules for queries, security, schema, storage engines, and Galera clusters.
npx playbooks add skill jcastillotx/vibe-skeleton-app --skill mariadb-best-practicesReview the files below or copy the command above to add this skill to your agents.
---
name: mariadb-best-practices
description: MariaDB database development standards. Triggers when working with MariaDB databases, Galera cluster, or MariaDB-specific features.
trigger_patterns:
- mariadb
- galera
- aria
- columnstore
- system versioning
auto_load_with:
- mysql-best-practices
---
# MariaDB Best Practices
Comprehensive coding standards for MariaDB database development, optimized for AI agents and LLMs.
## Overview
This skill provides 22 rules organized across 8 categories:
1. **Query Optimization (query-)** - MariaDB optimizer hints, statistics [CRITICAL]
2. **Security (security-)** - Authentication plugins, encryption at rest [CRITICAL]
3. **Schema Design (schema-)** - System versioning, sequences [HIGH]
4. **Storage Engines (engine-)** - InnoDB, Aria, ColumnStore selection [HIGH]
5. **Galera Cluster (galera-)** - Multi-master, SST methods [MEDIUM-HIGH]
6. **Performance Tuning (perf-)** - Thread pool, buffer pool [MEDIUM]
7. **JSON Features (json-)** - JSON functions, dynamic columns [MEDIUM]
8. **Compatibility (compat-)** - MySQL compatibility, migration [LOW-MEDIUM]
## Usage
Reference this skill when:
- Working with MariaDB-specific features
- Setting up Galera cluster
- Using system versioned tables
- Optimizing MariaDB performance
- Migrating from MySQL to MariaDB
## Build
```bash
pnpm build # Compile rules to AGENTS.md
pnpm validate # Validate rule files
```
This skill codifies MariaDB database development standards and practical rules for agents working with MariaDB features. It bundles focused guidance across query optimization, security, schema design, storage engines, Galera clustering, performance tuning, JSON handling, and compatibility. The goal is to enforce safe, performant, and maintainable MariaDB usage in applications and deployments.
The skill inspects operation context and suggests rules or fixes tied to MariaDB-specific areas such as optimizer hints, authentication plugins, storage engine selection, and Galera configuration. It flags high-priority concerns (e.g., security and query optimization), recommends configuration and schema changes, and supplies targeted best-practice steps for common tasks like setting up SST for Galera or choosing InnoDB vs Aria. Rules are concise and actionable so agents can apply or recommend changes automatically.
Is this skill only for MariaDB GA releases?
The guidance targets MariaDB features broadly; validate exact options against your MariaDB version because some features and defaults can vary by release.
Can I apply these rules to MySQL?
Many principles overlap, but follow this skill only when leveraging MariaDB-specific features or behaviors that differ from MySQL.