Agent skill · Databases

物流订单SQL与Couchbase语句生成

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

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill 物流订单sql与couchbase语句生成 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/Users/chinese_gpt3.5_8_GLM4.7/物流订单sql与couchbase语句生成/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 物流订单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's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the 物流订单SQL与Couchbase语句生成 skill do?

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

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill 物流订单sql与couchbase语句生成 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going