power-platform-skills / power-automate
AGENTS.md961 starsChanged 59 days agoMITView on GitHub
Guidance for AI agents (Copilot CLI, Claude Code, Cursor) operating inside this plugin. The authoritative reference is this plugin's CLAUDE.md and the references/ docs; this file is the plugin-local routing rule. If flowagent-* MCP tools are present in your tool surface, USE THEM for any flow/env/connection/run operation — list/get/create/update/edit/copy/ publish/run flows, environments, connections, connectors, run history + run management (cancel, **cancel_all**, resubmit, diagnose, loop repetitions), dynamic resolvers, templates, and get_expression_help. The MCP server (.mcp.json → flowagent) is the supported integration…
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/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-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
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 25
If the flowagent-* tools are missing, the MCP isn't wired — point the user at this plugin's .mcp.json / the install steps in README.md.
≈ “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-automate plugin
Guidance for AI agents (Copilot CLI, Claude Code, Cursor) operating inside this
plugin. The authoritative reference is this plugin's CLAUDE.md and the
references/ docs; this file is the plugin-local routing rule.
Tool routing (read first)
If flowagent-* MCP tools are present in your tool surface, USE THEM for any
flow/env/connection/run operation — list/get/create/update/edit/copy/
publish/run flows, environments, connections, connectors, run history + run
management (cancel, cancel_all, resubmit, diagnose, loop
repetitions), dynamic resolvers, templates, and get_expression_help.
The MCP server (.mcp.json → flowagent) is the supported integration path:
it handles auth (Azure CLI + MSAL), session-scoped current env/flow, structured
errors, and stays in-process. Shelling out re-pays auth cost and breaks session
state.
Shell (node dist/cli.js …) is reserved for users running the engine from a
local build, only for CLI-only commands the MCP does not wrap (connection
lifecycle, sharing, solutions/admin), and not for plugin users when MCP tools
are available.
If the flowagent-* tools are missing, the MCP isn't wired — point the user at
this plugin's .mcp.json / the install steps in README.md.
Layout
skills/<skill>/SKILL.md— user-invocable skills (verb-first names)references/*.md— shared reference docs (CLI commands, definition rules, connection patterns, error troubleshooting).claude-plugin/plugin.json+.plugin/plugin.json— Claude / Copilot manifests.mcp.json— MCP server wiring (FlowAgent + Microsoft Learn)
The flow-definition rules, auth model, error reference, and known issues live in
this plugin's CLAUDE.md and references/ docs, and apply whether you call via
MCP or shell.
Documentation lookup (hybrid pattern)
This plugin uses a two-tier knowledge architecture:
Tier 1: Local references (fast, offline, plugin-specific)
The references/*.md files are curated, plugin-specific docs covering:
- Flow definition rules (
$authentication,$connections,OpenApiConnection) - Connection reference patterns (
EmbeddedvsInvoker, logical names) - Error-to-fix mapping (the exact API errors FlowAgent users hit)
- CLI command reference
Always check references/*.md first — they contain hard-won knowledge that
Learn docs don't cover or bury across many articles.
Tier 2: Microsoft Learn MCP (live, comprehensive, up-to-date)
The .mcp.json wires microsoft-learn (https://learn.microsoft.com/api/mcp)
which provides:
microsoft_docs_search— search Learn docs by topicmicrosoft_docs_fetch— fetch a complete article by URLmicrosoft_code_sample_search— find code examples
Use Learn MCP when:
- The user asks about a connector or action you don't recognize
- An expression function isn't in the local expression reference
- You need the latest API changes or preview features
- The user asks "how do I..." for a scenario not in references/
- You need to verify whether a pattern is officially supported
- Error troubleshooting needs more context than the local table provides
Scoping tip: Prefix queries with "Power Automate" or "cloud flow" for relevance. For connector docs, use the connector name directly.
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.

