← 返回 Skills 市场
68
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install database-query-helper
功能描述
SQL query builder and optimizer. Generates queries, explains execution plans, and optimizes slow queries. Triggers: sql query, database query, sql optimization.
使用说明 (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)
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install database-query-helper - 安装完成后,直接呼叫该 Skill 的名称或使用
/database-query-helper触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
Database Query Helper 是什么?
SQL query builder and optimizer. Generates queries, explains execution plans, and optimizes slow queries. Triggers: sql query, database query, sql optimization. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 68 次。
如何安装 Database Query Helper?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install database-query-helper」即可一键安装,无需额外配置。
Database Query Helper 是免费的吗?
是的,Database Query Helper 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Database Query Helper 支持哪些平台?
Database Query Helper 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Database Query Helper?
由 SKY-lv(@sky-lv)开发并维护,当前版本 v1.0.0。
推荐 Skills