[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M715BXAR454X5TNDXC9WEPDQ":3,"skill-same:01M715BXAR454X5TNDXC9WEPDQ":70},{"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":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":14,"repositoryHtmlUrl":53,"repositoryHomepageUrl":6,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":55,"install":56,"resources":69},"01M715BXAR454X5TNDXC9WEPDQ","azure-cosmos-rust",null,"Azure Cosmos DB SDK for Rust (NoSQL API). Use for document CRUD, queries, containers, and globally distributed data.","sapsapshen\u002Fai-memory-router","sapsapshen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20347959?v=4","01M6XDQEF1DP50DKF37H81J3J5","shenmian","01M6XDQEJPE41Y3DT2763X8ZJN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fazure-cosmos-rust\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"rust","azure","azure cosmos rust","cosmos","crud","2026","unknown","for","db","community","document","queries","use","containers","api","nosql","data","azure cosmos db","distributed","sdk","2026-11-10 10:12:30",false,"---\nname: azure-cosmos-rust\ndescription: Azure Cosmos DB SDK for Rust (NoSQL API). Use for document CRUD, queries, containers, and globally distributed data.\nrisk: unknown\nsource: community\ndate_added: '2026-02-27'\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\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\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\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n",{"name":5,"risk":30,"source":33,"date_added":49,"description":7},"2026-02-27","main","7a38d8e7073e61c16eda85681cb32fb68a8657a5","skills-store\u002Fcursor\u002Fazure-cosmos-rust","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router","https:\u002F\u002Fgithub.com\u002Fsapsapshen","2026-04-14 21:12:12",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add sapsapshen\u002Fai-memory-router --skill azure-cosmos-rust",{"tool":62,"command":63},"bunx","bunx skills add sapsapshen\u002Fai-memory-router --skill azure-cosmos-rust",{"tool":65,"command":66},"pnpm","pnpm dlx skills add sapsapshen\u002Fai-memory-router --skill azure-cosmos-rust","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fazure-cosmos-rust\u002FSKILL.md",true,[],[71,81,88,96,102,110],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":80},"01M72R8PZX1ABFHJGTYPA4CAF1","webapp-testing","To test local web applications, write native Python Playwright scripts.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FSKILL.md",[],[],"2026-11-10 22:39:42",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":80},"01M72QG37MMZNDY7X7GXPAK5W6","python-packaging","Comprehensive guide to creating, structuring, and distributing Python packages using modern packaging tools, pyproject.toml, and publishing to PyPI.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fpython-packaging\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":80},"01M72NXR0QMP9G46TW6A2DH59C","canvas-design","These are instructions for creating design philosophies - aesthetic movements that are then EXPRESSED VISUALLY. Output only .md files, .pdf files, and .png files.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FSKILL.md",[],[],{"skillNo":97,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":80},"01M72N55TK3EEQ4QK4AWDC2KZS","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":106,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":80},"01M72MTWC150CFAP4Y5GSNKF80","slack-gif-creator","A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":114,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":80},"01M72KPT3VVNSP88MNAY466TZT","frontend-design","You are a frontend designer-engineer, not a layout generator.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FSKILL.md",[],[]]