power-platform-skills / code-apps
AGENTS.md961 starsChanged 59 days agoMITView on GitHub
This file provides guidance to AI Agents when working with the power-apps plugin. A plugin for building and deploying Power Apps code apps using React + Vite + TypeScript, connected to Power Platform via connectors (Dataverse, SharePoint, Teams, Azure DevOps, OneDrive, Excel, Office 365, and more). Apps are deployed via the Power Apps NPX CLI (pa app push). Test this plugin locally: Power Apps code apps run in a sandbox — direct HTTP calls (fetch, axios, Graph API, etc.) do…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository125 other files it gives its agents.
- AGENTS.mdAGENTS.md
- plugins/canvas-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-connectorSkill
- 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 AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Test this plugin locally:
- Distinctive: line 96
Always use generated services for data access.
- Very specific: line 110
Always use npx degit to create new projects — never git clone or manual file creation:
- Distinctive: line 118
After modifying this plugin:
- Very specific: line 120
Run claude --debug to see plugin loading details
- Very specific: line 121
Test skill invocation with /create-code-app
- Distinctive: line 122
Verify connector-first guardrails are enforced
- Very specific: line 123
Test CLI commands (pa app push, pa app add data-source, etc.)
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AGENTS.md — Power Apps Plugin
This file provides guidance to AI Agents when working with the power-apps plugin.
What This Plugin Is
A plugin for building and deploying Power Apps code apps using React + Vite + TypeScript, connected to Power Platform via connectors (Dataverse, SharePoint, Teams, Azure DevOps, OneDrive, Excel, Office 365, and more). Apps are deployed via the Power Apps NPX CLI (pa app push).
Local Development
Test this plugin locally:
claude --plugin-dir /path/to/plugins/power-appsArchitecture
.plugin/plugin.json <- Open Plugins metadata (name, version, keywords)
AGENTS.md <- Plugin guidance for AI agents (this file)
agents/
code-app-architect.md <- Agent persona for architecture decisions
shared/
shared-instructions.md <- Cross-cutting concerns (Windows CLI, safety, planning, memory bank)
connector-reference.md <- Connector patterns and generated service usage
development-standards.md <- Versioning, theme, build workflow, TypeScript strict mode
memory-bank.md <- Memory bank format and usage
planning-policy.md <- Plan mode policy
preferred-environment.md <- Environment selection priority
version-check.md <- Version check instructions
skills/
create-code-app/
SKILL.md <- Scaffold, init, build, and deploy a new code app
references/
prerequisites-reference.md <- Node, pac, git requirements
troubleshooting.md <- Common issues and fixes
deploy/
SKILL.md <- Build and deploy an existing code app
list-connections/
SKILL.md <- List Power Platform connections to get connection IDs
add-datasource/
SKILL.md <- Router: asks what you need and picks the right add-* skill
add-connector/
SKILL.md <- Generic fallback for any connector not covered by a specific skill
add-dataverse/
SKILL.md <- Add Dataverse tables with generated models and services
references/ <- Dataverse-specific reference docs
add-sharepoint/
SKILL.md <- Add SharePoint Online connector
references/ <- SharePoint-specific reference docs
add-azuredevops/
SKILL.md <- Add Azure DevOps connector
add-teams/
SKILL.md <- Add Microsoft Teams connector
add-excel/
SKILL.md <- Add Excel Online (Business) connector
add-onedrive/
SKILL.md <- Add OneDrive for Business connector
add-office365/
SKILL.md <- Add Office 365 Outlook connector
add-mcscopilot/
SKILL.md <- Add Copilot Studio agent connectorSkills
| Skill | Description |
/create-code-app | Scaffold, configure, and deploy a new Power Apps code app |
/deploy | Build and deploy an existing code app |
/list-connections | List Power Platform connections to find connection IDs |
/add-datasource | Add a data source (routes to the appropriate add-* skill) |
/add-dataverse | Add Dataverse tables with generated TypeScript models and services |
/add-sharepoint | Add SharePoint Online connector |
/add-azuredevops | Add Azure DevOps connector |
/add-teams | Add Microsoft Teams connector |
/add-excel | Add Excel Online (Business) connector |
/add-onedrive | Add OneDrive for Business connector |
/add-office365 | Add Office 365 Outlook connector |
/add-mcscopilot | Add Copilot Studio agent connector |
/add-connector | Add any other Power Platform connector |
Key Concepts
Connector-First Principle
Power Apps code apps run in a sandbox — direct HTTP calls (fetch, axios, Graph API, etc.) do not work at runtime. All external data access must go through Power Platform connectors.
Generated Services
pa app add data-source generates typed TypeScript services in src/generated/:
src/generated/models/{Name}Model.ts— TypeScript interfacessrc/generated/services/{Name}Service.ts— CRUD methods
Always use generated services for data access.
CLI
The Power Apps CLI (@microsoft/power-apps-cli) is installed locally via npm install as part of the app template. It ships two binaries — grouped pa (preferred) and flat power-apps (fallback). Resolve which one the project has via shared/cli-binary.md first, then invoke it with npx --no-install <pa|power-apps> from the project directory — runs natively in bash on all platforms, no PowerShell wrapper needed. Commands below use the canonical grouped pa form:
pa app push # Deploy app
pa app add data-source --connector ... # Add connector
pa connection list # List connectionsScaffolding
Always use npx degit to create new projects — never git clone or manual file creation:
npx degit microsoft/PowerAppsCodeApps/templates/vite {folder} --forceTesting Changes
After modifying this plugin:
- Run
claude --debugto see plugin loading details - Test skill invocation with
/create-code-app - Verify connector-first guardrails are enforced
- Test CLI commands (
pa app push,pa app add data-source, etc.)
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.

