power-platform-skills / canvas-apps
AGENTS.md961 starsChanged 59 days agoMITView on GitHub
This file provides guidance to AI Agents when working with the canvas-apps plugin. A plugin for authoring Power Apps Canvas Apps. The Canvas Authoring MCP server (CanvasAuthoringMcpServer) exposes tools that agents use to generate, validate, and compile Canvas App YAML files (.pa.yaml) in conjunction with a running coauthoring studio session. The Power Apps Studio browser tab must remain open for the duration of the session — closing it ends the coauthoring session, which breaks compile_canvas and sync_canvas operations. Skills orchestrate…
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/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-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
3 rules. About 0 are common, 2 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Test this plugin locally:
- Very specific: line 107
Keep the two files separate.
- Distinctive: line 115
Before the MCP server will start, you need:
≈ “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 — Canvas Apps Plugin
This file provides guidance to AI Agents when working with the canvas-apps plugin.
What This Plugin Is
A plugin for authoring Power Apps Canvas Apps. The Canvas Authoring MCP server (CanvasAuthoringMcpServer) exposes tools that agents use to generate, validate, and compile Canvas App YAML files (.pa.yaml) in conjunction with a running coauthoring studio session. The Power Apps Studio browser tab must remain open for the duration of the session — closing it ends the coauthoring session, which breaks compile_canvas and sync_canvas operations.
Skills orchestrate specialist agents via the Task tool. Agents are not invoked directly by users.
Local Development
Test this plugin locally:
claude --plugin-dir /path/to/plugins/canvas-appsArchitecture
.claude-plugin/plugin.json ← Claude Code metadata (mirrors .plugin/plugin.json)
.plugin/plugin.json ← Open Plugins metadata (name, version, keywords)
.mcp.json ← MCP server config (canvas-authoring, auto-registered)
AGENTS.md ← Plugin guidance for AI agents (this file)
CLAUDE.md ← Symlink → AGENTS.md
hooks.json ← Copilot-format hooks: userPromptTransformed
hooks/
hooks.json ← Claude-format hooks: UserPromptSubmit
inject-sync-reminder.cs ← File-based .NET app that emits the sync reminder for both hosts
references/
YamlSyntax.md ← .pa.yaml structure, syntax rules, and parse-error triage
ControlGuide.md ← Control selection, property contracts, enums, and versions
LayoutGuide.md ← Responsive sizing, scrolling, galleries, and contrast
GridLayoutGuide.md ← Conditional GridLayout formulas and invariants
PowerFxGuide.md ← State, events, named formulas, and mock data
DesignGuide.md ← Aesthetic guidelines, anti-patterns, design process
QAChecks.md ← Named runtime anti-pattern checks for per-screen self-QA
PlanTemplates.md ← Progressive index, shared plan, and screen-brief structures
CreateWorkflow.md ← Empty-app planning and planner handoff
EditWorkflow.md ← Simple vs complex edit routing and planning
ValidationWorkflow.md ← Wave compile gates and bounded diagnostic convergence
agents/
canvas-app-planner.md ← Discovers resources and writes plan document; invoked by canvas-app
canvas-screen-builder.md ← Builds or modifies one screen; invoked by canvas-app (parallel)
skills/
canvas-app/
SKILL.md ← Unified skill: create or edit a Canvas App (auto-detects mode)
configure-canvas-mcp/
SKILL.md ← Registers the Canvas Authoring MCP server with Claude Code
add-data-source/
SKILL.md ← Guides user to add a data source or connector in Studio, then verifiesSkills
| Skill | Description |
/canvas-app | Create or edit a Canvas App — auto-detects whether to generate from scratch or edit existing |
/configure-canvas-mcp | Configure the Canvas Authoring MCP server for the current coauthoring session |
/add-data-source | Guide the user to add a data source, connection, or API connector in Studio, then verify it is available |
Agents
Agents are invoked by skills via the Task tool — they are not user-invocable.
| Agent | Invoked By | Description |
canvas-app-planner | canvas-app | Receives the approved plan, discovers resources, validates CREATE-mode App.pa.yaml, and writes a compact dispatch index, shared conventions, and one self-sufficient brief per screen. |
canvas-screen-builder | canvas-app | Creates or modifies exactly one screen from its shared plan and screen brief, then reports every named self-QA outcome. Builders run in waves of at most three; canvas-app owns compilation. |
MCP Tools
The canvas-authoring MCP server exposes the following tools:
| Tool | Description |
connect | Connects to a coauthoring session for a specific canvas app (environment ID, app ID, cluster category; optional auth flow, login hint, tenant ID, and forced account selection). Must be called before any other tool; calling again switches environment/app |
compile_canvas | Validates canvas app YAML files in a directory using the Power Apps authoring service |
describe_api | Gets detailed information about a specific API (connector) including its operations and parameters |
describe_control | Gets detailed information about a specific Power Apps control including properties, variants, and metadata |
get_data_source_schema | Gets the schema (columns and their Power Fx types) for a specific data source in the current authoring session |
list_apis | Lists all available APIs (connectors) in the current authoring session |
list_controls | Lists all available Power Apps controls in the current authoring session |
list_data_sources | Lists all available data sources in the current authoring session |
sync_canvas | Syncs the current coauthoring session state from the server to a local directory, writing all YAML files |
Hooks
Both hosts inject a reminder to call sync_canvas before acting, so the agent never edits stale
local .pa.yaml files. The reminder is conditional in wording — the agent skips the sync when no
coauthoring session is active or the request is unrelated to a canvas app.
Registration uses both plugin hook formats
— Claude-format (hooks/hooks.json) and Copilot-format (hooks.json at the plugin root) — which
the hosts read independently:
| Host | Registered in | Event |
| Claude Code | hooks/hooks.json (Claude format) | UserPromptSubmit |
| Copilot CLI | hooks.json in the plugin root (Copilot format) | userPromptTransformed |
Each host reads only its own file and ignores the other's. Both run
hooks/inject-sync-reminder.cs via dotnet run --file, which branches on its stdin payload to
emit the output shape each host expects.
Keep the two files separate. Claude Code rejects unrecognized hook event names, so putting
userPromptTransformed in hooks/hooks.json makes Claude fail to load the plugin, disabling its
canvas-authoring MCP server. Neither manifest should declare a "hooks" field: Claude Code
auto-discovers hooks/hooks.json, and pointing at it explicitly is treated as a duplicate hook
source, which also disables MCP.
Prerequisites
Before the MCP server will start, you need:
.NET 10 SDK — Download from Microsoft
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.

