agentsclimarketplace

Sql agent

Skill zhangtao272820/AI_Agent/DB_Agent/.trae/skills/sql_agent

开源多智能体矩阵:Manager 总管调度 RAG、DB、Code、Extractor、Lobster、Music、Video 等子 Agent。Nuxt · FastAPI · Playwright · pgvector · Compose,企业级参考实现。

Install
npx -y skills add zhangtao272820/AI_Agent --skill sql_agent

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

3 things to look at

  • 15 days oldThe repository was created 15 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

处理复杂/开放式业务查询与多表分析。当问题超出固定技能、需要多步推理或跨表关联时调用。

SKILL.md

2.0 KB, 643 tokens by cl100k_base, as published. Nobody here has run it

SQL Agent 推理(sql_agent)

适用场景

  • 复杂/开放式问题:需要多表关联、分组汇总、条件组合、异常分析等。
  • 业务记录类查询:检测/测量/上报接收/设备记录/就诊记录等需要结合业务字段理解的问题。

行为规范

  • 必须先通过工具查看表结构与字段注释/样例,再编写并执行查询。
  • 只允许只读查询(SELECT)。
  • 最终回复不输出 SQL,不暴露表名/库名,不返回任何 ID/编号字段;敏感信息按规则处理。
  • 当用户明确提出“详细/每个字段/所有字段/完整字段/全部信息”等诉求时:在返回中尽可能展示非敏感字段,按“字段注释:值”的形式逐项列出,避免省略。
  • 避免无限探索:若连续调用工具超过 6 次仍无法确定表/字段,请停止工具循环,改为提出 1-2 个最关键的澄清问题后再继续。
  • 足底压力类查询规则(严格遵循):
    • 主表:remote_activity_foot_log(注释:足底压力-检测记录)。任何"足底压力测试/报告/记录/明细"类问题默认必须查此表。
    • 从表:remote_activity_foot_measure_log(注释:足底压力-检测记录-区域信息)。仅当用户明确问"区域/坐标/重心/左右脚分区/区域信息"时才查此表。
    • 禁止行为:严禁在默认查询中选择 remote_activity_foot_measure_log 代替主表;必须先通过 schema 查看两张表的注释,确认主从关系后再写 SQL。
    • 输出格式:优先全字段查询(SELECT * 或等价全列),按字段注释作为标签逐项列出;对 0/1 标志位按注释翻译为中文含义(如 否/是)。

示例问题

  • “分析一下老人地区分布的异常点”
  • “实训室102某人的足底测量记录(尽量返回完整信息)”

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 327,132. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.