跳到正文
Skillpedia
数据库18k · #10738

data-loading

它能做什么

这个技能帮助 AI 智能体在数据分析工具中查找可用的数据源,并读取其结构。适合需要导入更多表格的数据分析人员。

适用场景

  • ✓当你的分析需要的数据尚未加载到工作区时。
  • ✓当你想把新的数据源连接到该工具时。
  • ✓当你想在使用前检查已连接表格的列和样例行时。

技能链接

https://github.com/microsoft/data-formulator/blob/main/py-src/data_formulator/analyst/skills/data-loading/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/microsoft/data-formulator/blob/main/py-src/data_formulator/analyst/skills/data-loading/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我看看已连接的数据源中,是否有可以加入这次分析的按地区划分的销售数据。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会列出已连接的数据源并描述其中的表格。它可以运行少量只读检查,在添加任何新连接或加载任何数据之前,都会请你确认。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Skill: Data discovery

The workspace tables listed in your context are the data already loaded into the system, and the only data that can be read directly. Everything these tools return is not loaded yet — it lives in a connected source and only becomes usable after the user selects a loading option and the server materializes it.

Use these tools to determine whether connected sources contain data needed for the user's goal. They are read-only: discovering, describing, or probing a source does not add anything to the workspace analysis inputs.

Adding a connector

When the user wants to connect a new source, do not merely ask them to navigate to settings and do not attempt to connect on their behalf.

  1. Call list_connectors first because available built-ins and plugins vary by deployment. For a broad request such as "help me connect", summarize the concrete available types and ask which one they use.
  2. Once the source type is known, call describe_connector when field or auth details are useful.
  3. When the requested source type is known and available, you MUST call propose_connection in this same turn. Do not stop with text such as "I'll open the form", "you'll need to provide", or a list of required fields. Only the action opens the form. Include one or two helpful sentences alongside the action call explaining what the user should review or supply; this text appears above the chat while the form opens on the canvas. Pass prefilled values the user already supplied, including values parsed from a connection string or config snippet. Never invent missing values.
  4. The form is only a proposal. The user reviews it and clicks Connect; the action must never connect automatically.

Prefilled values may include credentials the user deliberately supplied. Do not repeat those values in prose or subsequent tool output. They are transient form seeds and are removed from persisted UI state.

Discovery sequence

  1. Use find_data when the user names a business concept or table. Use list_data when you need to browse available sources or hierarchy.
  2. Use describe_data before relying on columns, types, row counts, or filter values. Pass the exact source_id and table_key returned by discovery.
  3. Use probe_data only when metadata is insufficient to choose a useful bounded result. Probes are limited, read-only, and may be approximate.
  4. First reconcile discoveries with every table in [PRIMARY TABLE(S)], [OTHER AVAILABLE TABLES], or [AVAILABLE TABLES]. If the needed data is already loaded, use or explain that workspace table instead of proposing it.
  5. When there are genuinely missing useful alternatives, call propose_data_operation with one to three complete immutable plans. This pauses for the user's choice; it does not load data yet.

Proposing loading options

Write your answer as message text alongside the call — that prose is what the user reads, so it carries the whole answer. Do not put it in an action field, and do not leave the call bare. Say what you went looking for, what you actually found, and what each option would give them — enough that they can choose without opening a single preview. Two to four sentences; more when the options differ in ways that matter (grain, coverage, freshness, joins needed), fewer when the choice is obvious. Name real tables and columns you saw during discovery, and say plainly when an option is a compromise or when you'd pick one yourself. Write it as you'd say it to a colleague, not as a schema summary.

  • Each option is a complete alternative: a concise action label (2–6 words) and one or more tables. The labels are buttons, not sentences — the reasoning belongs in your message text. The application displays table previews separately, so don't list columns as a substitute for explaining.
  • Use only source IDs, table keys, columns, and values grounded by discovery.
  • For a whole table, omit query. Use the optional raw-row query only when the request needs filters, projection, ordering, or an intentional limit. It uses the same filters / columns / order_by / limit vocabulary as probe_data, without aggregation.
  • Do not invent operation IDs, plan IDs, or hashes. The server creates them.
  • Never propose an exact connector query already represented by a workspace table. The server also enforces this using persisted load provenance.

Grounding rules

常见问题

智能体检查数据源时会改动我的数据吗?

不会。该技能说明检查或探测数据源是只读操作,不会向你的分析添加任何内容。

谁来批准新的连接?

由你决定。智能体会打开一个表单,请你确认后才会建立任何连接。

它能看到尚未连接的数据源吗?

不能。它只能处理工具中已经设置好的数据源。

详情

作者的原始描述

Discover connected data sources, add new data connectors through a user-confirmed form, inspect table metadata, and run bounded read-only probes when the current workspace data is insufficient.

repo: microsoft/data-formulator

热度

GitHub 星标
18k
排名
#10738
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能