← 返回 Skills 市场
weirubo

sql-to-go

作者 weirubo · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
207
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install sql-to-go
功能描述
Convert MySQL CREATE TABLE statements to Go structs with form, json, and xorm tags. Use when converting SQL DDL to Go struct definitions, generating ORM mode...
安全使用建议
This skill is an instruction-only converter and appears coherent: it asks for nothing sensitive and does not install or fetch code. Before relying on generated structs, test with representative CREATE TABLE inputs (edge cases: enums, complex defaults, unusual types) to ensure mappings and tags match your app's expectations. As with any code-generation helper, review the generated code for correctness and security (e.g., handling of nullable fields, precision for decimals).
功能分析
Type: OpenClaw Skill Name: sql-to-go Version: 1.0.0 The skill bundle is a utility for converting MySQL CREATE TABLE statements into Go structs with specific tags (form, json, xorm). The instructions in SKILL.md and the reference data in type_mappings.md are purely informational and focused on text transformation, with no evidence of malicious intent, data exfiltration, or unauthorized command execution.
能力评估
Purpose & Capability
Name/description match the instructions: all steps and mapping tables relate to converting MySQL CREATE TABLE DDL into Go structs with form/json/xorm tags. No unrelated services, binaries, or credentials are requested.
Instruction Scope
SKILL.md describes parsing SQL, mapping types, converting names, and emitting tags; it does not instruct reading system files, accessing environment variables, contacting external endpoints, or performing actions outside the stated conversion task.
Install Mechanism
No install spec or code files are included (instruction-only), so nothing will be downloaded or written to disk by an installer. This is a low-risk install surface.
Credentials
The skill declares no required environment variables, credentials, or config paths; that aligns with its stated function and is minimal and proportional.
Persistence & Privilege
Flags are default (always:false, user-invocable:true). The skill does not request persistent/system-wide privileges or modify other skills; autonomous invocation is allowed by platform default but not a red flag here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install sql-to-go
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /sql-to-go 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release: Convert MySQL CREATE TABLE statements to Go structs - Maps MySQL column types to Go types, including handling of unsigned and nullable types - Converts snake_case column names to CamelCase Go field names, preserving common acronyms - Automatically generates form, json, and xorm tags for each struct field - Supports key xorm tag constraints: pk, autoincr, unique, not null, defaults, comments, and index - Uses table comments as Go struct comments for improved code documentation
元数据
Slug sql-to-go
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

sql-to-go 是什么?

Convert MySQL CREATE TABLE statements to Go structs with form, json, and xorm tags. Use when converting SQL DDL to Go struct definitions, generating ORM mode... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 207 次。

如何安装 sql-to-go?

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

sql-to-go 是免费的吗?

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

sql-to-go 支持哪些平台?

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

谁开发了 sql-to-go?

由 weirubo(@weirubo)开发并维护,当前版本 v1.0.0。

💬 留言讨论