[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BEZ98RRZP6PXQQC2P6DY4":3,"skill-same:01M69BEZ98RRZP6PXQQC2P6DY4":79},{"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":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":17,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M69BEZ98RRZP6PXQQC2P6DY4","writing-tests","单元测试编写","Apply this repository's test policy when you add or change tests. Test public\nbehavior through public APIs and test utilities. Keep tests deterministic,\nfast, and independent of real I\u002FO. Use unit tests for implementation details\nthat public APIs cannot exercise.","在添加或更改测试时应用本仓库的测试策略。通过公共 API 和测试工具测试公共行为。\n保持测试具有确定性、快速且独立于真实 I\u002FO。\n对于公共 API 无法覆盖的实现细节，使用单元测试。","microsoft\u002Foxidizer","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BEMNHKBRBACCRVHR2HSM5",193,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Foxidizer\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fwriting-tests\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"writing tests","tests","writing","use","when","apply","for","you","unit","keep","deterministic","implementation","behavior","exercise","repository","fast","unit tests","change","test","policy","2026-11-10 10:12:30",false,"---\nname: writing-tests\ndescription: |\n  Apply this repository's test policy when you add or change tests. Test public\n  behavior through public APIs and test utilities. Keep tests deterministic,\n  fast, and independent of real I\u002FO. Use unit tests for implementation details\n  that public APIs cannot exercise.\n---\n\n# Writing tests\n\nThis skill is the repository guide for developer agents that write tests.\nReview agents use the stricter rules in\n`.github\u002Fskills\u002Fcode-review\u002Ftest-review.md`.\n\n## Test behavior through public APIs\n\nTest public behavior and API contracts through the public API. Put these tests\nunder `crates\u002F\u003Ccrate>\u002Ftests\u002F`.\n\nUse test utilities to control collaborators and state. A public integration\ntest does not need real network, process, filesystem, or clock I\u002FO.\n\nWhen a test needs more control, expose test-only public APIs behind a\nnon-default `test-util` feature. Enable this feature in the integration test\nand use these APIs to inject fakes, clocks, scripted I\u002FO, or other controlled\ndependencies. Do not add test-only APIs to the default public surface.\n\nUse unit tests for implementation details that a supported public API cannot\nexercise. Keep these tests close to the implementation.\n\n## Keep tests deterministic and fast\n\nControl all inputs and dependencies. Do not depend on test order, host state,\nwall-clock time, random values, external services, or developer credentials.\n\nPrefer these workspace tools:\n\n- Use `fakeable` to create controlled fakes and mocks.\n- Use `future_assert` to test future behavior without starting a runtime.\n- Use a frozen `tick` clock and advance time explicitly.\n- Use `insta` snapshots for exact string and structured output.\n\nTarget less than one second for each test, excluding compilation. Prefer\nin-memory values and injected collaborators.\n\n## Preserve behavior tests during implementation changes\n\nIf a refactor or performance change preserves public behavior, do not rewrite\nexisting integration tests to match internal implementation details. Add tests\nwhen the change needs more coverage.\n\nIf a change intentionally alters public behavior, update the affected tests.\nDescribe the contract and test changes clearly in the pull request.\n\nDo not weaken assertions, skip tests, or delete coverage to make a change pass.\n","# Writing tests\n\nThis skill is the repository guide for developer agents that write tests.\nReview agents use the stricter rules in\n`.github\u002Fskills\u002Fcode-review\u002Ftest-review.md`.\n\n## Test behavior through public APIs\n\nTest public behavior and API contracts through the public API. Put these tests\nunder `crates\u002F\u003Ccrate>\u002Ftests\u002F`.\n\nUse test utilities to control collaborators and state. A public integration\ntest does not need real network, process, filesystem, or clock I\u002FO.\n\nWhen a test needs more control, expose test-only public APIs behind a\nnon-default `test-util` feature. Enable this feature in the integration test\nand use these APIs to inject fakes, clocks, scripted I\u002FO, or other controlled\ndependencies. Do not add test-only APIs to the default public surface.\n\nUse unit tests for implementation details that a supported public API cannot\nexercise. Keep these tests close to the implementation.\n\n## Keep tests deterministic and fast\n\nControl all inputs and dependencies. Do not depend on test order, host state,\nwall-clock time, random values, external services, or developer credentials.\n\nPrefer these workspace tools:\n\n- Use `fakeable` to create controlled fakes and mocks.\n- Use `future_assert` to test future behavior without starting a runtime.\n- Use a frozen `tick` clock and advance time explicitly.\n- Use `insta` snapshots for exact string and structured output.\n\nTarget less than one second for each test, excluding compilation. Prefer\nin-memory values and injected collaborators.\n\n## Preserve behavior tests during implementation changes\n\nIf a refactor or performance change preserves public behavior, do not rewrite\nexisting integration tests to match internal implementation details. Add tests\nwhen the change needs more coverage.\n\nIf a change intentionally alters public behavior, update the affected tests.\nDescribe the contract and test changes clearly in the pull request.\n\nDo not weaken assertions, skip tests, or delete coverage to make a change pass.\n",{"name":5,"description":7},"main","10543a66105d3362f8abe1a481da6e43b5a6103f",".github\u002Fskills\u002Fwriting-tests",32,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Foxidizer","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 15:42:25",{"source":9,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add microsoft\u002Foxidizer --skill writing-tests",{"tool":71,"command":72},"bunx","bunx skills add microsoft\u002Foxidizer --skill writing-tests",{"tool":74,"command":75},"pnpm","pnpm dlx skills add microsoft\u002Foxidizer --skill writing-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Foxidizer\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fwriting-tests\u002FSKILL.md",true,[],[80,122,150],{"skillNo":81,"name":82,"nameZh":83,"description":84,"descriptionZh":85,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":95,"publishedAt":51},"01M69BEW24CXMMC18T53BASRGK","simple-english","简明英语写作与改写","Write or rewrite text in plain, layman-readable English in the spirit of\nASD-STE100 Simplified Technical English: short sentences, active voice,\nsimple tenses, one word one meaning, condition before command, every\ntechnical term defined at first use, no AI slop. Default mode is Plain.\nStrict mode applies full STE vocabulary compliance when the user names\nSTE, ASD-STE100, or compliance. Use for documentation, READMEs, runbooks,\nprocedures, error messages, release notes, incident reports, API guides,\nand explanations for readers outside the field. Also use when the user\nsays \"STE\", \"Simplified Technical English\", \"ASD-STE100\", \"plain English\",\n\"layman's terms\", \"explain it simply\", \"no jargon\", \"de-slop\", \"make this\nreadable\", \"write for non-native readers\", or asks for docs that translate\nwell. The same rules govern the reply: answer first, prose only.","以 ASD-STE100 简化技术英语（Simplified Technical English）的理念，用浅显易懂、外行也能读懂的英语撰写或改写文本：\n短句、主动语态、简单时态、一词一义、先条件后指令、每个技术术语首次出现时给出定义、不写 AI 套话。\n默认模式为 Plain（简明）。当用户提及 STE、ASD-STE100 或合规要求时，Strict（严格）模式将全面遵守 STE 词汇规范。\n适用于文档、README、运行手册、流程规程、错误消息、发布说明、事件报告、API 指南，以及面向领域外读者的解释性内容。\n当用户说 \"STE\"、\"Simplified Technical English\"、\"ASD-STE100\"、\"plain English\"、\"layman's terms\"、\"explain it simply\"、\"no jargon\"、\"de-slop\"、\"make this readable\"、\"write for non-native readers\"，或要求撰写易于翻译的文档时，也应使用本技能。\n同样的规则也适用于回复：先给答案，只用散文叙述。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Foxidizer\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsimple-english\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Foxidizer\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsimple-english\u002FSKILL.md",[89,92],{"categoryNo":90,"categoryName":91,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师",{"categoryNo":93,"categoryName":94,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C5C7NGT4DWWBE15R6QGEX5","技术文档编写",[96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,35,120,121],"simple english","english","simple","codex","translate","code","docs","gemini","github","cli","release notes","notes","documentation","error","condition","slop","incident","messages","mode","default","short","runbooks","2025","only","meaning","api",{"skillNo":123,"name":124,"nameZh":125,"description":126,"descriptionZh":127,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":128,"categories":129,"keywords":136,"publishedAt":51},"01M69BESNQBE9TW392C3N7Q1TD","code-review","PR 代码评审","Review guidance for pull requests in this repository. Use when reviewing a pull request, to keep comments on evidence you can see rather than on predicted build outcomes, remembered API signatures, or assumed conventions.","本仓库拉取请求（Pull Request）的评审指南。适用于评审拉取请求时，使评审意见聚焦于你能看到的证据，而非对构建结果的预测、记忆中的 API 签名或臆定的约定。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Foxidizer\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcode-review\u002FSKILL.md",[130,133],{"categoryNo":131,"categoryName":132,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":134,"categoryName":135,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[137,138,101,139,140,141,142,143,144,145,146,37,147,34,35,38,40,121,148,149],"review","code review","build","request","comments","requests","pull requests","pull request","pull","evidence","signatures","can","outcomes",{"skillNo":151,"name":152,"nameZh":153,"description":154,"descriptionZh":155,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":156,"categories":157,"keywords":162,"publishedAt":51},"01M69BEQSP9VZNJ9V8WM0GX35Y","cargo-anvil-adoption","Rust 项目 cargo-anvil 接入","Complete cargo-anvil adoption in an existing Rust repository after the first cargo anvil run. Use when generated Anvil files coexist with legacy CI, recipes, scripts, tool configuration, or validation failures.","在首次运行 cargo anvil 后，在现有 Rust 仓库中完成 cargo-anvil 的采用落地。当生成的 Anvil 文件与遗留 CI、recipes、脚本、工具配置或验证失败共存时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Foxidizer\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcargo-anvil-adoption\u002FSKILL.md",[158,159],{"categoryNo":131,"categoryName":132,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":160,"categoryName":161,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSNPHVX9Y1H3B2ZX3V06RF","Rust 开发",[163,164,165,166,45,167,168,169,170,171,172,173,34,174,175,35,176,177,178,179],"anvil","cargo","adoption","cargo anvil adoption","run","rust","complete","tool","ci","files","generated","Existing","Legacy","with","first","scripts","validation"]