> optimizing-sql-queries

This skill analyzes and optimizes SQL queries for improved performance. It identifies potential bottlenecks, suggests optimal indexes, and proposes query rewrites. Use this when the user mentions "optimize SQL query", "improve SQL performance", "SQL query optimization", "slow SQL query", or asks for help with "SQL indexing". The skill helps enhance database efficiency by analyzing query structure, recommending indexes, and reviewing execution plans.

fetch
$curl "https://skillshub.wtf/jeremylongshore/claude-code-plugins-plus-skills/sql-query-optimizer?format=md"
SKILL.mdoptimizing-sql-queries

Overview

This skill empowers Claude to analyze SQL queries, identify performance bottlenecks, and suggest optimizations such as index creation or query rewriting. It leverages the sql-query-optimizer plugin to provide actionable recommendations for improving database performance.

How It Works

  1. Query Input: The user provides an SQL query to be optimized.
  2. Analysis: The plugin analyzes the query structure, potential indexing issues, and execution plan (if available).
  3. Recommendations: The plugin generates optimization suggestions, including index recommendations and query rewrites.

When to Use This Skill

This skill activates when you need to:

  • Optimize a slow-running SQL query.
  • Identify missing or unused indexes in a database.
  • Improve the performance of a database application.

Examples

Example 1: Optimizing a Slow Query

User request: "Optimize this SQL query: SELECT * FROM orders WHERE customer_id = 123 AND order_date < '2023-01-01';"

The skill will:

  1. Analyze the provided SQL query.
  2. Suggest creating an index on customer_id and order_date columns to improve query performance.

Example 2: Finding Indexing Opportunities

User request: "I need help optimizing a query that filters on product_category and price. Can you suggest any indexes?"

The skill will:

  1. Analyze a hypothetical query based on the user's description.
  2. Recommend a composite index on (product_category, price) to speed up filtering.

Best Practices

  • Provide Full Queries: Include the complete SQL query for accurate analysis.
  • Include EXPLAIN Output: Providing the output of EXPLAIN can help the optimizer identify bottlenecks more effectively.
  • Test Recommendations: Always test the suggested optimizations in a staging environment before applying them to production.

Integration

This skill can be used in conjunction with other database management plugins to automate index creation and query rewriting based on the optimizer's suggestions.

> related_skills --same-repo

> agent-context-loader

PROACTIVE AUTO-LOADING: Automatically detects and loads AGENTS.md files from the current working directory when starting a session or changing directories. This skill ensures agent-specific instructions are incorporated into Claude Code's context alongside CLAUDE.md, enabling specialized agent behaviors. Triggers automatically when Claude detects it's working in a directory, when starting a new session, or when explicitly requested to "load agent context" or "check for AGENTS.md file".

> Google Cloud Agent SDK Master

Automatic activation for ALL Google Cloud Agent Development Kit (ADK) and Agent Starter Pack operations - multi-agent systems, containerized deployment, RAG agents, and production orchestration. **TRIGGER PHRASES:** - "adk", "agent development kit", "agent starter pack", "multi-agent", "build agent" - "cloud run agent", "gke deployment", "agent engine", "containerized agent" - "rag agent", "react agent", "agent orchestration", "agent templates" **AUTO-INVOKES FOR:** - Agent creation and scaffold

> Vertex AI Media Master

Automatic activation for ALL Google Vertex AI multimodal operations - video processing, audio generation, image creation, and marketing campaigns. **TRIGGER PHRASES:** - "vertex ai", "gemini multimodal", "process video", "generate audio", "create images", "marketing campaign" - "imagen", "video understanding", "multimodal", "content generation", "media assets" **AUTO-INVOKES FOR:** - Video processing and understanding (up to 6 hours) - Audio generation and transcription - Image generation with I

> yaml-master

PROACTIVE YAML INTELLIGENCE: Automatically activates when working with YAML files, configuration management, CI/CD pipelines, Kubernetes manifests, Docker Compose, or any YAML-based workflows. Provides intelligent validation, schema inference, linting, format conversion (JSON/TOML/XML), and structural transformations with deep understanding of YAML specifications and common anti-patterns.

┌ stats

installs/wk0
░░░░░░░░░░
github stars1.6K
██████████
first seenMar 17, 2026
└────────────

┌ repo

jeremylongshore/claude-code-plugins-plus-skills
by jeremylongshore
└────────────

┌ tags

└────────────