azure/report-apiview-metrics
Run APIView platform metrics (versioned revisions and cross-language compliance). Use for: apiview metrics, platform metrics, version coverage, versioned revisions, cross-language compliance, compliance metrics, PackageVersion coverage, CrossLanguagePackageId, apiview-metrics, parser compliance.
npx skills add https://github.com/Azure/azure-sdk-tools --skill report-apiview-metrics
A combined report with two metric buckets:
| Bucket | What it measures |
|--------|-----------------|
| versions | % of revisions with a valid PackageVersion, broken out by language and revision type (Automatic, Manual, PullRequest) |
| compliance | % of reviews whose latest revision includes CrossLanguagePackageId (from CrossLanguageMetadata) |
Output is JSON with top-level "versions" and "compliance" keys. With --summary, human-readable tables are printed to stderr.
Unless the user says otherwise, always apply these defaults:
production6--languages unless user restricts)--chart unless user says no chartsShow the resolved command and run it immediately in a foreground terminal with a 120-second timeout (timeout: 120000). Clean up stale output first.
New-Item -ItemType Directory -Path output -Force | Out-Null; New-Item -ItemType Directory -Path output/charts -Force | Out-Null; if (Test-Path output/apiview_metrics_output.json) { Remove-Item output/apiview_metrics_output.json }; python cli.py report apiview-metrics --chart --summary 2>$null | Out-File -Encoding UTF8 output/apiview_metrics_output.json
After the command completes, read the output file with read_file to get the JSON results. Then use view_image to display charts at:
output/charts/apiview_version_trends.pngoutput/charts/cross_language_compliance.png# Default: 6 months, all languages, production, with charts
python cli.py report apiview-metrics --chart
# With human-readable summary tables on stderr
python cli.py report apiview-metrics --chart --summary
# Custom lookback
python cli.py report apiview-metrics --months 3 --chart
# Specific end date
python cli.py report apiview-metrics --months 6 --end-date 2026-04-30 --chart
# Specific languages only
python cli.py report apiview-metrics --languages Python Java --chart
# Staging environment
python cli.py report apiview-metrics --chart --environment staging
After reading the output file:
view_imageFor follow-up questions about the same data, read the output file instead of re-running the command.
| Flag | Type | Default | Description |
|------|------|---------|-------------|
| --months | int | 6 | Number of calendar months to look back from end date |
| --end-date / -e | string | today | Inclusive query end date (YYYY-MM-DD) |
| --languages | list | all 5 | Space-separated language names to include |
| --chart | flag | off | Generate PNG trend charts to output/charts/ |
| --summary | flag | off | Print human-readable summary tables to stderr |
| --environment | string | production | production or staging |
| Out-File -Encoding UTF8 output/apiview_metrics_output.json. Do NOT use > which produces UTF-16 in PowerShell 5.1.2>&1: This merges stderr log lines into the JSON output, producing invalid JSON.python cli.py not .\avc: Ensures the correct Python environment is used.read_file and view_image: Do NOT use additional terminal commands to read output files or display charts.c, c++, typespec, swagger, xml are always excluded automatically.Take azure/report-apiview-metrics from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.