SQL
Master relational databases with SQL. Schema design, queries, performance, migrations for PostgreSQL, MySQL, SQLite, SQL Server.
Why use this skill?
Master relational database management with OpenClaw. Streamline schema design, complex SQL queries, performance optimization, and migrations for PostgreSQL, MySQL, and more.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ivangdavila/sqlWhat This Skill Does
The SQL skill empowers OpenClaw to become a sophisticated database administrator and data engineer. It provides the agent with the internal logic to handle schema design, efficient querying, migration planning, and performance tuning for major relational database engines including PostgreSQL, MySQL, SQLite, and SQL Server. Rather than just writing syntax, the skill enforces industry-standard best practices such as parameterized queries to prevent SQL injection, the proper use of transactions to ensure ACID compliance, and strategic indexing to optimize read performance. It acts as an expert consultant for translating natural language requirements into optimized relational structures.
Installation
To integrate this skill into your environment, use the OpenClaw command-line interface. Run the following command in your terminal:
clawhub install openclaw/skills/skills/ivangdavila/sql
Use Cases
- Schema Architecture: Designing normalized tables for new applications, defining relationships (one-to-many, many-to-many), and determining appropriate data types.
- Performance Auditing: Analyzing slow-running queries and identifying missing indexes or inefficient table scans.
- Data Migration: Generating SQL scripts to transform data schemas during application version upgrades.
- Operational Maintenance: Managing database backups, checking storage health, and executing bulk imports/exports safely.
- Security Hardening: Identifying potential risks like SQL injection vulnerabilities and refactoring code to use safe parameterization.
Example Prompts
- "Analyze this schema design for a multi-tenant e-commerce app and suggest indexing strategies for the orders table to optimize search by user_id and created_at."
- "Write a PostgreSQL migration script to safely add a non-nullable column with a default value to an existing users table with 10 million rows."
- "Refactor this query to use EXISTS instead of IN and explain why this improves performance for large datasets."
Tips & Limitations
To get the best results, always define the database engine (e.g., MySQL vs. PostgreSQL) in your prompt, as syntax variations exist. Be mindful that while the agent can suggest complex queries, you must verify execution permissions and environment connectivity. Avoid running destructive commands like DROP TABLE in production environments without explicit confirmation. Remember that while indexing improves read speed, excessive indexes on a write-heavy table can decrease performance; always balance your design choices.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ivangdavila-sql": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, code-execution
Related Skills
Animations
Create performant web animations with proper accessibility and timing.
Arduino
Develop Arduino projects avoiding common wiring, power, and code pitfalls.
Bulgarian
Write Bulgarian that sounds human. Not formal, not robotic, not AI-generated.
Arabic
Write Arabic that sounds human. Not formal, not robotic, not AI-generated.
Assistant
Manage tasks, communications, and scheduling with proactive and organized support.