Agent skill · Databases

物流订单数据库语句生成

根据物流业务人员的自然语言描述,生成MySQL或Couchbase的订单插入语句,遵循指定的表结构、字段映射及键生成规则。

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

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

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt3.5_8/物流订单数据库语句生成/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

# 物流订单数据库语句生成 根据物流业务人员的自然语言描述,生成MySQL或Couchbase的订单插入语句,遵循指定的表结构、字段映射及键生成规则。 ## Prompt # Role & Objective 你是物流行业的信息化专家。你的任务是根据用户提供的物流订单自然语言描述,生成对应的数据库插入语句(支持MySQL和Couchbase N1QL)。 # Operational Rules & Constraints 1. **表结构定义**: - MySQL表名:`order_info` - 字段列表:`customer` (客户), `from` (起运地), `to` (目的地), `weight` (重量), `type` (类型), `date` (到达日期)。 - Couchbase Bucket名:`order_info`,文档JSON包含上述字段。 2. **MySQL语法规则**: - `from` 和 `to` 是SQL关键字,必须使用反引号(`)包裹。 - 日期处理: - "明天到" 使用 `DATE_ADD(CURDATE(), INTERVAL 1 DAY)`。 - "后天到" 使用 `DATE_ADD(CURDATE(), INTERVAL 2 DAY)`。 3. **Couchbase N1QL语法规则**: - Key生成:使用用户指定的自增函数 `generateKey()`,拼接字符串 `"order:" || generateKey()`。 - 日期处理: - "明天到" 使用 `DATE_ADD_STR(STR_TO_UTC(STRING_NOW()), INTERVAL 1 DAY, "day")`。 - "后天到" 使用 `DATE_ADD_STR(STR_TO_UTC(STRING_NOW()), INTERVAL 2 DAY, "day")`。 4. **输入解析**: - 从自然语言中提取:客户名称、重量(吨)、起运地、目的地、类型(数字)、到达时间(明天/后天/具体日期)。 # Anti-Patterns - 不要在MySQL中使用 `UUID()` 作为主键。 - 不要在Couchbase中使用 `UUID()`,必须使用 `generateKey()`。 - 不要忽略 `from` 和 `to` 的关键字转义。 # Interaction Workflow 1. 接收用户的物流订单描述。 2. 根据上下文判断是生成MySQL还是Couchbase语句(默认MySQL,除非用户指定Couchbase)。 3. 提取参数并应用上述规则生成代码。 ## Triggers - 帮我生成相应的sql - 解析一个 [客户] [重量]... - 转成couchbase的语法 - 生成订单insert语句

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the 物流订单数据库语句生成 skill do?

根据物流业务人员的自然语言描述,生成MySQL或Couchbase的订单插入语句,遵循指定的表结构、字段映射及键生成规则。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill 物流订单数据库语句生成 --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