← Back to Skills Marketplace
sky-lv

Skylv Sql Helper

by SKY-lv · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
106
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install skylv-sql-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 advisory only and will not connect to or run queries against your databases. If you need automated execution or EXPLAIN plans run against live systems, expect a different skill to request database credentials or network access — treat that credential request as sensitive. Proceed if you only want query-writing and optimization advice; if a future version asks for secrets or installs code, review those requests carefully before granting access.
Capability Analysis
Type: OpenClaw Skill Name: skylv-sql-helper Version: 1.0.0 The skill is a standard SQL query helper and optimizer. The SKILL.md file contains only educational content, SQL templates, and best practices for database optimization. There is no executable code, network activity, or evidence of prompt injection or malicious intent.
Capability Assessment
Purpose & Capability
Name and description (SQL query builder/optimizer) match the SKILL.md content: example queries, optimization rules, and anti-patterns. The skill does not claim or require database access, cloud credentials, or unrelated capabilities.
Instruction Scope
SKILL.md stays within the stated purpose (writing and optimizing SQL). It is purely advisory — it provides patterns, examples, and rules but does not include instructions to connect to databases, read files, or send data externally. Note: because it doesn't provide connection/execution steps, it will not run EXPLAIN or modify databases on its own; if you expect automated execution, a different skill that requests DB credentials would be required.
Install Mechanism
No install spec and no code files — lowest-risk instruction-only skill. Nothing is downloaded or written to disk.
Credentials
The skill declares no environment variables, credentials, or config paths, which is proportional to an advisory SQL helper that only provides examples and guidance.
Persistence & Privilege
Defaults are used (not always:true, not requesting permanent presence). The skill does not attempt to modify other skills or system-wide settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install skylv-sql-helper
  3. After installation, invoke the skill by name or use /skylv-sql-helper
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release. - SQL query builder and optimizer: generates, explains, and optimizes queries. - Helps write, debug, and speed up SQL queries. - Offers best practices and common anti-patterns to avoid. - Provides examples for pagination and joins with aggregation. - Activated with “sql-helper” trigger.
Metadata
Slug skylv-sql-helper
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Skylv Sql 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 106 downloads so far.

How do I install Skylv Sql Helper?

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

Is Skylv Sql Helper free?

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

Which platforms does Skylv Sql Helper support?

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

Who created Skylv Sql Helper?

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

💬 Comments