database
Database development and operations workflow covering SQL, NoSQL, database design, migrations, optimization, and data engineering.
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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/database/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How database Compares
| Feature / Agent | database | Standard Approach |
|---|---|---|
| Platform Support | Claude | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | easy | N/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
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
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
Documentation generation workflow covering API docs, architecture docs, README files, code comments, and technical writing.
food-database-query
Food Database Query
database-optimizer
Expert database optimizer specializing in modern performance tuning, query optimization, and scalable architectures.
database-migrations-sql-migrations
SQL database migrations with zero-downtime strategies for PostgreSQL, MySQL, and SQL Server. Focus on data integrity and rollback plans.
database-migrations-migration-observability
Migration monitoring, CDC, and observability infrastructure
database-migration
Master database schema and data migrations across ORMs (Sequelize, TypeORM, Prisma), including rollback strategies and zero-downtime deployments.
database-design
Database design principles and decision-making. Schema design, indexing strategy, ORM selection, serverless databases.
database-cloud-optimization-cost-optimize
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.
database-architect
Expert database architect specializing in data layer design from scratch, technology selection, schema modeling, and scalable database architectures.
nft-standards
Master ERC-721 and ERC-1155 NFT standards, metadata best practices, and advanced NFT features.
nextjs-app-router-patterns
Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.
new-rails-project
Create a new Rails project