A natural language interface for direct SQL generation and execution against retail databases.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install text-to-sql-query
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 text-to-sql-query using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The text-to-sql-query skill is a specialized tool designed to bridge the gap between natural language questions and complex retail data. By analyzing the database schema of retail fact and dimension tables, it translates user intent into precise SQL queries. Unlike many traditional business intelligence tools, this skill does not rely on a semantic layer or metrics platform; it operates directly on the database schema to provide real-time results.
This skill is particularly powerful for retail environments, as it is pre-configured to understand relationships between orders, inventory, products, shops, and VIP customers. It leverages high-end models like Claude Opus or GPT-4o for nuanced implementation, while maintaining strict template adherence for standard models, ensuring reliable performance across different AI architectures.
To use this skill, ensure the $CAN_API_KEY environment variable is set. The skill interacts with the Aloudata Gateway.
# Example of setting the environment variable
export CAN_API_KEY='your_api_key_here'
# Direct query via curl
curl --noproxy '*' -s \
-H "X-API-Key: $CAN_API_KEY" \
-H "Content-Type: application/json" \
-X POST "https://gateway.can.aloudata.com/api/jdbc/query" \
-d '{"sql": "SELECT * FROM fact_orders LIMIT 10"}'
The skill utilizes a Star Schema architecture consisting of 3 Fact tables and 3 Dimension tables:
| Table Name | Type | Description |
|---|---|---|
| fact_orders | Fact | Transactional order details including amounts and quantities. |
| fact_inventory | Fact | Daily inventory snapshots per SKU and warehouse. |
| fact_product_launch | Fact | Records of product launches at specific stores. |
| dim_product | Dimension | SKU-level attributes, categories, and pricing. |
| dim_shop | Dimension | Store locations, channels, and management info. |
| dim_vip | Dimension | Member profiles, levels, and registration dates. |
Primary JOIN Keys:
sku: Links all fact tables to dim_product.tr_shop_code: Links fact tables to dim_shop.vip_id: Links fact_orders to dim_vip.Loading
A master orchestrator skill that decomposes complex clinical research tasks into a structured five-step execution plan with real-time status reporting.

A specialized skill for querying the OpenClaw built-in plugin catalog, verifying plugin status, and accessing detailed technical documentation.

A powerful integration for managing shared inboxes and collaborative team messaging via the Missive API.

A professional AI skill designed to deconstruct long-form novels into structured writing reference kits rather than simple plot summaries.

A comprehensive blameless postmortem framework designed to transform system failures into actionable reliability improvements.

A professional framework for deep risk assessment, transforming project uncertainties into prioritized mitigation actions and accountable ownership.








































