[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73EVWX2EN6A7H4S3XKW5NRV":3,"skill-same:01M73EVWX2EN6A7H4S3XKW5NRV":50},{"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":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M73EVWX2EN6A7H4S3XKW5NRV","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\".","qhjqhj00\u002Fresearch-skills-pool","qhjqhj00","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F29684092?v=4","01M72AE0ZGXVM5C57N512DGQG8","Tommy Chien","01M72AE107ESJMHT7QC5SXX144",3,"MIT","https:\u002F\u002Fgithub.com\u002Fqhjqhj00\u002Fresearch-skills-pool\u002Fblob\u002Fmaster\u002Fskills_collected\u002Fmicrosoft--skills--.github__plugins__azure-sdk-rust__skills__azure-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","master","c247302c836de6438d746b45670990eb71691166","skills_collected\u002Fmicrosoft--skills--.github__plugins__azure-sdk-rust__skills__azure-keyvault-keys-rust",1,"https:\u002F\u002Fgithub.com\u002Fqhjqhj00\u002Fresearch-skills-pool","https:\u002F\u002Fgithub.com\u002Fqhjqhj00","chien.io","2026-05-11 15:07:59",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add qhjqhj00\u002Fresearch-skills-pool --skill azure-keyvault-keys-rust",{"tool":42,"command":43},"bunx","bunx skills add qhjqhj00\u002Fresearch-skills-pool --skill azure-keyvault-keys-rust",{"tool":45,"command":46},"pnpm","pnpm dlx skills add qhjqhj00\u002Fresearch-skills-pool --skill azure-keyvault-keys-rust","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fqhjqhj00\u002Fresearch-skills-pool\u002Fblob\u002Fmaster\u002Fskills_collected\u002Fmicrosoft--skills--.github__plugins__azure-sdk-rust__skills__azure-keyvault-keys-rust\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M73JJB6EQPFPPVQK2Y9N67Q0","transformer-lens-interpretability","Provides guidance for mechanistic interpretability research using TransformerLens to inspect and manipulate transformer internals via HookPoints and activation caching. Use when reverse-engineering model algorithms, studying attention patterns, or performing activation patching experiments.","https:\u002F\u002Fgithub.com\u002Fqhjqhj00\u002Fresearch-skills-pool\u002Fblob\u002Fmaster\u002Ftop100-runs\u002F130-transformer-lens\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M73JHTANRRWEE9HP98TPEHAY","wiki-vitepress","Packages generated wiki Markdown into a VitePress static site with dark theme, dark-mode Mermaid diagrams with click-to-zoom, and production build output. Use when the user wants to create a browsable website from generated wiki pages.","https:\u002F\u002Fgithub.com\u002Fqhjqhj00\u002Fresearch-skills-pool\u002Fblob\u002Fmaster\u002Ftop100-runs\u002F126-wiki-vitepress\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M73JHJBMVFW46F1Y8K3SBF43","phoenix-observability","Open-source AI observability platform for LLM tracing, evaluation, and monitoring. Use when debugging LLM applications with detailed traces, running evaluations on datasets, or monitoring production AI systems with real-time insights.","https:\u002F\u002Fgithub.com\u002Fqhjqhj00\u002Fresearch-skills-pool\u002Fblob\u002Fmaster\u002Ftop100-runs\u002F124-phoenix\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M73JHFPA3A2806PMP42ZN86Q","frontend-ui-dark-ts","Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.","https:\u002F\u002Fgithub.com\u002Fqhjqhj00\u002Fresearch-skills-pool\u002Fblob\u002Fmaster\u002Ftop100-runs\u002F123-frontend-ui-dark-ts\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M73JFVBVK57NRJS49TT2VDCT","tensorboard","Visualize training metrics, debug models with histograms, compare experiments, visualize model graphs, and profile performance with TensorBoard - Google's ML visualization toolkit","https:\u002F\u002Fgithub.com\u002Fqhjqhj00\u002Fresearch-skills-pool\u002Fblob\u002Fmaster\u002Ftop100-runs\u002F113-tensorboard\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":90,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M73JFF6PK6ZCN41C89J7HS2B","markdown-mermaid-writing","Comprehensive markdown and Mermaid diagram writing skill. Use when creating any scientific document, report, analysis, or visualization. Establishes text-based diagrams as the default documentation standard with full style guides (markdown + mermaid), 24 diagram type references, and 9 document templates.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fqhjqhj00\u002Fresearch-skills-pool\u002Fblob\u002Fmaster\u002Ftop100-runs\u002F110-markdown-mermaid-writing\u002FSKILL.md",[],[]]