standards-queries

Installation
SKILL.md

Queries Standards

Core Rule: Write secure, performant queries using parameterized statements, eager loading, and strategic indexing.

When to use this skill

  • When writing SQL queries or ORM query methods in any backend file
  • When implementing repository patterns or data access layers
  • When optimizing queries to prevent N+1 query problems using eager loading or joins
  • When selecting specific columns instead of using SELECT * for performance
  • When adding indexes to columns used in WHERE, JOIN, or ORDER BY clauses
  • When implementing parameterized queries to prevent SQL injection vulnerabilities
  • When wrapping related database operations in transactions for data consistency
  • When setting query timeouts to prevent runaway queries
  • When caching results of complex or frequently-executed queries
  • When refactoring slow queries or investigating query performance issues

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle backend queries.

Related skills

More from maxritter/claude-codepro

Installs
1
GitHub Stars
1.6K
First Seen
Jan 29, 2026