[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74Q86FNXJ3ATH304F60AQ53":3,"skill-same:01M74Q86FNXJ3ATH304F60AQ53":48},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M74Q86FNXJ3ATH304F60AQ53","azure-storage-blob-rust",null,"Azure Blob Storage library for Rust. Upload, download, and manage blobs and containers.\nTriggers: \"blob storage rust\", \"BlobClient rust\", \"upload blob rust\", \"download blob rust\", \"storage container rust\", \"BlobServiceClient rust\".","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fazure-storage-blob-rust\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: azure-storage-blob-rust\ndescription: |\n  Azure Blob Storage library for Rust. Upload, download, and manage blobs and containers.\n  Triggers: \"blob storage rust\", \"BlobClient rust\", \"upload blob rust\", \"download blob rust\", \"storage container rust\", \"BlobServiceClient rust\".\nlicense: MIT\nmetadata:\n  author: Microsoft\n  package: azure_storage_blob\n---\n\n# Azure Blob Storage library for Rust\n\nClient library for Azure Blob Storage — upload, download, and manage blobs and containers.\n\nUse this skill when:\n\n- An app needs to upload or download blobs from Azure Storage in Rust\n- You need to create or manage blob containers\n- You need to list blobs with pagination\n- You need RBAC-based auth for blob operations\n\n> **IMPORTANT:** Only use the official `azure_storage_blob` crate published by the [azure-sdk](https:\u002F\u002Fcrates.io\u002Fusers\u002Fazure-sdk) crates.io user. Do NOT use the unofficial `azure_storage`, `azure_storage_blobs`, or `azure_sdk_for_rust` community crates. Official crates use underscores in names and none have version 0.21.0.\n\n## Installation\n\n```sh\ncargo add azure_storage_blob azure_identity tokio\n```\n\n> **Do not** add `azure_core` directly to `Cargo.toml`. It is re-exported by `azure_storage_blob`.\n\n## Environment Variables\n\n```bash\nAZURE_STORAGE_ENDPOINT=https:\u002F\u002F\u003Caccount>.blob.core.windows.net\u002F # Required for all operations\n```\n\n## Authentication\n\n```rust\nuse azure_core::http::Url;\nuse azure_identity::DeveloperToolsCredential;\nuse azure_storage_blob::BlobServiceClient;\n\n#[tokio::main]\nasync fn main() -> Result\u003C(), Box\u003Cdyn std::error::Error>> {\n    \u002F\u002F Local dev: DeveloperToolsCredential. Production: use ManagedIdentityCredential.\n    let credential = DeveloperToolsCredential::new(None)?;\n    let service_url = Url::parse(\"https:\u002F\u002F\u003Caccount>.blob.core.windows.net\u002F\")?;\n    let service_client = BlobServiceClient::new(service_url, Some(credential), None)?;\n    let blob_client = service_client.blob_client(\"container-name\", \"blob-name\");\n    Ok(())\n}\n```\n\n## Client Types\n\n| Client                | Purpose                                   |\n| --------------------- | ----------------------------------------- |\n| `BlobServiceClient`   | Account-level operations, list containers |\n| `BlobContainerClient` | Container operations, list blobs          |\n| `BlobClient`          | Individual blob operations                |\n\n## Core Workflow\n\n### Upload Blob\n\n```rust\nuse azure_core::http::RequestContent;\nuse azure_core::http::Url;\nuse azure_identity::DeveloperToolsCredential;\nuse azure_storage_blob::BlobServiceClient;\n\n#[tokio::main]\nasync fn main() -> Result\u003C(), Box\u003Cdyn std::error::Error>> {\n    \u002F\u002F Local dev: DeveloperToolsCredential. Production: use ManagedIdentityCredential.\n    let credential = DeveloperToolsCredential::new(None)?;\n    let service_url = Url::parse(\"https:\u002F\u002F\u003Caccount>.blob.core.windows.net\u002F\")?;\n    let service_client = BlobServiceClient::new(service_url, Some(credential), None)?;\n    let blob_client = service_client.blob_client(\"container-name\", \"blob-name\");\n\n    let data = b\"hello world\";\n    blob_client\n        .upload(RequestContent::from(data.to_vec()), None)\n        .await?;\n    Ok(())\n}\n```\n\n### Download Blob \u002F Get Properties\n\n```rust\n\u002F\u002F Get blob properties\nlet props = blob_client.get_properties(None).await?;\n\n\u002F\u002F Download blob content\nlet response = blob_client.download(None).await?;\nlet content = String::from_utf8(response.body.collect().await?.into())?;\n```\n\n### Delete Blob\n\n```rust\nblob_client.delete(None).await?;\n```\n\n### Container Operations\n\n```rust\nuse azure_core::http::Url;\nuse azure_identity::DeveloperToolsCredential;\nuse azure_storage_blob::BlobServiceClient;\nuse futures::TryStreamExt as _;\n\nlet credential = DeveloperToolsCredential::new(None)?;\nlet service_url = Url::parse(\"https:\u002F\u002F\u003Caccount>.blob.core.windows.net\u002F\")?;\nlet service_client = BlobServiceClient::new(service_url, Some(credential), None)?;\nlet container_client = service_client.blob_container_client(\"container-name\");\n\n\u002F\u002F Create container\ncontainer_client.create(None).await?;\n\n\u002F\u002F List blobs (Pager\u003CT> — iterate items directly)\nlet mut pager = container_client.list_blobs(None)?;\nwhile let Some(blob) = pager.try_next().await? {\n    println!(\"Blob: {}\", blob.name);\n}\n```\n\n## Error Handling\n\nUse `StorageError` for programmatic access to storage-specific error codes:\n\n```rust\nuse azure_core::error::ErrorKind;\nuse azure_storage_blob::{StorageError, StorageErrorCode};\n\nlet result = blob_client.download(None).await;\n\nmatch result {\n    Ok(response) => {\n        let content: Vec\u003Cu8> = response.body.collect().await?.into();\n        println!(\"Downloaded {} bytes\", content.len());\n    }\n    Err(error) => {\n        if matches!(error.kind(), ErrorKind::HttpResponse { .. }) {\n            \u002F\u002F Convert to StorageError for programmatic access\n            let storage_error: StorageError = error.try_into()?;\n            println!(\"HTTP Status: {}\", storage_error.status_code);\n\n            if let Some(error_code) = &storage_error.error_code {\n                match error_code {\n                    StorageErrorCode::BlobNotFound => {\n                        println!(\"The blob does not exist.\");\n                    }\n                    StorageErrorCode::ContainerNotFound => {\n                        println!(\"The container does not exist.\");\n                    }\n                    StorageErrorCode::AuthorizationFailure => {\n                        println!(\"Authorization failed. Check RBAC roles.\");\n                    }\n                    _ => println!(\"Storage error: {error_code}\"),\n                }\n            }\n\n            if let Some(request_id) = &storage_error.request_id {\n                println!(\"Request ID (for Azure support): {request_id}\");\n            }\n        } else {\n            println!(\"Non-HTTP error: {:?}\", error);\n        }\n    }\n}\n```\n\n## RBAC Roles\n\nFor Entra ID auth, assign one of these roles to the identity:\n\n| Role                            | Access                     |\n| ------------------------------- | -------------------------- |\n| `Storage Blob Data Reader`      | Read-only                  |\n| `Storage Blob Data Contributor` | Read\u002Fwrite                 |\n| `Storage Blob Data Owner`       | Full access including RBAC |\n\n## Best Practices\n\n1. **Use `DeveloperToolsCredential`** for local dev, **`ManagedIdentityCredential`** for production — the Rust SDK does not have `DefaultAzureCredential`\n2. **Never hardcode credentials** — use environment variables or managed identity\n3. **Use `RequestContent::from()`** to wrap upload data (bytes, strings, or streams)\n4. **Assign RBAC roles** — ensure \"Storage Blob Data Contributor\" for write access\n5. **Reuse clients** — clients are thread-safe; create once, share across tasks\n\n## Reference Links\n\n| Resource      | Link                                        |\n| ------------- | ------------------------------------------- |\n| API Reference | https:\u002F\u002Fdocs.rs\u002Fazure_storage_blob          |\n| crates.io     | https:\u002F\u002Fcrates.io\u002Fcrates\u002Fazure_storage_blob |\n","# Azure Blob Storage library for Rust\n\nClient library for Azure Blob Storage — upload, download, and manage blobs and containers.\n\nUse this skill when:\n\n- An app needs to upload or download blobs from Azure Storage in Rust\n- You need to create or manage blob containers\n- You need to list blobs with pagination\n- You need RBAC-based auth for blob operations\n\n> **IMPORTANT:** Only use the official `azure_storage_blob` crate published by the [azure-sdk](https:\u002F\u002Fcrates.io\u002Fusers\u002Fazure-sdk) crates.io user. Do NOT use the unofficial `azure_storage`, `azure_storage_blobs`, or `azure_sdk_for_rust` community crates. Official crates use underscores in names and none have version 0.21.0.\n\n## Installation\n\n```sh\ncargo add azure_storage_blob azure_identity tokio\n```\n\n> **Do not** add `azure_core` directly to `Cargo.toml`. It is re-exported by `azure_storage_blob`.\n\n## Environment Variables\n\n```bash\nAZURE_STORAGE_ENDPOINT=https:\u002F\u002F\u003Caccount>.blob.core.windows.net\u002F # Required for all operations\n```\n\n## Authentication\n\n```rust\nuse azure_core::http::Url;\nuse azure_identity::DeveloperToolsCredential;\nuse azure_storage_blob::BlobServiceClient;\n\n#[tokio::main]\nasync fn main() -> Result\u003C(), Box\u003Cdyn std::error::Error>> {\n    \u002F\u002F Local dev: DeveloperToolsCredential. Production: use ManagedIdentityCredential.\n    let credential = DeveloperToolsCredential::new(None)?;\n    let service_url = Url::parse(\"https:\u002F\u002F\u003Caccount>.blob.core.windows.net\u002F\")?;\n    let service_client = BlobServiceClient::new(service_url, Some(credential), None)?;\n    let blob_client = service_client.blob_client(\"container-name\", \"blob-name\");\n    Ok(())\n}\n```\n\n## Client Types\n\n| Client                | Purpose                                   |\n| --------------------- | ----------------------------------------- |\n| `BlobServiceClient`   | Account-level operations, list containers |\n| `BlobContainerClient` | Container operations, list blobs          |\n| `BlobClient`          | Individual blob operations                |\n\n## Core Workflow\n\n### Upload Blob\n\n```rust\nuse azure_core::http::RequestContent;\nuse azure_core::http::Url;\nuse azure_identity::DeveloperToolsCredential;\nuse azure_storage_blob::BlobServiceClient;\n\n#[tokio::main]\nasync fn main() -> Result\u003C(), Box\u003Cdyn std::error::Error>> {\n    \u002F\u002F Local dev: DeveloperToolsCredential. Production: use ManagedIdentityCredential.\n    let credential = DeveloperToolsCredential::new(None)?;\n    let service_url = Url::parse(\"https:\u002F\u002F\u003Caccount>.blob.core.windows.net\u002F\")?;\n    let service_client = BlobServiceClient::new(service_url, Some(credential), None)?;\n    let blob_client = service_client.blob_client(\"container-name\", \"blob-name\");\n\n    let data = b\"hello world\";\n    blob_client\n        .upload(RequestContent::from(data.to_vec()), None)\n        .await?;\n    Ok(())\n}\n```\n\n### Download Blob \u002F Get Properties\n\n```rust\n\u002F\u002F Get blob properties\nlet props = blob_client.get_properties(None).await?;\n\n\u002F\u002F Download blob content\nlet response = blob_client.download(None).await?;\nlet content = String::from_utf8(response.body.collect().await?.into())?;\n```\n\n### Delete Blob\n\n```rust\nblob_client.delete(None).await?;\n```\n\n### Container Operations\n\n```rust\nuse azure_core::http::Url;\nuse azure_identity::DeveloperToolsCredential;\nuse azure_storage_blob::BlobServiceClient;\nuse futures::TryStreamExt as _;\n\nlet credential = DeveloperToolsCredential::new(None)?;\nlet service_url = Url::parse(\"https:\u002F\u002F\u003Caccount>.blob.core.windows.net\u002F\")?;\nlet service_client = BlobServiceClient::new(service_url, Some(credential), None)?;\nlet container_client = service_client.blob_container_client(\"container-name\");\n\n\u002F\u002F Create container\ncontainer_client.create(None).await?;\n\n\u002F\u002F List blobs (Pager\u003CT> — iterate items directly)\nlet mut pager = container_client.list_blobs(None)?;\nwhile let Some(blob) = pager.try_next().await? {\n    println!(\"Blob: {}\", blob.name);\n}\n```\n\n## Error Handling\n\nUse `StorageError` for programmatic access to storage-specific error codes:\n\n```rust\nuse azure_core::error::ErrorKind;\nuse azure_storage_blob::{StorageError, StorageErrorCode};\n\nlet result = blob_client.download(None).await;\n\nmatch result {\n    Ok(response) => {\n        let content: Vec\u003Cu8> = response.body.collect().await?.into();\n        println!(\"Downloaded {} bytes\", content.len());\n    }\n    Err(error) => {\n        if matches!(error.kind(), ErrorKind::HttpResponse { .. }) {\n            \u002F\u002F Convert to StorageError for programmatic access\n            let storage_error: StorageError = error.try_into()?;\n            println!(\"HTTP Status: {}\", storage_error.status_code);\n\n            if let Some(error_code) = &storage_error.error_code {\n                match error_code {\n                    StorageErrorCode::BlobNotFound => {\n                        println!(\"The blob does not exist.\");\n                    }\n                    StorageErrorCode::ContainerNotFound => {\n                        println!(\"The container does not exist.\");\n                    }\n                    StorageErrorCode::AuthorizationFailure => {\n                        println!(\"Authorization failed. Check RBAC roles.\");\n                    }\n                    _ => println!(\"Storage error: {error_code}\"),\n                }\n            }\n\n            if let Some(request_id) = &storage_error.request_id {\n                println!(\"Request ID (for Azure support): {request_id}\");\n            }\n        } else {\n            println!(\"Non-HTTP error: {:?}\", error);\n        }\n    }\n}\n```\n\n## RBAC Roles\n\nFor Entra ID auth, assign one of these roles to the identity:\n\n| Role                            | Access                     |\n| ------------------------------- | -------------------------- |\n| `Storage Blob Data Reader`      | Read-only                  |\n| `Storage Blob Data Contributor` | Read\u002Fwrite                 |\n| `Storage Blob Data Owner`       | Full access including RBAC |\n\n## Best Practices\n\n1. **Use `DeveloperToolsCredential`** for local dev, **`ManagedIdentityCredential`** for production — the Rust SDK does not have `DefaultAzureCredential`\n2. **Never hardcode credentials** — use environment variables or managed identity\n3. **Use `RequestContent::from()`** to wrap upload data (bytes, strings, or streams)\n4. **Assign RBAC roles** — ensure \"Storage Blob Data Contributor\" for write access\n5. **Reuse clients** — clients are thread-safe; create once, share across tasks\n\n## Reference Links\n\n| Resource      | Link                                        |\n| ------------- | ------------------------------------------- |\n| API Reference | https:\u002F\u002Fdocs.rs\u002Fazure_storage_blob          |\n| crates.io     | https:\u002F\u002Fcrates.io\u002Fcrates\u002Fazure_storage_blob |\n",{"name":5,"license":15,"metadata":24,"description":27},{"author":25,"package":26},"Microsoft","azure_storage_blob","Azure Blob Storage library for Rust. Upload, download, and manage blobs and containers.\nTriggers: \"blob storage rust\", \"BlobClient rust\", \"upload blob rust\", \"download blob rust\", \"storage container rust\", \"BlobServiceClient rust\".\n","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill azure-storage-blob-rust",{"tool":40,"command":41},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill azure-storage-blob-rust",{"tool":43,"command":44},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill azure-storage-blob-rust","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fazure-storage-blob-rust\u002FSKILL.md",true,[],[49,56,63,70,77,85],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]