技能测试失败分析
analyze-skill-issues
查询集成测试存储账户,以查找特定技能的测试失败原因。读取 blob 存储的测试结果文件并显示错误详情。触发词:技能为何失败、技能测试失败、调试技能测试、技能测试未通过、分析技能失败、技能测试为何失败、技能测试错误、调查技能问题。请勿用于:分析 GitHub Actions 运行报告或比较多次测试运行(请使用 analyze-test-run)。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 264
- Forks
- 225
01 前言 Front Matter
- name
- analyze-skill-issues
- license
- MIT
- metadata
- { "author": "Microsoft", "version": "1.0.1" }
- description
- Query the integration-test storage account to find why a specific skill's tests are failing. Reads blob-stored test result files and surfaces error details. TRIGGERS: why is skill failing, skill test failures, debug skill tests, skill failing tests, analyze skill failures, why are tests failing for skill, skill test errors, investigate skill issues. DO NOT USE FOR: analyzing a GitHub Actions run report or comparing test runs across runs (use analyze-test-run).
02 资源文件 1
- 参考文档references/blob-structure.md1.2 KB
03 SKILL.md 正文
Analyze Skill Issues
Queries the strdashboarddevveobvk Azure Storage account that stores all integration test results and retrieves error details for a given skill.
Quick Reference
| Property | Value |
|---|---|
| Storage account | strdashboarddevveobvk |
| Container | integration-reports |
| Blob path pattern | {date}/{run_id}/{skill_name}/[{test_name}/]<file> — see Blob Path Layout |
| Blob discovery | mcp_azure_mcp_storage_blob_get — list blobs to find the right paths |
| Blob content download | az storage blob download ... --file "$env:TEMP\<filename>" — local path reported in summary |
| Best for | Diagnosing why a skill's integration tests are failing |
TOOL USAGE — MANDATORY: Use
mcp_azure_mcp_storage_blob_getto enumerate and identify the correct blob paths. Then useaz storage blob downloadto download and read the content of those blobs. These tools serve different purposes and are both always required — they are not alternatives.
When to Use
- User asks why a skill's tests are failing
- User asks to debug or investigate a skill's recent test failures
- User wants to see errors from integration test runs for a specific skill
- User asks what errors or exceptions caused skill test failures
Skill Name Mapping
Resolve the user's skill name to its canonical directory name using the Skill Name Mapping.
MCP Tools
MCP tools are used exclusively for blob discovery — finding which blob paths exist. All calls require account: "strdashboarddevveobvk" and container: "integration-reports". Use az storage blob download (see Phase 2) to read blob content.
| Tool | Purpose | Key parameters |
|---|---|---|
mcp_azure_mcp_storage_blob_get |
List blob names and metadata (does not return file content) | account, container; omit blob to list all |
mcp_azure_mcp_storage_blob_container_get |
Verify the container exists | account, container |
Output Requirements
Every response MUST include all of the following. Do not omit any item:
- [ ] Root cause explanation of why the skill has low confidence or failing tests
- [ ] Per-test breakdown (test name, pass/fail, confidence or error)
- [ ] Referenced Files section listing every downloaded file as a
vscode://file/link
⚠️ MANDATORY: The Referenced Files section is not optional. Always resolve
$env:TEMPto the actual path (runecho $env:TEMP) and include a clickable link for every file downloaded. If this section is missing from your response, the output is incomplete.
Workflow
TOOL RESPONSIBILITIES:
mcp_azure_mcp_storage_blob_getis used exclusively for blob discovery (listing available paths).az storage blob downloadis used exclusively for reading blob content. Both are always required.
Phase 1 — Enumerate Recent Blobs for the Skill
-
Resolve the skill name using the Skill Name Mapping.
-
List all blobs in the container to discover available date/run paths:
mcp_azure_mcp_storage_blob_get({ account: "strdashboarddevveobvk", container: "integration-reports" })This returns a flat list of all blob names. Filter for entries that:
- Start with a date string matching
yyyy-mm-ddwithin the last 7 days - Contain
/{skill_name}/in the path - Do not end with
token-usage.jsonoragent-metadata.json
- Start with a date string matching
-
Group the matching blobs by date (descending) and by run ID (the second path segment).
-
Limit scope: If the user specified a date in their prompt, use only that date. Otherwise, take the 3 most recent dates from the filtered results and discard the rest. Do not process more than 3 dates.
Phase 2 — Read Test Result Files
For each matching blob path identified in Phase 1, download it to a local temp file and read its content:
az storage blob download --account-name strdashboarddevveobvk --container-name integration-reports `
--name "<full-blob-path>" --file "$env:TEMP\<filename>" --auth-mode login --no-progress
Use just the last path segment as <filename>.
⚠️ REQUIRED: After each download, immediately append the resolved local path to your working list of referenced files. Run
echo $env:TEMPonce to resolve the actual temp directory. Every downloaded file must appear in the Referenced Files section of your final response — this is not optional.
Priority order for files to read (most useful first):
- Any
*.jsonfiles that are NOTtoken-usage.jsonoragent-metadata.json— these contain test pass/fail results and error messages *-SKILL-REPORT.mdor*report*.jsonfiles — contain skill invocation details and test narrativesjunit.xmlblobs if present — contain structured test failure messages
Phase 3 — Extract Failure Information
For each test result file, extract:
- Test name — the test case identifier
- Status — passed / failed / error / skipped
- Error message — the exception or assertion failure text
- Stack trace — if present in the file
- Date and run ID — for traceability
Look specifically for fields such as:
"status": "failed"or"passed": false"error","errorMessage","failureMessage","message"JSON keys<failure>or<error>XML elements in JUnit format- Any
Error:orFAILprefixed lines in text reports
Phase 4 — Summarize Failures
Present the findings grouped by test name:
## Failures for <skill-name> — <date> (Run: <run_id>)
### <test-name>
- **Status:** failed
- **Error:** <error message>
- **Detail:** <stack trace or additional context, truncated to ~10 lines>
### <test-name-2>
...
At the end of the summary, include a Referenced Files section listing every file that was downloaded as a clickable VS Code link. Resolve $env:TEMP to the actual Windows temp path (e.g. C:\Users\<user>\AppData\Local\Temp) and format each entry as a markdown link using the vscode://file/ URI scheme with forward slashes:
## Referenced Files
- [<filename1>](vscode://file/C:/Users/<user>/AppData/Local/Temp/<filename1>)
- [<filename2>](vscode://file/C:/Users/<user>/AppData/Local/Temp/<filename2>)
- ...
To resolve the actual temp path, run echo $env:TEMP in the terminal before constructing the links.
Include:
- Total failing tests vs. total tests found
- Most recent run date analyzed
- Common error patterns across multiple tests (e.g., all failing due to auth, quota, timeout)
Date iteration rule: Process the most recent date first. Only proceed to the next date if the current date yields zero failures. Stop as soon as failures are found — do not process all 3 dates if the first one has results.
See Blob Path Layout for the full container tree structure.
Error Handling
| Error | Cause | Remediation |
|---|---|---|
| No blobs found for skill | Skill has not run tests recently, or name is wrong | Verify skill name using the mapping table; tests run Tue–Sat on a schedule |
| Blob list is empty | Container access issue or wrong account | Confirm account: "strdashboarddevveobvk" and that the user has Azure CLI credentials |
| Blob content not readable | File is binary or corrupted | Skip that blob and try adjacent blobs for the same test |
| All tests show as skipped | The skill's test schedule hasn't run yet today | Check tests/skills.json for the skill's schedule and check a prior day's date prefix |
token-usage.json / agent-metadata.json only |
Correct path but no result files | The test run may have crashed before writing results; check the run ID in GitHub Actions |
04 同仓库更多 Skills
azure-advisor-cost-optimization
Analyze Azure Advisor Cost/IdleResources findings and prevalidate deletion safety, including Service Groups. WHEN: "find unused Azure resources", "what resources am I paying for but no longer using", "idle-resource savings", "historical idle-resource savings", "are these idle resources safe to delete". Generic Cost, other subcategories, and cross-category requests use azure-advisor.
Foundry IQ 知识库管理
foundry-iq
Foundry IQ 知识库。适用时机:让本地或 Blob 文档可被搜索;创建/诊断知识库;对不支持的连接器或多源知识库的创建/重新配置进行分类处理;将现有知识库连接到智能体(包括多源知识库);创建/复用 Search 服务;从现有知识库检索带引用的内容;无需品牌词。在查询/目标类问题前先阅读其流程说明。不适用:其他知识库提供商、存储库文件搜索、不涉及 Foundry IQ 知识库或连接器请求的经典 Azure AI Search 索引/查询/应用类工作、通用智能体创建。
Python 应用 Azure 部署
python-appservice-deploy
将 Python(Flask/Django/FastAPI)代码部署到 Azure App Service Linux。触发条件:"Flask App Service"、"Django App Service"、"FastAPI App Service"、"将 Python 部署到 App Service"。不适用:Container Apps、Functions、非 Python、Terraform/Bicep/IaC、完整基础设施——请使用 azure-prepare。
Azure OpenAI 快速部署
preset
通过分析所有可用区域的容量,智能地将 Azure OpenAI 模型部署到最优区域。自动优先检查当前区域,并在需要时显示备选方案。适用于:快速部署、最优区域、最佳区域、自动区域选择、快速配置、多区域容量检查、高可用部署、部署到最佳位置。不适用于:自定义 SKU 选择(使用 customize)、特定版本选择(使用 customize)、自定义容量配置(使用 customize)、PTU 部署(使用 customize)。
Azure OpenAI 自定义部署
customize
具有完全自定义控制能力的 Azure OpenAI 模型交互式引导部署流程。逐步选择模型版本、SKU(GlobalStandard/Standard/ProvisionedManaged)、容量、RAI 策略(内容过滤器)以及高级选项(动态配额、优先处理、溢出)。适用于:自定义部署、定制模型部署、选择版本、选择 SKU、设置容量、配置内容过滤器、RAI 策略、部署选项、详细部署、高级部署、PTU 部署、预置吞吐量。不适用于:快速部署到最优区域(使用 preset)。
Azure OpenAI 模型容量查询
capacity
跨区域和跨项目发现可用的 Azure OpenAI 模型容量。分析配额限制、比较可用性,并根据容量需求推荐最佳部署位置。适用场景:查找容量、检查配额、可以在哪里部署、容量发现、容量最佳区域、多项目容量搜索、配额分析、模型可用性、区域比较、检查 TPM 可用性。不适用场景:实际部署(发现后转交给预设或自定义技能)、配额提升申请(引导用户前往 Azure 门户)、列出现有部署。