Skip to main content
在 Manus 中运行任何 Skill
一键导入

text-to-sql

星标2
分支0
更新时间2026年5月9日 04:08

Translate a natural-language data question into a safe SELECT query against MariaDB and return the result in TOON tabular format (token-efficient context for LLMs/agents). Trigger this skill whenever the user has structured tables in MariaDB and asks a question that maps to precise SQL — revenue/sales reports, top-N rankings, GROUP BY aggregations, exact-value filters, JOINs across tables, counts, averages, percentile-style queries — rather than fuzzy/semantic search. Also trigger when the user explicitly says 'write SQL for…', 'query the DB for…', or hands you a schema and asks a question. Pairs with the seamless-rag skill: this one handles the precise-SQL leg, seamless-rag handles the semantic / vector-search leg, and they combine via `seamless-rag ask … --where` for hybrid queries.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly