USE FOR
- "review Python Azure SDK sample"
- "check Python sample for best practices"
- "Azure SDK Python code review"
- Reviewing credential handling in Azure SDK Python samples
- Error pattern and async pattern analysis for Python Azure SDK samples
- Documentation compliance check for Python Azure SDK samples
DO NOT USE FOR
- General Python code review unrelated to Azure SDK samples
- Production application code review
- Azure service configuration
Context
Base template: Inherits from azure-sdk-sample-review for shared review patterns (credentials, error handling, documentation, infrastructure). This skill adds Python-specific rules below.
Reviews Python code samples for Azure SDKsintended for publication as Microsoft Azure samples. Focuses on Track 2 azure-* packages, DefaultAzureCredential, service-specific patterns (Cosmos DB, SQL, Storage, Service Bus, Key Vault, AI), sample hygiene, documentation accuracy, IaC (Bicep/Terraform), azd integration, and async patterns.
Total rules: 75 (11 CRITICAL, 23 HIGH, 32 MEDIUM, 9 LOW)
Severity Legend
- CRITICAL = security/won't run
- HIGH = confuses users
- MEDIUM = best practice
- LOW = polish
Quick Pre-Review Checklist (5-Minute Scan)
Blocker Issues (Auto-Reject)
- Hardcoded secrets in code
- Missing authentication or insecure auth methods
- No error handling / bare
except: blocks
- Broken imports / missing dependencies
- Critical/high CVEs in
pip-audit
- Missing LICENSE at any repo hierarchy level. âš ï¸ Check repo root first.
- .env committed to git. âš ï¸ Verify with
git ls-files .env.
- Track 1 packages (legacy pre-Track-2 APIs)
Detailed Rules
Language-Specific References (Python code examples)
| # |
Section |
Reference File |
| 1 |
Project Setup — Python |
references/project-setup.md |
| 2 |
SDK Client Patterns — Python |
references/sdk-client-patterns.md |
| 3 |
AI Services — Python |
references/ai-services.md |
| 4 |
Data Services — Python |
references/data-services.md |
| 5 |
Messaging — Python |
references/messaging.md |
| 6 |
Key Vault — Python |
references/keyvault.md |
| 7 |
Vector Search — Python |
references/vector-search.md |
| 8 |
Error Handling — Python |
references/error-handling.md |
| 9 |
Data Management — Python |
references/data-management.md |
| 10 |
Sample Hygiene — Python |
references/sample-hygiene.md |
| 11 |
Documentation — Python |
references/documentation.md |
| 12 |
Infrastructure — Python |
references/infrastructure.md |
| 13 |
azd — Python |
references/azd.md |
| 14 |
Async Patterns (Python-unique) |
references/async-patterns.md |
| 15 |
CI/CD & Testing — Python |
references/cicd-testing.md |
Companion Skills
- azure-sdk-typescript-sample-review — TypeScript equivalent (shared IaC/azd patterns)
- azure-sdk-dotnet-sample-review — .NET 9/10 + Aspire
- azure-sdk-java-sample-review — Java 17/21 + Spring Boot
- azure-sdk-go-sample-review — Go 1.21+
- acrolinx-score-improvement — Article quality and style
Summary
75 rules covering Azure SDK Python sample quality: authentication, client patterns, service-specific best practices (AI, Data, Messaging, Key Vault, Vector Search), infrastructure-as-code, async patterns, documentation, and CI/CD. Apply to ensure samples are secure, accurate, and publication-ready.
References
References location: All reference files for this skill live inside the skill directory at .github/skills/data-plus-ai-sdk-python-sample-review/. Paths like references/file.md resolve to .github/skills/data-plus-ai-sdk-python-sample-review/references/file.md. Paths are relative to the skill folder, not the repo root.
1---2name: azure-sdk-python-sample-review3description: Reviews Azure SDK Python code samples for best practices, credential handling, async patterns, error handling, and documentation compliance. Trigger: "review Python Azure SDK sample", "check Python sample", "Azure SDK Python review".4---56## USE FOR78- "review Python Azure SDK sample"9- "check Python sample for best practices"10- "Azure SDK Python code review"11- Reviewing credential handling in Azure SDK Python samples12- Error pattern and async pattern analysis for Python Azure SDK samples13- Documentation compliance check for Python Azure SDK samples1415## DO NOT USE FOR1617- General Python code review unrelated to Azure SDK samples18- Production application code review19- Azure service configuration2021## Context2223> **Base template:** Inherits from [azure-sdk-sample-review](../azure-sdk-sample-review/SKILL.md) for shared review patterns (credentials, error handling, documentation, infrastructure). This skill adds Python-specific rules below.2425Reviews **Python code samples** for Azure SDKsintended for publication as Microsoft Azure samples. Focuses on Track 2 `azure-*` packages, `DefaultAzureCredential`, service-specific patterns (Cosmos DB, SQL, Storage, Service Bus, Key Vault, AI), sample hygiene, documentation accuracy, IaC (Bicep/Terraform), azd integration, and async patterns.2627**Total rules: 75** (11 CRITICAL, 23 HIGH, 32 MEDIUM, 9 LOW)2829## Severity Legend3031- **CRITICAL** = security/won't run32- **HIGH** = confuses users33- **MEDIUM** = best practice34- **LOW** = polish3536---3738## Quick Pre-Review Checklist (5-Minute Scan)3940- [ ] Track 2 Azure SDK packages (`azure-*`)41- [ ] `DefaultAzureCredential` (not connection strings/keys)42- [ ] `.gitignore` includes `.env`, `__pycache__/`, `.venv/`43- [ ] No hardcoded credentials in code44- [ ] README.md with prerequisites, setup, expected output45- [ ] MIT LICENSE file present46- [ ] `pip-audit` passes (no critical/high CVEs)47- [ ] Type hints on public functions48- [ ] `try/except` with specific exception types49- [ ] Clients closed (`with`/`async with`)50- [ ] Pinned `requirements.txt` or lock file committed51- [ ] Single package manager (pip OR poetry OR uv)52- [ ] Python 3.10+ required, 3.12/3.13 target5354---5556## Blocker Issues (Auto-Reject)57581. **Hardcoded secrets** in code592. **Missing authentication** or insecure auth methods603. **No error handling** / bare `except:` blocks614. **Broken imports** / missing dependencies625. **Critical/high CVEs** in `pip-audit`636. **Missing LICENSE** at any repo hierarchy level. âš ï¸ Check repo root first.647. **.env committed** to git. âš ï¸ Verify with `git ls-files .env`.658. **Track 1 packages** (legacy pre-Track-2 APIs)6667---6869## Detailed Rules707172### Language-Specific References (Python code examples)7374| # | Section | Reference File |75|---|---------|---------------|76| 1 | Project Setup — Python | [references/project-setup.md](references/project-setup.md) |77| 2 | SDK Client Patterns — Python | [references/sdk-client-patterns.md](references/sdk-client-patterns.md) |78| 3 | AI Services — Python | [references/ai-services.md](references/ai-services.md) |79| 4 | Data Services — Python | [references/data-services.md](references/data-services.md) |80| 5 | Messaging — Python | [references/messaging.md](references/messaging.md) |81| 6 | Key Vault — Python | [references/keyvault.md](references/keyvault.md) |82| 7 | Vector Search — Python | [references/vector-search.md](references/vector-search.md) |83| 8 | Error Handling — Python | [references/error-handling.md](references/error-handling.md) |84| 9 | Data Management — Python | [references/data-management.md](references/data-management.md) |85| 10 | Sample Hygiene — Python | [references/sample-hygiene.md](references/sample-hygiene.md) |86| 11 | Documentation — Python | [references/documentation.md](references/documentation.md) |87| 12 | Infrastructure — Python | [references/infrastructure.md](references/infrastructure.md) |88| 13 | azd — Python | [references/azd.md](references/azd.md) |89| 14 | Async Patterns (Python-unique) | [references/async-patterns.md](references/async-patterns.md) |90| 15 | CI/CD & Testing — Python | [references/cicd-testing.md](references/cicd-testing.md) |9192---9394## Companion Skills9596- **azure-sdk-typescript-sample-review** — TypeScript equivalent (shared IaC/azd patterns)97- **azure-sdk-dotnet-sample-review** — .NET 9/10 + Aspire98- **azure-sdk-java-sample-review** — Java 17/21 + Spring Boot99- **azure-sdk-go-sample-review** — Go 1.21+100- **acrolinx-score-improvement** — Article quality and style101102---103104## Summary10510675 rules covering Azure SDK Python sample quality: authentication, client patterns, service-specific best practices (AI, Data, Messaging, Key Vault, Vector Search), infrastructure-as-code, async patterns, documentation, and CI/CD. Apply to ensure samples are secure, accurate, and publication-ready.107108## References109110> **References location:** All reference files for this skill live inside the skill directory at `.github/skills/data-plus-ai-sdk-python-sample-review/`. Paths like `references/file.md` resolve to `.github/skills/data-plus-ai-sdk-python-sample-review/references/file.md`. Paths are relative to the skill folder, not the repo root.111