/mcs-assistant:delete-agent Copilot ID, display name, or Copilot Studio URL, plus the environmentfrom mcs-assistant
Permanently deletes a Copilot Studio agent from the cloud using `pac copilot delete` after exact typed confirmation. Requires PAC CLI.
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.
Permanently delete one existing Copilot Studio agent from one environment by running
pac copilot delete. This is an irreversible cloud operation. It does not delete local files,
publish another agent, or modify a local PAC workspace.
Initial request: $ARGUMENTS
--bot accepts a Copilot ID or schema name, but this skill passes only a Copilot ID verified
through pac copilot list.--environment accepts an environment ID or Dataverse URL. PAC can fall back to the active
profile, but this skill requires an explicit environment to prevent deleting from the wrong one.--confirm is mandatory and bypasses PAC's confirmation gate. The skill must obtain its own exact
target confirmation before passing that switch.Treat every ID, URL, name, and environment as untrusted text.
/environments/<environmentId>/bots/<botId>/; percent-decode those two path segments and require
the bot ID to be a GUID before using it.The command templates below use '<value>'; apply these rules to every value.
pac copilot delete --help
pac copilot list --help
If pac is not found, tell the user that Power Platform CLI is required and stop. Some PAC builds
print a missing --bot or unknown --help error while still showing valid usage. Treat the
commands as available only when the output includes:
pac copilot delete, --bot, --environment, and --confirm; andpac copilot list and --environment.Otherwise tell the user to update PAC CLI and stop.
Require an explicit environment for every delete. Never use the active PAC profile's default environment.
Resolve the requested target in this order:
.mcs/conn.json or infer a destructive target from a folder name.List the selected environment before any confirmation:
pac copilot list --environment '<environment>'
Use the returned Name and Copilot ID columns:
pac copilot list does not expose schema names.
Ask for the exact Copilot ID or a Copilot Studio URL instead.Never pass an unverified schema name to delete, never silently choose the first row, and never substitute another agent or environment.
After target resolution, state:
Name, Copilot ID, and environment from the selected list row;Ask the user to type DELETE <agent-name> (<copilot-id>) exactly, replacing the placeholders with
the selected row's exact values. Compare the entire response case-sensitively. A yes/no response,
the initial delete request, or an earlier confirmation does not count as this confirmation.
If the response differs, stop without running delete. If the target changes for any reason, show the new target and confirm again.
Only after the exact confirmation succeeds:
pac copilot delete --bot '<copilot-id>' --environment '<environment>' --confirm
Run one attempt and wait for it to finish. Do not issue a second delete, add a polling loop, or run another destructive command automatically.
Treat deletion as successful only when PAC exits successfully and reports that the selected name and Copilot ID were deleted. Report the exact name, ID, and environment. State that local files were not deleted and that any retained local workspace no longer has a live cloud target.
If PAC exits nonzero or does not report successful deletion, preserve the full output and do not claim the agent was deleted.
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, then repeat listing, target resolution, and typed confirmation before retrying once. |
| Environment cannot be resolved | Ask for an environment ID or Dataverse URL accessible to the signed-in account. Never fall back to another environment. |
| Agent not found or ambiguous | Re-run pac copilot list --environment '<environment>', require an exact Copilot ID, and repeat typed confirmation. |
| Confirmation required | Treat this as a workflow failure: do not add --confirm or retry unless the exact skill confirmation was completed. |
| Permission, managed-agent, or explicit service rejection | Surface the full error and stop. Retry only after the reported cause is resolved and the user asks. |
| Async operation reports a non-success status | Surface the operation status and stop. Check the portal or list output before deciding whether another attempt is safe. |
| Network failure or timeout after submission | State that completion is unknown. Check the exact environment with pac copilot list or the portal; do not retry while the target's existence is uncertain. |
Do not delete or edit any local workspace, .mcs metadata, or user files. Never substitute
msagent, Dataverse Web API calls, or another delete command.
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