FastTrack
Copilot CLI Skill

copilot-studio-workflow

Build Copilot Studio agents like software.

Source control. Repeatable workflows. AI that knows the platform's sharp edges.

Install command
copilot plugin install microsoft/FastTrack:copilot-agent-samples/github-copilot-skills/copilot-studio-workflow

Coverage

5 workflows

Encoded lessons

11 gotchas encoded

Tooling

4 scripts included

Building agents shouldn't feel like archaeology

Portal-heavy workflow

No source control, no diff, no rollback. Too much of the build loop lives in opaque portal state.

Undocumented platform gotchas

Hours disappear into trial and error because critical rules only show up after something breaks.

Manual packaging

There is no repeatable path from dev to production unless you know the exact export and cleanup steps.

AI assistants are blind

Generic helpers do not know Copilot Studio's rules, the ALM sequence, or where the sharp edges really are.

A proven development loop

01

Pull from cloud

Sync the latest agent YAML from the environment before editing.

02

Revert workflow files

Scrub environment-specific URLs so the repo stays clean and portable.

03

Edit locally

Update YAML topics, actions, variables, and instructions with full diff visibility.

04

Push to cloud

Sync changes to the environment via the VS Code Copilot Studio extension.

05

Publish

Make the draft live in Copilot Studio so users get the new version.

06

Test in Teams

Validate on the real channel — the test pane is not representative of production.

07

Commit to git

Commit the verified YAML — your durable source of truth.

Everything your AI assistant needs to know

Development Loop

The proven pull → revert → edit → push → publish → test workflow, with guardrails between each step.

Solution Packaging

Export, unpack, scrub URLs, repack, and handle PAC CLI steps without losing the production artifact chain.

Platform Gotchas

Eleven hard-won lessons encoded as instructions so the assistant can warn before you hit the trap.

Best Practices

Architecture, YAML hygiene, testing discipline, memory usage, and security reminders tailored to Copilot Studio work.

Helper Scripts

Status, revert, preflight, and add-component helpers that turn common workflow pain into one reliable command.

Natural language, expert guidance

Setup
You

I need to start building a Copilot Studio agent

Copilot

I'll walk you through the professional loop: clone or pull the agent locally, clean workflow noise, confirm the solution connection, then edit YAML in source before any push or publish.

Pull safety
You

I just pulled and git shows dirty workflow files

Copilot

That's the environment URL drift problem. Cloud pulls can bring workflow and settings URLs into git. Run the revert helper now so your repo keeps clean, reusable source instead of environment-specific noise.

Solution gap
You

My new topic isn't in the solution export

Copilot

Push updates the cloud draft, but it does not add new components to the Power Platform solution. Use the add-component helper or pac solution tooling so the export contains the topic you actually shipped.

Preflight
You

I'm about to push — anything I should check?

Copilot

Run preflight first. It checks dirty workflows, pending changes, variable definitions, and project structure so you catch obvious deployment issues before syncing cloud state.

11 platform traps we've already mapped

🔴 Critical

OnConversationStart is unreliable

Use the safer initialization patterns instead of assuming the trigger will always behave.

🔴 Critical

Push does not update the solution

Cloud sync and solution membership are separate paths, so exported artifacts can silently miss new components.

🔴 Critical

Global vars need YAML definitions

If the definition is missing or inconsistent, behavior will drift even when the topic logic looks correct.

🔴 Critical

Cloud pull brings live URLs

Workflow and settings files can come back dirty after a pull, so revert them before you commit polluted state.

🟡 High

Solution import deactivates flows

Post-import checks matter because a clean package does not guarantee the downstream automation stays active.

🟡 High

Extension sync is all-or-nothing

One broken file can derail the wider extension sync, so hygiene and validation are part of the workflow, not extras.

One command away

Terminal
copilot plugin install microsoft/FastTrack:copilot-agent-samples/github-copilot-skills/copilot-studio-workflow

Update command

copilot plugin update microsoft/FastTrack:copilot-agent-samples/github-copilot-skills/copilot-studio-workflow

Compatibility

Copilot CLI VS Code Claude Code Cloud Agent

For YAML authoring and validation, also install the Copilot Studio Plugin by the Microsoft CAT Team. It complements this skill's workflow and packaging guidance.

Back to FastTrack

Install once, then ask naturally for setup help, pull safety, preflight checks, packaging guidance, or solution fixes.