Skip to content
Back to skills

Database Skill

ASecurity

Design and manage relational databases including table creation, migrations, and schema design. Use for database modeling and maintenance.

  • 57 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
databasessqldatabase

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill database-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Database Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Database Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-database-skill/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-database-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: database-skill
description: Design and manage relational databases including table creation, migrations, and schema design. Use for database modeling and maintenance.
---

# Database Skill – Schema Design & Migrations

## Instructions

1. **Table Creation**
   - Define clear and consistent table structures
   - Use appropriate data types and constraints
   - Apply primary keys and foreign keys correctly

2. **Schema Design**
   - Normalize data where appropriate
   - Model relationships explicitly
   - Design for scalability and maintainability

3. **Migrations**
   - Create forward and backward migrations
   - Ensure migrations are idempotent and safe
   - Avoid destructive changes without backups

4. **Indexes & Constraints**
   - Add indexes for frequently queried columns
   - Enforce uniqueness and referential integrity
   - Use constraints to protect data correctness

## Best Practices
- Use consistent naming conventions
- Keep schemas simple and well-documented
- Version control all migrations
- Test migrations in non-production environments
- Follow relational database design principles

## Example Structure
```sql
CREATE TABLE users (
  id UUID PRIMARY KEY,
  email TEXT UNIQUE NOT NULL,
  password_hash TEXT NOT NULL,
  created_at TIMESTAMP DEFAULT NOW()
);

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.