Power automate solutions
Skill Wals-pro/claude-power-automate/skills/power-automate-solutions
Work with Microsoft Power Platform solutions and solution-scoped environment variables from the command line. Use for listing solutions, inspecting solution components, reading and setting environment variable values (String/Number/Boolean/JSON), handling Secret (Azure Key Vault) variables safely, connection references, and shipping flows through a DEV -> PROD pipeline via the power-automate CLI.From its SKILL.md
npx -y skills add Wals-pro/claude-power-automate --skill power-automate-solutionsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 10 stars10 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 8 commands, including `power-automate solutions --profile acme` and 7 more.
SKILL.md
4.0 KB, 843 tokens by cl100k_base, as published. Nobody here has run it
Power Automate Solutions & Environment Variables
Use this skill for application lifecycle management (ALM) of Power Platform
cloud flows: solutions, environment variables, and the DEV -> PROD pipeline.
The default tool is the power-automate CLI.
Core idea
- Solutions are the unit of deployment. Unmanaged solutions hold the editable source in DEV; managed solutions are the deployed result in PROD.
- Environment variables parameterize a solution so the same flow behaves correctly across environments (e.g. a different API base URL or record id in DEV vs PROD). A variable has a definition (schema name, type, optional default) and, per environment, a value.
- Create/edit flows in DEV inside an unmanaged solution, then ship the solution through the pipeline. Never edit on PROD directly.
Commands
# Solutions
power-automate solutions --profile acme # list (managed + unmanaged)
power-automate solutions --profile acme --unmanaged-only
power-automate solution-components --profile acme --solution <unique-name>
# Environment variables
power-automate env-vars --profile acme # all definitions + current/default values
power-automate env-vars --profile acme --solution <unique-name> # only this solution's variables
power-automate env-var-get --profile acme acme_ApiBaseUrl
power-automate env-var-set --profile acme acme_ApiBaseUrl "https://api.example.com" --solution <unique-name> --dry-run
power-automate env-var-set --profile acme acme_ApiBaseUrl "https://api.example.com" --solution <unique-name>
Add a new flow to a solution at creation time so it ships through the pipeline:
power-automate create --profile acme flow.json --name "My Flow" --solution <unique-name> --dry-run
Secret-handling rules (read before touching values)
- Secret-type environment variables are backed by Azure Key Vault. The
CLI masks their values by default (
<secret · Azure Key Vault-backed>).--reveal-secretshows only the Key Vault reference, never the secret value itself. env-var-setrefuses Secret-type variables. Configure those in the Power Platform portal or via a Key Vault reference — never pass a secret as a CLI argument (it would land in shell history, logs, and Dataverse as plaintext).- Never commit real environment variable values, schema names tied to a real customer, or GUIDs into source control. Use placeholders.
Procedure
solutionsto find the target unmanaged solution.solution-components --solution <unique-name>to see what it contains (flows = "Workflow / Cloud flow", env vars = "EnvironmentVariableDefinition", connection references, etc.).env-vars --solution <unique-name>to review the variables the flow depends on; confirm types and which have values in this environment.- For non-secret config,
env-var-set ... --dry-runthen the real set, passing--solutionso the value belongs to the solution. - For secret config, set it in the portal / Key Vault; only confirm presence
with
env-var-get(masked). - Read
references/solutions-alm.mdfor solution types, component-type codes, environment variable types, connection references, and DEV -> PROD notes.
Related skills
power-automate-api-clientfor pull/diff/deploy/verify of the flow itself.power-automate-action-configurationforconnectionReferencesinside the flow definition.power-automate-run-forensicswhen a deployed flow misbehaves per environment (often a missing or wrong environment variable value).
What ships with it: 1 file
3.6 KB alongside SKILL.md
references/
- solutions-alm.md3.6 KB