| name | azure-sdk-go-sample-review |
| description | Reviews Azure SDK Go code samples for best practices, credential handling, idiomatic error handling, context propagation, and documentation compliance. Trigger: "review Go Azure SDK sample", "check Go sample", "Azure SDK Go review". |
| status | active |
| tags | ["review","azure","sdk","sample","check","best","practices","code","reviewing","credential"] |
| category | review |
USE FOR
- "review Go Azure SDK sample"
- "check Go sample for best practices"
- "Azure SDK Go code review"
- Reviewing credential handling in Azure SDK Go samples
- Idiomatic error handling and context propagation review for Go Azure SDK samples
- Documentation compliance check for Go Azure SDK samples
DO NOT USE FOR
- General Go 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 Go-specific rules below.
Use this skill when reviewing Go code samples for Azure SDKs intended for publication as Microsoft Azure samples. Focuses on:
- Azure SDK client patterns (
github.com/Azure/azure-sdk-for-go/sdk/*)
- Authentication (
azidentity.NewDefaultAzureCredential, managed identities)
- Service-specific best practices (Cosmos DB, SQL, Storage, Service Bus, Key Vault, AI services)
- Sample hygiene (credentials, .gitignore, dependency audit)
- Documentation accuracy (README output, troubleshooting, setup instructions)
- Infrastructure-as-code (Bicep/Terraform with AVM modules)
- azd integration (azure.yaml structure, hooks)
- Go idioms (error handling, context propagation, interfaces, goroutine safety)
Total rules: 75 (11 CRITICAL, 24 HIGH, 32 MEDIUM, 8 LOW)
Severity Legend
- CRITICAL: Security vulnerability or sample will not run. Must fix before any publication.
- HIGH: Major quality issue. Fix before merge.
- MEDIUM: Best practice violation. Should fix before publication.
- LOW: Polish item, nice-to-have improvement.
Quick Pre-Review Checklist (5-Minute Scan)
Blocker Issues (Auto-Reject)
These issues always block publication:
- Hardcoded secrets—Any production credentials, API keys, connection strings, or tokens in code
- Missing authentication—No auth implementation or uses insecure methods
- No error handling—Unchecked error returns, discarded errors with
_
- Broken imports—Missing dependencies, incorrect import paths
- Security vulnerabilities—
govulncheck shows known CVEs
- Missing LICENSE—No LICENSE file at ANY level of repo hierarchy (MIT required). âš ï¸ Check repo root before flagging.
- .env file committed—Live credentials in version control. âš ï¸ Verify with
git ls-files .env
- Legacy SDK packages—Uses
github.com/Azure/azure-sdk-for-go/services/* instead of sdk/*
Detailed Rules
Language-Specific References (Go code examples)
Companion Skills
- azure-sdk-typescript-sample-review — TypeScript Azure SDK sample review patterns
- azure-sdk-dotnet-sample-review — .NET 9/10 + Aspire patterns
- azure-sdk-java-sample-review — Java 17/21 + Spring Boot patterns
- azure-sdk-python-sample-review — Python 3.9+ + async patterns
- azure-sdk-rust-sample-review — Rust 2021 edition patterns
- acrolinx-score-improvement — Article quality, readability, style
Summary
This skill reviews Azure SDK Go samples for security, idiomatic Go patterns, Azure SDK best practices, and documentation compliance. 75 rules across 15 categories ensure samples are secure, idiomatic, maintainable, and ready for publication in the Azure Samples organization.
References
References location: All reference files for this skill live inside the skill directory at .github/skills/data-plus-ai-sdk-go-sample-review/. Paths like references/file.md resolve to .github/skills/data-plus-ai-sdk-go-sample-review/references/file.md. Paths are relative to the skill folder, not the repo root.