skills/edit-agent/SKILL.md
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.
npx skillsauth add microsoft/skills-for-copilot-studio skills/edit-agentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Modify agent metadata (agent.mcs.yml) or configuration (settings.mcs.yml).
Auto-discover the agent directory:
Glob: **/agent.mcs.yml
NEVER hardcode an agent name. If multiple agents found, ask which one.
Identify what the user wants to change and read the appropriate file:
agent.mcs.ymlsettings.mcs.ymlIf 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.
Read the current file before making any changes.
Make the requested changes using the Edit tool.
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 |
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 |
For detailed guidance on writing knowledge-aware instructions, grounding directives, citation control, and scope enforcement, see instructions-guide.md.
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.
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
development
Pattern library for Copilot Studio agent design. Contains proven and recommended implementation patterns with YAML examples. Used by the Advisor agent to suggest patterns and by the Author agent to reference YAML structure during implementation. USE FOR: design guidance, pattern suggestions, review against best practices, troubleshooting known pitfalls, YAML reference during implementation. DO NOT USE FOR: general YAML schema reference (use int-reference), topic creation mechanics (use new-topic).
testing
Look up Copilot Studio YAML schema definitions. Use when the user asks about schema structure, element properties, or how to use a specific YAML kind.
data-ai
Reference tables for Copilot Studio YAML authoring: triggers, actions, variables, entities, Power Fx functions, templates. Preloaded by author and advisor agents.
development
Add a knowledge source (public website or SharePoint) to a Copilot Studio agent. Use when the user asks to add a knowledge source, documentation URL, website, or SharePoint site for the agent to search.