sql-development_skill

This skill helps you design efficient database schemas, write optimized SQL, and manage data operations following best practices.
  • Python

3

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill dasien/claudemultiagenttemplate --skill sql-development

  • SKILL.md2.1 KB

Overview

This skill helps design efficient database schemas, write optimized SQL queries, and manage data operations following database best practices. It focuses on schema normalization, index strategy, and performant CRUD patterns. The goal is reliable, maintainable, and high-performance data access for production systems.

How this skill works

I inspect application data models and query patterns, propose normalized schemas, and recommend primary/foreign keys and constraints. I analyze slow queries with EXPLAIN, suggest index strategies, and rewrite queries to reduce scans and avoid N+1 issues. I also provide migration guidance and testing approaches using realistic data volumes.

When to use it

  • Designing or refactoring a database schema
  • Optimizing slow or frequently-run queries
  • Planning and applying index strategies
  • Creating safe database migrations
  • Reducing data redundancy and enforcing constraints

Best practices

  • Define primary keys, foreign keys, and appropriate constraints
  • Index columns used in JOINs, WHERE, ORDER BY, and GROUP BY
  • Avoid SELECT *; list only required columns
  • Use prepared statements or parameterized queries to prevent SQL injection
  • Analyze queries with EXPLAIN and test with realistic data volumes

Example use cases

  • Designing a task management schema with proper indexes and status tracking
  • Optimizing a slow report query by adding composite indexes and rewriting joins
  • Refactoring an API to eliminate N+1 queries and batch fetch related records
  • Creating migration scripts that add/remove columns with minimal downtime
  • Reviewing query plans and proposing index changes for high-traffic tables

FAQ

Normalize to reduce redundancy and maintain integrity; denormalize selectively for read performance when queries are proven bottlenecks and careful update strategies exist.

When should I add a composite index?

Add a composite index when queries commonly filter or sort by the same combination of columns; order the index columns to match the most selective predicates first.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational