AGENT SKILL

Copilot Studio YAML 校验

validate

使用 LSP 二进制文件的完整诊断能力(YAML 结构、Power Fx、schema、跨文件引用)校验 Copilot Studio 智能体的 YAML 文件。当用户要求检查、验证或核对 YAML 文件时使用。

适用职业AI 工程师
使用场景智能体开发
License 许可
MIT
最近更新
2026-11-12
Stars
★ 493
Forks
103

01 前言 Front Matter

description
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.
allowed-tools
Bash(node *manage-agent.bundle.js *), Bash(node *schema-lookup.bundle.js *), Read, Glob
argument-hint
<path-to-agent-workspace>
user-invocable
false

02 资源文件 3

03 SKILL.md 正文

Validate Agent YAML

Validate Copilot Studio agent YAML files using the LanguageServerHost binary's full diagnostics — the same validation engine used by the VS Code Copilot Studio extension.

Instructions

  1. Locate the agent workspace. Find the directory containing .mcs/conn.json. If a specific file was requested, use the workspace that contains it.

  2. Run LSP-based validation:

    node ${CLAUDE_SKILL_DIR}/../../scripts/manage-agent.bundle.js validate \
      --workspace "<path-to-agent-folder>" \
      --tenant-id "<tenantId>" \
      --environment-id "<envId>" \
      --environment-url "<envUrl>" \
      --agent-mgmt-url "<mgmtUrl>"
    

    This validates all .mcs.yml files in the workspace using the LSP binary's full diagnostics: YAML structure, Power Fx expressions, schema validation, cross-file references, and environment-specific checks.

    Connection details come from .mcs/conn.json — read it to get tenant-id, environment-id, environment-url, and agent-mgmt-url.

  3. Parse the JSON output:

    • valid: true → all files pass (may still have warnings)
    • valid: false + summary.errors > 0 → report errors as FAIL items
    • summary.warnings > 0 → report as WARN items
    • Each file with diagnostics is listed with severity, message, code, and line range
  4. If the user asked about a specific file, filter the output to show only that file's diagnostics.

  5. For additional context on specific errors, use schema lookup:

    node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js resolve <kind>
    
  6. Report findings:

    Validation Results for: <agent-name>
    
    [PASS] <filename> — no issues
    [FAIL] <filename> — <error message> (line X)
    [WARN] <filename> — <warning message> (line X)
    
    Summary: X files checked, Y errors, Z warnings
    

04 同仓库更多 Skills

microsoft
microsoft/skills-for-copilot-studio

Copilot Studio 测试身份验证

test-auth

为 Copilot Studio 评估 API 和 SDK 聊天进行身份验证。缓存一个在 run-eval 和 chat-sdk 技能之间共享的令牌。在任何评估或 SDK 聊天工作流之前运行此技能。要求使用具有 MakerOperations 和 Copilots.Invoke 权限的 App Registration。

AI 工程师智能体开发
★ 493
microsoft
microsoft/skills-for-copilot-studio

Copilot Studio Kit 批量测试

run-tests-kit

通过 Copilot Studio Kit (Dataverse API) 运行批量测试套件。使用 Power CAT Copilot Studio Kit 对已发布的智能体执行测试用例,并生成包含延迟的通过/失败结果。要求环境中已安装 Kit、具有 Dataverse 权限的 App Registration,以及已发布的智能体。

AI 工程师测试与质量保障
★ 493
microsoft
microsoft/skills-for-copilot-studio

Copilot Studio 智能体评估运行

run-eval

通过 Power Platform Evaluation API 对 Copilot Studio 智能体运行评估。适用于草稿(DRAFT)智能体——无需发布步骤。列出测试集、启动运行、轮询直至完成、获取结果,并针对失败提出 YAML 修复建议。当用户希望在不发布的情况下测试智能体更改时使用。

AI 工程师智能体开发
★ 493
microsoft
microsoft/skills-for-copilot-studio

Copilot Studio 主题创建

new-topic

创建一个新的 Copilot Studio 主题(topic)YAML 文件。当用户要求为其智能体创建新主题、对话流程或对话框时使用。

AI 工程师智能体开发
★ 493
microsoft
microsoft/skills-for-copilot-studio

Copilot Studio 智能体管理

manage-agent

通过 VS Code 扩展的 LanguageServerHost LSP 二进制文件推送/拉取 Copilot Studio 智能体内容。处理身份验证(推送/拉取使用交互式浏览器登录,聊天令牌使用设备代码流)、同步推送、同步拉取、克隆和差异比较操作。

AI 工程师智能体开发
★ 493
microsoft
microsoft/skills-for-copilot-studio

Copilot Studio YAML 架构查询

lookup-schema

查找 Copilot Studio YAML schema 定义。当用户询问 schema 结构、元素属性或如何使用特定 YAML kind 时使用。

AI 工程师智能体开发
★ 493