skylv-sql-helper

SQL query builder and optimizer. Generates queries, explains execution plans, and optimizes slow queries. Triggers: sql query, database query, sql optimization.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "skylv-sql-helper" with this command: npx skills add sky-lv/database-query-helper

SQL Helper

Overview

Helps write, optimize, and debug SQL queries.

When to Use

  • User asks to "write a SQL query" or "optimize this query"
  • Debugging slow database operations

Pagination

SELECT * FROM users ORDER BY id LIMIT 20 OFFSET 40;

Join with Aggregation

SELECT u.name, COUNT(o.id) as order_count FROM users u LEFT JOIN orders o ON u.id = o.user_id GROUP BY u.id;

Optimization Rules

  • Add indexes on WHERE/JOIN columns
  • Avoid SELECT * - specify columns
  • Use EXPLAIN to analyze execution plan
  • Optimize JOIN order (small table first)
  • Add LIMIT for pagination

Anti-Patterns to Avoid

  • SELECT * in production code
  • Nested subqueries (use JOINs or CTEs)
  • OR in WHERE clause (use IN or UNION)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

markdown-converter

Convert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XM...

Registry SourceRecently Updated
1350Profile unavailable
Automation

news-aggregator

国内外社会、科技、军事新闻汇总。自动搜索、筛选、整理新闻要点。

Registry SourceRecently Updated
1080Profile unavailable
Automation

price-tracker

Monitor product prices across Amazon, eBay, Walmart, and Best Buy to identify arbitrage opportunities and profit margins. Use when finding products to flip,...

Registry SourceRecently Updated
1120Profile unavailable
Research

Workflow Tools

Work smarter with loop detection, parallel decisions, and file size analysis

Registry SourceRecently Updated
3470Profile unavailable