feat: Add Official Microsoft & Gemini Skills (845+ Total)
🚀 Impact Significantly expands the capabilities of **Antigravity Awesome Skills** by integrating official skill collections from **Microsoft** and **Google Gemini**. This update increases the total skill count to **845+**, making the library even more comprehensive for AI coding assistants. ✨ Key Changes 1. New Official Skills - **Microsoft Skills**: Added a massive collection of official skills from [microsoft/skills](https://github.com/microsoft/skills). - Includes Azure, .NET, Python, TypeScript, and Semantic Kernel skills. - Preserves the original directory structure under `skills/official/microsoft/`. - Includes plugin skills from the `.github/plugins` directory. - **Gemini Skills**: Added official Gemini API development skills under `skills/gemini-api-dev/`. 2. New Scripts & Tooling - **`scripts/sync_microsoft_skills.py`**: A robust synchronization script that: - Clones the official Microsoft repository. - Preserves the original directory heirarchy. - Handles symlinks and plugin locations. - Generates attribution metadata. - **`scripts/tests/inspect_microsoft_repo.py`**: Debug tool to inspect the remote repository structure. - **`scripts/tests/test_comprehensive_coverage.py`**: Verification script to ensure 100% of skills are captured during sync. 3. Core Improvements - **`scripts/generate_index.py`**: Enhanced frontmatter parsing to safely handle unquoted values containing `@` symbols and commas (fixing issues with some Microsoft skill descriptions). - **`package.json`**: Added `sync:microsoft` and `sync:all-official` scripts for easy maintenance. 4. Documentation - Updated `README.md` to reflect the new skill counts (845+) and added Microsoft/Gemini to the provider list. - Updated `CATALOG.md` and `skills_index.json` with the new skills. 🧪 Verification - Ran `scripts/tests/test_comprehensive_coverage.py` to verify all Microsoft skills are detected. - Validated `generate_index.py` fixes by successfully indexing the new skills.
This commit is contained in:
@@ -0,0 +1,177 @@
|
||||
---
|
||||
name: azure-keyvault-certificates-rust
|
||||
description: |
|
||||
Azure Key Vault Certificates SDK for Rust. Use for creating, importing, and managing certificates.
|
||||
Triggers: "keyvault certificates rust", "CertificateClient rust", "create certificate rust", "import certificate rust".
|
||||
package: azure_security_keyvault_certificates
|
||||
---
|
||||
|
||||
# Azure Key Vault Certificates SDK for Rust
|
||||
|
||||
Client library for Azure Key Vault Certificates — secure storage and management of certificates.
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
cargo add azure_security_keyvault_certificates azure_identity
|
||||
```
|
||||
|
||||
## Environment Variables
|
||||
|
||||
```bash
|
||||
AZURE_KEYVAULT_URL=https://<vault-name>.vault.azure.net/
|
||||
```
|
||||
|
||||
## Authentication
|
||||
|
||||
```rust
|
||||
use azure_identity::DeveloperToolsCredential;
|
||||
use azure_security_keyvault_certificates::CertificateClient;
|
||||
|
||||
let credential = DeveloperToolsCredential::new(None)?;
|
||||
let client = CertificateClient::new(
|
||||
"https://<vault-name>.vault.azure.net/",
|
||||
credential.clone(),
|
||||
None,
|
||||
)?;
|
||||
```
|
||||
|
||||
## Core Operations
|
||||
|
||||
### Get Certificate
|
||||
|
||||
```rust
|
||||
use azure_core::base64;
|
||||
|
||||
let certificate = client
|
||||
.get_certificate("certificate-name", None)
|
||||
.await?
|
||||
.into_model()?;
|
||||
|
||||
println!(
|
||||
"Thumbprint: {:?}",
|
||||
certificate.x509_thumbprint.map(base64::encode_url_safe)
|
||||
);
|
||||
```
|
||||
|
||||
### Create Certificate
|
||||
|
||||
```rust
|
||||
use azure_security_keyvault_certificates::models::{
|
||||
CreateCertificateParameters, CertificatePolicy,
|
||||
IssuerParameters, X509CertificateProperties,
|
||||
};
|
||||
|
||||
let policy = CertificatePolicy {
|
||||
issuer_parameters: Some(IssuerParameters {
|
||||
name: Some("Self".into()),
|
||||
..Default::default()
|
||||
}),
|
||||
x509_certificate_properties: Some(X509CertificateProperties {
|
||||
subject: Some("CN=example.com".into()),
|
||||
..Default::default()
|
||||
}),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
let params = CreateCertificateParameters {
|
||||
certificate_policy: Some(policy),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
let operation = client
|
||||
.create_certificate("cert-name", params.try_into()?, None)
|
||||
.await?;
|
||||
```
|
||||
|
||||
### Import Certificate
|
||||
|
||||
```rust
|
||||
use azure_security_keyvault_certificates::models::ImportCertificateParameters;
|
||||
|
||||
let params = ImportCertificateParameters {
|
||||
base64_encoded_certificate: Some(base64_cert_data),
|
||||
password: Some("optional-password".into()),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
let certificate = client
|
||||
.import_certificate("cert-name", params.try_into()?, None)
|
||||
.await?
|
||||
.into_model()?;
|
||||
```
|
||||
|
||||
### Delete Certificate
|
||||
|
||||
```rust
|
||||
client.delete_certificate("certificate-name", None).await?;
|
||||
```
|
||||
|
||||
### List Certificates
|
||||
|
||||
```rust
|
||||
use azure_security_keyvault_certificates::ResourceExt;
|
||||
use futures::TryStreamExt;
|
||||
|
||||
let mut pager = client.list_certificate_properties(None)?.into_stream();
|
||||
while let Some(cert) = pager.try_next().await? {
|
||||
let name = cert.resource_id()?.name;
|
||||
println!("Certificate: {}", name);
|
||||
}
|
||||
```
|
||||
|
||||
### Get Certificate Policy
|
||||
|
||||
```rust
|
||||
let policy = client
|
||||
.get_certificate_policy("certificate-name", None)
|
||||
.await?
|
||||
.into_model()?;
|
||||
```
|
||||
|
||||
### Update Certificate Policy
|
||||
|
||||
```rust
|
||||
use azure_security_keyvault_certificates::models::UpdateCertificatePolicyParameters;
|
||||
|
||||
let params = UpdateCertificatePolicyParameters {
|
||||
// Update policy properties
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
client
|
||||
.update_certificate_policy("cert-name", params.try_into()?, None)
|
||||
.await?;
|
||||
```
|
||||
|
||||
## Certificate Lifecycle
|
||||
|
||||
1. **Create** — generates new certificate with policy
|
||||
2. **Import** — import existing PFX/PEM certificate
|
||||
3. **Get** — retrieve certificate (public key only)
|
||||
4. **Update** — modify certificate properties
|
||||
5. **Delete** — soft delete (recoverable)
|
||||
6. **Purge** — permanent deletion
|
||||
|
||||
## Best Practices
|
||||
|
||||
1. **Use Entra ID auth** — `DeveloperToolsCredential` for dev
|
||||
2. **Use managed certificates** — auto-renewal with supported issuers
|
||||
3. **Set proper validity period** — balance security and maintenance
|
||||
4. **Use certificate policies** — define renewal and key properties
|
||||
5. **Monitor expiration** — set up alerts for expiring certificates
|
||||
6. **Enable soft delete** — required for production vaults
|
||||
|
||||
## RBAC Permissions
|
||||
|
||||
Assign these Key Vault roles:
|
||||
- `Key Vault Certificates Officer` — full CRUD on certificates
|
||||
- `Key Vault Reader` — read certificate metadata
|
||||
|
||||
## Reference Links
|
||||
|
||||
| Resource | Link |
|
||||
|----------|------|
|
||||
| API Reference | https://docs.rs/azure_security_keyvault_certificates |
|
||||
| Source Code | https://github.com/Azure/azure-sdk-for-rust/tree/main/sdk/keyvault/azure_security_keyvault_certificates |
|
||||
| crates.io | https://crates.io/crates/azure_security_keyvault_certificates |
|
||||
Reference in New Issue
Block a user