add-datasource
Adds a data source or connector to a Power Apps code app. Asks what the user wants to accomplish and routes to the appropriate specialized skill.
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md) - Cross-cutting concerns.
Add Data Source
Router skill that understands the user's goal and connects them to the right data source -- without requiring them to know Power Platform terminology.
Workflow
Check Memory Bank
Check for memory-bank.md per [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md).
Understand the Goal
- If
$ARGUMENTSis provided or the caller already specified what's needed, use it directly and skip the question below. - Otherwise, ask the user what they want their app to do -- not which connector to use. Focus on the end goal. Example questions:
- "What kind of data does your app need to work with?"
- "What should your app be able to do? (e.g., search company info, manage tasks, send messages)"
- Based on their answer, recommend the best approach and explain why it's the right fit. The user shouldn't need to know the difference between Dataverse, SharePoint, or other connectors -- that's our job.
Route to the Right Skill
Map the user's goal to the appropriate skill:
| User's goal | Best approach | Invoke |
|-------------|---------------|--------|
| Store and manage structured business data (custom tables, forms, CRUD) | Dataverse is the platform's native database | /add-dataverse |
| Track work items, bugs, builds, or pipelines | Azure DevOps connector | /add-azuredevops |
| Send or read Teams messages, post to channels | Teams connector | /add-teams |
| Read/write Excel spreadsheet data | Excel Online (Business) connector | /add-excel |
| Upload, download, or manage files | OneDrive for Business connector | /add-onedrive |
| Work with SharePoint lists or document libraries | SharePoint Online connector | /add-sharepoint |
| Send emails, read inbox, manage calendar events | Office 365 Outlook connector | /add-office365 |
| Invoke an AI agent or copilot built in Copilot Studio | Copilot Studio connector | /add-mcscopilot |
| Something else or not sure | Generic connector (we'll figure it out) | /add-connector |
Important routing rules:
- When the user wants to perform actions (send an email, post a message, create a file), use the specific connector for that action (e.g.,
/add-office365for sending email,/add-teamsfor posting messages).
- If the user wants multiple capabilities, invoke each skill in sequence.
When the User Isn't Sure
If the user describes a vague goal (e.g., "I need data for my app"), guide them:
- Ask what their app does and who uses it
- Ask what data they need to display or interact with
- Recommend the simplest approach that meets their needs
- Explain the recommendation in plain language (avoid jargon like "connector", "Dataverse", "tabular data source" unless the user uses those terms first)
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
plugins/code-apps/skills/add-datasource/SKILL.md同一个仓库里的其他技能
同名技能的其他版本
有 2 个不同仓库或目录里都有叫 add-datasource 的技能。它们内容并不相同,别混用:
- microsoft/power-platform-skills — Use when adding an unspecified data source to an Expo/React Native Power Apps mobile app;