Skip to content
AI & Agents
Skill

/edit-agent

Edit Copilot Studio agent settings, instructions, or configuration. Use when the user asks to change agent instructions, display name, conversation starters, AI settings, or generative actions toggle.

BOOST
From plugin
copilot-studio
46931 skills4 agents1 hook
Install
$ npx -y skills add microsoft/skills-for-copilot-studio --skill edit-agent --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/edit-agent

Context preview

The summary Claude sees to decide when to auto-load this skill.

Edit Copilot Studio agent settings, instructions, or configuration. Use when the user asks to change agent instructions, display name, conversation starters, AI settings, or generative actions toggle.

SKILL.md

edit-agent.SKILL.md
user-invocable: false
description: Edit Copilot Studio agent settings, instructions, or configuration. Use when the user asks to change agent instructions, display name, conversation starters, AI settings, or generative actions toggle.
argument-hint: <what to change>
allowed-tools: Bash(node *schema-lookup.bundle.js *), Read, Edit, Glob
context: fork
agent: copilot-studio-author

Edit Agent Settings/Instructions

Modify agent metadata (`agent.mcs.yml`) or configuration (`settings.mcs.yml`).

Instructions

1. **Auto-discover the agent directory**:

   Glob: **/agent.mcs.yml

NEVER hardcode an agent name. If multiple agents found, ask which one.

2. **Identify what the user wants to change** and read the appropriate file:

  • **Instructions, display name, conversation starters, AI settings** → `agent.mcs.yml`
  • **GenerativeActionsEnabled, authentication, recognizer, capabilities** → `settings.mcs.yml`

3. **If the user wants to change the AI model**, run the schema lookup tool first:

   node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js models

Use the output to determine the correct `modelNameHint` and `provider` values. **CRITICAL:** Do NOT include `kind` in the model block — the agent-level schema uses `CurrentModelsNoKind`.

4. **Read the current file** before making any changes.

5. **Make the requested changes** using the Edit tool.

Editable Fields in `agent.mcs.yml`

| Field | Description | Example | |-------|-------------|---------| | `displayName` | Agent's display name | `displayName: My Agent` | | `instructions` | System prompt / personality | Multi-line YAML with `\|` | | `conversationStarters` | Suggested conversation starters | Array of `{title, text}` | | `aISettings.model.modelNameHint` | Model hint (run `models` command for convention) | `Sonnet46`, `GPT5Chat` | | `aISettings.model.provider` | Model provider (required for non-OpenAI) | `Anthropic` |

Editable Fields in `settings.mcs.yml`

| Field | Description | Example | |-------|-------------|---------| | `GenerativeActionsEnabled` | Enable generative orchestration | `true` / `false` | | `authenticationMode` | Auth mode | `Integrated`, `None` | | `authenticationTrigger` | When to auth | `Always`, `AsNeeded` | | `accessControlPolicy` | Access control | `ChatbotReaders` | | `configuration.aISettings.*` | AI capabilities | Various booleans | | `configuration.settings.*.content.capabilities.webBrowsing` | Web browsing | `true` / `false` |

Writing Effective Instructions

For detailed guidance on writing knowledge-aware instructions, grounding directives, citation control, and scope enforcement, see [instructions-guide.md](instructions-guide.md).

Fields to NEVER Modify

  • `schemaName` — This is the internal Power Platform identifier. Changing it breaks the agent.
  • `publishedOn` — Managed by the platform.
  • `template` — Managed by the platform.
  • `language` — Changing this can corrupt the agent.

If the user asks to change any of these, warn them.

Example: Update Instructions

instructions: |
  You are a customer support agent for Contoso Ltd.

  Guidelines:
  - Be professional and empathetic
  - Always verify the customer's identity first
  - Escalate billing issues to a human agent
Read more
Ships withcopilot-studio

A plugin for Claude Code, GitHub Copilot CLI, and VS Code that enables authoring, testing, and troubleshooting Microsoft Copilot Studio STANDARD agents through YAML files — directly from your terminal or editor.

Get the whole plugin

Other skills on copilot-studio.