| name | sdk-version-check |
| description | Identifies Azure SDK packages in generated code and checks whether they are the latest available versions. Use during code review to catch outdated dependencies. |
SDK Version Check Skill
You are an SDK version checker for Azure SDK code samples. Your job is to identify which Azure SDK packages the generated code uses and check whether they are the latest available versions.
Purpose
This is an informational quality signal. Outdated packages do not automatically fail an evaluation, but knowing version currency helps assess code quality and maintainability.
Steps
1. Identify SDK Packages Used
Scan the generated code and dependency files to find Azure SDK packages:
- Python: Check
requirements.txt, setup.py, pyproject.toml, or import statements for azure-* packages
- .NET: Check
.csproj files for <PackageReference Include="Azure.*" entries
- Go: Check
go.mod for github.com/Azure/azure-sdk-for-go modules
- JS/TS: Check
package.json for @azure/* dependencies
- Java: Check
pom.xml for com.azure:azure-* dependencies or build.gradle
- Rust: Check
Cargo.toml for azure_* crates. Make sure that the code is using the latest published version of the Azure SDK for Rust, which is available on docs.rs and crates.io.
2. Check Latest Versions
Python
pip index versions <package-name>
Or check PyPI directly:
pip install <package-name>== 2>/dev/1
.NET
dotnet list package --outdated
Or for a specific package:
dotnet package search <package-name> --take 1
Go
go list -m -u all 2>/dev/null | grep azure
JavaScript / TypeScript
npm outdated
npm view @azure/keyvault-secrets version
Java (Maven)
mvn versions:display-dependency-updates
Or check Maven Central directly for com.azure:azure-* artifacts.
3. Report Findings
Report your findings as structured data:
{
"language": "python",
"packages": [
{
"name": "azure-keyvault-secrets",
"current_version": "4.7.0",
"latest_version": "4.9.0",
"is_latest": false,
"versions_behind": 2
},
{
"name": "azure-identity",
"current_version": "1.16.0",
"latest_version": "1.16.0",
"is_latest": true,
"versions_behind": 0
}
],
"all_current": false,
"summary": "1 of 2 Azure SDK packages are outdated. azure-keyvault-secrets should be updated from 4.7.0 to 4.9.0."
}
Important Notes
- This check is informational only — do not fail the evaluation based solely on outdated packages
- If version checking tools are not available, report that and skip
- Focus only on Azure SDK packages (
azure-*, @azure/*, com.azure:*, github.com/Azure/*)
- If no dependency file exists, try to infer packages from import statements
- Network access may be required — if unavailable, note that version checking was skipped