[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74Q0RMAH5TP7GZ2M4KRS08R":3,"skill-same:01M74Q0RMAH5TP7GZ2M4KRS08R":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},"01M74Q0RMAH5TP7GZ2M4KRS08R","azure-keyvault-keys-rust",null,"Azure Key Vault Keys library for Rust. Create, manage, and use cryptographic keys including RSA, EC, and HSM-protected keys.\nTriggers: \"keyvault keys rust\", \"KeyClient rust\", \"create key rust\", \"encrypt rust\", \"wrap key rust\", \"sign 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-keyvault-keys-rust\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: azure-keyvault-keys-rust\ndescription: |\n  Azure Key Vault Keys library for Rust. Create, manage, and use cryptographic keys including RSA, EC, and HSM-protected keys.\n  Triggers: \"keyvault keys rust\", \"KeyClient rust\", \"create key rust\", \"encrypt rust\", \"wrap key rust\", \"sign rust\".\nlicense: MIT\nmetadata:\n  author: Microsoft\n  package: azure_security_keyvault_keys\n---\n\n# Azure Key Vault Keys library for Rust\n\nSecure storage and management of cryptographic keys — RSA, EC, and HSM-protected.\n\nUse this skill when:\n\n- An app needs to create or manage cryptographic keys in Key Vault from Rust\n- You need to wrap\u002Funwrap data encryption keys (envelope encryption)\n- You need to sign or verify data with Key Vault keys\n- You need HSM-protected keys\n\n> **IMPORTANT:** Only use the official `azure_security_keyvault_keys` crate published by the [azure-sdk](https:\u002F\u002Fcrates.io\u002Fusers\u002Fazure-sdk) crates.io user. Do NOT use unofficial or community crates. Official crates use underscores in names and none have version 0.21.0.\n\n## Installation\n\n```sh\ncargo add azure_security_keyvault_keys azure_identity tokio futures\n```\n\n> **Do not** add `azure_core` directly to `Cargo.toml`. It is re-exported by `azure_security_keyvault_keys`.\n\n## Environment Variables\n\n```bash\nAZURE_KEYVAULT_URL=https:\u002F\u002F\u003Cvault-name>.vault.azure.net\u002F # Required for all operations\n```\n\n## Authentication\n\n```rust\nuse azure_identity::DeveloperToolsCredential;\nuse azure_security_keyvault_keys::KeyClient;\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 client = KeyClient::new(\n        \"https:\u002F\u002F\u003Cvault-name>.vault.azure.net\u002F\",\n        credential.clone(),\n        None,\n    )?;\n\n    let key = client.get_key(\"key-name\", None).await?.into_model()?;\n    println!(\"Key: {:?}\", key.key);\n    Ok(())\n}\n```\n\n## Core Workflow\n\n### Create Key\n\n```rust\nuse azure_security_keyvault_keys::{\n    models::{CreateKeyParameters, CurveName, KeyType},\n    ResourceExt,\n};\n\n\u002F\u002F Create an EC key\nlet body = CreateKeyParameters {\n    kty: Some(KeyType::Ec),\n    curve: Some(CurveName::P256),\n    ..Default::default()\n};\n\nlet key = client\n    .create_key(\"key-name\", body.try_into()?, None)\n    .await?\n    .into_model()?;\n\nprintln!(\n    \"Name: {:?}, Type: {:?}, Version: {:?}\",\n    key.resource_id()?.name,\n    key.key.as_ref().map(|k| k.kty.as_ref()),\n    key.resource_id()?.version,\n);\n```\n\n### Update Key Properties\n\n```rust\nuse azure_security_keyvault_keys::models::UpdateKeyPropertiesParameters;\nuse std::collections::HashMap;\n\n#[allow(clippy::needless_update)]\nlet params = UpdateKeyPropertiesParameters {\n    tags: Some(HashMap::from_iter(vec![(\"env\".into(), \"prod\".into())])),\n    ..Default::default()\n};\n\nclient\n    .update_key_properties(\"key-name\", params.try_into()?, None)\n    .await?\n    .into_model()?;\n```\n\n### Delete Key\n\n```rust\nclient.delete_key(\"key-name\", None).await?;\n```\n\n### List Keys (Pagination)\n\n`list_key_properties` returns a `Pager\u003CT>` — iterate items directly:\n\n```rust\nuse azure_security_keyvault_keys::ResourceExt;\nuse futures::TryStreamExt as _;\n\nlet mut pager = client.list_key_properties(None)?;\nwhile let Some(key) = pager.try_next().await? {\n    println!(\"Found: {}\", key.resource_id()?.name);\n}\n```\n\n## Wrap \u002F Unwrap (Envelope Encryption)\n\nKey Vault performs crypto operations server-side — the private key never leaves the HSM:\n\n```rust\nuse azure_security_keyvault_keys::{\n    models::{\n        CreateKeyParameters, EncryptionAlgorithm, KeyOperationParameters, KeyType,\n    },\n    ResourceExt,\n};\nuse rand::random;\n\n\u002F\u002F Create a key encryption key (KEK)\nlet body = CreateKeyParameters {\n    kty: Some(KeyType::Rsa),\n    key_size: Some(2048),\n    ..Default::default()\n};\n\nlet key = client\n    .create_key(\"kek-name\", body.try_into()?, None)\n    .await?\n    .into_model()?;\nlet key_version = key.resource_id()?.version.expect(\"key version required\");\n\n\u002F\u002F Generate a symmetric data encryption key (DEK)\nlet dek = random::\u003Cu32>().to_le_bytes().to_vec();\n\n\u002F\u002F Wrap the DEK with the KEK\nlet mut params = KeyOperationParameters {\n    algorithm: Some(EncryptionAlgorithm::RsaOaep256),\n    value: Some(dek.clone()),\n    ..Default::default()\n};\nlet wrapped = client\n    .wrap_key(\"kek-name\", &key_version, params.clone().try_into()?, None)\n    .await?\n    .into_model()?;\n\n\u002F\u002F Unwrap to recover the DEK\nparams.value = wrapped.result;\nlet unwrapped = client\n    .unwrap_key(\"kek-name\", &key_version, params.try_into()?, None)\n    .await?\n    .into_model()?;\n\nassert_eq!(unwrapped.result.as_ref(), Some(&dek));\n```\n\n## Key Types\n\n| Type    | Use Case                      | Parameter         |\n| ------- | ----------------------------- | ----------------- |\n| EC      | Signing, key agreement        | `KeyType::Ec`     |\n| RSA     | Encryption, signing, wrapping | `KeyType::Rsa`    |\n| Oct     | Symmetric operations (HSM)    | `KeyType::Oct`    |\n| EC-HSM  | HSM-protected EC keys         | `KeyType::EcHsm`  |\n| RSA-HSM | HSM-protected RSA keys        | `KeyType::RsaHsm` |\n\n## RBAC Roles\n\nFor Entra ID auth, assign one of these roles:\n\n| Role                       | Access                  |\n| -------------------------- | ----------------------- |\n| `Key Vault Crypto User`    | Use keys for crypto ops |\n| `Key Vault Crypto Officer` | Full key management     |\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 `..Default::default()`** with `#[allow(clippy::needless_update)]` for model struct updates\n4. **Use `ResourceExt`** to extract key name\u002Fversion from key IDs\n5. **Reuse clients** — `KeyClient` is thread-safe; create once, share across tasks\n\n## Reference Links\n\n| Resource      | Link                                                  |\n| ------------- | ----------------------------------------------------- |\n| API Reference | https:\u002F\u002Fdocs.rs\u002Fazure_security_keyvault_keys          |\n| crates.io     | https:\u002F\u002Fcrates.io\u002Fcrates\u002Fazure_security_keyvault_keys |\n","# Azure Key Vault Keys library for Rust\n\nSecure storage and management of cryptographic keys — RSA, EC, and HSM-protected.\n\nUse this skill when:\n\n- An app needs to create or manage cryptographic keys in Key Vault from Rust\n- You need to wrap\u002Funwrap data encryption keys (envelope encryption)\n- You need to sign or verify data with Key Vault keys\n- You need HSM-protected keys\n\n> **IMPORTANT:** Only use the official `azure_security_keyvault_keys` crate published by the [azure-sdk](https:\u002F\u002Fcrates.io\u002Fusers\u002Fazure-sdk) crates.io user. Do NOT use unofficial or community crates. Official crates use underscores in names and none have version 0.21.0.\n\n## Installation\n\n```sh\ncargo add azure_security_keyvault_keys azure_identity tokio futures\n```\n\n> **Do not** add `azure_core` directly to `Cargo.toml`. It is re-exported by `azure_security_keyvault_keys`.\n\n## Environment Variables\n\n```bash\nAZURE_KEYVAULT_URL=https:\u002F\u002F\u003Cvault-name>.vault.azure.net\u002F # Required for all operations\n```\n\n## Authentication\n\n```rust\nuse azure_identity::DeveloperToolsCredential;\nuse azure_security_keyvault_keys::KeyClient;\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 client = KeyClient::new(\n        \"https:\u002F\u002F\u003Cvault-name>.vault.azure.net\u002F\",\n        credential.clone(),\n        None,\n    )?;\n\n    let key = client.get_key(\"key-name\", None).await?.into_model()?;\n    println!(\"Key: {:?}\", key.key);\n    Ok(())\n}\n```\n\n## Core Workflow\n\n### Create Key\n\n```rust\nuse azure_security_keyvault_keys::{\n    models::{CreateKeyParameters, CurveName, KeyType},\n    ResourceExt,\n};\n\n\u002F\u002F Create an EC key\nlet body = CreateKeyParameters {\n    kty: Some(KeyType::Ec),\n    curve: Some(CurveName::P256),\n    ..Default::default()\n};\n\nlet key = client\n    .create_key(\"key-name\", body.try_into()?, None)\n    .await?\n    .into_model()?;\n\nprintln!(\n    \"Name: {:?}, Type: {:?}, Version: {:?}\",\n    key.resource_id()?.name,\n    key.key.as_ref().map(|k| k.kty.as_ref()),\n    key.resource_id()?.version,\n);\n```\n\n### Update Key Properties\n\n```rust\nuse azure_security_keyvault_keys::models::UpdateKeyPropertiesParameters;\nuse std::collections::HashMap;\n\n#[allow(clippy::needless_update)]\nlet params = UpdateKeyPropertiesParameters {\n    tags: Some(HashMap::from_iter(vec![(\"env\".into(), \"prod\".into())])),\n    ..Default::default()\n};\n\nclient\n    .update_key_properties(\"key-name\", params.try_into()?, None)\n    .await?\n    .into_model()?;\n```\n\n### Delete Key\n\n```rust\nclient.delete_key(\"key-name\", None).await?;\n```\n\n### List Keys (Pagination)\n\n`list_key_properties` returns a `Pager\u003CT>` — iterate items directly:\n\n```rust\nuse azure_security_keyvault_keys::ResourceExt;\nuse futures::TryStreamExt as _;\n\nlet mut pager = client.list_key_properties(None)?;\nwhile let Some(key) = pager.try_next().await? {\n    println!(\"Found: {}\", key.resource_id()?.name);\n}\n```\n\n## Wrap \u002F Unwrap (Envelope Encryption)\n\nKey Vault performs crypto operations server-side — the private key never leaves the HSM:\n\n```rust\nuse azure_security_keyvault_keys::{\n    models::{\n        CreateKeyParameters, EncryptionAlgorithm, KeyOperationParameters, KeyType,\n    },\n    ResourceExt,\n};\nuse rand::random;\n\n\u002F\u002F Create a key encryption key (KEK)\nlet body = CreateKeyParameters {\n    kty: Some(KeyType::Rsa),\n    key_size: Some(2048),\n    ..Default::default()\n};\n\nlet key = client\n    .create_key(\"kek-name\", body.try_into()?, None)\n    .await?\n    .into_model()?;\nlet key_version = key.resource_id()?.version.expect(\"key version required\");\n\n\u002F\u002F Generate a symmetric data encryption key (DEK)\nlet dek = random::\u003Cu32>().to_le_bytes().to_vec();\n\n\u002F\u002F Wrap the DEK with the KEK\nlet mut params = KeyOperationParameters {\n    algorithm: Some(EncryptionAlgorithm::RsaOaep256),\n    value: Some(dek.clone()),\n    ..Default::default()\n};\nlet wrapped = client\n    .wrap_key(\"kek-name\", &key_version, params.clone().try_into()?, None)\n    .await?\n    .into_model()?;\n\n\u002F\u002F Unwrap to recover the DEK\nparams.value = wrapped.result;\nlet unwrapped = client\n    .unwrap_key(\"kek-name\", &key_version, params.try_into()?, None)\n    .await?\n    .into_model()?;\n\nassert_eq!(unwrapped.result.as_ref(), Some(&dek));\n```\n\n## Key Types\n\n| Type    | Use Case                      | Parameter         |\n| ------- | ----------------------------- | ----------------- |\n| EC      | Signing, key agreement        | `KeyType::Ec`     |\n| RSA     | Encryption, signing, wrapping | `KeyType::Rsa`    |\n| Oct     | Symmetric operations (HSM)    | `KeyType::Oct`    |\n| EC-HSM  | HSM-protected EC keys         | `KeyType::EcHsm`  |\n| RSA-HSM | HSM-protected RSA keys        | `KeyType::RsaHsm` |\n\n## RBAC Roles\n\nFor Entra ID auth, assign one of these roles:\n\n| Role                       | Access                  |\n| -------------------------- | ----------------------- |\n| `Key Vault Crypto User`    | Use keys for crypto ops |\n| `Key Vault Crypto Officer` | Full key management     |\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 `..Default::default()`** with `#[allow(clippy::needless_update)]` for model struct updates\n4. **Use `ResourceExt`** to extract key name\u002Fversion from key IDs\n5. **Reuse clients** — `KeyClient` is thread-safe; create once, share across tasks\n\n## Reference Links\n\n| Resource      | Link                                                  |\n| ------------- | ----------------------------------------------------- |\n| API Reference | https:\u002F\u002Fdocs.rs\u002Fazure_security_keyvault_keys          |\n| crates.io     | https:\u002F\u002Fcrates.io\u002Fcrates\u002Fazure_security_keyvault_keys |\n",{"name":5,"license":15,"metadata":24,"description":27},{"author":25,"package":26},"Microsoft","azure_security_keyvault_keys","Azure Key Vault Keys library for Rust. Create, manage, and use cryptographic keys including RSA, EC, and HSM-protected keys.\nTriggers: \"keyvault keys rust\", \"KeyClient rust\", \"create key rust\", \"encrypt rust\", \"wrap key rust\", \"sign 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-keyvault-keys-rust",{"tool":40,"command":41},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill azure-keyvault-keys-rust",{"tool":43,"command":44},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill azure-keyvault-keys-rust","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fazure-keyvault-keys-rust\u002FSKILL.md",true,[],[49,57,64,71,78,86],{"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":56},"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",[],[],"2026-11-12 13:55:43",{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":56},"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":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":56},"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":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":56},"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":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":56},"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":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":56},"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",[],[]]