Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

ai-sql-assistantAI SQL 助手

Agent Skill

用于辅助数据库表结构、查询语句、迁移脚本和数据维护任务。它适合让 Agent 分析 schema、编写 SQL、排查查询问题、整理索引或生成迁移建议。使用时需要明确数据库类型、连接环境和目标表,区分只读分析与写入变更;涉及删除、更新、迁移和批量导入时,应优先 dry-run、备份或事务保护,避免误操作。

总安装

4,776

周安装

199

GitHub Stars

公开资料未说明

下载量

1,592
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ai-sql-assistant(AI SQL 助手)
来源仓库:https://github.com/evolinkai/ai-sql-assistant
安装命令:
openclaw skills install ai-sql-assistant
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ai-sql-assistant

简介

从自然语言生成 SQL 查询并优化数据库性能表现。

  • 支持 SQLite、PostgreSQL 等主流数据库迁移脚本生成。
  • 可审查查询安全性并提供索引优化建议方案。ai-sql-assistant 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 执行写操作前应先 dry-run 或备份数据以防误删。
  • 需明确数据库类型与环境权限才能准确生成有效语句。

SKILL.md

name
SQL Assistant
description
AI-powered SQL assistant. Generate SQL from natural language, explain queries, optimize performance, review security, and generate migrations for SQLite, PostgreSQL, and MySQL. Powered by evolink.ai
version
1.0.0
homepage
https://github.com/EvoLinkAI/sql-skill-for-openclaw
metadata
{"openclaw":{"homepage":"https://github.com/EvoLinkAI/sql-skill-for-openclaw","requires":{"bins":["python3","curl"],"env":["EVOLINK_API_KEY"]},"primaryEnv":"EVOLINK_API_KEY"}}

SQL Assistant

AI-powered SQL generation, analysis, and optimization from your terminal. Supports SQLite, PostgreSQL, and MySQL. This skill never connects to or executes against any database — it only generates and analyzes SQL text.

Powered by Evolink.ai

When to Use

  • User says "write me a query that..." or "generate SQL for..."
  • User has a SQL file and asks "what does this query do?"
  • User says "this query is slow" or "optimize this SQL"
  • User wants a security review of SQL before running it
  • User needs to generate a database migration
  • User needs quick SQL reference for a specific database

Quick Start

1. Set your EvoLink API key

export EVOLINK_API_KEY="your-key-here"

Get a free key: evolink.ai/signup

2. Generate SQL from natural language

bash scripts/sql.sh query "find all users who signed up last month with more than 5 orders" --db postgres

3. Analyze existing SQL

bash scripts/sql.sh explain slow-query.sql

bash scripts/sql.sh optimize report.sql --db postgres

Capabilities

AI Commands (require EVOLINK_API_KEY)

CommandDescription
query <description> --db <db>Generate SQL from natural language
explain <sql-file>Explain what a query does step-by-step
optimize <sql-file> --db <db>Performance optimization with index suggestions
review <sql-file>Security audit — injection, privileges, data exposure
migrate <description> --db <db>Generate UP/DOWN migration SQL

Info Commands (no API key needed)

CommandDescription
databasesList supported databases
`cheatsheet [db\patterns]`Quick SQL reference and common patterns

Supported Databases

DatabaseCheatsheetAI Generation
sqliteConnection, import/export, PRAGMA, backupSQLite-specific syntax
postgrespsql commands, types, JSONB, backup/restorePG-specific (TIMESTAMPTZ, partial indexes, CTEs)
mysqlConnection, types, EXPLAIN, backupMySQL-specific (AUTO_INCREMENT, ON DUPLICATE KEY)

Cheatsheet Topics

TopicContent
sqliteZero-setup database, CSV import, WAL mode
postgrespsql shortcuts, common types, pg_dump
mysqlConnection, SHOW commands, mysqldump
patternsPagination, upsert, CTEs, window functions, recursive queries

Examples

Generate SQL from natural language

bash scripts/sql.sh query "monthly revenue by product category for the last 6 months" --db postgres

Output:

SELECT c.name AS category, DATE_TRUNC('month', o.created_at) AS month, SUM(oi.quantity * oi.unit_price) AS revenue FROM order_items oi JOIN orders o ON o.id = oi.order_id JOIN products p ON p.id = oi.product_id JOIN categories c ON c.id = p.category_id WHERE o.created_at >= NOW() - INTERVAL '6 months' GROUP BY c.name, DATE_TRUNC('month', o.created_at) ORDER BY month DESC, revenue DESC;

Security review

bash scripts/sql.sh review migration.sql

Generate migration

bash scripts/sql.sh migrate "add soft delete to users and orders tables" --db postgres

Configuration

VariableDefaultRequiredDescription
EVOLINK_API_KEYYesYour EvoLink API key. Get one free
EVOLINK_MODELclaude-opus-4-6NoModel for AI analysis

Required binaries: python3, curl

Security

Data Transmission

AI commands send user-provided SQL text or natural language descriptions to api.evolink.ai for analysis by Claude. By setting EVOLINK_API_KEY and using these commands, you consent to this transmission. Data is not stored after the response is returned. The databases and cheatsheet commands run entirely locally and never transmit data.

No Database Access

This skill never connects to, reads from, or writes to any database. It only generates and analyzes SQL text. All generated SQL must be reviewed and executed by the user.

Network Access

  • api.evolink.ai — AI SQL analysis (AI commands only)

Persistence & Privilege

This skill creates temporary files for API payload construction which are cleaned up automatically. No credentials or persistent data are stored. The skill only reads files explicitly passed as arguments.

Links

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

74.28%
按下载量换算1,183

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills