/mcs-assistant:push-agent Local PAC-connected agent workspace or .mcs/conn.json pathfrom mcs-assistant
Pushes local Copilot Studio agent changes from a PAC CLI workspace using `pac copilot push`. Use when the user wants to upload or sync local agent changes without publishing.
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.
Upload local changes from one existing PAC-connected workspace by running a pull followed by
pac copilot push. This updates the cloud agent's draft content. It never publishes, clones,
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.No local changes detected therefore does not prove that nothing changed in the
cloud.Treat every path as untrusted text.
The command templates below use '<value>'; apply these rules to every value.
pac copilot pull --help
pac copilot push --help
If pac is not found, tell the user that Power Platform CLI is required and stop. If either 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 usage. Treat each verb as available when its
output includes the matching pac copilot usage and --project-dir.
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 push requires a workspace created or connected by PAC.
Before execution, state:
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 push is consent for the pull and draft upload. Ask again only if workspace resolution changed the requested target.
pac copilot pull --project-dir '<agent-workspace>'
Wait for pull to complete successfully. If it reports a merge conflict or another failure, stop. Do not push a workspace whose pull did not succeed.
pac copilot push --project-dir '<agent-workspace>'
Wait for completion. Never append a publish command and do not retry except under the error rules below.
Treat the push as successful only when PAC exits successfully. Distinguish:
No local changes detected or another explicit no-change result.Report the workspace and exact push result. State that cloud draft content changed when PAC reports uploaded changes. For a no-change result, report only that PAC found no changes in its final reported change set; do not claim the agent was already current or that no cloud content changed, because auxiliary operations may already have run. State that nothing was published.
PAC writes human-readable output. Preserve the full error and apply these rules:
A nonzero exit can follow completed auxiliary operations. Report the failure and do not claim that no cloud side effects occurred; PAC does not return a complete partial-result envelope for this command.
| 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 restart the pull-then-push sequence once. |
| Workspace not found or disconnected | Ask for a PAC-connected workspace. Do not edit .mcs/conn.json. |
| Pull reports a merge conflict | Surface every conflict and stop so the user can resolve local files. Never continue to push. |
| Push says remote changes require a pull | Do not loop automatically. Explain that the remote changed after the pre-push pull and ask before restarting the full sequence. |
| No local changes | Treat the command as successful, report PAC's exact no-change message, and do not infer that auxiliary cloud content was unchanged. Do not publish. |
| Missing/invalid project file or service failure | Surface the full error and stop. Retry only after the cause is resolved and the user asks. |
Never pass an overwrite or force option: pac copilot push exposes no such option, and conflicts
must be reconciled through pull.
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