Skip to main content
skill CX Codex

add-datasource · microsoft, mobile-apps — Claude Code skill for routing data requests

The add-datasource skill identifies the data an Expo/React Native app needs and directs the request to the matching Power Platform skill.

MIT ★ 1,167 updated 2026-10-29

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add microsoft/power-platform-skills
/plugin install mobile-app@power-platform-skills
Open on GitHub

What add-datasource does

When the goal is clear, the skill forwards it. Otherwise, it asks what the app should do, then selects a route: Dataverse for structured business data, SharePoint for lists and documents, or a general connector for other needs. Users can describe the task without knowing Power Platform terminology.

Requests to add, refresh, or remove a registered source go to the corresponding skill. Dataverse API calls are routed to /add-connector, while this plugin handles Dataverse table CRUD only. Mobile skills do not support Power Automate cloud-flow bindings; those requests stop without CLI calls or changes. Before the workflow, the skill checks the project instructions and memory-bank.md.

What it helps with

  • Choose a data source from the app's goal
  • Route structured business data to Dataverse
  • Connect SharePoint lists and documents
  • Refresh or remove a registered source
  • Stop unsupported cloud-flow binding requests

Example prompts for the agent

  • Figure out which data source my mobile app needs to manage tasks.
  • Connect my app to SharePoint lists.
  • Remove the registered data source from the app.

How to install add-datasource

1Plugin marketplace

/plugin marketplace add microsoft/power-platform-skills
/plugin install mobile-app@power-platform-skills

This installs the whole mobile-app plugin with all its skills

2Skills CLI (Vercel)

npx skills add microsoft/power-platform-skills --skill add-datasource -a claude-code

3Manually: put the files in place

~/.claude/skills/add-datasource/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/add-datasource/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about add-datasource

How do I install add-datasource in Claude Code?

Add the marketplace with /plugin marketplace add microsoft/power-platform-skills, then install the plugin with /plugin install mobile-app@power-platform-skills.

What does add-datasource do?

It works out the app's data needs and routes the request to a skill for Dataverse, SharePoint, or a general connector.

Can it set up a Power Automate cloud-flow binding?

No. Mobile skills do not support that integration, so the request stops without CLI calls or changes.

Source text

SKILL.md · MIT
---
name: add-datasource
description: Use when adding an unspecified data source to an Expo/React Native Power Apps mobile app; routes to Dataverse, SharePoint, or another connector.
user-invocable: true
allowed-tools: Read, Grep, Glob, Bash, AskUserQuestion, Skill
model: sonnet
---

> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` - if it outputs a message, show it to the user before proceeding.

**📋 Shared instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** — read first.

# Add Data Source

**Entry routing:** use the shared [App feature entry points](../../shared/shared-instructions.md#app-feature-entry-points)
preflight before the workflow below.

**Invocation scope:** follow [Data-source invocation scope](../../shared/shared-instructions.md#data-source-invocation-scope)
before any project read or the workflow below. Resolve the absolute app root
before reading memory-bank. Routing selects a data workflow, not implementation
approval or a full-app integration workflow.

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

1. **If `$ARGUMENTS` is provided or the caller already specified what's needed**, use it directly and skip the question below.
2. 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)"
3. 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

**Telemetry checkpoint: `route_data_source_request`**

| User's goal | Best approach | Invoke |
|---|---|---|
| Refresh generated services for a retained data source | Resolve the existing registration; preserve its platform and binding | Matching `/add-dataverse`, `/add-sharepoint`, or `/add-connector` with skill-only `--refresh --data-source-name "<registered-name>"` |
| Stop using a registered table or connector in this app | Preserve the removal intent and resolve its existing registration type; do not infer a new data platform | Matching `/add-dataverse`, `/add-sharepoint`, or `/add-connector` with skill-only `--remove` |
| Store and manage structured business data (custom tables, forms, CRUD) | Dataverse is the platform's native database | `/add-dataverse` |
| Invoke an existing Dataverse action/function/API | Discover with `pa app find-dataverse-api`; this plugin only adds Dataverse table CRUD | `/add-connector` |
| Read lists, manage documents, integrate with SharePoint sites | SharePoint Online — dedicated skill with list creation support | `/add-sharepoint` |
| Add, invoke, refresh, or remove a Power Automate cloud-flow binding | Cloud-flow integration is not supported by mobile skills | None; report the limitation and return without CLI calls |
| Anything else — Teams messages, Excel data, OneDrive files, Office 365 email/calendar, Azure DevOps, Copilot Studio, custom connectors | Generic connector (we'll figure out the right one) | `/add-connector` |

**Note:** Dedicated skills for Teams, Excel, OneDrive, Office 365, and Azure DevOps are planned for v1. Until then, `/add-connector` handles all of them — it covers every connector the platform supports and generates the same `src/generated/` service layer.

**Important routing rules:**
- Forward the absolute `working_dir`, current request, owner/phase/scope,
  supplied answers, and `--plan-only` or planning-phase status unchanged on every
  handoff. Standalone calls use the selected leaf's own approval and verification
  gates; a saved plan or router choice is not consent to mutate.
- For refreshes, forward the exact registered identity, `--refresh`,
  `--data-source-name`, proposal-only status, and current approved scope to the matching leaf.
  Never convert a refresh into an add or request a new connection.
  Conflicting add/refresh/remove scopes return to the owner for separate calls.
- For removals, forward the approved identities and scope unchanged to the
  matching leaf's removal branch; never turn "remove this source" into an add
  command. Use [data-source-removal.md](../../shared/references/data-source-removal.md).
- When the user wants to **perform actions** (send an email, post a Teams message, create a file), route to `/add-connector` with the connector name as the argument (e.g., `/add-connector office365`, `/add-connector teams`).
- For a **cloud-flow binding** request, report `BLOCKED: cloud-flow integration is not supported` and return without discovery or mutation. Do not route it through a connector or Dataverse workflow.
- When the user wants to **invoke a Dataverse action/function/API** rather than table CRUD, route to `/add-connector` and tell it to use `$PA app find-dataverse-api --search '<operation-name>' --json`; then stop and explain that this plugin only adds Dataverse table CRUD.
- When the user wants to **store or query structured business data** with custom schema, route to `/add-dataverse`.

4. If the approved scope includes multiple capabilities, invoke each skill in
   sequence and return the combined results to the user or current owner. Do not independently
   expand a connector request into schema or screen changes.

### When the User Isn't Sure

If the user describes a vague goal (e.g., "I need data for my app"), guide them:

1. Ask what their app does and who uses it
2. Ask what data they need to display or interact with
3. Recommend the simplest approach that meets their needs
4. Explain the recommendation in plain language (avoid jargon like "connector", "Dataverse", "tabular data source" unless the user uses those terms first)

© Microsoft · MIT · microsoft/power-platform-skills

Similar skills

All skills for Mobile →

add-datasource by other authors comes first.

add-datasource Microsoft add-datasource — a router skill that asks what your Power Apps code app should do, then hands the job to the right connector skill. Useful when you need data but aren't sure which connector fits. CX Codex +1 ★ 1,167repo stars microsoft-onedrive acedatacloud microsoft-onedrive is a Claude Code skill for listing, searching, downloading, and uploading OneDrive and SharePoint files through Microsoft Graph. CX Codex +1 219installs microsoft-sharepoint membrane Connects your agent to Microsoft SharePoint via Membrane CLI to manage sites and documents. Useful when an agent needs to read files or update list items. CX Codex +1 1,600installs cli-microsoft365-mcp-server pnp cli-microsoft365-mcp-server — an MCP server that turns plain-language requests into chains of CLI for Microsoft 365 commands. Useful when tenant admin work is easier to describe than to script. CX Codex +1 ★ 138repo stars Microsoft 365 SharePoint mindstone Microsoft 365 SharePoint — an MCP server that gives your agent SharePoint through Microsoft Graph: find sites, read libraries and lists, search content, and create sharing links. CX Codex +1 ★ 14repo stars m365-admin VoltAgent Community m365-admin automates Microsoft 365 administration tasks, including Exchange mailboxes, Teams, SharePoint sites, and license management via Graph API. Built for M365 engineers. CX Codex 229installs hunt-aspnet Sachin Sharma hunt-aspnet guides security auditing for legacy ASP.NET Webforms, WCF services, and SharePoint farms to spot configuration disclosures and ViewState flaws. CX Codex +1 ★ 16,193repo stars

From the same set157

The whole set →
add-connector add-connector adds any generic Power Platform connector to a Power Apps code app when a dedicated skill does not exist. CX Codex +1 ★ 1,167repo stars add-dataverse The add-dataverse Claude Code skill connects Dataverse tables to Power Apps code apps and generates TypeScript models and services. It also guides new table creation. CX Codex +1 ★ 1,167repo stars add-office365 add-office365 connects Office 365 Outlook to Power Apps code app. Provides calendar access, email sending, inbox reading and event management. CX Codex +1 ★ 1,167repo stars manage-flows manage-flows manages Power Automate flow lifecycles in Claude Code: handles publish-test loops, batch changes, tenant inventories, and runaway run cancellations. CX Codex +1 ★ 1,167repo stars canvas-create-discovery canvas-create-discovery — a subagent that scans Power Apps to map available controls, data sources, and APIs, then documents feasible design choices and constraints. Use it to validate your canvas app concept before implementation begins. CX Codex ★ 1,167repo stars check-updates check-updates is a Claude Code skill that sequentially checks and updates direct dependencies in Power Apps mobile projects, with type-checking, Expo validation, and rollback. CX Codex +1 ★ 1,167repo stars report-issue report-issue collects project details and diagnostics, then drafts a GitHub issue for the mobile-app plugin. Use it to document a bug, unexpected result, or documentation problem. CX Codex +1 ★ 1,167repo stars setup setup guides the agent through Process Intelligence configuration: dependency checks, cloud and environment selection, az login binding, then profile activation. CX Codex +1 ★ 1,167repo stars

More in the catalog

Project sponsors

Companies that keep this analytics open