← 返回 Skills 市场
ckchzh

Sql Generator

作者 BytesAgain2 · GitHub ↗ · v2.3.7 · MIT-0
cross-platform ✓ 安全检测通过
904
总下载
1
收藏
7
当前安装
11
版本数
在 OpenClaw 中安装
/install sql-generator
功能描述
SQL生成器。自然语言转SQL、SQL解释、性能优化、建表语句、测试数据生成、数据库迁移、SQL速查表。SQL generator from natural language, explainer, optimizer, DDL creator, mock data, migration scripts, che...
使用说明 (SKILL.md)

SQL Generator

SQL生成器。自然语言转SQL、SQL解释、性能优化、建表语句、测试数据生成、数据库迁移、SQL速查表。SQL generator from natural language, explainer, optimizer, DDL creator, mock data, migration scripts, cheatsheet. SQL、数据库、MySQL。

常见问题

Q: 这个工具适合谁用? A: 任何需要sql generator的人,无论是个人还是企业用户。

Q: 输出格式是什么? A: 主要输出Markdown格式,方便复制和编辑。

可用命令

  • query — query
  • explain — explain
  • optimize — optimize
  • create — create
  • mock — mock
  • migrate — migrate
  • cheatsheet — cheatsheet

专业建议

  • SELECT/WHERE/ORDER BY
  • INSERT/UPDATE/DELETE
  • 基本聚合(COUNT/SUM/AVG)
  • GROUP BY + HAVING
  • JOIN(INNER/LEFT/RIGHT/FULL)

SQL Generator by BytesAgain

💬 Feedback & Feature Requests: https://bytesagain.com/feedback Powered by BytesAgain | bytesagain.com

Examples

# Show help
sql-generator help

# Run
sql-generator run

Commands

Run sql-generator help to see all available commands.

安全使用建议
This skill appears to do what it claims: generate SQL, DDL, mock data and tips. Before running, review the two included bash scripts to confirm they match expectations (they are plain shell that emits SQL and writes logs). Be aware the scripts create a data directory (SQL_GENERATOR_DIR or ~/.local/share/sql-generator) and write data.log/history.log — avoid feeding real production credentials or sensitive database connection strings to the tool. If you plan to execute the scripts, run them in a non-privileged or isolated environment (container/VM) the first time to confirm behavior.
功能分析
Type: OpenClaw Skill Name: sql-generator Version: 2.3.7 The skill bundle is a SQL generation and data management toolkit. The scripts (script.sh and sql.sh) provide templates for SQL tables, queries, and mock data, and maintain a local activity log in a standard data directory (~/.local/share/sql-generator). No evidence of data exfiltration, unauthorized remote execution, or malicious prompt injection was found.
能力评估
Purpose & Capability
Name/description (SQL generator, DDL, mock data, migration, explain, optimize) align with provided assets: SKILL.md, tips.md, and two bash scripts (scripts/sql.sh and scripts/script.sh) that produce SQL, DDL templates and a small CLI. No unrelated credentials or binaries are requested.
Instruction Scope
SKILL.md instructs use of the included sql.sh tool and documents commands (query, explain, optimize, create, mock, migrate, cheatsheet). The scripts operate locally and only read/write files under a data directory; they do not request arbitrary system files or instruct the agent to exfiltrate data.
Install Mechanism
No install spec (instruction-only), but the package includes executable bash scripts. Running the skill will execute those local scripts; review them before running. There is no network download/install step in the package.
Credentials
The skill requires no environment variables or credentials. The scripts create and use a data directory (SQL_GENERATOR_DIR or XDG_DATA_HOME or ~/.local/share/sql-generator) and write files (data.log, history.log). This persistent local storage is proportional to a CLI tool but users should be aware logs may contain queries or examples.
Persistence & Privilege
always is false and the skill does not request system-wide or other-skills configuration. Its persistence is limited to creating files under the user's data directory; it does not modify other skills or agent configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install sql-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /sql-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.3.7
v2.5 standard: Use-when desc, homepage, source, security fix
v2.3.6
retry-fix-token
v2.3.5
yaml-fix+quality
v2.3.4
Quality upgrade
v2.3.3
Quality upgrade: custom functionality
v2.3.2
Standards compliance: unique content, no template text
v2.3.1
Quality improvement: better docs, examples, cleaner text
v2.3.0
Quality fixes: removed third-party references, aligned docs with implementation
v2.2.0
Enhanced descriptions for better AI triggering
v2.0.0
Complete rewrite with real functionality
v1.0.0
Initial release of SQL Generator. - Converts natural language to SQL queries. - Explains SQL statements. - Suggests performance optimizations. - Generates table creation (DDL) statements. - Creates mock/test data and migration scripts. - Provides an SQL syntax cheatsheet. - Supports outputs in Markdown format for easy copying and editing.
元数据
Slug sql-generator
版本 2.3.7
许可证 MIT-0
累计安装 7
当前安装数 7
历史版本数 11
常见问题

Sql Generator 是什么?

SQL生成器。自然语言转SQL、SQL解释、性能优化、建表语句、测试数据生成、数据库迁移、SQL速查表。SQL generator from natural language, explainer, optimizer, DDL creator, mock data, migration scripts, che... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 904 次。

如何安装 Sql Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install sql-generator」即可一键安装,无需额外配置。

Sql Generator 是免费的吗?

是的,Sql Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Sql Generator 支持哪些平台?

Sql Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Sql Generator?

由 BytesAgain2(@ckchzh)开发并维护,当前版本 v2.3.7。

💬 留言讨论