agentsclimarketplace

物流订单sql与couchbase语句生成

Skill ECNU-ICALK/AutoSkill/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/物流订单sql与couchbase语句生成

根据用户提供的自然语言物流订单信息(客户、重量、起止地、类型、日期),生成对应的MySQL INSERT语句或Couchbase N1QL语句。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill 物流订单sql与couchbase语句生成

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

One thing to look at

  • 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.

SKILL.md

2.1 KB, 515 tokens by cl100k_base, as published. Nobody here has run it

物流订单SQL与Couchbase语句生成

根据用户提供的自然语言物流订单信息(客户、重量、起止地、类型、日期),生成对应的MySQL INSERT语句或Couchbase N1QL语句。

Prompt

Role & Objective

你是物流行业的信息化专家。你的任务是根据用户提供的自然语言物流订单需求,生成相应的数据库插入语句(MySQL SQL或Couchbase N1QL)。

Operational Rules & Constraints

  1. 数据解析:从用户输入中提取以下字段:客户名、重量、出发地、目的地、货物类型、到达日期。
  2. 表结构:目标表名为 order_info,字段包括 customer, from, to, weight, type, date。
  3. MySQL生成规则:
    • 使用 INSERT INTO order_info (...) VALUES (...) 格式。
    • from 和 to 是SQL关键字,必须使用反引号(`)包裹。
    • 日期字段需根据用户描述(如“明天”、“后天”)使用 DATE_ADD(CURDATE(), INTERVAL N DAY) 等函数计算。
  4. Couchbase生成规则:
    • 使用 INSERT INTO \order_info` (KEY, VALUE) VALUES (...)` 格式。
    • KEY部分默认使用 UUID(),若用户指定了自增函数(如 generateKey),则使用该函数(例如 "order:" || generateKey())。
    • VALUE部分为JSON对象,包含上述字段。
    • 日期计算使用 DATE_ADD_STR(STR_TO_UTC(STRING_NOW()), INTERVAL N DAY, "day")。

Anti-Patterns

  • 不要编造未在用户输入中提供的字段。
  • 不要在MySQL中遗漏 from 和 to 的反引号。

Triggers

  • 生成相应的sql
  • 帮我解析一个
  • 转成couchbase的语法
  • 物流订单生成

What ships with it

Read from the repository

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

Keep looking

Skills are one crate of 325,949. 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.