[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699FBJC22B4HCFH9MA844C3":3,"skill-same:01M699FBJC22B4HCFH9MA844C3":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M699FBJC22B4HCFH9MA844C3","test-auth",null,"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.","microsoft\u002Fskills-for-copilot-studio","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699DXBD563FYBGWKPJJRAVM",490,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Ftest-auth\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口",[27,28,29,30,31],"test","auth","test auth","sdk","workflow","2026-11-10 10:12:30",false,"---\nuser-invocable: false\ndescription: >\n  Authenticate for Copilot Studio evaluation API and SDK chat. Caches a token\n  that is shared across run-eval and chat-sdk skills. Run this before any\n  eval or SDK chat workflow. Requires an App Registration with MakerOperations\n  and Copilots.Invoke permissions.\nallowed-tools: Bash(node *eval-api.bundle.js auth *), Read, Glob\ncontext: fork\nagent: copilot-studio-test\n---\n\n# Test Agent Authentication\n\nAuthenticate with the Power Platform API for evaluation and SDK chat workflows.\nThis caches a token in the `\"test-agent\"` slot that is shared by `run-eval` and `chat-sdk`.\n\n## Step 1: Find the workspace\n\nLocate the agent workspace (directory containing `.mcs\u002Fconn.json`):\n```bash\nGlob: **\u002Fagent.mcs.yml\n```\n\nThe `conn.json` provides the tenant ID automatically — no need to ask the user for it.\n\n## Step 2: Get the client ID\n\n**CRITICAL: You MUST present the FULL configuration checklist below when asking for the client ID. Do NOT omit any items — users frequently miss the redirect URI and public client settings, which causes auth failures.**\n\nAsk the user for their **App Registration Client ID** and show them **all** of the following requirements in your message:\n\n> What is your App Registration Client ID for the Evaluation API?\n>\n> Before sharing it, please verify your App Registration has **all** of these settings:\n>\n> 1. **Redirect URI**: Under **Authentication** > **Mobile and desktop applications** > redirect URI set to `http:\u002F\u002Flocalhost`\n> 2. **Public client**: Under **Authentication** > **Advanced settings** > **Allow public client flows** set to **Yes**\n> 3. **API permissions**: Under **API permissions**, these **delegated** permissions on the **Power Platform API**:\n>    - `CopilotStudio.MakerOperations.Read` (list test sets, get results)\n>    - `CopilotStudio.MakerOperations.ReadWrite` (start evaluation runs)\n>    - `CopilotStudio.Copilots.Invoke` (SDK chat — send utterances to the agent)\n> 4. **Admin consent**: Granted for the tenant (green checkmarks in the API permissions list)\n>\n> Missing any of these will cause authentication to fail.\n\nIf the user doesn't have one, guide them:\n\n> **How to create an App Registration:**\n> 1. Go to [Azure Portal > App Registrations](https:\u002F\u002Fportal.azure.com\u002F#view\u002FMicrosoft_AAD_RegisteredApps\u002FApplicationsListBlade)\n> 2. Click **New registration**, name it (e.g., \"Copilot Studio Eval\")\n> 3. Under **API permissions** > **Add a permission** > **APIs my organization uses** > search **Power Platform API**\n> 4. Select **Delegated permissions** and add:\n>    - `CopilotStudio.MakerOperations.Read`\n>    - `CopilotStudio.MakerOperations.ReadWrite`\n>    - `CopilotStudio.Copilots.Invoke`\n> 5. Click **Grant admin consent** for the tenant\n> 6. Under **Authentication** > **Add a platform** > **Mobile and desktop applications** > set redirect URI to `http:\u002F\u002Flocalhost`\n> 7. Still in **Authentication**, scroll to **Advanced settings** and set **Allow public client flows** to **Yes** (required — without this the interactive browser login will fail with an AADSTS error)\n> 8. Copy the **Application (client) ID** from the Overview page\n\n## Step 3: Authenticate\n\nRun the auth command (opens a browser — no device code needed):\n\n```bash\nnode ${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002Fscripts\u002Feval-api.bundle.js auth --workspace \u003Cpath> --client-id \u003Cid>\n```\n\nIf successful, you'll see:\n```json\n{\"status\": \"ok\", \"message\": \"Authentication successful. Token cached for subsequent commands.\"}\n```\n\n**Return the client ID and workspace path to the caller** — they need these for subsequent `run-eval` and `chat-sdk` calls.\n\n## Troubleshooting\n\n- **HTTP 403 \u002F InsufficientDelegatedPermissions**: The app registration is missing required permissions. Guide the user through adding them (Step 2).\n- **AADSTS700016 \u002F app not found in directory**: The client ID doesn't exist in the agent's tenant. The app must be registered in the same tenant as the Copilot Studio environment (check `conn.json` > `AccountInfo.TenantId`).\n- **AADSTS7000218 \u002F request body must contain client_secret or client_assertion**: The app registration is not configured as a public client. Go to **Authentication** > **Advanced settings** > set **Allow public client flows** to **Yes**.\n- **SDK chat hangs after auth**: The cached token may have stale permissions. Clear the cache and re-authenticate:\n  - Delete `~\u002F.copilot-studio-cli\u002Ftest-agent.cache.json`\n  - Run `security delete-generic-password -s \"copilot-studio-cli\" -a \"test-agent\"` to clear the macOS Keychain entry\n  - Re-run the auth command\n","# Test Agent Authentication\n\nAuthenticate with the Power Platform API for evaluation and SDK chat workflows.\nThis caches a token in the `\"test-agent\"` slot that is shared by `run-eval` and `chat-sdk`.\n\n## Step 1: Find the workspace\n\nLocate the agent workspace (directory containing `.mcs\u002Fconn.json`):\n```bash\nGlob: **\u002Fagent.mcs.yml\n```\n\nThe `conn.json` provides the tenant ID automatically — no need to ask the user for it.\n\n## Step 2: Get the client ID\n\n**CRITICAL: You MUST present the FULL configuration checklist below when asking for the client ID. Do NOT omit any items — users frequently miss the redirect URI and public client settings, which causes auth failures.**\n\nAsk the user for their **App Registration Client ID** and show them **all** of the following requirements in your message:\n\n> What is your App Registration Client ID for the Evaluation API?\n>\n> Before sharing it, please verify your App Registration has **all** of these settings:\n>\n> 1. **Redirect URI**: Under **Authentication** > **Mobile and desktop applications** > redirect URI set to `http:\u002F\u002Flocalhost`\n> 2. **Public client**: Under **Authentication** > **Advanced settings** > **Allow public client flows** set to **Yes**\n> 3. **API permissions**: Under **API permissions**, these **delegated** permissions on the **Power Platform API**:\n>    - `CopilotStudio.MakerOperations.Read` (list test sets, get results)\n>    - `CopilotStudio.MakerOperations.ReadWrite` (start evaluation runs)\n>    - `CopilotStudio.Copilots.Invoke` (SDK chat — send utterances to the agent)\n> 4. **Admin consent**: Granted for the tenant (green checkmarks in the API permissions list)\n>\n> Missing any of these will cause authentication to fail.\n\nIf the user doesn't have one, guide them:\n\n> **How to create an App Registration:**\n> 1. Go to [Azure Portal > App Registrations](https:\u002F\u002Fportal.azure.com\u002F#view\u002FMicrosoft_AAD_RegisteredApps\u002FApplicationsListBlade)\n> 2. Click **New registration**, name it (e.g., \"Copilot Studio Eval\")\n> 3. Under **API permissions** > **Add a permission** > **APIs my organization uses** > search **Power Platform API**\n> 4. Select **Delegated permissions** and add:\n>    - `CopilotStudio.MakerOperations.Read`\n>    - `CopilotStudio.MakerOperations.ReadWrite`\n>    - `CopilotStudio.Copilots.Invoke`\n> 5. Click **Grant admin consent** for the tenant\n> 6. Under **Authentication** > **Add a platform** > **Mobile and desktop applications** > set redirect URI to `http:\u002F\u002Flocalhost`\n> 7. Still in **Authentication**, scroll to **Advanced settings** and set **Allow public client flows** to **Yes** (required — without this the interactive browser login will fail with an AADSTS error)\n> 8. Copy the **Application (client) ID** from the Overview page\n\n## Step 3: Authenticate\n\nRun the auth command (opens a browser — no device code needed):\n\n```bash\nnode ${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002Fscripts\u002Feval-api.bundle.js auth --workspace \u003Cpath> --client-id \u003Cid>\n```\n\nIf successful, you'll see:\n```json\n{\"status\": \"ok\", \"message\": \"Authentication successful. Token cached for subsequent commands.\"}\n```\n\n**Return the client ID and workspace path to the caller** — they need these for subsequent `run-eval` and `chat-sdk` calls.\n\n## Troubleshooting\n\n- **HTTP 403 \u002F InsufficientDelegatedPermissions**: The app registration is missing required permissions. Guide the user through adding them (Step 2).\n- **AADSTS700016 \u002F app not found in directory**: The client ID doesn't exist in the agent's tenant. The app must be registered in the same tenant as the Copilot Studio environment (check `conn.json` > `AccountInfo.TenantId`).\n- **AADSTS7000218 \u002F request body must contain client_secret or client_assertion**: The app registration is not configured as a public client. Go to **Authentication** > **Advanced settings** > set **Allow public client flows** to **Yes**.\n- **SDK chat hangs after auth**: The cached token may have stale permissions. Clear the cache and re-authenticate:\n  - Delete `~\u002F.copilot-studio-cli\u002Ftest-agent.cache.json`\n  - Run `security delete-generic-password -s \"copilot-studio-cli\" -a \"test-agent\"` to clear the macOS Keychain entry\n  - Re-run the auth command\n",{"agent":37,"context":38,"description":39,"allowed-tools":40,"user-invocable":33},"copilot-studio-test","fork","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.\n","Bash(node *eval-api.bundle.js auth *), Read, Glob","main","9c42d3a612c6e06389b6e5b4eed579aaed1a8b63","skills\u002Ftest-auth",102,"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-05 17:03:41",{"source":8,"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 test-auth",{"tool":56,"command":57},"bunx","bunx skills add microsoft\u002Fskills-for-copilot-studio --skill test-auth",{"tool":59,"command":60},"pnpm","pnpm dlx skills add microsoft\u002Fskills-for-copilot-studio --skill test-auth","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Ftest-auth\u002FSKILL.md",true,[],[65,75,84,95,104,114],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":74,"publishedAt":32},"01M699FD973RBVBTQYE48GBFPG","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.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Fvalidate\u002FSKILL.md",[71],{"categoryNo":72,"categoryName":73,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[67],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":82,"publishedAt":32},"01M699FA38G1TAVA0JWD9DG783","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\u002Ffail results with latencies. Requires the Kit installed in the environment, an App Registration with Dataverse permissions, and a published agent.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Frun-tests-kit\u002FSKILL.md",[81],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[83,27],"run tests kit",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":93,"publishedAt":32},"01M699F8EP4BZT1EA3R4Y40X98","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.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Frun-eval\u002FSKILL.md",[90,91,92],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":72,"categoryName":73,"taxonomyType":21,"taxonomyTypeDesc":22},[94,27],"run eval",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":102,"publishedAt":32},"01M699F6NR5Z4RTN5MWH5WYV9H","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.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Fnew-topic\u002FSKILL.md",[101],{"categoryNo":72,"categoryName":73,"taxonomyType":21,"taxonomyTypeDesc":22},[103],"new topic",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":111,"publishedAt":32},"01M699F4QN5BMQA3X9F7WC1NS0","manage-agent","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.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Fmanage-agent\u002FSKILL.md",[110],{"categoryNo":72,"categoryName":73,"taxonomyType":21,"taxonomyTypeDesc":22},[112,28,113],"manage agent","sync",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":32},"01M699F2X4660A0NN18S2CDFVW","lookup-schema","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.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Flookup-schema\u002FSKILL.md",[],[121],"lookup schema"]