[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6G986X6WMBBQNCHDZB1CR7D":3,"skill-same:01M6G986X6WMBBQNCHDZB1CR7D":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":13,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M6G986X6WMBBQNCHDZB1CR7D","azure-cosmos-rust",null,"Azure Cosmos DB SDK for Rust (NoSQL API). Use for document CRUD, queries, containers, and globally distributed data.\nTriggers: \"cosmos db rust\", \"CosmosClient rust\", \"container\", \"document rust\", \"NoSQL rust\", \"partition key\".","ricardoaevt\u002Fnexus-roms","ricardoaevt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F164531880?v=4","01M6DGFGSV6CF9AKPHABBREC79","01M6DGFGYNNPJVDFQA05TDPSBN",0,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fricardoaevt\u002Fnexus-roms\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fmicrosoft_skills\u002F.github\u002Fplugins\u002Fazure-sdk-rust\u002Fskills\u002Fazure-cosmos-rust\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"cosmos","rust","azure","azure cosmos rust","api","triggers","db","document","queries","container","use","partition","crud","containers","nosql","data","azure cosmos db","distributed","sdk","2026-11-10 10:12:30",false,"---\nname: azure-cosmos-rust\ndescription: |\n  Azure Cosmos DB SDK for Rust (NoSQL API). Use for document CRUD, queries, containers, and globally distributed data.\n  Triggers: \"cosmos db rust\", \"CosmosClient rust\", \"container\", \"document rust\", \"NoSQL rust\", \"partition key\".\npackage: azure_data_cosmos\n---\n\n# Azure Cosmos DB SDK for Rust\n\nClient library for Azure Cosmos DB NoSQL API — globally distributed, multi-model database.\n\n## Installation\n\n```sh\ncargo add azure_data_cosmos azure_identity\n```\n\n## Environment Variables\n\n```bash\nCOSMOS_ENDPOINT=https:\u002F\u002F\u003Caccount>.documents.azure.com:443\u002F\nCOSMOS_DATABASE=mydb\nCOSMOS_CONTAINER=mycontainer\n```\n\n## Authentication\n\n```rust\nuse azure_identity::DeveloperToolsCredential;\nuse azure_data_cosmos::CosmosClient;\n\nlet credential = DeveloperToolsCredential::new(None)?;\nlet client = CosmosClient::new(\n    \"https:\u002F\u002F\u003Caccount>.documents.azure.com:443\u002F\",\n    credential.clone(),\n    None,\n)?;\n```\n\n## Client Hierarchy\n\n| Client | Purpose | Get From |\n|--------|---------|----------|\n| `CosmosClient` | Account-level operations | Direct instantiation |\n| `DatabaseClient` | Database operations | `client.database_client()` |\n| `ContainerClient` | Container\u002Fitem operations | `database.container_client()` |\n\n## Core Workflow\n\n### Get Database and Container Clients\n\n```rust\nlet database = client.database_client(\"myDatabase\");\nlet container = database.container_client(\"myContainer\");\n```\n\n### Create Item\n\n```rust\nuse serde::{Serialize, Deserialize};\n\n#[derive(Serialize, Deserialize)]\nstruct Item {\n    pub id: String,\n    pub partition_key: String,\n    pub value: String,\n}\n\nlet item = Item {\n    id: \"1\".into(),\n    partition_key: \"partition1\".into(),\n    value: \"hello\".into(),\n};\n\ncontainer.create_item(\"partition1\", item, None).await?;\n```\n\n### Read Item\n\n```rust\nlet response = container.read_item(\"partition1\", \"1\", None).await?;\nlet item: Item = response.into_model()?;\n```\n\n### Replace Item\n\n```rust\nlet mut item: Item = container.read_item(\"partition1\", \"1\", None).await?.into_model()?;\nitem.value = \"updated\".into();\n\ncontainer.replace_item(\"partition1\", \"1\", item, None).await?;\n```\n\n### Patch Item\n\n```rust\nuse azure_data_cosmos::models::PatchDocument;\n\nlet patch = PatchDocument::default()\n    .with_add(\"\u002FnewField\", \"newValue\")?\n    .with_remove(\"\u002FoldField\")?;\n\ncontainer.patch_item(\"partition1\", \"1\", patch, None).await?;\n```\n\n### Delete Item\n\n```rust\ncontainer.delete_item(\"partition1\", \"1\", None).await?;\n```\n\n## Key Auth (Optional)\n\nEnable key-based authentication with feature flag:\n\n```sh\ncargo add azure_data_cosmos --features key_auth\n```\n\n## Best Practices\n\n1. **Always specify partition key** — required for point reads and writes\n2. **Use `into_model()?`** — to deserialize responses into your types\n3. **Derive `Serialize` and `Deserialize`** — for all document types\n4. **Use Entra ID auth** — prefer `DeveloperToolsCredential` over key auth\n5. **Reuse client instances** — clients are thread-safe and reusable\n\n## Reference Links\n\n| Resource | Link |\n|----------|------|\n| API Reference | https:\u002F\u002Fdocs.rs\u002Fazure_data_cosmos |\n| Source Code | https:\u002F\u002Fgithub.com\u002FAzure\u002Fazure-sdk-for-rust\u002Ftree\u002Fmain\u002Fsdk\u002Fcosmos\u002Fazure_data_cosmos |\n| crates.io | https:\u002F\u002Fcrates.io\u002Fcrates\u002Fazure_data_cosmos |\n","# Azure Cosmos DB SDK for Rust\n\nClient library for Azure Cosmos DB NoSQL API — globally distributed, multi-model database.\n\n## Installation\n\n```sh\ncargo add azure_data_cosmos azure_identity\n```\n\n## Environment Variables\n\n```bash\nCOSMOS_ENDPOINT=https:\u002F\u002F\u003Caccount>.documents.azure.com:443\u002F\nCOSMOS_DATABASE=mydb\nCOSMOS_CONTAINER=mycontainer\n```\n\n## Authentication\n\n```rust\nuse azure_identity::DeveloperToolsCredential;\nuse azure_data_cosmos::CosmosClient;\n\nlet credential = DeveloperToolsCredential::new(None)?;\nlet client = CosmosClient::new(\n    \"https:\u002F\u002F\u003Caccount>.documents.azure.com:443\u002F\",\n    credential.clone(),\n    None,\n)?;\n```\n\n## Client Hierarchy\n\n| Client | Purpose | Get From |\n|--------|---------|----------|\n| `CosmosClient` | Account-level operations | Direct instantiation |\n| `DatabaseClient` | Database operations | `client.database_client()` |\n| `ContainerClient` | Container\u002Fitem operations | `database.container_client()` |\n\n## Core Workflow\n\n### Get Database and Container Clients\n\n```rust\nlet database = client.database_client(\"myDatabase\");\nlet container = database.container_client(\"myContainer\");\n```\n\n### Create Item\n\n```rust\nuse serde::{Serialize, Deserialize};\n\n#[derive(Serialize, Deserialize)]\nstruct Item {\n    pub id: String,\n    pub partition_key: String,\n    pub value: String,\n}\n\nlet item = Item {\n    id: \"1\".into(),\n    partition_key: \"partition1\".into(),\n    value: \"hello\".into(),\n};\n\ncontainer.create_item(\"partition1\", item, None).await?;\n```\n\n### Read Item\n\n```rust\nlet response = container.read_item(\"partition1\", \"1\", None).await?;\nlet item: Item = response.into_model()?;\n```\n\n### Replace Item\n\n```rust\nlet mut item: Item = container.read_item(\"partition1\", \"1\", None).await?.into_model()?;\nitem.value = \"updated\".into();\n\ncontainer.replace_item(\"partition1\", \"1\", item, None).await?;\n```\n\n### Patch Item\n\n```rust\nuse azure_data_cosmos::models::PatchDocument;\n\nlet patch = PatchDocument::default()\n    .with_add(\"\u002FnewField\", \"newValue\")?\n    .with_remove(\"\u002FoldField\")?;\n\ncontainer.patch_item(\"partition1\", \"1\", patch, None).await?;\n```\n\n### Delete Item\n\n```rust\ncontainer.delete_item(\"partition1\", \"1\", None).await?;\n```\n\n## Key Auth (Optional)\n\nEnable key-based authentication with feature flag:\n\n```sh\ncargo add azure_data_cosmos --features key_auth\n```\n\n## Best Practices\n\n1. **Always specify partition key** — required for point reads and writes\n2. **Use `into_model()?`** — to deserialize responses into your types\n3. **Derive `Serialize` and `Deserialize`** — for all document types\n4. **Use Entra ID auth** — prefer `DeveloperToolsCredential` over key auth\n5. **Reuse client instances** — clients are thread-safe and reusable\n\n## Reference Links\n\n| Resource | Link |\n|----------|------|\n| API Reference | https:\u002F\u002Fdocs.rs\u002Fazure_data_cosmos |\n| Source Code | https:\u002F\u002Fgithub.com\u002FAzure\u002Fazure-sdk-for-rust\u002Ftree\u002Fmain\u002Fsdk\u002Fcosmos\u002Fazure_data_cosmos |\n| crates.io | https:\u002F\u002Fcrates.io\u002Fcrates\u002Fazure_data_cosmos |\n",{"name":5,"package":42,"description":43},"azure_data_cosmos","Azure Cosmos DB SDK for Rust (NoSQL API). Use for document CRUD, queries, containers, and globally distributed data.\nTriggers: \"cosmos db rust\", \"CosmosClient rust\", \"container\", \"document rust\", \"NoSQL rust\", \"partition key\".\n","main","d41309588593cee5c2fb44062474efc3a99fbcb6",".agent\u002Fskills\u002Fmicrosoft_skills\u002F.github\u002Fplugins\u002Fazure-sdk-rust\u002Fskills\u002Fazure-cosmos-rust","https:\u002F\u002Fgithub.com\u002Fricardoaevt\u002Fnexus-roms","https:\u002F\u002Fgithub.com\u002Fricardoaevt","2026-03-23 00:05:03",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add ricardoaevt\u002Fnexus-roms --skill azure-cosmos-rust",{"tool":56,"command":57},"bunx","bunx skills add ricardoaevt\u002Fnexus-roms --skill azure-cosmos-rust",{"tool":59,"command":60},"pnpm","pnpm dlx skills add ricardoaevt\u002Fnexus-roms --skill azure-cosmos-rust","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fricardoaevt\u002Fnexus-roms\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fmicrosoft_skills\u002F.github\u002Fplugins\u002Fazure-sdk-rust\u002Fskills\u002Fazure-cosmos-rust\u002FSKILL.md",true,[64],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Facceptance-criteria.md","REFERENCE","参考文档",2986,"https:\u002F\u002Fgithub.com\u002Fricardoaevt\u002Fnexus-roms\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fmicrosoft_skills\u002F.github\u002Fplugins\u002Fazure-sdk-rust\u002Fskills\u002Fazure-cosmos-rust\u002Freferences\u002Facceptance-criteria.md",[71,95,111,126,137,146],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":37},"01M6G9HYKQRK6HBKVTZM3258M3","openspec-propose","Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.","MIT","https:\u002F\u002Fgithub.com\u002Fricardoaevt\u002Fnexus-roms\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fopenspec-propose\u002FSKILL.md",[],[79,80,81,82,83,84,85,86,87,88,89,28,90,91,92,93,94],"openspec propose","openspec","cli","generated","with","proposal","complete","get","build","implementation","ready","user","artifacts","tasks","change","design",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":37},"01M6G9HV9V20WFCHYVSDNQMJVK","openspec-new-change","Start a new OpenSpec change using the experimental artifact workflow. Use when the user wants to create a new feature, fix, or modification with a structured step-by-step approach.","https:\u002F\u002Fgithub.com\u002Fricardoaevt\u002Fnexus-roms\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fopenspec-new-change\u002FSKILL.md",[],[80,102,93,103,81,104,105,106,28,90,107,108,109,110,83],"openspec new change","new feature","structured","artifact","workflow","create","start","fix","feature",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":37},"01M6G9HRF6R89QZXGSFC9DRQW3","openspec-explore","Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.","https:\u002F\u002Fgithub.com\u002Fricardoaevt\u002Fnexus-roms\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fopenspec-explore\u002FSKILL.md",[],[118,119,80,28,120,81,93,90,121,122,123,124,125],"openspec explore","explore","partner","think","thinking partner","thinking","ideas","requirements",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":37},"01M6G9HP3APFCXZG7XRWBMM524","openspec-continue-change","Continue working on an OpenSpec change by creating the next artifact. Use when the user wants to progress their change, create the next artifact, or continue their workflow.","https:\u002F\u002Fgithub.com\u002Fricardoaevt\u002Fnexus-roms\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fopenspec-continue-change\u002FSKILL.md",[],[80,133,134,93,106,81,107,90,28,135,105,136],"continue","openspec continue change","next","progress",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":37},"01M6G9HKT3WMSDBSKA7YM4MSSQ","openspec-archive-change","Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.","https:\u002F\u002Fgithub.com\u002Fricardoaevt\u002Fnexus-roms\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fopenspec-archive-change\u002FSKILL.md",[],[144,80,145,93,81,106,90,28,88,85],"openspec archive change","archive",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":37},"01M6G9HHEG0RJK4E0YTVZZ6A8T","openspec-apply-change","Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.","https:\u002F\u002Fgithub.com\u002Fricardoaevt\u002Fnexus-roms\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fopenspec-apply-change\u002FSKILL.md",[],[80,93,153,154,92,108,133,155,90,28,88,81],"openspec apply change","implement","work"]