← Back to Skills Marketplace
sky-lv

Database Query Helper

by SKY-lv · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
68
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install database-query-helper
Description
SQL query builder and optimizer. Generates queries, explains execution plans, and optimizes slow queries. Triggers: sql query, database query, sql optimization.
README (SKILL.md)

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)
Usage Guidance
This skill is coherent and low-risk as provided: it only contains guidance and examples and does not request credentials or install software. Before using it to run queries, avoid pasting production DB credentials into the chat — provide only minimal, scoped access if you must (or run queries yourself). Verify the publisher (source is unknown and the SKILL.md slug differs from the registry slug) and prefer skills with a known author/homepage if you plan to use them in production.
Capability Analysis
Type: OpenClaw Skill Name: database-query-helper Version: 1.0.0 The skill bundle is a purely informational SQL query helper containing metadata and documentation (SKILL.md). It provides standard SQL examples, optimization rules, and anti-patterns without any executable code, network activity, or suspicious instructions.
Capability Assessment
Purpose & Capability
Name/description match the content in SKILL.md: examples, optimization rules, and when-to-use guidance are appropriate for a SQL query helper. The SKILL.md contains no unrelated requirements (no cloud creds or extra tools). Note: registry slug (database-query-helper) differs from the SKILL.md slug (skylv-sql-helper), which is a minor metadata mismatch but not a functional concern.
Instruction Scope
Runtime instructions are confined to SQL examples and high-level optimization advice (EXPLAIN, indexes, JOIN strategies). The skill does not instruct the agent to read local files, environment variables, or transmit data to external endpoints.
Install Mechanism
No install spec and no code files — the skill is instruction-only, so nothing is written to disk and there is no install-time risk.
Credentials
The skill requests no environment variables or credentials. For actual query execution the agent would need database connection details from the user; asking for such secrets would be expected at use-time but are not declared here.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request persistent or elevated platform privileges. Autonomous invocation is allowed by default but is not combined with any concerning privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install database-query-helper
  3. After installation, invoke the skill by name or use /database-query-helper
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of skylv-sql-helper. - Provides tools to write, optimize, and debug SQL queries. - Includes best practices and anti-pattern warnings for efficient SQL usage. - Supports triggers for SQL query writing and optimization tasks.
Metadata
Slug database-query-helper
Version 1.0.0
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Database Query Helper?

SQL query builder and optimizer. Generates queries, explains execution plans, and optimizes slow queries. Triggers: sql query, database query, sql optimization. It is an AI Agent Skill for Claude Code / OpenClaw, with 68 downloads so far.

How do I install Database Query Helper?

Run "/install database-query-helper" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Database Query Helper free?

Yes, Database Query Helper is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Database Query Helper support?

Database Query Helper is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Database Query Helper?

It is built and maintained by SKY-lv (@sky-lv); the current version is v1.0.0.

💬 Comments