tatat/agents-playground

sql-query

Generate and optimize SQL queries for data retrieval and analysis

First seen Jan 22, 2026

Installation

$ npx skills add tatat/agents-playground --skill sql-query

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from tatat/agents-playground · top by installs.

npx skills add tatat/agents-playground

Browse all from tatat/agents-playground

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 5
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,021 B
  • docs SUMMARY.md 82 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 43 installs

SKILL.md

SQL Query

Generate SQL queries for data retrieval, analysis, and reporting.

Capabilities

  • Generate SELECT, INSERT, UPDATE, DELETE queries
  • Build complex JOINs and subqueries
  • Aggregate data with GROUP BY and window functions
  • Optimize query performance

Query Patterns

Basic Select

SELECT column1, column2
FROM table_name
WHERE condition
ORDER BY column1
LIMIT 100;

Aggregation

SELECT category, COUNT(*) as count, AVG(price) as avg_price
FROM products
GROUP BY category
HAVING COUNT(*) > 10;

Window Functions

SELECT
    name,
    department,
    salary,
    RANK() OVER (PARTITION BY department ORDER BY salary DESC) as rank
FROM employees;

Best Practices

  1. Always use parameterized queries to prevent SQL injection
  2. Index columns used in WHERE and JOIN clauses
  3. Avoid SELECT * in production queries
  4. Use EXPLAIN to analyze query performance