From sundial-org-awesome-openclaw-skills-4
Converts natural language descriptions into SQL queries. Supports complex JOINs, WHERE clauses, and multiple SQL dialects including PostgreSQL, MySQL, SQLite, SQL Server, Oracle.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sundial-org-awesome-openclaw-skills-4:sql-genThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Describe what you want, get the SQL. Works with any database.
Describe what you want, get the SQL. Works with any database.
npx ai-sql "get all users who signed up this month and made a purchase"
# 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
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;
Node.js 18+. OPENAI_API_KEY required.
MIT. Free forever.
Built by LXGIC Studios
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-2 --plugin sundial-org-awesome-openclaw-skills-4Generates SQL queries from natural language descriptions. Reads database schemas from files or diagrams. Supports BigQuery, PostgreSQL, MySQL, Snowflake, and SQL Server.
Generates optimized SQL queries for PostgreSQL, MySQL, SQLite and NoSQL for MongoDB, DynamoDB, Redis; supports ORMs like Prisma. Explains plans, indexes, and performance optimizations.
Generates optimized SQL/NoSQL queries for PostgreSQL, MySQL, MongoDB, Redis; analyzes EXPLAIN plans, designs indexes, troubleshoots slow queries and bottlenecks.