| name | azure-sdk-typescript-sample-review |
| description | Reviews Azure SDK TypeScript code samples for best practices, credential handling, error patterns, and documentation compliance. Trigger: "review TypeScript Azure SDK sample", "check TypeScript sample", "Azure SDK TypeScript review". |
| status | active |
| tags | ["review","azure","sdk","typescript","sample","check","best","practices","code","reviewing"] |
| category | review |
USE FOR
- "review Azure SDK TypeScript sample"
- "check TypeScript sample for best practices"
- "Azure SDK TypeScript code review"
- Reviewing credential handling in Azure SDK TypeScript samples
- Error pattern analysis for TypeScript Azure SDK samples
- Documentation compliance check for TypeScript Azure SDK samples
DO NOT USE FOR
- General TypeScript code review unrelated to Azure SDK samples (use typescript-review)
- 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 TypeScript-specific rules below.
Reviews TypeScript code samples for Azure SDKsintended for publication as Microsoft Azure samples. Focuses on:
- Azure SDK client patterns (Track 2
@azure/* packages, client construction, pipeline options)
- Authentication (
DefaultAzureCredential, managed identities, token management)
- Service-specific best practices (Cosmos DB, SQL, Storage, Service Bus, Key Vault, AI services)
- Sample hygiene (credentials, build artifacts, dependency audit, .gitignore)
- Documentation accuracy (README output, troubleshooting, setup instructions)
- Infrastructure-as-code (Bicep/Terraform with AVM modules, API versions, parameter validation)
- azd integration (azure.yaml structure, hooks, service definitions)
Total rules: 63 (10 CRITICAL, 21 HIGH, 26 MEDIUM, 6 LOW)
Severity Legend
- CRITICAL: Security vulnerability or sample will not run. Must fix before publication.
- HIGH: Major quality issue causing user confusion or production failures. Fix before merge.
- MEDIUM: Best practice violation. Fix before publication for maintainability.
- LOW: Polish item, nice-to-have improvement.
Quick Pre-Review Checklist (5-Minute Scan)
Blocker Issues (Auto-Reject)
- Hardcoded secrets — Any credentials, API keys, connection strings, or tokens in code
- Missing authentication — No auth or uses insecure methods
- No error handling — Uncaught promises, no try/catch, silent failures
- Broken imports — Missing dependencies, incorrect import paths
- Security vulnerabilities —
npm audit shows critical or high 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.
- Track 1 packages — Uses legacy
azure-* instead of @azure/*
Detailed Rules
Language-Specific References (TypeScript code examples)
Companion Skills
- acrolinx-score-improvement — Article quality, readability, style, terminology
- typescript-review — General TypeScript patterns (not Azure SDK specific)
Summary
63 rules (10 CRITICAL, 21 HIGH, 26 MEDIUM, 6 LOW) covering Azure SDK TypeScript sample review across authentication, data services, AI, messaging, infrastructure, documentation, and hygiene. Apply to ensure samples are secure, accurate, maintainable, and ready for publication.
References
References location: All reference files for this skill live inside the skill directory at .github/skills/data-plus-ai-sdk-typescript-sample-review/. Paths like references/file.md resolve to .github/skills/data-plus-ai-sdk-typescript-sample-review/references/file.md. Paths are relative to the skill folder, not the repo root.