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)
| # |
Section |
Reference File |
| 1 |
Project Setup — TypeScript |
references/project-setup.md |
| 2 |
SDK Client Patterns — TypeScript |
references/sdk-client-patterns.md |
| 3 |
AI Services — TypeScript |
references/ai-services.md |
| 4 |
Data Services — TypeScript |
references/data-services.md |
| 5 |
Messaging — TypeScript |
references/messaging.md |
| 6 |
Key Vault — TypeScript |
references/keyvault.md |
| 7 |
Vector Search — TypeScript |
references/vector-search.md |
| 8 |
Error Handling — TypeScript |
references/error-handling.md |
| 9 |
Data Management — TypeScript |
references/data-management.md |
| 10 |
Sample Hygiene — TypeScript |
references/sample-hygiene.md |
| 11 |
Documentation — TypeScript |
references/documentation.md |
| 12 |
Infrastructure — TypeScript |
references/infrastructure.md |
| 13 |
azd — TypeScript |
references/azd.md |
| 14 |
CI/CD & Testing — TypeScript |
references/cicd-testing.md |
| — |
Comprehensive Checklist |
references/checklist.md |
| — |
Reference Links |
references/reference-links.md |
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.
1---2name: azure-sdk-typescript-sample-review3description: 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".4---56## USE FOR78- "review Azure SDK TypeScript sample"9- "check TypeScript sample for best practices"10- "Azure SDK TypeScript code review"11- Reviewing credential handling in Azure SDK TypeScript samples12- Error pattern analysis for TypeScript Azure SDK samples13- Documentation compliance check for TypeScript Azure SDK samples1415## DO NOT USE FOR1617- General TypeScript code review unrelated to Azure SDK samples (use typescript-review)18- 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 TypeScript-specific rules below.2425Reviews **TypeScript code samples** for Azure SDKsintended for publication as Microsoft Azure samples. Focuses on:2627- **Azure SDK client patterns** (Track 2 `@azure/*` packages, client construction, pipeline options)28- **Authentication** (`DefaultAzureCredential`, managed identities, token management)29- **Service-specific best practices** (Cosmos DB, SQL, Storage, Service Bus, Key Vault, AI services)30- **Sample hygiene** (credentials, build artifacts, dependency audit, .gitignore)31- **Documentation accuracy** (README output, troubleshooting, setup instructions)32- **Infrastructure-as-code** (Bicep/Terraform with AVM modules, API versions, parameter validation)33- **azd integration** (azure.yaml structure, hooks, service definitions)3435**Total rules: 63** (10 CRITICAL, 21 HIGH, 26 MEDIUM, 6 LOW)3637---3839## Severity Legend4041- **CRITICAL**: Security vulnerability or sample will not run. Must fix before publication.42- **HIGH**: Major quality issue causing user confusion or production failures. Fix before merge.43- **MEDIUM**: Best practice violation. Fix before publication for maintainability.44- **LOW**: Polish item, nice-to-have improvement.4546---4748## Quick Pre-Review Checklist (5-Minute Scan)4950- [ ] Uses Track 2 Azure SDK packages (`@azure/*`, not `azure-*`)51- [ ] Uses `DefaultAzureCredential` (not connection strings or hardcoded keys)52- [ ] `.gitignore` includes `.env`, `node_modules/`, `dist/`53- [ ] No hardcoded credentials, API keys, or tokens in code54- [ ] README.md exists with prerequisites, setup steps, and expected output55- [ ] LICENSE (MIT) present at some level of repo hierarchy56- [ ] `npm audit` passes with no critical/high vulnerabilities57- [ ] `strict: true` in tsconfig.json58- [ ] `catch` blocks with type-safe error narrowing59- [ ] Resource cleanup (finally blocks or Symbol.asyncDispose)60- [ ] package-lock.json committed, no mixed package managers61- [ ] Build succeeds (`npm run build`) and sample runs (`npm start`)6263---6465## Blocker Issues (Auto-Reject)66671. **Hardcoded secrets** — Any credentials, API keys, connection strings, or tokens in code682. **Missing authentication** — No auth or uses insecure methods693. **No error handling** — Uncaught promises, no try/catch, silent failures704. **Broken imports** — Missing dependencies, incorrect import paths715. **Security vulnerabilities** — `npm audit` shows critical or high CVEs726. **Missing LICENSE** — No LICENSE file at ANY level of repo hierarchy (MIT required). âš ï¸ Check repo root before flagging.737. **.env file committed** — Live credentials in version control. âš ï¸ Verify with `git ls-files .env`.748. **Track 1 packages** — Uses legacy `azure-*` instead of `@azure/*`7576---7778## Detailed Rules798081### Language-Specific References (TypeScript code examples)8283| # | Section | Reference File |84|---|---------|---------------|85| 1 | Project Setup — TypeScript | [references/project-setup.md](references/project-setup.md) |86| 2 | SDK Client Patterns — TypeScript | [references/sdk-client-patterns.md](references/sdk-client-patterns.md) |87| 3 | AI Services — TypeScript | [references/ai-services.md](references/ai-services.md) |88| 4 | Data Services — TypeScript | [references/data-services.md](references/data-services.md) |89| 5 | Messaging — TypeScript | [references/messaging.md](references/messaging.md) |90| 6 | Key Vault — TypeScript | [references/keyvault.md](references/keyvault.md) |91| 7 | Vector Search — TypeScript | [references/vector-search.md](references/vector-search.md) |92| 8 | Error Handling — TypeScript | [references/error-handling.md](references/error-handling.md) |93| 9 | Data Management — TypeScript | [references/data-management.md](references/data-management.md) |94| 10 | Sample Hygiene — TypeScript | [references/sample-hygiene.md](references/sample-hygiene.md) |95| 11 | Documentation — TypeScript | [references/documentation.md](references/documentation.md) |96| 12 | Infrastructure — TypeScript | [references/infrastructure.md](references/infrastructure.md) |97| 13 | azd — TypeScript | [references/azd.md](references/azd.md) |98| 14 | CI/CD & Testing — TypeScript | [references/cicd-testing.md](references/cicd-testing.md) |99| — | Comprehensive Checklist | [references/checklist.md](references/checklist.md) |100| — | Reference Links | [references/reference-links.md](references/reference-links.md) |101102---103104## Companion Skills105106- **acrolinx-score-improvement** — Article quality, readability, style, terminology107- **typescript-review** — General TypeScript patterns (not Azure SDK specific)108109---110111## Summary11211363 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.114115## References116117> **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.118