/mcs-assistant:pull-agent Local PAC-connected agent workspace or .mcs/conn.json pathfrom mcs-assistant
Pulls remote Copilot Studio agent changes into a local PAC CLI workspace using `pac copilot pull`. Handles workspace resolution, path safety, and merge of knowledge files.
Ships in mcs-assistant. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Update one existing PAC-connected Copilot Studio workspace from its cloud agent by running
pac copilot pull. This workflow can merge remote changes into local files. It never creates,
pushes, publishes, renames, or deletes a cloud agent.
Initial request: $ARGUMENTS
--project-dir identifies the existing workspace. PAC uses the current directory when it is
omitted, but this skill always passes the resolved workspace explicitly..mcs/conn.json.Treat every path as untrusted text.
The command templates below use '<value>'; apply these rules to every value.
pac copilot pull --help
If pac is not found, tell the user that Power Platform CLI is required and stop. If pac exists
but the copilot pull verb is unavailable, tell the user to update PAC CLI and stop. Some PAC
builds print an "unknown argument --help" error while still showing valid pull usage. When the
output includes pac copilot pull and --project-dir, treat the verb as available.
Resolve the workspace in this order:
.mcs/conn.json path, use the parent directory of .mcs..mcs/conn.json and
either settings.mcs.yml or agent.mcs.yml.Require an existing directory containing .mcs/conn.json plus settings.mcs.yml or
agent.mcs.yml. Do not read, print, or modify .mcs/conn.json directly. If the markers are
missing, stop and explain that pull requires a workspace created or connected by PAC.
Before execution, state the selected workspace and that pull can modify and merge its local files. If the user reports uncommitted or otherwise unsaved local work, warn them to preserve it before continuing. Do not delete, reset, stash, or overwrite local changes on the user's behalf.
The user's explicit request to pull is consent for these local writes. If this skill is invoked as a prerequisite for push or publish and the caller has not supplied the user's confirmation for the pull, stop and tell the caller to obtain that confirmation before invoking the skill again. Ask again only if workspace resolution changed the confirmed target.
pac copilot pull --project-dir '<agent-workspace>'
Wait for the command to finish. Do not use sleeps as evidence of completion and do not retry except under the error rules below.
Treat the pull as successful only when PAC exits successfully. Preserve its reported change list or
no-change result. Confirm that the workspace markers and .mcs/conn.json still exist, without
reading CLI-managed state.
Report the workspace path and whether PAC applied remote changes or found none. State that local files and sync state may have changed and no cloud content was modified.
PAC writes human-readable output. Preserve the full error and apply these rules:
| Failure | Action |
|---|---|
| Authentication profile missing or expired | Tell the user sign-in is required. With consent, run pac auth create, let sign-in finish, then retry the same pull once. |
| Workspace not found or disconnected | Ask for a PAC-connected workspace. Do not fall back to clone or edit .mcs/conn.json. |
| Local/remote merge conflict | Surface every conflict PAC reports and stop so the user can resolve the local files. Never discard either side automatically. |
| Missing or invalid project file | Report the named file and stop. Do not synthesize agent files or retry against another workspace. |
| Service or network failure | Surface the error. Retry only after the user asks or the reported transient cause is resolved. |
Never fall back to pac copilot clone: clone creates a new workspace, while pull updates the
selected existing workspace.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub microsoft/copilot-studio-plugin --plugin mcs-assistant8 skills in this plugin
/add-knowledgeAdd a knowledge source (public website, SharePoint, OneDrive, or a locally uploaded file) to a locally-cloned Copilot Studio agentic-loop agent by writing the modern capabilities/knowledge YAML. Use when the user asks to add, attach, or ground a knowledge source (a public website, SharePoint or OneDrive link, or an uploaded file) on a locally-cloned Copilot Studio agent./add-skillAdd an Agent Skill to a Copilot Studio agent - uploaded from your drive (a SKILL.md or .zip) or picked from the Power CAT "Cat Agent Skills" gallery - then optionally import it into a cloned agent workspace under behaviors/. Use when the user asks to add, import, upload, or install an Agent Skill (from a local SKILL.md/.zip or the Cat Agent Skills gallery) into a Copilot Studio agent./Other plugins' skills for the same job