[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69AT4D27D87HZXBQ4P7VXKK":3,"skill-same:01M69AT4D27D87HZXBQ4P7VXKK":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":61,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M69AT4D27D87HZXBQ4P7VXKK","debug-test-failures","测试失败调试排查","Systematic debugging workflow for test failures. Use when tests are failing, a CI build is red, or when asked to debug test issues.","用于测试失败的系统化调试工作流。当测试失败、CI 构建变红，或被要求调试测试问题时使用。","microsoft\u002Fhaste","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69ASXS77EYG722CCRAQWQTQ",110,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhaste\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fdebug-test-failures\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查","SCENARIO","使用场景",[31,32,33,34,35,36,37],"test","debug","debug test","debug test failures","testing","workflow","systematic debugging","2026-11-10 10:12:30",false,"---\nname: debug-test-failures\ndescription: \"Systematic debugging workflow for test failures. Use when tests are failing, a CI build is red, or when asked to debug test issues.\"\nsource: \"Internal engineering practices\"\ndomain: \"testing\"\nlevel: \"intermediate\"\nagents: [\"backend-dev\", \"gis\", \"ui\", \"backend-validation\"]\ncreated_date: \"2026-04-27\"\nlast_validated: \"\"\nvalidated_by: \"\"\nstatus: \"draft\"\nallowed-tools: shell\n---\n\n# Debug Test Failures\n\n## Overview\n\nA systematic process for diagnosing and fixing test failures. Use this skill when tests fail, CI is red, or someone reports a broken build. The key principle: **find the root cause, not just the symptom**.\n\n## Key Concepts\n\n### Failure Categories\n- **Deterministic failure**: Same result every time. Usually a code bug or outdated test.\n- **Flaky failure**: Intermittent. Usually caused by timing, ordering, shared state, or external dependencies.\n- **Environment failure**: Works locally, fails in CI. Usually paths, permissions, or missing dependencies.\n\n## Patterns & Techniques\n\n### Systematic Debugging Process\n\n**Step 1: Reproduce**\nRun the failing test in isolation:\n```bash\n# Python tests\ncd hastelib && hatch run test:pytest\n\n# UI lint\ncd ui && npm run lint\n```\nRun it 2-3 times. If intermittent, it's likely flaky.\n\n**Step 2: Analyze**\n- Read the error message and stack trace carefully\n- Identify the assertion that failed: expected vs actual values\n- Check if the failure is in the test or the code under test\n\n**Step 3: Investigate**\n- Read the test code to understand what it's testing\n- Read the production code being tested\n- Check recent changes to both\n- Common root causes:\n  - Changed function signatures or return types\n  - Modified data structures\n  - New dependencies not mocked\n  - Environment differences (paths, timezones, locale)\n  - Race conditions in async code\n\n**Step 4: Fix**\n- Fix the root cause, not just the symptom\n- If the test is wrong (testing outdated behavior), update the test\n- If the code is wrong, fix the code\n- Run the full test suite: `cd hastelib && hatch run test:pytest`\n\n**Step 5: Report**\nSummarize: root cause, fix applied, verification that all tests pass.\n\n## Decision Framework\n\n| Symptom | Likely Cause | Action |\n|---------|-------------|--------|\n| Test always fails | Code bug or outdated test | Read both, fix the wrong one |\n| Test passes locally, fails in CI | Environment difference | Check paths, deps, permissions |\n| Test fails intermittently | Timing, shared state, or ordering | Add isolation, remove shared state |\n| Many tests fail at once | Breaking change in shared code | Find the common dependency |\n\n## Common Pitfalls\n\n- **Fixing the test to match broken code** — Verify the code is correct before changing the test\n- **Adding sleep() to fix flaky tests** — Fix the root cause (usually missing await or shared state)\n- **Only running the fixed test** — Always run the full suite to check for regressions\n","# Debug Test Failures\n\n## Overview\n\nA systematic process for diagnosing and fixing test failures. Use this skill when tests fail, CI is red, or someone reports a broken build. The key principle: **find the root cause, not just the symptom**.\n\n## Key Concepts\n\n### Failure Categories\n- **Deterministic failure**: Same result every time. Usually a code bug or outdated test.\n- **Flaky failure**: Intermittent. Usually caused by timing, ordering, shared state, or external dependencies.\n- **Environment failure**: Works locally, fails in CI. Usually paths, permissions, or missing dependencies.\n\n## Patterns & Techniques\n\n### Systematic Debugging Process\n\n**Step 1: Reproduce**\nRun the failing test in isolation:\n```bash\n# Python tests\ncd hastelib && hatch run test:pytest\n\n# UI lint\ncd ui && npm run lint\n```\nRun it 2-3 times. If intermittent, it's likely flaky.\n\n**Step 2: Analyze**\n- Read the error message and stack trace carefully\n- Identify the assertion that failed: expected vs actual values\n- Check if the failure is in the test or the code under test\n\n**Step 3: Investigate**\n- Read the test code to understand what it's testing\n- Read the production code being tested\n- Check recent changes to both\n- Common root causes:\n  - Changed function signatures or return types\n  - Modified data structures\n  - New dependencies not mocked\n  - Environment differences (paths, timezones, locale)\n  - Race conditions in async code\n\n**Step 4: Fix**\n- Fix the root cause, not just the symptom\n- If the test is wrong (testing outdated behavior), update the test\n- If the code is wrong, fix the code\n- Run the full test suite: `cd hastelib && hatch run test:pytest`\n\n**Step 5: Report**\nSummarize: root cause, fix applied, verification that all tests pass.\n\n## Decision Framework\n\n| Symptom | Likely Cause | Action |\n|---------|-------------|--------|\n| Test always fails | Code bug or outdated test | Read both, fix the wrong one |\n| Test passes locally, fails in CI | Environment difference | Check paths, deps, permissions |\n| Test fails intermittently | Timing, shared state, or ordering | Add isolation, remove shared state |\n| Many tests fail at once | Breaking change in shared code | Find the common dependency |\n\n## Common Pitfalls\n\n- **Fixing the test to match broken code** — Verify the code is correct before changing the test\n- **Adding sleep() to fix flaky tests** — Fix the root cause (usually missing await or shared state)\n- **Only running the fixed test** — Always run the full suite to check for regressions\n",{"name":5,"level":43,"agents":44,"domain":35,"source":49,"status":50,"description":7,"created_date":51,"validated_by":52,"allowed-tools":53,"last_validated":52},"intermediate",[45,46,47,48],"backend-dev","gis","ui","backend-validation","Internal engineering practices","draft","2026-04-27","","shell","main","20513f6bc8d842697a2192d068aa48ef3c22c957",".github\u002Fskills\u002Fdebug-test-failures",19,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhaste","https:\u002F\u002Fmicrosoft.github.io\u002Fhaste\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-13 02:48:54",{"source":9,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add microsoft\u002Fhaste --skill debug-test-failures",{"tool":70,"command":71},"bunx","bunx skills add microsoft\u002Fhaste --skill debug-test-failures",{"tool":73,"command":74},"pnpm","pnpm dlx skills add microsoft\u002Fhaste --skill debug-test-failures","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhaste\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fdebug-test-failures\u002FSKILL.md",true,[],[79,99,117,137,151,166],{"skillNo":80,"name":81,"nameZh":82,"description":83,"descriptionZh":84,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":85,"categories":86,"keywords":91,"publishedAt":38},"01M69ATF7EZ2CBCPFKQ99NZJEM","validation-diagnostics","HASTE 实施验证与诊断","Validation and diagnostic skill for HASTE. Compare planned vs implemented work, generate diagnostic reports, and feed misses back into skill refinement. Use when: 'validate implementation', 'compare to spec', 'diagnostic report', 'drift analysis', 'coverage check', 'implementation review'.","HASTE 的验证与诊断技能。对比计划工作与已实现工作，生成诊断报告，并将遗漏项反馈到技能改进中。使用场景：'验证实现'、'对比规格'、'诊断报告'、'偏差分析'、'覆盖检查'、'实现审查'。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhaste\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fvalidation-diagnostics\u002FSKILL.md",[87,88],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":89,"categoryName":90,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[92,93,94,95,96,97,98],"validation diagnostics","diagnostics","review","spec","security","to spec","validate",{"skillNo":100,"name":101,"nameZh":102,"description":103,"descriptionZh":104,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":105,"categories":106,"keywords":113,"publishedAt":38},"01M69ATDJ0SQ0RMHK9148MKYHB","security-analysis","Dependabot 漏洞分析与分诊","Dependabot and security analysis skill for HASTE. Parse alerts, group related vulnerabilities, apply severity rules, and produce structured reports. Use when: 'Dependabot alert', 'security scan', 'vulnerability triage', 'dependency audit', 'npm audit', 'pip audit', 'CVE analysis'.","面向 HASTE 的 Dependabot 与安全分析技能。解析告警、归类相关漏洞、应用严重性规则并生成结构化报告。使用场景：'Dependabot 告警'、'安全扫描'、'漏洞分诊'、'依赖审计'、'npm audit'、'pip audit'、'CVE 分析'。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhaste\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsecurity-analysis\u002FSKILL.md",[107,110],{"categoryNo":108,"categoryName":109,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":111,"categoryName":112,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师",[96,114,115,116],"security analysis","vulnerabilities","triage",{"skillNo":118,"name":119,"nameZh":120,"description":121,"descriptionZh":122,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":123,"categories":124,"keywords":131,"publishedAt":38},"01M69ATBBN86366SYW86NM19PT","release-notes","发布说明与变更日志生成","Generate release notes from commit history. Use when asked to draft release notes, create a changelog, or summarize changes for a release.","根据提交历史生成发布说明。当需要起草发布说明、创建变更日志或总结某个版本的变更时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhaste\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frelease-notes\u002FSKILL.md",[125,128],{"categoryNo":126,"categoryName":127,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":129,"categoryName":130,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",[132,133,134,135,136],"release notes","notes","summarize","commit","documentation",{"skillNo":138,"name":139,"nameZh":140,"description":141,"descriptionZh":142,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":143,"categories":144,"keywords":149,"publishedAt":38},"01M69AT9PND3YVN90VZFP0PW2W","imagery-provider-adaptation","HASTE 卫星影像供应商适配","Imagery provider adaptation skill for HASTE. Encapsulates provider-specific logic for satellite imagery sources (Planet, Vantor, Airbus, etc.). Use when: 'new imagery provider', 'add source type', 'satellite provider', 'Planet', 'Vantor', 'Airbus', 'Pleiades', 'WorldView', 'SkySat', 'imagery ingestion', 'provider adapter'.","面向 HASTE 的影像供应商适配技能。封装卫星影像来源（Planet、Vantor、Airbus 等）的特定逻辑。适用场景：'new imagery provider'（新影像供应商）、'add source type'（添加来源类型）、'satellite provider'（卫星供应商）、'Planet'、'Vantor'、'Airbus'、'Pleiades'、'WorldView'、'SkySat'、'imagery ingestion'（影像摄取）、'provider adapter'（供应商适配器）。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhaste\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fimagery-provider-adaptation\u002FSKILL.md",[145,146],{"categoryNo":126,"categoryName":127,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":147,"categoryName":148,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQQR8A8SERY52S1DD95YW2","地图与位置服务",[150,136],"imagery provider adaptation",{"skillNo":152,"name":153,"nameZh":154,"description":155,"descriptionZh":156,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":157,"categories":158,"keywords":163,"publishedAt":38},"01M69AT83XYH0W0A22KJNQSZG3","deterministic-scripts","HASTE 确定性脚本执行","Deterministic script execution skill for HASTE. Execute scripts instead of free-form LLM behavior for consistent, repeatable operations. Use when: 'run preprocessing', 'convert format', 'parse metadata', 'generate tiles', 'build wheel', 'deploy functions'. Prevents hallucinated scripts.","面向 HASTE 的确定性脚本执行技能。使用脚本而非自由形式的 LLM 行为，以实现一致、可重复的操作。适用场景：'run preprocessing'（运行预处理）、'convert format'（转换格式）、'parse metadata'（解析元数据）、'generate tiles'（生成切片）、'build wheel'（构建 wheel 包）、'deploy functions'（部署函数）。防止产生幻觉脚本。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhaste\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fdeterministic-scripts\u002FSKILL.md",[159,160],{"categoryNo":126,"categoryName":127,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":161,"categoryName":162,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[164,165],"deterministic scripts","deploy",{"skillNo":167,"name":168,"nameZh":169,"description":170,"descriptionZh":171,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":172,"categories":173,"keywords":176,"publishedAt":38},"01M69AT6GZFSRAHX1169T5FZNZ","dependency-update","项目依赖安全更新","Guide for safely updating project dependencies. Use when asked to update packages, upgrade dependencies, or check for outdated libraries.","安全更新项目依赖的指南。当被要求更新软件包、升级依赖项或检查过时库时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fhaste\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fdependency-update\u002FSKILL.md",[174,175],{"categoryNo":126,"categoryName":127,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":161,"categoryName":162,"taxonomyType":28,"taxonomyTypeDesc":29},[177,96],"dependency update"]