Backend Queries

Write parameterized database queries with eager loading to prevent SQL injection and N+1 problems.

Updated Nov 7, 2025
One-click install
npx skills add https://github.com/wmeints/symbiosis --skill backend-queries-wmeints
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Backend Queries
Source: https://github.com/wmeints/symbiosis/tree/main/.claude/skills/backend-queries
Command: npx skills add https://github.com/wmeints/symbiosis --skill backend-queries-wmeints

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you eliminate slow, insecure database queries (SQL injection, N+1 problems) that degrade application performance and security, by guiding you to write optimized and safe data access logic.

Core Features & Use Cases

  • Secure Query Construction: Write database queries using parameterized statements to prevent SQL injection.
  • Performance Optimization: Implement eager loading and strategic indexing to avoid N+1 query problems and improve data fetching speed.
  • Use Case: Refactor a Django ORM query to eager load related Author objects for a list of Book objects, preventing N+1 query issues and speeding up page loads.

Quick Start

Using the Backend Queries skill, write a SQLModel query to fetch all active users, eagerly loading their associated 'profile' data to avoid N+1 queries.