[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699ECXFGG357TBW7BYKCN0V":3,"skill-same:01M699ECXFGG357TBW7BYKCN0V":59},{"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":23,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M699ECXFGG357TBW7BYKCN0V","chat-sdk",null,"Send a message to a Copilot Studio agent via the Copilot Studio Client SDK (M365). Use for agents with integrated auth (Entra ID SSO). Requires an App Registration Client ID.","microsoft\u002Fskills-for-copilot-studio","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699DXBD563FYBGWKPJJRAVM",493,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Fchat-sdk\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27],"sdk","chat sdk","test","auth","2026-11-10 10:12:30",false,"---\nuser-invocable: false\ndescription: Send a message to a Copilot Studio agent via the Copilot Studio Client SDK (M365). Use for agents with integrated auth (Entra ID SSO). Requires an App Registration Client ID.\nargument-hint: \u003Cutterance>\nallowed-tools: Bash(node *chat-with-agent.bundle.js *), Read, Glob\nagent: copilot-studio-test\n---\n\n# Chat via Copilot Studio SDK\n\nSend a single utterance to a published agent via the Copilot Studio Client SDK. Use this for agents with **integrated authentication \u002F Entra ID SSO** (authenticationmode 2).\n\n## Prerequisites\n\nRequires prior authentication via `\u002Fcopilot-studio:test-auth`. Do NOT ask the user for a client ID yourself — the test-auth skill handles app registration setup and authentication.\n\n## Instructions\n\n1. Run the script with `--client-id` and the utterance from `$ARGUMENTS`:\n\n   ```bash\n   node ${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002Fscripts\u002Fchat-with-agent.bundle.js \\\n     --client-id \"\u003CclientId>\" \"\u003Cutterance>\" [--agent-dir \u003Cpath>]\n   ```\n\n2. **Authentication**: Requires prior authentication via `\u002Fcopilot-studio:test-auth`. The token is cached in the `\"test-agent\"` slot and shared with the eval API. If auth fails or the SDK hangs, tell the caller to re-run `test-auth`.\n\n3. Parse the JSON output from stdout:\n\n```json\n{\n  \"status\": \"ok\",\n  \"protocol\": \"m365\",\n  \"utterance\": \"hello\",\n  \"conversation_id\": \"abc123-...\",\n  \"start_activities\": [ ... ],\n  \"activities\": [ ... ]\n}\n```\n\nDisplay the agent's response from the `activities` array:\n- **Text**: activities where `type === \"message\"` — show `text`\n- **Suggested actions**: `suggestedActions.actions` array\n- **Adaptive cards**: `attachments` with `contentType === \"application\u002Fvnd.microsoft.card.adaptive\"`\n\n**Save `conversation_id`** for follow-ups.\n\n## Multi-turn\n\nPass `--conversation-id` from the previous response:\n\n```bash\nnode ${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002Fscripts\u002Fchat-with-agent.bundle.js \\\n  --client-id \"\u003Cid>\" \"\u003Cfollow-up>\" --conversation-id \"\u003Cid>\"\n```\n\nSDK sessions do not expire as quickly as DirectLine. Reuse `conversation_id` automatically for follow-ups.\n\n## Error Handling\n\n| Error | Cause | Resolution |\n|-------|-------|------------|\n| `Authentication failed` | Wrong client ID or tenant | Verify app registration and permissions |\n| `Could not obtain conversation_id` | Agent not published or wrong config | Verify agent is published |\n","# Chat via Copilot Studio SDK\n\nSend a single utterance to a published agent via the Copilot Studio Client SDK. Use this for agents with **integrated authentication \u002F Entra ID SSO** (authenticationmode 2).\n\n## Prerequisites\n\nRequires prior authentication via `\u002Fcopilot-studio:test-auth`. Do NOT ask the user for a client ID yourself — the test-auth skill handles app registration setup and authentication.\n\n## Instructions\n\n1. Run the script with `--client-id` and the utterance from `$ARGUMENTS`:\n\n   ```bash\n   node ${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002Fscripts\u002Fchat-with-agent.bundle.js \\\n     --client-id \"\u003CclientId>\" \"\u003Cutterance>\" [--agent-dir \u003Cpath>]\n   ```\n\n2. **Authentication**: Requires prior authentication via `\u002Fcopilot-studio:test-auth`. The token is cached in the `\"test-agent\"` slot and shared with the eval API. If auth fails or the SDK hangs, tell the caller to re-run `test-auth`.\n\n3. Parse the JSON output from stdout:\n\n```json\n{\n  \"status\": \"ok\",\n  \"protocol\": \"m365\",\n  \"utterance\": \"hello\",\n  \"conversation_id\": \"abc123-...\",\n  \"start_activities\": [ ... ],\n  \"activities\": [ ... ]\n}\n```\n\nDisplay the agent's response from the `activities` array:\n- **Text**: activities where `type === \"message\"` — show `text`\n- **Suggested actions**: `suggestedActions.actions` array\n- **Adaptive cards**: `attachments` with `contentType === \"application\u002Fvnd.microsoft.card.adaptive\"`\n\n**Save `conversation_id`** for follow-ups.\n\n## Multi-turn\n\nPass `--conversation-id` from the previous response:\n\n```bash\nnode ${CLAUDE_SKILL_DIR}\u002F..\u002F..\u002Fscripts\u002Fchat-with-agent.bundle.js \\\n  --client-id \"\u003Cid>\" \"\u003Cfollow-up>\" --conversation-id \"\u003Cid>\"\n```\n\nSDK sessions do not expire as quickly as DirectLine. Reuse `conversation_id` automatically for follow-ups.\n\n## Error Handling\n\n| Error | Cause | Resolution |\n|-------|-------|------------|\n| `Authentication failed` | Wrong client ID or tenant | Verify app registration and permissions |\n| `Could not obtain conversation_id` | Agent not published or wrong config | Verify agent is published |\n",{"agent":33,"description":7,"allowed-tools":34,"argument-hint":35,"user-invocable":29},"copilot-studio-test","Bash(node *chat-with-agent.bundle.js *), Read, Glob","\u003Cutterance>","main","9c42d3a612c6e06389b6e5b4eed579aaed1a8b63","skills\u002Fchat-sdk",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":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add microsoft\u002Fskills-for-copilot-studio --skill chat-sdk",{"tool":51,"command":52},"bunx","bunx skills add microsoft\u002Fskills-for-copilot-studio --skill chat-sdk",{"tool":54,"command":55},"pnpm","pnpm dlx skills add microsoft\u002Fskills-for-copilot-studio --skill chat-sdk","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Fchat-sdk\u002FSKILL.md",true,[],[60,68,83,92,103,112],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":67,"publishedAt":28},"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",[66],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[62],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":80,"publishedAt":28},"01M699FBJC22B4HCFH9MA844C3","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.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills-for-copilot-studio\u002Fblob\u002Fmain\u002Fskills\u002Ftest-auth\u002FSKILL.md",[74,77],{"categoryNo":75,"categoryName":76,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":78,"categoryName":79,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口",[26,27,81,24,82],"test auth","workflow",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":90,"publishedAt":28},"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",[89],{"categoryNo":75,"categoryName":76,"taxonomyType":21,"taxonomyTypeDesc":22},[91,26],"run tests kit",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":101,"publishedAt":28},"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",[98,99,100],{"categoryNo":75,"categoryName":76,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":78,"categoryName":79,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[102,26],"run eval",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":110,"publishedAt":28},"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",[109],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[111],"new topic",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":119,"publishedAt":28},"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",[118],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[120,27,121],"manage agent","sync"]