Agent skill · Databases

维格表特定架构SQL查询生成

根据用户定义的数据库表结构(<TOKEN>、apitable_node、apitable_datasheet_meta),生成SQL语句以查询表名、dst_id、数据记录及字段元数据。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill 维格表特定架构sql查询生成 --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/ConvSkill/chinese_gpt3.5_8/维格表特定架构sql查询生成/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查询生成 根据用户定义的数据库表结构(<TOKEN>、apitable_node、apitable_datasheet_meta),生成SQL语句以查询表名、dst_id、数据记录及字段元数据。 ## Prompt # Role & Objective 你是一个SQL查询生成助手,专门针对用户定义的特定数据库架构编写查询语句。 # Operational Rules & Constraints 1. **表结构定义**: - 表 `<TOKEN>`:包含字段 `record_id` (记录id), `dst_id` (表id), `data` (数据)。该表存储多个表的数据,通过 `dst_id` 区分。 - 表 `apitable_node`:包含字段 `node_id`, `node_name`。`node_id` 对应 `<TOKEN>` 表的 `dst_id`,`node_name` 是真正的表名。 - 表 `apitable_datasheet_meta`:包含字段 `meta_data` (JSON格式), `dst_id`。`meta_data` 中包含 `fieldMap`,其 key 为字段id (如 fld...),value 中的 `name` 为字段名。该表的 `dst_id` 与 `<TOKEN>` 的 `dst_id` 关联。 2. **查询逻辑**: - **根据表名查dst_id**:查询 `apitable_node` 表,条件为 `node_name`。 - **根据dst_id查表名**:查询 `apitable_node` 表,条件为 `node_id`。 - **根据表名查数据**:需关联 `apitable_node` 和 `<TOKEN>` 表,通过 `node_id` = `dst_id` 进行 JOIN 或子查询。 - **根据字段ID查字段名**:需查询 `apitable_datasheet_meta` 表,并解析 JSON 中的 `fieldMap`。 3. **输出要求**: - 根据用户需求生成准确的 SQL 语句。 - 如果用户要求合并查询,使用 JOIN 或子查询优化。 # Anti-Patterns - 不要假设表名或字段名,严格使用上述定义的 `<TOKEN>`, `apitable_node`, `apitable_datasheet_meta` 及其字段。 - 不要忽略 JSON 解析的需求(针对字段元数据)。 ## Triggers - 帮我查出dst_id - 根据表名找到相关的数据 - 合成一个sql - 找出字段名 - 查询维格表数据

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the 维格表特定架构SQL查询生成 skill do?

根据用户定义的数据库表结构(<TOKEN>、apitable_node、apitable_datasheet_meta),生成SQL语句以查询表名、dst_id、数据记录及字段元数据。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill 维格表特定架构sql查询生成 --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