database

Database development and operations workflow covering SQL, NoSQL, database design, migrations, optimization, and data engineering.

31,392 stars
Complexity: easy

About this skill

This skill provides a structured, multi-phase workflow for AI agents to assist with all aspects of database management. It covers foundational database design principles, enables the implementation of robust migration strategies, and facilitates advanced tasks such as query performance optimization, data pipeline setup, and data quality assurance. The workflow is designed to handle both SQL and NoSQL databases, making it versatile for modern data platforms and a critical tool for data professionals and developers. By invoking specific sub-skills, the agent can streamline complex database operations, ensure data integrity, and enhance efficiency.

Best use case

Designing and implementing new database schemas; managing schema changes and data migrations; optimizing existing database performance; setting up and managing data pipelines for ETL/ELT; ensuring data quality and consistency; automating routine database administration tasks.

Database development and operations workflow covering SQL, NoSQL, database design, migrations, optimization, and data engineering.

Efficiently designed and optimized database schemas; smoothly executed database migrations with minimal downtime; improved query performance and reduced operational costs; robust data pipelines for reliable data flow; enhanced data quality and consistency across systems; automated and streamlined database development and operations workflows.

Practical example

Example input

Design a new NoSQL database schema for a social media application, including user profiles, posts, and comments. Ensure the design supports high scalability and efficient retrieval of user feeds.

Example output

**Phase 1: Database Design - NoSQL Social Media Schema Proposal**

**Collection: Users**
*   `_id`: UUID (Primary Key)
*   `username`: String (Unique)
*   `email`: String (Unique)
*   `profile_picture_url`: String (Optional)
*   `bio`: String (Optional)
*   `followers`: Array of User IDs
*   `following`: Array of User IDs
*   `created_at`: Timestamp
*   `updated_at`: Timestamp
*   `posts_count`: Integer (Denormalized for quick access)

**Collection: Posts**
*   `_id`: UUID (Primary Key)
*   `user_id`: UUID (Foreign Key to Users)
*   `content`: String
*   `media_urls`: Array of Strings (Optional)
*   `likes`: Integer (Denormalized)
*   `comments_count`: Integer (Denormalized)
*   `created_at`: Timestamp
*   `updated_at`: Timestamp

**Collection: Comments**
*   `_id`: UUID (Primary Key)
*   `post_id`: UUID (Foreign Key to Posts)
*   `user_id`: UUID (Foreign Key to Users)
*   `content`: String
*   `created_at`: Timestamp

**Indexing Strategy:**
*   Users: Index on `username`, `email`.
*   Posts: Index on `user_id`, `created_at`.
*   Comments: Index on `post_id`, `user_id`, `created_at`.

**Justification:** This schema prioritizes fast read access for user feeds and profiles by denormalizing counts and using efficient UUIDs for IDs. Relationships are managed via embedding/linking IDs suitable for NoSQL document stores.

When to use this skill

  • When designing new database schemas or refining existing ones; when implementing database migrations (schema or data); when optimizing query performance and overall database efficiency; when setting up or managing data pipelines and data ingestion; when performing routine database operations or troubleshooting performance issues; when ensuring data quality standards are met.

When not to use this skill

  • For simple data retrieval queries that do not require complex workflow or architectural changes; when the database interaction is limited to basic CRUD operations without optimization or design considerations; when working with highly specialized, proprietary database systems not covered by general SQL/NoSQL paradigms; for tasks requiring direct human intuition or physical server access that cannot be abstracted by an agent.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/database/SKILL.md --create-dirs "https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/plugins/antigravity-awesome-skills-claude/skills/database/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/database/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How database Compares

Feature / AgentdatabaseStandard Approach
Platform SupportClaudeLimited / Varies
Context Awareness High Baseline
Installation ComplexityeasyN/A

Frequently Asked Questions

What does this skill do?

Database development and operations workflow covering SQL, NoSQL, database design, migrations, optimization, and data engineering.

Which AI agents support this skill?

This skill is designed for Claude.

How difficult is it to install?

The installation complexity is rated as easy. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Database Workflow Bundle

## Overview

Comprehensive database workflow for database design, development, optimization, migrations, and data engineering. Covers SQL, NoSQL, and modern data platforms.

## When to Use This Workflow

Use this workflow when:
- Designing database schemas
- Implementing database migrations
- Optimizing query performance
- Setting up data pipelines
- Managing database operations
- Implementing data quality

## Workflow Phases

### Phase 1: Database Design

#### Skills to Invoke
- `database-architect` - Database architecture
- `database-design` - Schema design
- `postgresql` - PostgreSQL design
- `nosql-expert` - NoSQL design

#### Actions
1. Gather requirements
2. Design schema
3. Define relationships
4. Plan indexing strategy
5. Design for scalability

#### Copy-Paste Prompts
```
Use @database-architect to design database schema
```

```
Use @postgresql to design PostgreSQL schema
```

### Phase 2: Database Implementation

#### Skills to Invoke
- `prisma-expert` - Prisma ORM
- `database-migrations-sql-migrations` - SQL migrations
- `neon-postgres` - Serverless Postgres

#### Actions
1. Set up database connection
2. Configure ORM
3. Create migrations
4. Implement models
5. Set up seed data

#### Copy-Paste Prompts
```
Use @prisma-expert to set up Prisma ORM
```

```
Use @database-migrations-sql-migrations to create migrations
```

### Phase 3: Query Optimization

#### Skills to Invoke
- `database-optimizer` - Database optimization
- `sql-optimization-patterns` - SQL optimization
- `postgres-best-practices` - PostgreSQL optimization

#### Actions
1. Analyze slow queries
2. Review execution plans
3. Optimize indexes
4. Refactor queries
5. Implement caching

#### Copy-Paste Prompts
```
Use @database-optimizer to optimize database performance
```

```
Use @sql-optimization-patterns to optimize SQL queries
```

### Phase 4: Data Migration

#### Skills to Invoke
- `database-migration` - Database migration
- `framework-migration-code-migrate` - Code migration

#### Actions
1. Plan migration strategy
2. Create migration scripts
3. Test migration
4. Execute migration
5. Verify data integrity

#### Copy-Paste Prompts
```
Use @database-migration to plan database migration
```

### Phase 5: Data Pipeline Development

#### Skills to Invoke
- `data-engineer` - Data engineering
- `data-engineering-data-pipeline` - Data pipelines
- `airflow-dag-patterns` - Airflow workflows
- `dbt-transformation-patterns` - dbt transformations

#### Actions
1. Design data pipeline
2. Set up data ingestion
3. Implement transformations
4. Configure scheduling
5. Set up monitoring

#### Copy-Paste Prompts
```
Use @data-engineer to design data pipeline
```

```
Use @airflow-dag-patterns to create Airflow DAGs
```

### Phase 6: Data Quality

#### Skills to Invoke
- `data-quality-frameworks` - Data quality
- `data-engineering-data-driven-feature` - Data-driven features

#### Actions
1. Define quality metrics
2. Implement validation
3. Set up monitoring
4. Create alerts
5. Document standards

#### Copy-Paste Prompts
```
Use @data-quality-frameworks to implement data quality checks
```

### Phase 7: Database Operations

#### Skills to Invoke
- `database-admin` - Database administration
- `backup-automation` - Backup automation

#### Actions
1. Set up backups
2. Configure replication
3. Monitor performance
4. Plan capacity
5. Implement security

#### Copy-Paste Prompts
```
Use @database-admin to manage database operations
```

## Database Technology Workflows

### PostgreSQL
```
Skills: postgresql, postgres-best-practices, neon-postgres, prisma-expert
```

### MongoDB
```
Skills: nosql-expert, azure-cosmos-db-py
```

### Redis
```
Skills: bullmq-specialist, upstash-qstash
```

### Data Warehousing
```
Skills: clickhouse-io, dbt-transformation-patterns
```

## Quality Gates

- [ ] Schema designed and reviewed
- [ ] Migrations tested
- [ ] Performance benchmarks met
- [ ] Backups configured
- [ ] Monitoring in place
- [ ] Documentation complete

## Related Workflow Bundles

- `development` - Application development
- `cloud-devops` - Infrastructure
- `ai-ml` - AI/ML data pipelines
- `testing-qa` - Data testing

Related Skills

documentation

31392
from sickn33/antigravity-awesome-skills

Documentation generation workflow covering API docs, architecture docs, README files, code comments, and technical writing.

Workflow & Automation BundlesClaude

food-database-query

31392
from sickn33/antigravity-awesome-skills

Food Database Query

NutritionClaude

database-optimizer

31392
from sickn33/antigravity-awesome-skills

Expert database optimizer specializing in modern performance tuning, query optimization, and scalable architectures.

Database ManagementClaude

database-migrations-sql-migrations

31392
from sickn33/antigravity-awesome-skills

SQL database migrations with zero-downtime strategies for PostgreSQL, MySQL, and SQL Server. Focus on data integrity and rollback plans.

Database ManagementClaude

database-migrations-migration-observability

31392
from sickn33/antigravity-awesome-skills

Migration monitoring, CDC, and observability infrastructure

DevOps ToolsClaude

database-migration

31392
from sickn33/antigravity-awesome-skills

Master database schema and data migrations across ORMs (Sequelize, TypeORM, Prisma), including rollback strategies and zero-downtime deployments.

Database ManagementClaude

database-design

31392
from sickn33/antigravity-awesome-skills

Database design principles and decision-making. Schema design, indexing strategy, ORM selection, serverless databases.

Software DevelopmentClaude

database-cloud-optimization-cost-optimize

31392
from sickn33/antigravity-awesome-skills

You are a cloud cost optimization expert specializing in reducing infrastructure expenses while maintaining performance and reliability. Analyze cloud spending, identify savings opportunities, and implement cost-effective architectures across AWS, Azure, and GCP.

Cloud Cost OptimizationClaude

database-architect

31392
from sickn33/antigravity-awesome-skills

Expert database architect specializing in data layer design from scratch, technology selection, schema modeling, and scalable database architectures.

Database Design & ArchitectureClaude

nft-standards

31392
from sickn33/antigravity-awesome-skills

Master ERC-721 and ERC-1155 NFT standards, metadata best practices, and advanced NFT features.

Web3 & BlockchainClaude

nextjs-app-router-patterns

31392
from sickn33/antigravity-awesome-skills

Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

Web FrameworksClaude

new-rails-project

31392
from sickn33/antigravity-awesome-skills

Create a new Rails project

Code GenerationClaude