add-connector
Skill961 starsChanged 2 months agoMITView on GitHub
Use when adding a Power Platform connector to an Expo/React Native Power Apps mobile app and no dedicated mobile connector skill exists.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Shayanrs31/pa-code-apps-claude-plugintheir own version, first seen Aug 17, 2026
- Azure/connectors-python-sdktheir own version, first seen May 19, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Azure/connectors-python-sdk★ 0same name
- Shayanrs31/pa-code-apps-claude-plugin★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository125 other files it gives its agents.
- AGENTS.mdAGENTS.md
- plugins/canvas-apps/AGENTS.mdAGENTS.md
- plugins/code-apps/AGENTS.mdAGENTS.md
- plugins/mobile-apps/AGENTS.mdAGENTS.md
- plugins/model-apps/AGENTS.mdAGENTS.md
- plugins/power-apps-mobile-extension/AGENTS.mdAGENTS.md
- plugins/power-automate/AGENTS.mdAGENTS.md
- plugins/power-pages/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- plugins/canvas-apps/CLAUDE.mdCLAUDE.md
- plugins/model-apps/CLAUDE.mdCLAUDE.md
- plugins/power-automate/CLAUDE.mdCLAUDE.md
- plugins/power-pages/CLAUDE.mdCLAUDE.md
- add-data-sourceSkill
- canvas-appSkill
- configure-canvas-mcpSkill
- report-issueSkill
- add-azuredevopsSkill
- add-connectorSkill
- add-datasourceSkill
- add-dataverseSkill
- add-excelSkill
- add-mcscopilotSkill
- add-office365Skill
- add-onedriveSkill
- add-sharepointSkill
- add-teamsSkill
- add-workiqSkill
- create-code-appSkill
- deploySkill
- list-connectionsSkill
- report-issueSkill
- generate-codeful-mcp-toolSkill
- generate-mcp-app-uiSkill
- report-issueSkill
- add-datasourceSkill
- add-dataverseSkill
- add-cameraSkill
- add-geolocationSkill
- add-pdf-reportSkill
- add-pdf-viewerSkill
- add-pen-inputSkill
- add-nativeSkill
- add-sample-dataSkill
- add-sharepointSkill
- add-table-to-offline-profileSkill
- assign-offline-profileSkill
- check-updatesSkill
- create-mobile-appSkill
- debug-appSkill
- deploySkill
- design-systemSkill
- edit-appSkill
- edit-offline-profileSkill
- enable-tables-offlineSkill
- list-connectionsSkill
- open-wrap-urlSkill
- preview-offline-scopeSkill
- preview-screensSkill
- report-issueSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 2 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Check Memory Bank → 2. Identify Connector → 3.
- Very specific: line 34
Check for memory-bank.md per shared-instructions.md.
- Very specific: line 42
If either is missing, instruct the user to run /create-mobile-app first and stop.
- Very specific: line 81
After add-flow, continue at Step 4 and inspect the generated service/model files the same way as connector data sources.
- Very specific: line 137
If the user actually needs Dataverse table CRUD, stop and delegate to /add-dataverse.
- Very specific: line 152
After adding, inspect the generated files.
- Very specific: line 167
Read just that method's section (use offset and limit parameters on Read)
- Very specific: line 188
Do NOT deploy yet — that's /deploy's job after all data sources are added.
- Very specific: line 192
Update memory-bank.md with: connector added, configured operations, build status.
- Very specific: line 196
If the user asks to remove a connector/table/stored procedure that this skill added, use the matching Power Apps CLI command with explicit …
- Very specific: line 211
If the connection requires OAuth consent, ConnectionSetupScreen is shown automatically
- Distinctive: line 214
No separate executor or provider wiring is needed — Dataverse and non-Dataverse connectors use the same unified pipeline.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 | Connector reference: connector-reference.md — read both first.
Add Connector (Generic)
Fallback skill for any connector not covered by a dedicated /add-* skill. For common connectors, prefer the dedicated skills:
/add-dataverse— Dataverse tables/add-sharepoint— SharePoint Online
(More dedicated skills will land in v1: /add-teams, /add-excel, /add-onedrive, /add-azuredevops, /add-office365.)
The native host runtime (@microsoft/power-apps-native-host) handles connector routing, connection resolution, and OAuth consent through PowerAppsProvider in app/_layout.tsx — no separate executor wiring is needed.
Workflow
- Check Memory Bank → 2. Identify Connector → 3. Add Connector → 4. Inspect & Configure → 5. Build → 6. Update Memory Bank
Step 1 — Check Memory Bank
Telemetry checkpoint: validate_connector_project
Check for memory-bank.md per shared-instructions.md.
Also confirm we're inside a Power Apps mobile app:
test -f power.config.json && test -f app.config.jsIf either is missing, instruct the user to run /create-mobile-app first and stop.
Step 2 — Identify Connector
Telemetry checkpoint: resolve_connector_request
If $ARGUMENTS is provided or the caller already specified the connector, use it directly and skip the question below.
Otherwise, ask the user which connector they want to add. Browse available connectors: Connector Reference.
Before proceeding, check if the connector has a dedicated skill. If it does, delegate immediately and STOP:
| Connector API name | Delegate to |
sharepointonline | /add-sharepoint |
commondataservice | /add-dataverse |
Invoke the appropriate skill with the same $ARGUMENTS and do not continue this skill's workflow.
Common connector API names:
sharepointonline,teams,excelonlinebusiness,onedriveforbusinessazuredevops,azureblob,azurequeuesoffice365,office365users,office365groupssql,commondataservice
Cloud flows are supported by the Power Apps CLI, but they are not connector data sources. If the user wants to invoke an existing Power Automate cloud flow from the app, use the flow-specific commands instead of add-data-source:
npx power-apps list-flows --search '<flow-name-or-keyword>' --json
npx power-apps add-flow --flow-id <flow-guid> --non-interactiveTo remove a flow later:
npx power-apps remove-flow --flow-id <flow-guid> --non-interactiveAfter add-flow, continue at Step 4 and inspect the generated service/model files the same way as connector data sources.
Step 3 — Add Connector
Telemetry checkpoint: generate_connector_data_source
First, get the connection ID or connection reference (see connector-reference.md):
Run the /list-connections skill with the connector API ID (for example shared_office365users). Capture the exact connectionId from create-connection, or the connectionRef from list-connection-references if the caller is solution-aware. If creation cannot complete in the CLI, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from power.config.json environmentId or a prior step):
https://make.powerapps.com/environments/<environment-id>/connections → + New connection → search for the connector → Create.
Classify the connector before running add-data-source:
| Connector shape | Examples | Required discovery | Add command |
| Action-style connector | Teams, Office 365 Users, Outlook, Azure DevOps | None after connection lookup | npx power-apps add-data-source --api-id <apiId> --connection-id <connectionId> |
| Table-based connector | Excel Online, OneDrive for Business, Azure Blob, SQL, SharePoint if not delegated | list-datasets, then list-tables | npx power-apps add-data-source --api-id <apiId> --connection-id <connectionId> --dataset '<dataset>' --resource-name '<table>' |
| SQL stored procedure | SQL Server | list-datasets, then list-sqlStoredProcedures if needed | npx power-apps add-data-source --api-id shared_sql --connection-id <connectionId> --dataset '<database>' --sql-stored-procedure '<procedure>' |
For action-style connectors, print before starting:
"→ Running
npx power-apps add-data-sourcefor<connector>. ~10–30 seconds (writes generated services + connector schemas)."
Then run:
npx power-apps add-data-source --api-id <apiId> --connection-id <connectionId>For table-based connectors, discover datasets and tables first:
npx power-apps list-datasets --api-id <apiId> --connection-id <connectionId> --json
npx power-apps list-tables --api-id <apiId> --connection-id <connectionId> --dataset '<dataset>' --jsonPresent the datasets/tables to the user if they did not specify them. Add one data source per selected table:
npx power-apps add-data-source --api-id <apiId> --connection-id <connectionId> --dataset '<dataset>' --resource-name '<table>'For SQL stored procedures, discover procedures only when the user asks to invoke a stored procedure rather than a table:
npx power-apps list-sqlStoredProcedures --connection-id <connectionId> --dataset '<database>' --json
npx power-apps add-data-source --api-id shared_sql --connection-id <connectionId> --dataset '<database>' --sql-stored-procedure '<procedure>'For Dataverse actions/functions rather than tables, discovery is available but this plugin only adds Dataverse table CRUD:
npx power-apps find-dataverse-api --search '<operation-name>' --jsonSurface the matching operation metadata and STOP with a clear note that this plugin can add Dataverse table CRUD through /add-dataverse, but does not add Dataverse actions/functions.
If the user actually needs Dataverse table CRUD, stop and delegate to /add-dataverse; do not add Dataverse tables from this generic connector skill.
Parameter reference:
--api-id/-a— connector API ID (oftenshared_<connector>, e.g.,shared_office365users). Use the exact value provided by the caller or connector docs.--connection-id/-c— required for non-Dataverse connectors unless using--connection-ref. Get fromcreate-connection, the maker portal, or caller context.--connection-ref/-cr— optional connection reference name when adding into a solution-aware app.--dataset/-d— required for table-based datasources (for example SharePoint site URL, Excel file/location, SQL database).--resource-name/-t— table/list/resource name for table-based datasources.--sql-stored-procedure/-sp— SQL stored procedure name when adding a stored procedure instead of a table.--non-interactive— use only on commands whose required options are fully supplied and whose implementation supports non-interactive omission of optional prompts. Do not add--environment-idto app-root verbs oncepower.config.jsonexists.--solution-id/-s— optional solution identifier when the data source should be added to a specific solution.
Step 4 — Inspect & Configure
After adding, inspect the generated files. Generated service files can be very large — use Grep to find specific methods instead of reading the entire file:
Grep pattern="async \w+" path="src/generated/services/<Connector>Service.ts"Files to check:
src/generated/services/<Connector>Service.ts— available operations and their parameterssrc/generated/models/<Connector>Model.ts— TypeScript interfaces (if generated).power/schemas/<connector>/— connector schema and configuration
For each method the user needs:
- Grep for the method name to find its signature
- Read just that method's section (use
offsetandlimitparameters on Read) - Identify required vs optional parameters and response type
Help the user write code using the generated service methods.
Step 5 — Build
Telemetry checkpoint: validate_connector_integration
Print before starting:
"→ Regenerating connector schemas + running tsc to verify the new connector wires in cleanly (~10–20 seconds)."
npx power-apps add-data-source (Step 3) wrote new files into .power/schemas/<connector>/. The connectorSchemas.ts consumed by app/_layout.tsx is now stale — regenerate it before type-checking so the new connector is wired into the runtime schema map:
npm run generate-schemas
npx tsc --noEmitFix TypeScript errors before proceeding. Common gotcha: the new generated service may import a peer dependency you don't have installed yet — if so, npx expo install <missing-package> (NOT plain npm install, so versions stay Expo-compatible).
Do NOT deploy yet — that's /deploy's job after all data sources are added.
Step 6 — Update Memory Bank
Update memory-bank.md with: connector added, configured operations, build status.
Remove a data source or flow
If the user asks to remove a connector/table/stored procedure that this skill added, use the matching Power Apps CLI command with explicit arguments:
npx power-apps delete-data-source --api-id <apiId> --data-source-name '<data-source-or-table-name>' --non-interactive
npx power-apps delete-data-source --api-id shared_sql --data-source-name '<procedure>' --sql-stored-procedure '<procedure>' --non-interactive
npx power-apps remove-flow --flow-id <flow-guid> --non-interactiveThen run npm run generate-schemas and npx tsc --noEmit before reporting success.
Runtime connector handling
The native host runtime handles all connector routing automatically via PowerAppsProvider in app/_layout.tsx. When a screen calls a generated service method:
PowerAppsProviderresolves the connection fromconnectionReferencesinpower.config.json- If the connection requires OAuth consent,
ConnectionSetupScreenis shown automatically NativePowerAppsBridgedispatches the call with the correct auth token
No separate executor or provider wiring is needed — Dataverse and non-Dataverse connectors use the same unified pipeline.
Notes
- Generated files in
src/generated/are produced directly bynpx power-apps add-data-source. Differences in behavior come from runtime wiring in this mobile plugin. - This skill never modifies
app.config.jsorplayerConfig.ts— connector discovery is dynamic at runtime.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

