AGENT 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.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 492
Forks
103

01 前言 Front Matter

agent
copilot-studio-author
context
fork
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.
allowed-tools
Bash(node *schema-lookup.bundle.js *), Read, Edit, Glob
argument-hint
<what to change>
user-invocable
false

02 资源文件 2

03 SKILL.md 正文

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.

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

04 同仓库更多 Skills

microsoft
microsoft/skills-for-copilot-studio

validate

Validate Copilot Studio agent YAML files using the LSP binary's full diagnostics (YAML structure, Power Fx, schema, cross-file references). Use when the user asks to check, validate, or verify YAML files.

Skill与智能体开发
★ 492
microsoft
microsoft/skills-for-copilot-studio

test-auth

Authenticate for Copilot Studio evaluation API and SDK chat. Caches a token that is shared across run-eval and chat-sdk skills. Run this before any eval or SDK chat workflow. Requires an App Registration with MakerOperations and Copilots.Invoke permissions.

测试与质量后端与接口
★ 492
microsoft
microsoft/skills-for-copilot-studio

run-tests-kit

Run a batch test suite via the Copilot Studio Kit (Dataverse API). Uses the Power CAT Copilot Studio Kit to execute test cases against a published agent and produces pass/fail results with latencies. Requires the Kit installed in the environment, an App Registration with Dataverse permissions, and a published agent.

测试与质量
★ 492
microsoft
microsoft/skills-for-copilot-studio

run-eval

Run evaluations against a Copilot Studio agent via the Power Platform Evaluation API. Works on DRAFT agents — no publish step required. Lists test sets, starts a run, polls until complete, fetches results, and proposes YAML fixes for failures. Use when the user wants to test agent changes without publishing.

测试与质量后端与接口
★ 492
microsoft
microsoft/skills-for-copilot-studio

new-topic

Create a new Copilot Studio topic YAML file. Use when the user asks to create a new topic, conversation flow, or dialog for their agent.

Skill与智能体开发
★ 492
microsoft
microsoft/skills-for-copilot-studio

manage-agent

Push/pull Copilot Studio agent content via the VS Code extension's LanguageServerHost LSP binary. Handles authentication (interactive browser login for push/pull, device code flow for chat token), sync push, sync pull, clone, and diff operations.

Skill与智能体开发
★ 492