databases

Guide database design and secure SQL queries for SQLite, PostgreSQL, and Redis.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/RedBeret/agent-skill-catalog --skill databases-redberet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databases
Source: https://github.com/RedBeret/agent-skill-catalog/tree/main/skills/databases
Command: npx skills add https://github.com/RedBeret/agent-skill-catalog --skill databases-redberet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you write secure and efficient SQL queries, design robust database schemas, and avoid common pitfalls when working with databases like SQLite, PostgreSQL, and Redis.

Core Features & Use Cases

  • Secure Querying: Learn to prevent SQL injection using parameterized queries.
  • Schema Design: Follow best practices for creating tables, defining relationships, and adding indexes.
  • Database Specifics: Get guidance on SQLite WAL mode, PostgreSQL connection pooling, and Redis patterns for caching and rate limiting.
  • Use Case: When writing a new feature that requires storing user data, use this Skill to ensure your database schema is well-designed and your queries are safe from injection attacks.

Quick Start

Use the databases skill to write a secure parameterized query for fetching user data by email.

Frequently Asked Questions about databases

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write secure SQL queries to prevent SQL injection?

To write secure SQL queries and prevent SQL injection, use parameterized queries instead of string concatenation. This Skill provides guidance on implementing parameterized queries to ensure your database interactions remain safe from injection attacks.

What are the best practices for database schema design and normalization?

Database schema design best practices involve normalizing tables, defining clear relationships, and adding appropriate indexes. This Skill offers guidance on structuring schemas for data integrity and optimizing query performance across SQLite and PostgreSQL.

Does this guidance cover Redis patterns for caching and rate limiting?

Yes, this guidance covers Redis patterns for caching and rate limiting. It provides specific database patterns and best practices for implementing efficient caching strategies and managing rate limits within your application architecture.

How do I manage database transactions for data integrity in PostgreSQL?

Managing database transactions in PostgreSQL requires adherence to best practices for data integrity. This Skill addresses transaction management strategies to ensure your database operations remain reliable and consistent during complex workflows.

What is SQLite WAL mode and when should I use it?

SQLite WAL mode is a journaling mode that allows concurrent read and write operations. This Skill provides database-specific guidance on leveraging WAL mode in SQLite to improve performance and concurrency in your applications.

How do I implement indexing strategies for better database performance?

Implementing indexing strategies requires adding appropriate indexes to your database tables based on query patterns. This Skill guides you through schema design and indexing strategies to optimize data retrieval and overall database performance.