database-operations
Use when designing database schemas, writing migrations, optimizing SQL queries, fixing N+1 problems, creating indexes, setting up PostgreSQL, configuring EF Core, implementing caching, partitioning tables, or any database performance question.
Why use this skill?
Master PostgreSQL performance, design robust schemas, and optimize EF Core migrations with this professional-grade database operations skill for OpenClaw AI agents.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jgarrison929/database-operationsWhat This Skill Does
The database-operations skill is an advanced toolkit for managing PostgreSQL databases, optimizing SQL performance, and handling application-level data interactions. It acts as a specialized assistant that understands the lifecycle of database management, from the initial schema design phase to long-term performance monitoring and query optimization. By leveraging industry-standard practices, this skill helps users avoid common pitfalls such as N+1 query problems, poor indexing strategies, and unoptimized migrations that could lead to production downtime.
Installation
To integrate this skill into your environment, run the following command within your terminal:
clawhub install openclaw/skills/skills/jgarrison929/database-operations
Use Cases
- Schema Design: Designing complex PostgreSQL databases including constraints, enums, and indexes.
- Performance Tuning: Analyzing
EXPLAIN ANALYZEoutputs to identify bottlenecks and optimize slow-running SQL queries. - Migration Management: Writing additive, zero-downtime migrations that include rollback procedures for safety.
- ORM Optimization: Configuring Entity Framework Core (EF Core) to work efficiently with PostgreSQL without unnecessary overhead.
- Database Maintenance: Implementing partitioning, caching strategies with Redis, and soft-delete mechanisms.
Example Prompts
- "I am seeing slow performance on my
userstable join query. Here is my current schema and theEXPLAIN ANALYZEoutput; can you suggest a better indexing strategy?" - "I need to add a new column to a table with 50 million rows. How do I perform this migration without locking the table or causing production downtime?"
- "Help me refactor this LINQ query in EF Core that is causing an N+1 problem; I need to ensure it executes as a single efficient join."
Tips & Limitations
- Measurement is Key: Always provide the output of
EXPLAIN ANALYZEwhen asking for performance improvements. Guesswork is prone to error. - Safety First: Always test migration scripts in a staging environment that mirrors your production dataset size.
- Index Sparingly: While indexes speed up reads, they slow down writes. Only index columns that are frequently used in
WHEREclauses or join operations. - Complexity: This skill is highly specialized. While it covers complex PostgreSQL features, it assumes a foundational knowledge of relational database concepts.
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-jgarrison929-database-operations": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
nextjs-expert
Use when building Next.js 14/15 applications with the App Router. Invoke for routing, layouts, Server Components, Client Components, Server Actions, Route Handlers, authentication, middleware, data fetching, caching, revalidation, streaming, Suspense, loading states, error boundaries, dynamic routes, parallel routes, intercepting routes, or any Next.js architecture question.
shadcn-ui
Use when building UI with shadcn/ui components, Tailwind CSS layouts, form patterns with react-hook-form and zod, theming, dark mode, sidebar layouts, mobile navigation, or any shadcn component question.
dotnet-expert
Use when building .NET 8/9 applications, ASP.NET Core APIs, Entity Framework Core, MediatR CQRS, modular monolith architecture, FluentValidation, Result pattern, JWT authentication, or any C# backend development question.
security-auditor
Use when reviewing code for security vulnerabilities, implementing authentication flows, auditing OWASP Top 10, configuring CORS/CSP headers, handling secrets, input validation, SQL injection prevention, XSS protection, or any security-related code review.