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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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.
- Call
list_connectorsfirst 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. - Once the source type is known, call
describe_connectorwhen field or auth details are useful. - When the requested source type is known and available, you MUST call
propose_connectionin 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. Passprefilledvalues the user already supplied, including values parsed from a connection string or config snippet. Never invent missing values. - 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
- Use
find_datawhen the user names a business concept or table. Uselist_datawhen you need to browse available sources or hierarchy. - Use
describe_databefore relying on columns, types, row counts, or filter values. Pass the exactsource_idandtable_keyreturned by discovery. - Use
probe_dataonly when metadata is insufficient to choose a useful bounded result. Probes are limited, read-only, and may be approximate. - 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. - When there are genuinely missing useful alternatives, call
propose_data_operationwith 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
optionis 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 samefilters/columns/order_by/limitvocabulary asprobe_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.
热度
- GitHub 星标
- 18k
- 排名
- #10738
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …