skills$openclaw/sql-gen
lxgicstudios1.8k

by lxgicstudios

sql-gen – OpenClaw Skill

sql-gen is an OpenClaw Skills integration for data analytics workflows. Generate SQL queries from natural language

1.8k stars6.4k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026data analytics

Skill Snapshot

namesql-gen
descriptionGenerate SQL queries from natural language OpenClaw Skills integration.
ownerlxgicstudios
repositorylxgicstudios/ai-sql
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @lxgicstudios/ai-sql
last updatedFeb 7, 2026

Maintainer

lxgicstudios

lxgicstudios

Maintains sql-gen in the OpenClaw Skills directory.

View GitHub profile
File Explorer
2 files
.
_meta.json
461 B
SKILL.md
1.2 KB
SKILL.md

name: sql-gen description: Generate SQL queries from natural language

SQL Generator

Describe what you want, get the SQL. Works with any database.

Quick Start

npx ai-sql "get all users who signed up this month and made a purchase"

What It Does

  • Converts English to SQL
  • Handles complex JOINs
  • Adds proper WHERE clauses
  • Optimizes for performance

Usage Examples

# Generate query
npx ai-sql "top 10 products by revenue last quarter"

# With schema context
npx ai-sql "users without orders" --schema ./schema.sql

# Specific dialect
npx ai-sql "monthly active users" --dialect postgres

Dialects Supported

  • PostgreSQL
  • MySQL
  • SQLite
  • SQL Server
  • Oracle

Output Example

SELECT u.id, u.email, COUNT(o.id) as order_count
FROM users u
LEFT JOIN orders o ON u.id = o.user_id
WHERE u.created_at >= DATE_TRUNC('month', CURRENT_DATE)
GROUP BY u.id, u.email
HAVING COUNT(o.id) > 0;

Requirements

Node.js 18+. OPENAI_API_KEY required.

License

MIT. Free forever.


Built by LXGIC Studios

README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

Node.js 18+. OPENAI_API_KEY required.

FAQ

How do I install sql-gen?

Run openclaw add @lxgicstudios/ai-sql in your terminal. This installs sql-gen into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/lxgicstudios/ai-sql. Review commits and README documentation before installing.