Openclaw Skills for SQL generation turns natural language into schema-aware SQL, optimization advice, and migration scripts for professional teams.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install sql-gen
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install sql-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Openclaw Skills for SQL generation provide a team-ready, professional-grade natural language to SQL workflow with schema awareness, multi-table JOIN generation, performance tuning suggestions, migration script creation, and version-aware regression support.
It is designed for developers, data engineers, DBAs, and automation pipelines that need accurate SQL output across real database schemas, not just generic query templates. Openclaw Skills helps reduce manual query writing, improve consistency, and accelerate database work while supporting structured outputs and error handling.
python --version
Python 3.8+ is required.
pip install psycopg2
pip install pymysql
pip install pyodbc
pip install sqlparse
Configure database credentials securely through environment variables or a config file. Do not hardcode secrets in source files.
Use the skill inside an AI agent platform that supports SKILL.md workflows, such as Claude Code, Cursor, Codex, or Gemini CLI.
Initialize schema-aware generation in your application or agent flow:
from sql_gen_tool import ProFeatures
pro = ProFeatures(db_url="database://user:pass@localhost/mydb")
pro.connect_schema()
pro.configure(
schema_refresh="on-demand",
include_views=True,
include_indexes=True,
dialect="database"
)
For team workflows, prepare a prompt list file and output directory for batch generation.
Validate permissions for database metadata access, especially schema catalog reads such as information_schema or pg_catalog where applicable.
The skill organizes its data around database metadata, generation requests, SQL outputs, and operational audit artifacts.
| Data Area | Purpose | Examples |
|---|---|---|
| Schema metadata | Supplies real database context for generation | tables, columns, types, views, indexes, foreign keys |
| Prompt input | Captures the natural language SQL request | content, mode, style |
| Generated SQL | Stores the resulting query or script | SELECT statements, JOIN queries, migration files |
| Advice output | Returns optimization guidance | index suggestions, rewrite hints, EXPLAIN commentary |
| Versioning artifacts | Tracks changes across batches and releases | baseline snapshots, diffs, regression results |
| Error metadata | Supports troubleshooting and retries | status, error, execution notes |
Input parameters:
Output structure is typically JSON-shaped with success flags, result payloads, metadata, and error fields. Batch workflows also rely on prompt files such as YAML, and generated files are commonly written into an output directory using a predictable naming convention.
Loading
Openclaw Skills for podcast chaptering turns transcripts into structured chapters, highlights, notes, captions, and API-ready outputs at scale.

Openclaw Skills for managing Feishu (Lark) calendars with listing, search, schedule checks, and event sync workflows.

Openclaw Skills for planning and task breakdown turns specs into structured, executable tasks with automated workflows, error recovery, and batch-ready outputs.

Openclaw Skills for Git automation, deep repository diagnostics, workflow templates, and multi-repo batch operations.

Solo Build Free is an Openclaw Skills execution engine that automates plan-driven development tasks with TDD, commits, and progress tracking.

Openclaw Skills for Slack API Toolkit Pro delivers full-stack Slack automation for messages, channels, files, search, reactions, bookmarks, scheduling, and audit logging.








































