[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699E43DZG1ZZZ604W9FVY3M":3,"skill-same:01M699E43DZG1ZZZ604W9FVY3M":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":17,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M699E43DZG1ZZZ604W9FVY3M","add-global-variable","Copilot Studio 全局变量添加","Add a global variable to a Copilot Studio agent. Use when the user needs a variable that persists across topics in the same conversation and can optionally be visible to the AI orchestrator.","向 Copilot Studio 智能体添加全局变量。当用户需要跨同一会话中多个主题持久保存、且可选择对 AI 编排器可见的变量时使用。","microsoft\u002Fskills-for-copilot-studio","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699DXBD563FYBGWKPJJRAVM",493,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Fadd-global-variable\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发","SCENARIO","使用场景",[31],"add global variable","2026-11-10 10:12:30",false,"---\nuser-invocable: false\ndescription: Add a global variable to a Copilot Studio agent. Use when the user needs a variable that persists across topics in the same conversation and can optionally be visible to the AI orchestrator.\nargument-hint: \u003Cvariable name and purpose>\nallowed-tools: Read, Write, Glob, Grep\ncontext: fork\nagent: copilot-studio-author\n---\n\n# Add Global Variable\n\nCreate a global variable that persists across all topics within a conversation.\n\n## Instructions\n\n1. **Auto-discover the agent directory**:\n   ```\n   Glob: **\u002Fagent.mcs.yml\n   ```\n   Use the top-level agent. NEVER hardcode an agent name.\n\n2. **Read `settings.mcs.yml`** to get the `schemaName` prefix:\n   ```\n   Read: \u003Cagent-dir>\u002Fsettings.mcs.yml\n   ```\n   Extract the root-level `schemaName` value (e.g., `copilots_header_cre3c_fullagent`).\n\n3. **Determine from the user**:\n   - Variable name (PascalCase, e.g., `LastDiscussedCity`)\n   - Description of what it stores\n   - Whether the AI orchestrator should be aware of it (`aIVisibility`)\n   - Default value (if any)\n   - DO NOT skip any of these properties. If the user doesn't provide them, ask follow-up questions to get the necessary information.\n\n4. **Create the variable file** at `\u003Cagent-dir>\u002Fvariables\u002F\u003CVariableName>.mcs.yml`:\n\n```yaml\n# Name: \u003CHuman-readable Name>\n# \u003CDescription>\nname: \u003CVariableName>\naIVisibility: \u003CUseInAIContext or HideFromAIContext>\nscope: Conversation\ndescription: \u003CDescription of what the variable stores>\nschemaName: \u003Cprefix>.globalvariable.\u003CVariableName>\nkind: GlobalVariableComponent\ndefaultValue: \u003CDEFAULT or specific value>\n```\n\n5. **Key fields explained**:\n   - `name` — PascalCase identifier. This is how topics reference the variable: `Global.\u003Cname>` (e.g., `Global.LastDiscussedCity`).\n   - `aIVisibility` — Controls orchestrator awareness:\n     - `UseInAIContext` — The orchestrator can read and reason about this variable. Use when the variable influences routing or response generation (e.g., user preferences, conversation state the AI should track).\n     - `HideFromAIContext` — The variable exists but the orchestrator doesn't see it. Use for internal bookkeeping (e.g., counters, flags) that topics use but the AI doesn't need to reason about.\n   - `scope: Conversation` — Always `Conversation` for global variables (persists for the session).\n   - `schemaName` — Must follow the pattern `\u003Cagent-schemaName>.globalvariable.\u003CVariableName>`. Read the prefix from `settings.mcs.yml`.\n   - `defaultValue` — Initial value. Use `DEFAULT` if no specific initial value is needed.\n\n## How Topics Use Global Variables\n\nTopics reference global variables with the `Global.` prefix:\n\n```yaml\n# Reading a global variable in a condition\n- kind: ConditionGroup\n  id: conditionGroup_Xk9mPq\n  conditions:\n    - id: conditionItem_Lw3nRs\n      condition: =!IsBlank(Global.LastDiscussedCity)\n      actions:\n        - kind: SendActivity\n          id: sendMessage_Yt7vBw\n          activity:\n            text:\n              - \"Last time we discussed {Global.LastDiscussedCity}.\"\n\n# Setting a global variable from a topic\n- kind: SetTextVariable\n  id: setTextVariable_Qp4kMn\n  variable: Global.LastDiscussedCity\n  value: =Topic.CityName\n```\n\n## When to Use Global Variables\n\n- **Cross-topic state**: A value set in one topic needs to be read in another (e.g., user's preferred language, last search query)\n- **AI-aware context**: The orchestrator should know something about the conversation state to make better routing decisions (use `UseInAIContext`)\n- **Conversation-wide defaults**: A default value that multiple topics can read and optionally override\n- **Dynamic knowledge sources**: A global variable can hold a URL that a knowledge source references via `=$\"{Global.VarName}\"`. This enables routing to different SharePoint folders or websites per user (e.g., by geolocation or department). See `\u002Fcopilot-studio:add-knowledge` for the full pattern. **Important**: the variable value must be a clean, direct URL — not a SharePoint AllItems.aspx link with query parameters.\n","# Add Global Variable\n\nCreate a global variable that persists across all topics within a conversation.\n\n## Instructions\n\n1. **Auto-discover the agent directory**:\n   ```\n   Glob: **\u002Fagent.mcs.yml\n   ```\n   Use the top-level agent. NEVER hardcode an agent name.\n\n2. **Read `settings.mcs.yml`** to get the `schemaName` prefix:\n   ```\n   Read: \u003Cagent-dir>\u002Fsettings.mcs.yml\n   ```\n   Extract the root-level `schemaName` value (e.g., `copilots_header_cre3c_fullagent`).\n\n3. **Determine from the user**:\n   - Variable name (PascalCase, e.g., `LastDiscussedCity`)\n   - Description of what it stores\n   - Whether the AI orchestrator should be aware of it (`aIVisibility`)\n   - Default value (if any)\n   - DO NOT skip any of these properties. If the user doesn't provide them, ask follow-up questions to get the necessary information.\n\n4. **Create the variable file** at `\u003Cagent-dir>\u002Fvariables\u002F\u003CVariableName>.mcs.yml`:\n\n```yaml\n# Name: \u003CHuman-readable Name>\n# \u003CDescription>\nname: \u003CVariableName>\naIVisibility: \u003CUseInAIContext or HideFromAIContext>\nscope: Conversation\ndescription: \u003CDescription of what the variable stores>\nschemaName: \u003Cprefix>.globalvariable.\u003CVariableName>\nkind: GlobalVariableComponent\ndefaultValue: \u003CDEFAULT or specific value>\n```\n\n5. **Key fields explained**:\n   - `name` — PascalCase identifier. This is how topics reference the variable: `Global.\u003Cname>` (e.g., `Global.LastDiscussedCity`).\n   - `aIVisibility` — Controls orchestrator awareness:\n     - `UseInAIContext` — The orchestrator can read and reason about this variable. Use when the variable influences routing or response generation (e.g., user preferences, conversation state the AI should track).\n     - `HideFromAIContext` — The variable exists but the orchestrator doesn't see it. Use for internal bookkeeping (e.g., counters, flags) that topics use but the AI doesn't need to reason about.\n   - `scope: Conversation` — Always `Conversation` for global variables (persists for the session).\n   - `schemaName` — Must follow the pattern `\u003Cagent-schemaName>.globalvariable.\u003CVariableName>`. Read the prefix from `settings.mcs.yml`.\n   - `defaultValue` — Initial value. Use `DEFAULT` if no specific initial value is needed.\n\n## How Topics Use Global Variables\n\nTopics reference global variables with the `Global.` prefix:\n\n```yaml\n# Reading a global variable in a condition\n- kind: ConditionGroup\n  id: conditionGroup_Xk9mPq\n  conditions:\n    - id: conditionItem_Lw3nRs\n      condition: =!IsBlank(Global.LastDiscussedCity)\n      actions:\n        - kind: SendActivity\n          id: sendMessage_Yt7vBw\n          activity:\n            text:\n              - \"Last time we discussed {Global.LastDiscussedCity}.\"\n\n# Setting a global variable from a topic\n- kind: SetTextVariable\n  id: setTextVariable_Qp4kMn\n  variable: Global.LastDiscussedCity\n  value: =Topic.CityName\n```\n\n## When to Use Global Variables\n\n- **Cross-topic state**: A value set in one topic needs to be read in another (e.g., user's preferred language, last search query)\n- **AI-aware context**: The orchestrator should know something about the conversation state to make better routing decisions (use `UseInAIContext`)\n- **Conversation-wide defaults**: A default value that multiple topics can read and optionally override\n- **Dynamic knowledge sources**: A global variable can hold a URL that a knowledge source references via `=$\"{Global.VarName}\"`. This enables routing to different SharePoint folders or websites per user (e.g., by geolocation or department). See `\u002Fcopilot-studio:add-knowledge` for the full pattern. **Important**: the variable value must be a clean, direct URL — not a SharePoint AllItems.aspx link with query parameters.\n",{"agent":37,"context":38,"description":7,"allowed-tools":39,"argument-hint":40,"user-invocable":33},"copilot-studio-author","fork","Read, Write, Glob, Grep","\u003Cvariable name and purpose>","main","9c42d3a612c6e06389b6e5b4eed579aaed1a8b63","skills\u002Fadd-global-variable",103,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-12 17:03:17",{"source":9,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add microsoft\u002Fskills-for-copilot-studio --skill add-global-variable",{"tool":56,"command":57},"bunx","bunx skills add microsoft\u002Fskills-for-copilot-studio --skill add-global-variable",{"tool":59,"command":60},"pnpm","pnpm dlx skills add microsoft\u002Fskills-for-copilot-studio --skill add-global-variable","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Fadd-global-variable\u002FSKILL.md",true,[],[65,76,92,106,118,130],{"skillNo":66,"name":67,"nameZh":68,"description":69,"descriptionZh":70,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":71,"categories":72,"keywords":75,"publishedAt":32},"01M699FD973RBVBTQYE48GBFPG","validate","Copilot Studio YAML 校验","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.","使用 LSP 二进制文件的完整诊断能力（YAML 结构、Power Fx、schema、跨文件引用）校验 Copilot Studio 智能体的 YAML 文件。当用户要求检查、验证或核对 YAML 文件时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Fvalidate\u002FSKILL.md",[73,74],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[67],{"skillNo":77,"name":78,"nameZh":79,"description":80,"descriptionZh":81,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":82,"categories":83,"keywords":86,"publishedAt":32},"01M699FBJC22B4HCFH9MA844C3","test-auth","Copilot Studio 测试身份验证","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.","为 Copilot Studio 评估 API 和 SDK 聊天进行身份验证。缓存一个在 run-eval 和 chat-sdk 技能之间共享的令牌。在任何评估或 SDK 聊天工作流之前运行此技能。要求使用具有 MakerOperations 和 Copilots.Invoke 权限的 App Registration。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Ftest-auth\u002FSKILL.md",[84,85],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[87,88,89,90,91],"test","auth","test auth","sdk","workflow",{"skillNo":93,"name":94,"nameZh":95,"description":96,"descriptionZh":97,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":98,"categories":99,"keywords":104,"publishedAt":32},"01M699FA38G1TAVA0JWD9DG783","run-tests-kit","Copilot Studio 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\u002Ffail results with latencies. Requires the Kit installed in the environment, an App Registration with Dataverse permissions, and a published agent.","通过 Copilot Studio Kit (Dataverse API) 运行批量测试套件。使用 Power CAT Copilot Studio Kit 对已发布的智能体执行测试用例，并生成包含延迟的通过\u002F失败结果。要求环境中已安装 Kit、具有 Dataverse 权限的 App Registration，以及已发布的智能体。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Frun-tests-kit\u002FSKILL.md",[100,103],{"categoryNo":101,"categoryName":102,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[105,87],"run tests kit",{"skillNo":107,"name":108,"nameZh":109,"description":110,"descriptionZh":111,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":112,"categories":113,"keywords":116,"publishedAt":32},"01M699F8EP4BZT1EA3R4Y40X98","run-eval","Copilot Studio 智能体评估运行","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.","通过 Power Platform Evaluation API 对 Copilot Studio 智能体运行评估。适用于草稿(DRAFT)智能体——无需发布步骤。列出测试集、启动运行、轮询直至完成、获取结果，并针对失败提出 YAML 修复建议。当用户希望在不发布的情况下测试智能体更改时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Frun-eval\u002FSKILL.md",[114,115],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[117,87],"run eval",{"skillNo":119,"name":120,"nameZh":121,"description":122,"descriptionZh":123,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":124,"categories":125,"keywords":128,"publishedAt":32},"01M699F6NR5Z4RTN5MWH5WYV9H","new-topic","Copilot Studio 主题创建","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.","创建一个新的 Copilot Studio 主题（topic）YAML 文件。当用户要求为其智能体创建新主题、对话流程或对话框时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Fnew-topic\u002FSKILL.md",[126,127],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[129],"new topic",{"skillNo":131,"name":132,"nameZh":133,"description":134,"descriptionZh":135,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":136,"categories":137,"keywords":140,"publishedAt":32},"01M699F4QN5BMQA3X9F7WC1NS0","manage-agent","Copilot Studio 智能体管理","Push\u002Fpull Copilot Studio agent content via the VS Code extension's LanguageServerHost LSP binary. Handles authentication (interactive browser login for push\u002Fpull, device code flow for chat token), sync push, sync pull, clone, and diff operations.","通过 VS Code 扩展的 LanguageServerHost LSP 二进制文件推送\u002F拉取 Copilot Studio 智能体内容。处理身份验证（推送\u002F拉取使用交互式浏览器登录，聊天令牌使用设备代码流）、同步推送、同步拉取、克隆和差异比较操作。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Fmanage-agent\u002FSKILL.md",[138,139],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[141,88,142],"manage agent","sync"]