[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69A05A1GQK616N1MS0KC2TF":3,"skill-same:01M69A05A1GQK616N1MS0KC2TF":66},{"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":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M69A05A1GQK616N1MS0KC2TF","cosmosdb-mongodb","Cosmos DB MongoDB 最佳实践","Best practices for Azure Cosmos DB for MongoDB (RU-based). Use this skill when: (1) creating or modifying database indexes, (2) writing database migrations, (3) designing queries against CosmosDB, (4) troubleshooting query performance or index errors.","Azure Cosmos DB for MongoDB(RU 计费模式)的最佳实践。在以下情况使用此技能:(1) 创建或修改数据库索引,(2) 编写数据库迁移,(3) 设计针对 CosmosDB 的查询,(4) 排查查询性能或索引错误。","microsoft\u002Fscope","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69A02AWCPD2P5P1SY08HRG0",86,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fscope\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcosmosdb-mongodb\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS1P4QM1G70C9FKMTZ88VK","数据库管理","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTGTEHKD89NSZ5CT4Y5AGV","数据工程师","PROFESSION","适用职业",[31,32,33],"cosmosdb mongodb","writing","performance","2026-11-10 10:12:30",false,"---\n\nname: cosmosdb-mongodb\ndescription: >\n  Best practices for Azure Cosmos DB for MongoDB (RU-based). Use this skill when:\n  (1) creating or modifying database indexes,\n  (2) writing database migrations,\n  (3) designing queries against CosmosDB,\n  (4) troubleshooting query performance or index errors.\nmetadata:\n  version: \"1.0.0\"\n\n---\n\n# Azure Cosmos DB for MongoDB (RU-based) Best Practices\n\n## Indexing Strategy\n\n### Prefer Single-Field Indexes for Equality Filters\n\nCosmos DB uses **index intersection** for multi-property equality filters. Create single-field indexes on each filtered field rather than large compound indexes:\n\n```typescript\n\u002F\u002F ✅ GOOD — single-field indexes, Cosmos intersects them for queries with multiple filters\nawait col.createIndex({ \"run.status\": 1 });\nawait col.createIndex({ workerType: 1 });\nawait col.createIndex({ deletedAt: 1 });\n\n\u002F\u002F ❌ BAD — large compound index may be silently ignored by Cosmos DB\nawait col.createIndex({ \"run.status\": 1, workerType: 1, deletedAt: 1, priority: -1, createdAt: 1 });\n```\n\n### Use 2-Field Compound Indexes for ORDER BY\n\nCosmos DB requires a compound index that matches the sort fields. Keep it to **2 fields maximum** for reliability:\n\n```typescript\n\u002F\u002F ✅ GOOD — 2-field compound for sort, single-field indexes handle the WHERE clause\nawait col.createIndex({ priority: -1, createdAt: 1 });\n\n\u002F\u002F ✅ GOOD — selective filter + sort field compound\nawait col.createIndex({ \"run.postProcessorStatus\": 1, updatedAt: -1 });\n```\n\n### Large Compound Indexes May Be Silently Dropped\n\nCosmos DB (RU-based) **silently drops compound indexes** it cannot support — `createIndex()` succeeds but the index is never created. This leads to runtime errors like:\n\n```\n\"The order by query does not have a corresponding composite index that it can be served from.\"\n```\n\n**Always verify** that your index was actually created:\n\n```javascript\ndb.collection.getIndexes()\n```\n\n### Index Pattern for Polling Queries\n\nFor queries that combine equality filters with a sort (e.g., scheduler dispatchers), use this pattern:\n\n1. Single-field indexes on each equality filter field (from migration 009)\n2. A focused 2-field compound index: `{ mostSelectiveFilterField: 1, sortField: -1 }`\n\n## Migration Best Practices\n\n### Structure\n\nMigrations live in `packages\u002Fdb-migrations\u002Fsrc\u002Fmigrations\u002F` and implement `MigrationInterface` from `mongo-migrate-ts`:\n\n```typescript\nimport type { Db } from \"mongodb\";\nimport type { MigrationInterface } from \"mongo-migrate-ts\";\n\nexport class MyMigration implements MigrationInterface {\n  async up(db: Db): Promise\u003Cvoid> { \u002F* ... *\u002F }\n  async down(db: Db): Promise\u003Cvoid> { \u002F* ... *\u002F }\n}\n```\n\n### Always Wrap Index Operations in try\u002Fcatch\n\nIndex creation or deletion may fail if the index already exists or doesn't exist. Never let this crash the migration:\n\n```typescript\ntry {\n  await col.createIndex({ field: 1 });\n  console.log(\"[NNN] Created index on field\");\n} catch (err: any) {\n  console.log(`[NNN] Index already exists or couldn't be created: ${err.message ?? err}`);\n}\n```\n\n### Register in required-migrations.ts\n\nEvery new migration must be added to `packages\u002Fdb-migrations\u002Fsrc\u002Frequired-migrations.ts`. The API readiness probe checks that all required migrations have been applied.\n\n### down() Should Be Safe but Not Destructive\n\nDropping indexes in `down()` can be destructive in production. Prefer a log-only approach:\n\n```typescript\nasync down(db: Db): Promise\u003Cvoid> {\n  console.log(\"[NNN-down] Skipping index drop — indexes should be dropped manually if needed\");\n}\n```\n\n## Features NOT Supported or Limited\n\nThese MongoDB features do **not** work reliably in Cosmos DB for MongoDB (RU-based):\n\n| Feature | Status |\n|---------|--------|\n| Large compound indexes (5+ fields) | May be silently ignored |\n| `$text` \u002F text indexes | Not supported |\n| Certain aggregation stages | Partial support — test each one |\n| Change streams (resume after) | Limited compared to native MongoDB |\n| Transactions (multi-document) | Supported only on API version 4.0+ with limitations |\n\n## RU Cost Awareness\n\n- Every index increases write RU cost (each insert\u002Fupdate\u002Fdelete must update all indexes)\n- Keep the total number of indexes reasonable — add indexes only for queries that actually run\n- Compound indexes cost more RUs per write than single-field indexes\n","# Azure Cosmos DB for MongoDB (RU-based) Best Practices\n\n## Indexing Strategy\n\n### Prefer Single-Field Indexes for Equality Filters\n\nCosmos DB uses **index intersection** for multi-property equality filters. Create single-field indexes on each filtered field rather than large compound indexes:\n\n```typescript\n\u002F\u002F ✅ GOOD — single-field indexes, Cosmos intersects them for queries with multiple filters\nawait col.createIndex({ \"run.status\": 1 });\nawait col.createIndex({ workerType: 1 });\nawait col.createIndex({ deletedAt: 1 });\n\n\u002F\u002F ❌ BAD — large compound index may be silently ignored by Cosmos DB\nawait col.createIndex({ \"run.status\": 1, workerType: 1, deletedAt: 1, priority: -1, createdAt: 1 });\n```\n\n### Use 2-Field Compound Indexes for ORDER BY\n\nCosmos DB requires a compound index that matches the sort fields. Keep it to **2 fields maximum** for reliability:\n\n```typescript\n\u002F\u002F ✅ GOOD — 2-field compound for sort, single-field indexes handle the WHERE clause\nawait col.createIndex({ priority: -1, createdAt: 1 });\n\n\u002F\u002F ✅ GOOD — selective filter + sort field compound\nawait col.createIndex({ \"run.postProcessorStatus\": 1, updatedAt: -1 });\n```\n\n### Large Compound Indexes May Be Silently Dropped\n\nCosmos DB (RU-based) **silently drops compound indexes** it cannot support — `createIndex()` succeeds but the index is never created. This leads to runtime errors like:\n\n```\n\"The order by query does not have a corresponding composite index that it can be served from.\"\n```\n\n**Always verify** that your index was actually created:\n\n```javascript\ndb.collection.getIndexes()\n```\n\n### Index Pattern for Polling Queries\n\nFor queries that combine equality filters with a sort (e.g., scheduler dispatchers), use this pattern:\n\n1. Single-field indexes on each equality filter field (from migration 009)\n2. A focused 2-field compound index: `{ mostSelectiveFilterField: 1, sortField: -1 }`\n\n## Migration Best Practices\n\n### Structure\n\nMigrations live in `packages\u002Fdb-migrations\u002Fsrc\u002Fmigrations\u002F` and implement `MigrationInterface` from `mongo-migrate-ts`:\n\n```typescript\nimport type { Db } from \"mongodb\";\nimport type { MigrationInterface } from \"mongo-migrate-ts\";\n\nexport class MyMigration implements MigrationInterface {\n  async up(db: Db): Promise\u003Cvoid> { \u002F* ... *\u002F }\n  async down(db: Db): Promise\u003Cvoid> { \u002F* ... *\u002F }\n}\n```\n\n### Always Wrap Index Operations in try\u002Fcatch\n\nIndex creation or deletion may fail if the index already exists or doesn't exist. Never let this crash the migration:\n\n```typescript\ntry {\n  await col.createIndex({ field: 1 });\n  console.log(\"[NNN] Created index on field\");\n} catch (err: any) {\n  console.log(`[NNN] Index already exists or couldn't be created: ${err.message ?? err}`);\n}\n```\n\n### Register in required-migrations.ts\n\nEvery new migration must be added to `packages\u002Fdb-migrations\u002Fsrc\u002Frequired-migrations.ts`. The API readiness probe checks that all required migrations have been applied.\n\n### down() Should Be Safe but Not Destructive\n\nDropping indexes in `down()` can be destructive in production. Prefer a log-only approach:\n\n```typescript\nasync down(db: Db): Promise\u003Cvoid> {\n  console.log(\"[NNN-down] Skipping index drop — indexes should be dropped manually if needed\");\n}\n```\n\n## Features NOT Supported or Limited\n\nThese MongoDB features do **not** work reliably in Cosmos DB for MongoDB (RU-based):\n\n| Feature | Status |\n|---------|--------|\n| Large compound indexes (5+ fields) | May be silently ignored |\n| `$text` \u002F text indexes | Not supported |\n| Certain aggregation stages | Partial support — test each one |\n| Change streams (resume after) | Limited compared to native MongoDB |\n| Transactions (multi-document) | Supported only on API version 4.0+ with limitations |\n\n## RU Cost Awareness\n\n- Every index increases write RU cost (each insert\u002Fupdate\u002Fdelete must update all indexes)\n- Keep the total number of indexes reasonable — add indexes only for queries that actually run\n- Compound indexes cost more RUs per write than single-field indexes\n",{"name":5,"metadata":39,"description":41},{"version":40},"1.0.0","Best practices for Azure Cosmos DB for MongoDB (RU-based). Use this skill when: (1) creating or modifying database indexes, (2) writing database migrations, (3) designing queries against CosmosDB, (4) troubleshooting query performance or index errors.\n","main","05d9435005711a96c63be162044854870e77c242",".agents\u002Fskills\u002Fcosmosdb-mongodb",32,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fscope","https:\u002F\u002Fmicrosoft.github.io\u002Fscope\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 08:45:02",{"source":9,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add microsoft\u002Fscope --skill cosmosdb-mongodb",{"tool":58,"command":59},"bunx","bunx skills add microsoft\u002Fscope --skill cosmosdb-mongodb",{"tool":61,"command":62},"pnpm","pnpm dlx skills add microsoft\u002Fscope --skill cosmosdb-mongodb","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fscope\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcosmosdb-mongodb\u002FSKILL.md",true,[],[67,75,91,115,130,147],{"skillNo":68,"name":69,"nameZh":17,"description":70,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"01M78JPF5MAZMM9KSSPTBZVZS8","agentic-workflows","Route gh-aw design, creation, diagnosis, patching, active debugging, upgrades, and local SDLC issue requests to the right strategies.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fscope\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fagentic-workflows\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":76,"name":77,"nameZh":17,"description":78,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":34},"01M6WEPRSQ7KG1B2FBVTS8B76F","github-actions","Use when creating, editing, reviewing, or troubleshooting GitHub Actions workflows in Scope.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fscope\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-actions\u002FSKILL.md",[],[82,83,84,85,86,87,88,89,90],"github","actions","github actions","when","scope","editing","use","troubleshooting","workflows",{"skillNo":92,"name":93,"nameZh":94,"description":95,"descriptionZh":96,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":97,"categories":98,"keywords":105,"publishedAt":34},"01M69A0MMREMJDBMNJA7YEV5G7","ax-practitioner","AX 智能体体验评估","This skill should be used when the user asks about AX (agent experience) or the AX Practitioner Playbook, for example \"how do I evaluate my technology's agent experience\", \"write AX eval criteria\", \"design an eval scenario\", \"propensity vs efficacy\", \"lift and drag\", \"which agent profiles should I test\", \"how many eval runs\", \"how do I read an agent trajectory\", \"why does the agent ignore my MCP server or skill\", \"agent uses an outdated SDK version\", \"too many extensions\", \"how to read an AX readout\", \"how to get the owning team to fix the docs\", \"review my eval against the checklist\", or the SPFx worked example. It answers interactively and strictly from the playbook, citing chapters. When the playbook has no answer, it says so and clearly labels any general-knowledge or web content.","当用户询问 AX（agent experience，智能体体验）或 AX Practitioner Playbook（AX 实践者手册）相关问题时，应使用本技能，例如\"如何评估我的技术的智能体体验\"、\"编写 AX 评估标准\"、\"设计评估场景\"、\"propensity 与 efficacy 的区别\"、\"lift 与 drag\"、\"应该测试哪些智能体画像\"、\"需要多少次评估运行\"、\"如何解读智能体轨迹\"、\"为什么智能体忽略我的 MCP server 或 skill\"、\"智能体使用了过时的 SDK 版本\"、\"扩展太多\"、\"如何解读 AX readout\"、\"如何让负责团队修复文档\"、\"对照检查清单审查我的评估\"，或 SPFx 实战示例。本技能以交互方式严格依据手册作答并引用章节。当手册中没有答案时，会明确说明，并清楚标注任何通用知识或网络内容。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fscope\u002Fblob\u002Fmain\u002Fdocs\u002Fax-playbook\u002Fax-practitioner\u002FSKILL.md",[99,102],{"categoryNo":100,"categoryName":101,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":103,"categoryName":104,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[106,107,108,109,110,111,112,113,114],"ax practitioner","docs","mcp server","review","MCP","design","sdk","web","test",{"skillNo":116,"name":117,"nameZh":118,"description":119,"descriptionZh":120,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":121,"categories":122,"keywords":129,"publishedAt":34},"01M69A0JXSYS6CZW0XJAG36C4V","typescript","TypeScript 代码开发规范","TypeScript best practices for this monorepo. Use this skill when: (1) writing new TypeScript code, (2) reviewing TypeScript code, (3) working with API responses, fetch calls, or JSON parsing, (4) adding or modifying types and interfaces.","本 monorepo 的 TypeScript 最佳实践。适用本技能的场景：(1) 编写新的 TypeScript 代码，(2) 审查 TypeScript 代码，(3) 处理 API 响应、fetch 调用或 JSON 解析，(4) 添加或修改类型和接口。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fscope\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript\u002FSKILL.md",[123,126],{"categoryNo":124,"categoryName":125,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":127,"categoryName":128,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BT7QVANT4709358VEJK53E","代码实现",[117,32],{"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":142,"publishedAt":34},"01M69A0H0CJ9DVKDA3M4NHV52X","storybook","Storybook 组件目录维护","Maintain the Storybook component catalog for the portal app. Use this skill when: (1) adding new stories for components, (2) updating existing stories after component changes, (3) running a full Storybook refresh\u002Fsync with AI assistance.","为门户应用维护 Storybook 组件目录。适用本技能的场景：(1) 为组件添加新的 story，(2) 组件变更后更新现有 story，(3) 在 AI 辅助下运行完整的 Storybook 刷新\u002F同步。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fscope\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstorybook\u002FSKILL.md",[138,139],{"categoryNo":124,"categoryName":125,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":140,"categoryName":141,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[132,143,144,145,146],"sync","react","components","component",{"skillNo":148,"name":149,"nameZh":150,"description":151,"descriptionZh":152,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":153,"categories":154,"keywords":159,"publishedAt":34},"01M69A0F8EJTHV71BSS08BDW45","scope-cli","Scope 基准平台 CLI 操作","Interact with the Scope benchmarking platform using the Scope CLI — submit runs, list results, manage criteria, generate reports, and administer agents, skills, and MCP servers.","使用 Scope CLI 与 Scope 基准测试平台交互——提交运行、列出结果、管理评判标准、生成报告，以及管理智能体、技能和 MCP 服务器。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fscope\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fscope-cli\u002FSKILL.md",[155,158],{"categoryNo":156,"categoryName":157,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRYS21JX3JFDVCQ5GG4TFK","AI 平台资源管理",{"categoryNo":100,"categoryName":101,"taxonomyType":28,"taxonomyTypeDesc":29},[160,161,110,162],"scope cli","cli","benchmarking"]