[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BFXK0ZC2JZEERD6TFTQ8G":3,"skill-same:01M69BFXK0ZC2JZEERD6TFTQ8G":69},{"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":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M69BFXK0ZC2JZEERD6TFTQ8G","test-discipline","行为聚焦测试规范","Testing practices for behavior-focused, refactor-resistant tests. Use when implementing features, fixing bugs, refactoring, or adding or reviewing tests to ensure they verify intent through public interfaces and avoid tautological assertions. Also use when adding regression tests after bug fixes. Consulted by the implement agent during coding and by the review agent when validating test quality. Do not use for test strategy decisions (use complexity-analysis), for failure triage and root-cause analysis (use debugging-recovery, then after root cause is localized use test-discipline to add the reproducing regression test and fix), or for integration test infrastructure setup.","用于行为聚焦、抗重构测试的测试实践。在实现功能、修复缺陷、重构或添加\u002F审查测试时使用，以确保测试通过公共接口验证意图，并避免同义反复的断言。也用于在修复缺陷后添加回归测试。实现 agent 在编码时参考此技能，审查 agent 在验证测试质量时参考。不用于测试策略决策（使用 complexity-analysis）、不用于失败分诊和根因分析（使用 debugging-recovery；根因定位后，可使用 test-discipline 添加复现问题的回归测试并修复），也不用于集成测试基础设施搭建。","microsoft\u002Fdevsquad-copilot","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BE5EMENJJPPKFFE4AVZPN",50,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fdevsquad-copilot\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdevsquad\u002Fskills\u002Ftest-discipline\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],"test","test discipline","testing","review","implement","triage","setup","infrastructure","debugging","2026-11-10 10:12:30",false,"---\nname: test-discipline\ndescription: \"Testing practices for behavior-focused, refactor-resistant tests. Use when implementing features, fixing bugs, refactoring, or adding or reviewing tests to ensure they verify intent through public interfaces and avoid tautological assertions. Also use when adding regression tests after bug fixes. Consulted by the implement agent during coding and by the review agent when validating test quality. Do not use for test strategy decisions (use complexity-analysis), for failure triage and root-cause analysis (use debugging-recovery, then after root cause is localized use test-discipline to add the reproducing regression test and fix), or for integration test infrastructure setup.\"\n---\n\n# Test Discipline\n\n## Philosophy\n\nTests verify behavior through public interfaces, not implementation details. Code can change entirely; tests should not break unless behavior changes. A good test reads like a specification.\n\nUse TDD **strategically, not dogmatically**. The goal is high-quality tests that verify intent — the ordering of when tests are written is a means to that end, not the end itself.\n\n## When to Write Tests First\n\nTest-first (red-green-refactor) works best when:\n\n- **Fixing a bug**: Write a test that reproduces the bug before fixing it. The test **must** fail BEFORE the fix and pass AFTER. If the bug is not reproducible via automated test (race condition, environment-specific), document why and what alternative evidence proves the fix.\n- **Behavior is unclear**: The test forces you to define expected behavior precisely before writing code.\n- **Working on a well-defined interface**: The contract is clear and the test is straightforward to write.\n\n## When to Write Tests After (or Interleave)\n\nDesign-first-then-test works best when:\n\n- **Exploring a new domain**: The design is not yet clear. Sketch interfaces and responsibilities first, write code in meaningful blocks, then add tests.\n- **Prototyping**: Rapid iteration where the interface is still evolving. Tests written too early against an unstable interface create waste.\n- **Well-understood patterns**: When applying a known pattern (CRUD, adapter, pipeline), write the implementation, then test the behavior.\n\nIn both approaches, the quality criteria for the resulting tests are identical.\n\n## Vertical Slices\n\nRegardless of test-first or design-first, deliver work in **vertical slices** — thin end-to-end paths through all layers.\n\n**Anti-pattern: horizontal slicing**\n\nWriting all tests first (or all of one layer first), then all implementation. This produces tests that verify *imagined* behavior and delays integration feedback.\n\n```text\nAVOID (horizontal):\n  All tests → All implementation\n  All models → All services → All endpoints\n\nPREFER (vertical):\n  Slice 1: User can create an order (all layers, happy path)\n  Slice 2: Order validates required fields (error handling)\n  Slice 3: Order calculates totals (business logic)\n```\n\nThe first slice should be a **tracer bullet**: a thin end-to-end path that proves the architecture works.\n\n## Per-Task Procedure\n\n1. **Choose the next vertical slice** (tracer bullet first)\n2. **Design**: Sketch the interface and responsibilities for this slice\n3. **Implement + Test**: Either test-first (RED → GREEN) or implement-then-test, based on the context guidance above\n4. **Verify**: Run the full test suite to confirm relevant existing tests and any justified new tests pass without regressions\n5. **Refactor**: Clean up while all tests are green. Never refactor with failing tests.\n6. **Repeat**: Next slice\n\n## Test Quality Criteria\n\nEvery test must satisfy these criteria regardless of when it was written:\n\n| Criterion | Check |\n|-----------|-------|\n| **Behavior-focused** | Tests what the system does, not how it does it |\n| **Public interface only** | Uses the same API that callers use |\n| **Refactor-resistant** | Would survive internal restructuring without changes |\n| **Independent oracle** | Expected outcomes follow a requirement, concrete example, or independently justified property rather than repeating the implementation |\n| **Independent** | Does not depend on other tests or test execution order |\n| **Deterministic** | Same result every run, no timing dependencies |\n| **Readable** | Test name describes the behavior being verified |\n\nFor unit test rules, integration test rules, and test doubles hierarchy, follow `coding-guidelines.md` (always in context). This skill focuses on what coding-guidelines does not cover: the decision framework, per-task procedure, quality criteria, and anti-patterns.\n\n## What Makes a Good Test\n\n**Good tests** exercise real code paths through public APIs. They describe *what* the system does, not *how*. They read like a specification: \"user can checkout with valid cart\" tells you exactly what capability exists.\n\n**Bad tests** are coupled to implementation:\n- Mock internal collaborators\n- Test private methods or internal state\n- Bypass the public interface of the component under test with side-channel assertions (unless persistence itself is the behavior being verified)\n- Break when you refactor, even though behavior has not changed\n\n**Warning sign**: a test breaks when you refactor, but behavior has not changed. That test was testing implementation, not behavior.\n\n## Avoid Tautological Tests\n\nA tautological test derives its expectation from the implementation it is meant to verify, so the same mistake can appear on both sides of the assertion. Passing results then provide false confidence.\n\n1. **Establish the oracle**: Derive expected outcomes from requirements, concrete examples, externally visible contracts, or independently justified properties. Do not use the result under test to generate its own expectation or copy the production algorithm into the assertion.\n2. **Name a regression the assertion would catch**: Identify a plausible contract violation and check that the assertion would fail for it. This is a reasoning check and does not require mutation-testing tooling.\n3. **Keep helpers independent of the behavior under test**: Shared fixture builders are fine. Avoid using the same formatting or calculation helper on both sides when correctness of that operation is part of the asserted contract.\n4. **Assess what the assertion proves**: Computed expectations, property-based tests, independent reference implementations, snapshots, and mocks can be valid. A round-trip property alone can miss matching encoder and decoder bugs, and an unreviewed snapshot can preserve a defect. Asserting a stubbed value is meaningful when forwarding that value is the public contract, but does not verify the stubbed dependency's calculation.\n\nFor a contract where a 20 percent discount on 1,000 cents leaves 800 cents payable, avoid copying a buggy production calculation that returns the discount amount instead:\n\n```python\nassert discounted_total(1000, 20) == 1000 * 20 \u002F\u002F 100\n```\n\nUse the independently established payable amount:\n\n```python\nassert discounted_total(1000, 20) == 800\n```\n\nThe second assertion catches returning the discount amount. Additional cases should address relevant contract gaps, such as rounding, rather than repeat the same formula across many inputs.\n\nReference: [Tautological Tests by Randy Coulman](https:\u002F\u002Frandycoulman.com\u002Fblog\u002F2016\u002F12\u002F20\u002Ftautological-tests\u002F).\n\n## Behavior-Preserving Refactoring\n\n1. Run the existing behavioral tests before changing code to establish a baseline, then run them after the refactor.\n2. Reuse existing tests when they already protect the affected contract. Add tests only for a concrete coverage gap in behavior that must remain stable, preferably before restructuring that code.\n3. Do not add tests solely for extracted private helpers, delegation details, renamed classes, or structural equivalence between old and new implementations. Comparing two implementations can support a refactor but does not independently establish that either meets the requirements.\n4. Preserve behavioral assertions when adapting setup or call sites to an intentional interface change. Do not rewrite expected outcomes merely to match the refactored output.\n\n## Integration with SDD Lifecycle\n\n| Agent | How test discipline is used |\n|-------|----------------------------|\n| `devsquad.implement.execute` | Follows per-task procedure for each task |\n| `devsquad.review.tests` | Uses test quality criteria as review rubric |\n| `quality-gate` (code rubric) | Verifies behavior coverage and independent oracles, including existing tests for refactors |\n| `debugging-recovery` | Adds regression test (test that reproduces bug, then fix) |\n\n## Anti-patterns\n\n| Anti-pattern | Problem | Fix |\n|---|---|---|\n| All tests first, then all code | Tests verify imagined behavior | Work in vertical slices |\n| Mocking what you own | Tests break on refactor | Test through public interface with real implementations |\n| Testing private methods | Coupled to implementation | Test the behavior those methods enable |\n| Tautological assertions | The same bug can appear in implementation and expectation | Derive the expectation from an independent behavioral oracle |\n| New tests for every refactor | Tests mirror new structure without protecting additional behavior | Reuse behavioral tests and add only concrete coverage gaps |\n| 100% coverage as a goal | Coverage without behavior focus is noise | Cover critical paths and edge cases |\n| Copy-paste test setup | Fragile, hard to maintain | Extract test helpers and fixtures |\n| Testing the framework | Verifying framework behavior, not yours | Trust the framework, test your logic |\n| Tests without assertions | False confidence — tests pass but verify nothing | Every test must assert observable behavior |\n| Dogmatic test-first in unfamiliar domains | Premature tests lock in unstable interfaces | Design first, then test when the interface stabilizes |\n\n## Checklist Per Slice\n\n```text\n[ ] Test describes behavior, not implementation\n[ ] Test uses public interface only\n[ ] Test would survive internal refactor\n[ ] Expected outcome has an independent behavioral oracle\n[ ] Assertion would catch a plausible contract violation\n[ ] New tests address concrete behavior gaps rather than refactoring structure\n[ ] Test doubles follow coding-guidelines hierarchy\n[ ] No speculative features added\n[ ] Refactoring done only while all tests pass\n[ ] Suite runs green before moving to next slice\n```\n","# Test Discipline\n\n## Philosophy\n\nTests verify behavior through public interfaces, not implementation details. Code can change entirely; tests should not break unless behavior changes. A good test reads like a specification.\n\nUse TDD **strategically, not dogmatically**. The goal is high-quality tests that verify intent — the ordering of when tests are written is a means to that end, not the end itself.\n\n## When to Write Tests First\n\nTest-first (red-green-refactor) works best when:\n\n- **Fixing a bug**: Write a test that reproduces the bug before fixing it. The test **must** fail BEFORE the fix and pass AFTER. If the bug is not reproducible via automated test (race condition, environment-specific), document why and what alternative evidence proves the fix.\n- **Behavior is unclear**: The test forces you to define expected behavior precisely before writing code.\n- **Working on a well-defined interface**: The contract is clear and the test is straightforward to write.\n\n## When to Write Tests After (or Interleave)\n\nDesign-first-then-test works best when:\n\n- **Exploring a new domain**: The design is not yet clear. Sketch interfaces and responsibilities first, write code in meaningful blocks, then add tests.\n- **Prototyping**: Rapid iteration where the interface is still evolving. Tests written too early against an unstable interface create waste.\n- **Well-understood patterns**: When applying a known pattern (CRUD, adapter, pipeline), write the implementation, then test the behavior.\n\nIn both approaches, the quality criteria for the resulting tests are identical.\n\n## Vertical Slices\n\nRegardless of test-first or design-first, deliver work in **vertical slices** — thin end-to-end paths through all layers.\n\n**Anti-pattern: horizontal slicing**\n\nWriting all tests first (or all of one layer first), then all implementation. This produces tests that verify *imagined* behavior and delays integration feedback.\n\n```text\nAVOID (horizontal):\n  All tests → All implementation\n  All models → All services → All endpoints\n\nPREFER (vertical):\n  Slice 1: User can create an order (all layers, happy path)\n  Slice 2: Order validates required fields (error handling)\n  Slice 3: Order calculates totals (business logic)\n```\n\nThe first slice should be a **tracer bullet**: a thin end-to-end path that proves the architecture works.\n\n## Per-Task Procedure\n\n1. **Choose the next vertical slice** (tracer bullet first)\n2. **Design**: Sketch the interface and responsibilities for this slice\n3. **Implement + Test**: Either test-first (RED → GREEN) or implement-then-test, based on the context guidance above\n4. **Verify**: Run the full test suite to confirm relevant existing tests and any justified new tests pass without regressions\n5. **Refactor**: Clean up while all tests are green. Never refactor with failing tests.\n6. **Repeat**: Next slice\n\n## Test Quality Criteria\n\nEvery test must satisfy these criteria regardless of when it was written:\n\n| Criterion | Check |\n|-----------|-------|\n| **Behavior-focused** | Tests what the system does, not how it does it |\n| **Public interface only** | Uses the same API that callers use |\n| **Refactor-resistant** | Would survive internal restructuring without changes |\n| **Independent oracle** | Expected outcomes follow a requirement, concrete example, or independently justified property rather than repeating the implementation |\n| **Independent** | Does not depend on other tests or test execution order |\n| **Deterministic** | Same result every run, no timing dependencies |\n| **Readable** | Test name describes the behavior being verified |\n\nFor unit test rules, integration test rules, and test doubles hierarchy, follow `coding-guidelines.md` (always in context). This skill focuses on what coding-guidelines does not cover: the decision framework, per-task procedure, quality criteria, and anti-patterns.\n\n## What Makes a Good Test\n\n**Good tests** exercise real code paths through public APIs. They describe *what* the system does, not *how*. They read like a specification: \"user can checkout with valid cart\" tells you exactly what capability exists.\n\n**Bad tests** are coupled to implementation:\n- Mock internal collaborators\n- Test private methods or internal state\n- Bypass the public interface of the component under test with side-channel assertions (unless persistence itself is the behavior being verified)\n- Break when you refactor, even though behavior has not changed\n\n**Warning sign**: a test breaks when you refactor, but behavior has not changed. That test was testing implementation, not behavior.\n\n## Avoid Tautological Tests\n\nA tautological test derives its expectation from the implementation it is meant to verify, so the same mistake can appear on both sides of the assertion. Passing results then provide false confidence.\n\n1. **Establish the oracle**: Derive expected outcomes from requirements, concrete examples, externally visible contracts, or independently justified properties. Do not use the result under test to generate its own expectation or copy the production algorithm into the assertion.\n2. **Name a regression the assertion would catch**: Identify a plausible contract violation and check that the assertion would fail for it. This is a reasoning check and does not require mutation-testing tooling.\n3. **Keep helpers independent of the behavior under test**: Shared fixture builders are fine. Avoid using the same formatting or calculation helper on both sides when correctness of that operation is part of the asserted contract.\n4. **Assess what the assertion proves**: Computed expectations, property-based tests, independent reference implementations, snapshots, and mocks can be valid. A round-trip property alone can miss matching encoder and decoder bugs, and an unreviewed snapshot can preserve a defect. Asserting a stubbed value is meaningful when forwarding that value is the public contract, but does not verify the stubbed dependency's calculation.\n\nFor a contract where a 20 percent discount on 1,000 cents leaves 800 cents payable, avoid copying a buggy production calculation that returns the discount amount instead:\n\n```python\nassert discounted_total(1000, 20) == 1000 * 20 \u002F\u002F 100\n```\n\nUse the independently established payable amount:\n\n```python\nassert discounted_total(1000, 20) == 800\n```\n\nThe second assertion catches returning the discount amount. Additional cases should address relevant contract gaps, such as rounding, rather than repeat the same formula across many inputs.\n\nReference: [Tautological Tests by Randy Coulman](https:\u002F\u002Frandycoulman.com\u002Fblog\u002F2016\u002F12\u002F20\u002Ftautological-tests\u002F).\n\n## Behavior-Preserving Refactoring\n\n1. Run the existing behavioral tests before changing code to establish a baseline, then run them after the refactor.\n2. Reuse existing tests when they already protect the affected contract. Add tests only for a concrete coverage gap in behavior that must remain stable, preferably before restructuring that code.\n3. Do not add tests solely for extracted private helpers, delegation details, renamed classes, or structural equivalence between old and new implementations. Comparing two implementations can support a refactor but does not independently establish that either meets the requirements.\n4. Preserve behavioral assertions when adapting setup or call sites to an intentional interface change. Do not rewrite expected outcomes merely to match the refactored output.\n\n## Integration with SDD Lifecycle\n\n| Agent | How test discipline is used |\n|-------|----------------------------|\n| `devsquad.implement.execute` | Follows per-task procedure for each task |\n| `devsquad.review.tests` | Uses test quality criteria as review rubric |\n| `quality-gate` (code rubric) | Verifies behavior coverage and independent oracles, including existing tests for refactors |\n| `debugging-recovery` | Adds regression test (test that reproduces bug, then fix) |\n\n## Anti-patterns\n\n| Anti-pattern | Problem | Fix |\n|---|---|---|\n| All tests first, then all code | Tests verify imagined behavior | Work in vertical slices |\n| Mocking what you own | Tests break on refactor | Test through public interface with real implementations |\n| Testing private methods | Coupled to implementation | Test the behavior those methods enable |\n| Tautological assertions | The same bug can appear in implementation and expectation | Derive the expectation from an independent behavioral oracle |\n| New tests for every refactor | Tests mirror new structure without protecting additional behavior | Reuse behavioral tests and add only concrete coverage gaps |\n| 100% coverage as a goal | Coverage without behavior focus is noise | Cover critical paths and edge cases |\n| Copy-paste test setup | Fragile, hard to maintain | Extract test helpers and fixtures |\n| Testing the framework | Verifying framework behavior, not yours | Trust the framework, test your logic |\n| Tests without assertions | False confidence — tests pass but verify nothing | Every test must assert observable behavior |\n| Dogmatic test-first in unfamiliar domains | Premature tests lock in unstable interfaces | Design first, then test when the interface stabilizes |\n\n## Checklist Per Slice\n\n```text\n[ ] Test describes behavior, not implementation\n[ ] Test uses public interface only\n[ ] Test would survive internal refactor\n[ ] Expected outcome has an independent behavioral oracle\n[ ] Assertion would catch a plausible contract violation\n[ ] New tests address concrete behavior gaps rather than refactoring structure\n[ ] Test doubles follow coding-guidelines hierarchy\n[ ] No speculative features added\n[ ] Refactoring done only while all tests pass\n[ ] Suite runs green before moving to next slice\n```\n",{"name":5,"description":7},"main","fb93f96b64ff15238a7f20e7f611211ee0720fba",".github\u002Fplugins\u002Fdevsquad\u002Fskills\u002Ftest-discipline",12,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fdevsquad-copilot","https:\u002F\u002Faka.ms\u002Fdevsquad-copilot","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 10:09:48",{"source":9,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add microsoft\u002Fdevsquad-copilot --skill test-discipline",{"tool":61,"command":62},"bunx","bunx skills add microsoft\u002Fdevsquad-copilot --skill test-discipline",{"tool":64,"command":65},"pnpm","pnpm dlx skills add microsoft\u002Fdevsquad-copilot --skill test-discipline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fdevsquad-copilot\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdevsquad\u002Fskills\u002Ftest-discipline\u002FSKILL.md",true,[],[70,93,108,123,148,166],{"skillNo":71,"name":72,"nameZh":73,"description":74,"descriptionZh":75,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":76,"categories":77,"keywords":84,"publishedAt":40},"01M69BG4STFRJMC0FT9K81Y6W0","work-item-workflow","工作项实施流程","Work item workflow for implementation. Use when starting work on a GitHub issue or Azure DevOps work item to verify assignee, dependencies, priority, and capacity. Do not use for creating new work items (use work-item-creation), for suggesting the next task (use next-task), or when the work source is only tasks.md without an issue\u002Fwork item.","用于实施的工作项工作流。当开始在 GitHub issue 或 Azure DevOps 工作项上工作时使用，用于核实负责人、依赖关系、优先级和产能。不适用于创建新工作项（使用 work-item-creation）、建议下一个任务（使用 next-task），或工作来源仅为 tasks.md 而没有 issue\u002F工作项的情况。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fdevsquad-copilot\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdevsquad\u002Fskills\u002Fwork-item-workflow\u002FSKILL.md",[78,81],{"categoryNo":79,"categoryName":80,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":82,"categoryName":83,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C2MZSDTE56BDKER3VPW2JM","工单与问题跟踪管理",[85,86,87,88,89,90,91,92],"work item workflow","workflow","github","next task","tasks","azure","capacity","azure devops",{"skillNo":94,"name":95,"nameZh":96,"description":97,"descriptionZh":98,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":99,"categories":100,"keywords":103,"publishedAt":40},"01M69BG2HPKFCG18SYZA7W35AK","work-item-creation","工作项创建规范","Rules and checklist for creating work items on GitHub Issues or Azure DevOps. Use when you need to create issues, user stories, tasks, epics, or features on the board. Do not use for platform configuration (use board-config), managing workflow of existing tasks (use work-item-workflow), or for comments on work items.","在 GitHub Issues 或 Azure DevOps 上创建工作项的规则与清单。当需要在看板上创建 issue、用户故事、任务、epic 或功能时使用。不适用于平台配置（使用 board-config）、管理现有任务的工作流（使用 work-item-workflow），或对工作项的评论。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fdevsquad-copilot\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdevsquad\u002Fskills\u002Fwork-item-creation\u002FSKILL.md",[101,102],{"categoryNo":79,"categoryName":80,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":82,"categoryName":83,"taxonomyType":28,"taxonomyTypeDesc":29},[104,87,86,92,105,90,89,106,107],"work item creation","config","create","github issues",{"skillNo":109,"name":110,"nameZh":111,"description":112,"descriptionZh":113,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":114,"categories":115,"keywords":120,"publishedAt":40},"01M69BG04YGG1CR7MZWGQ7X9MG","triage-workflow","Issue与工单分诊","Label-based state machine for triaging issues and work items. Manages state transitions, generates durable triage artifacts, and supports resumable sessions. Use when triaging GitHub issues or Azure DevOps work items. Do not use for creating new work items from scratch (use work-item-creation) or for managing implementation workflow of already-triaged items (use work-item-workflow).","用于分诊 issue 和工作项的基于标签的状态机。管理状态转换、生成持久的分诊工件，并支持可恢复的会话。用于分诊 GitHub issue 或 Azure DevOps 工作项。不用于从零开始创建新工作项（使用 work-item-creation），也不用于管理已分诊项的实现工作流（使用 work-item-workflow）。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fdevsquad-copilot\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdevsquad\u002Fskills\u002Ftriage-workflow\u002FSKILL.md",[116,117],{"categoryNo":82,"categoryName":83,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":118,"categoryName":119,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C31AVFVV99RWJEGF9PS85F","项目经理",[86,36,121,92,90,107,122,87],"triage workflow","sessions",{"skillNo":124,"name":125,"nameZh":126,"description":127,"descriptionZh":128,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":129,"categories":130,"keywords":137,"publishedAt":40},"01M69BFTZDV68JM4CB1C9TGFD3","security-review","代码与架构安全审查","Security assessment workflow in two modes: architectural (design) and code (implementation). Use when a security trigger is detected during planning (architectural mode) or implementation\u002Freview (code mode). Covers STRIDE, OWASP, dependency scanning, Azure compliance, and GitHub security alerts. Do not use for general code quality (use devsquad.review), for threat modeling as a standalone activity, or for compliance audits.","安全评估工作流，包含两种模式：架构（设计）模式和代码（实现）模式。当在规划阶段检测到安全触发条件（架构模式），或在实现\u002F审查阶段（代码模式）时使用。涵盖 STRIDE、OWASP、依赖扫描、Azure 合规和 GitHub 安全告警。不用于一般代码质量检查（使用 devsquad.review），不用于作为独立活动的威胁建模，也不用于合规审计。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fdevsquad-copilot\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdevsquad\u002Fskills\u002Fsecurity-review\u002FSKILL.md",[131,134],{"categoryNo":132,"categoryName":133,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师",{"categoryNo":135,"categoryName":136,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSJ8FPTACYEEYRWQRNFXKY","安全检测工程",[138,139,34,140,87,141,142,86,143,144,145,90,146,147],"security review","security","planning","design","threat modeling","security alerts","code quality","azure compliance","assessment","code",{"skillNo":149,"name":150,"nameZh":151,"description":152,"descriptionZh":153,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":154,"categories":155,"keywords":160,"publishedAt":40},"01M69BFRCVSVDN7RXAZJSSZ4TW","reasoning","SDD 决策记录与交接","Record decisions and justifications during SDD agent execution, and pass structured context between agents via handoff envelope. Use when an agent needs to document decisions made (Reasoning Log) or perform a handoff to another agent. Do not use for architecture documentation (use ADRs), complexity analysis (use complexity-analysis), or debug logs.","在 SDD 智能体执行过程中记录决策及其依据，并通过交接信封（handoff envelope）在智能体之间传递结构化上下文。当智能体需要记录已做出的决策（推理日志 Reasoning Log）或向另一个智能体交接时使用。不要用于架构文档（使用 ADR）、复杂度分析（使用 complexity-analysis）或调试日志。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fdevsquad-copilot\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdevsquad\u002Fskills\u002Freasoning\u002FSKILL.md",[156,157],{"categoryNo":79,"categoryName":80,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":158,"categoryName":159,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTBRVQZ06FQWD8P64214B2","会话上下文交接",[150,161,162,163,164,165],"handoff","architecture","debug","documentation","complexity analysis",{"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":40},"01M69BFNT0BQ1MA4TZE0469T4H","quality-gate","SDD 质量门禁","Quality gate for SDD artifacts (specs, ADRs, tasks, code). Use when generating or updating specs, ADRs, task decomposition, or code implementation to validate quality before delivering to the user. Do not use for linting, code formatting, human code review, or validation of intermediate artifacts marked as draft\u002FWIP.","针对 SDD 制品（规格说明、ADR、任务、代码）的质量门禁。在生成或更新规格说明、ADR、任务分解或代码实现时使用，以便在交付给用户前验证质量。不要用于代码检查（linting）、代码格式化、人工代码审查，或标记为 draft\u002FWIP 的中间制品验证。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fdevsquad-copilot\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdevsquad\u002Fskills\u002Fquality-gate\u002FSKILL.md",[174,175],{"categoryNo":79,"categoryName":80,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[177,34,178,89,147,179],"quality gate","validate","code review"]