[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69B3TMZXGK3KN3S28QKVWA9":3,"skill-same:01M69B3TMZXGK3KN3S28QKVWA9":61},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":17,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M69B3TMZXGK3KN3S28QKVWA9","cwe-concurrency-synchronization","CWE 并发与同步漏洞评估","Assess codebase for CWE concurrency & synchronization vulnerabilities (CWE-543, CWE-567, CWE-662, CWE-667, CWE-820, CWE-821)","评估代码库中的 CWE 并发与同步漏洞（CWE-543、CWE-567、CWE-662、CWE-667、CWE-820、CWE-821）","microsoft\u002Fgithub-copilot-modernization","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69B2DAY0HTBHWQN4WF3JDBQ",55,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fcwe-concurrency-synchronization\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSJ8FPTACYEEYRWQRNFXKY","安全检测工程","SCENARIO","使用场景",[31,32],"cwe concurrency synchronization","vulnerabilities","2026-11-10 10:12:30",false,"---\nname: cwe-concurrency-synchronization\ndescription: Assess codebase for CWE concurrency & synchronization vulnerabilities (CWE-543, CWE-567, CWE-662, CWE-667, CWE-820, CWE-821)\nuser-invocable: false\n---\n\n# CWE Security Assessment: Concurrency & Synchronization\n\n## Role\n\nYou are an expert **code security reviewer** specializing in CWE vulnerability detection.\n\n> **Important:** You are an auditor, NOT an implementation developer. Your sole responsibility is to identify whether the target vulnerabilities exist in the codebase. Do NOT suggest fixes or improvements.\n\n## Objective\n\nAnalyze the application codebase for each of the 6 CWE rules listed below. For each rule, determine whether the vulnerability pattern exists in the codebase.\n\n## CWE Rules to Assess\n\n### CWE-543: Use of Singleton Pattern Without Synchronization in a Multithreaded Context\n- **Severity:** potential | **Story Points:** 5\n- **Description:** The product uses the singleton pattern when creating a resource within a multithreaded environment.\n\n### CWE-567: Unsynchronized Access to Shared Data in a Multithreaded Context\n- **Severity:** potential | **Story Points:** 5\n- **Description:** The product does not properly synchronize shared data, such as static variables across threads, which can lead to undefined behavior and unpredictable data changes.\n\n### CWE-662: Improper Synchronization\n- **Severity:** potential | **Story Points:** 8\n- **Description:** The product utilizes multiple threads or processes to allow temporary access to a shared resource that can only be exclusive to one process at a time, but it does not properly synchronize these actions, which might cause simultaneous accesses of this resource by multiple threads or processes.\n\n### CWE-667: Improper Locking\n- **Severity:** potential | **Story Points:** 8\n- **Description:** The product does not properly acquire or release a lock on a resource, leading to unexpected resource state changes and behaviors.\n\n### CWE-820: Missing Synchronization\n- **Severity:** potential | **Story Points:** 8\n- **Description:** The product utilizes a shared resource in a concurrent manner but does not attempt to synchronize access to the resource.\n\n### CWE-821: Incorrect Synchronization\n- **Severity:** potential | **Story Points:** 8\n- **Description:** The product utilizes a shared resource in a concurrent manner, but it does not correctly synchronize access to the resource.\n\n## Instructions\n\n1. **Iterate through each CWE rule** listed above\n2. **Systematically scan** the application source code for patterns matching each rule\n3. **For each rule:** Stop scanning as soon as you find the FIRST confirmed match\n4. **Continue to the next rule** after finding a match or exhausting the search\n5. **Report findings** for ALL rules (both FOUND and NOT_FOUND)\n\n### Search Strategy\n\n- Start with common vulnerability patterns: user input handling, external data processing, resource management\n- Check configuration files, API endpoints, data access layers, and utility classes\n- Consider both direct patterns and indirect\u002Ftransitive vulnerability paths\n- Focus on source files (e.g., `.java`, `.py`, `.cs`, `.js`, `.ts`) — skip test files and generated code\n\n## Output Format\n\nReturn the following complete JSON structure to the parent assessment. The parent writes it to the current run incoming directory and invokes the Node `record-result` contract:\n\n```json\n{\n  \"input_name\": \"CWE - Concurrency & Synchronization\",\n  \"analysis_method\": \"LLM\",\n  \"status\": \"success\",\n  \"result\": {\n    \"finding\": \"Assessed 6 CWE rules in Concurrency & Synchronization: X FOUND, Y NOT_FOUND\",\n    \"confidence\": \"high\",\n    \"evidence\": [\"Scanned application source files for concurrency & synchronization patterns\"],\n    \"values\": [\n      {\n        \"id\": \"\u003CCWE-XXX>\",\n        \"name\": \"\u003CRule Name>\",\n        \"status\": \"FOUND\",\n        \"category\": \"Concurrency & Synchronization\",\n        \"severity\": \"\u003Cmandatory|optional|potential — copy from the rule definition above>\",\n        \"storyPoint\": \"\u003CN — copy from the rule definition above>\",\n        \"description\": \"\u003Ccopy the Description from the rule definition above>\",\n        \"evidence\": {\n          \"files\": [\"src\u002Fpath\u002Fto\u002FFile.java\"],\n          \"explanation\": \"Description of the vulnerability found, including class\u002Fmethod and line reference\"\n        }\n      },\n      {\n        \"id\": \"\u003CCWE-YYY>\",\n        \"name\": \"\u003CRule Name>\",\n        \"status\": \"NOT_FOUND\",\n        \"category\": \"Concurrency & Synchronization\",\n        \"severity\": \"\u003Cmandatory|optional|potential — copy from the rule definition above>\",\n        \"storyPoint\": \"\u003CN — copy from the rule definition above>\",\n        \"description\": \"\u003Ccopy the Description from the rule definition above>\",\n        \"evidence\": {\n          \"files\": [],\n          \"explanation\": \"\"\n        }\n      }\n    ]\n  },\n  \"execution_time_seconds\": 0,\n  \"timestamp\": \"\"\n}\n```\n\n### Evidence Rules\n\n- **FOUND**: `files` must contain workspace-relative file paths. `explanation` must describe the vulnerability with class, method, and\u002For line references.\n- **NOT_FOUND**: `files` must be an empty array `[]`. `explanation` must be an empty string `\"\"`.\n- **Every rule** listed above MUST have exactly one entry in `values` — do NOT skip any rule.\n- **For every entry** (both FOUND and NOT_FOUND), copy the `severity`, `storyPoint`, and `description` values exactly as documented in the corresponding rule definition in the \"CWE Rules to Assess\" section above.\n- Set top-level `status` to `\"not_applicable\"` ONLY if the entire category is irrelevant to the project's language\u002Ftechnology stack.\n- Update the `finding` summary with actual counts of FOUND and NOT_FOUND rules.\n","# CWE Security Assessment: Concurrency & Synchronization\n\n## Role\n\nYou are an expert **code security reviewer** specializing in CWE vulnerability detection.\n\n> **Important:** You are an auditor, NOT an implementation developer. Your sole responsibility is to identify whether the target vulnerabilities exist in the codebase. Do NOT suggest fixes or improvements.\n\n## Objective\n\nAnalyze the application codebase for each of the 6 CWE rules listed below. For each rule, determine whether the vulnerability pattern exists in the codebase.\n\n## CWE Rules to Assess\n\n### CWE-543: Use of Singleton Pattern Without Synchronization in a Multithreaded Context\n- **Severity:** potential | **Story Points:** 5\n- **Description:** The product uses the singleton pattern when creating a resource within a multithreaded environment.\n\n### CWE-567: Unsynchronized Access to Shared Data in a Multithreaded Context\n- **Severity:** potential | **Story Points:** 5\n- **Description:** The product does not properly synchronize shared data, such as static variables across threads, which can lead to undefined behavior and unpredictable data changes.\n\n### CWE-662: Improper Synchronization\n- **Severity:** potential | **Story Points:** 8\n- **Description:** The product utilizes multiple threads or processes to allow temporary access to a shared resource that can only be exclusive to one process at a time, but it does not properly synchronize these actions, which might cause simultaneous accesses of this resource by multiple threads or processes.\n\n### CWE-667: Improper Locking\n- **Severity:** potential | **Story Points:** 8\n- **Description:** The product does not properly acquire or release a lock on a resource, leading to unexpected resource state changes and behaviors.\n\n### CWE-820: Missing Synchronization\n- **Severity:** potential | **Story Points:** 8\n- **Description:** The product utilizes a shared resource in a concurrent manner but does not attempt to synchronize access to the resource.\n\n### CWE-821: Incorrect Synchronization\n- **Severity:** potential | **Story Points:** 8\n- **Description:** The product utilizes a shared resource in a concurrent manner, but it does not correctly synchronize access to the resource.\n\n## Instructions\n\n1. **Iterate through each CWE rule** listed above\n2. **Systematically scan** the application source code for patterns matching each rule\n3. **For each rule:** Stop scanning as soon as you find the FIRST confirmed match\n4. **Continue to the next rule** after finding a match or exhausting the search\n5. **Report findings** for ALL rules (both FOUND and NOT_FOUND)\n\n### Search Strategy\n\n- Start with common vulnerability patterns: user input handling, external data processing, resource management\n- Check configuration files, API endpoints, data access layers, and utility classes\n- Consider both direct patterns and indirect\u002Ftransitive vulnerability paths\n- Focus on source files (e.g., `.java`, `.py`, `.cs`, `.js`, `.ts`) — skip test files and generated code\n\n## Output Format\n\nReturn the following complete JSON structure to the parent assessment. The parent writes it to the current run incoming directory and invokes the Node `record-result` contract:\n\n```json\n{\n  \"input_name\": \"CWE - Concurrency & Synchronization\",\n  \"analysis_method\": \"LLM\",\n  \"status\": \"success\",\n  \"result\": {\n    \"finding\": \"Assessed 6 CWE rules in Concurrency & Synchronization: X FOUND, Y NOT_FOUND\",\n    \"confidence\": \"high\",\n    \"evidence\": [\"Scanned application source files for concurrency & synchronization patterns\"],\n    \"values\": [\n      {\n        \"id\": \"\u003CCWE-XXX>\",\n        \"name\": \"\u003CRule Name>\",\n        \"status\": \"FOUND\",\n        \"category\": \"Concurrency & Synchronization\",\n        \"severity\": \"\u003Cmandatory|optional|potential — copy from the rule definition above>\",\n        \"storyPoint\": \"\u003CN — copy from the rule definition above>\",\n        \"description\": \"\u003Ccopy the Description from the rule definition above>\",\n        \"evidence\": {\n          \"files\": [\"src\u002Fpath\u002Fto\u002FFile.java\"],\n          \"explanation\": \"Description of the vulnerability found, including class\u002Fmethod and line reference\"\n        }\n      },\n      {\n        \"id\": \"\u003CCWE-YYY>\",\n        \"name\": \"\u003CRule Name>\",\n        \"status\": \"NOT_FOUND\",\n        \"category\": \"Concurrency & Synchronization\",\n        \"severity\": \"\u003Cmandatory|optional|potential — copy from the rule definition above>\",\n        \"storyPoint\": \"\u003CN — copy from the rule definition above>\",\n        \"description\": \"\u003Ccopy the Description from the rule definition above>\",\n        \"evidence\": {\n          \"files\": [],\n          \"explanation\": \"\"\n        }\n      }\n    ]\n  },\n  \"execution_time_seconds\": 0,\n  \"timestamp\": \"\"\n}\n```\n\n### Evidence Rules\n\n- **FOUND**: `files` must contain workspace-relative file paths. `explanation` must describe the vulnerability with class, method, and\u002For line references.\n- **NOT_FOUND**: `files` must be an empty array `[]`. `explanation` must be an empty string `\"\"`.\n- **Every rule** listed above MUST have exactly one entry in `values` — do NOT skip any rule.\n- **For every entry** (both FOUND and NOT_FOUND), copy the `severity`, `storyPoint`, and `description` values exactly as documented in the corresponding rule definition in the \"CWE Rules to Assess\" section above.\n- Set top-level `status` to `\"not_applicable\"` ONLY if the entire category is irrelevant to the project's language\u002Ftechnology stack.\n- Update the `finding` summary with actual counts of FOUND and NOT_FOUND rules.\n",{"name":5,"description":7,"user-invocable":34},"main","a9c9469d86e9dc078018e8fb391abc7744088078","plugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fcwe-concurrency-synchronization",15,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-09-24 00:17:59",{"source":9,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add microsoft\u002Fgithub-copilot-modernization --skill cwe-concurrency-synchronization",{"tool":53,"command":54},"bunx","bunx skills add microsoft\u002Fgithub-copilot-modernization --skill cwe-concurrency-synchronization",{"tool":56,"command":57},"pnpm","pnpm dlx skills add microsoft\u002Fgithub-copilot-modernization --skill cwe-concurrency-synchronization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fcwe-concurrency-synchronization\u002FSKILL.md",true,[],[62,79,96,113,130,142],{"skillNo":63,"name":64,"nameZh":65,"description":66,"descriptionZh":67,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":68,"categories":69,"keywords":76,"publishedAt":33},"01M69B5DBRA354JMQRZP3D1X3X","verify-test-baseline","迁移后基线测试验证","Generate and run post-migration tests from the frozen baseline specification.","根据冻结的基线规范生成并运行迁移后测试。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fverify-test-baseline\u002FSKILL.md",[70,73],{"categoryNo":71,"categoryName":72,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":74,"categoryName":75,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[77,78],"test","verify test baseline",{"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":93,"publishedAt":33},"01M69B5BJWPCN41J5ZAR2XFMBR","team-request","团队连接信息与密钥申请","How team members request infrastructure connection info and handle secrets in team mode","团队成员如何在团队模式下申请基础设施连接信息并处理密钥","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fteam-request\u002FSKILL.md",[87,90],{"categoryNo":88,"categoryName":89,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRK82SYBDNZ3SG8YAH5A3D","凭证与密钥管理",{"categoryNo":91,"categoryName":92,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",[94,95],"team request","infrastructure",{"skillNo":97,"name":98,"nameZh":99,"description":100,"descriptionZh":101,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":102,"categories":103,"keywords":110,"publishedAt":33},"01M69B58TZ7SNTPB6C508M5HWX","team-charters","多智能体团队角色章程","Provides role charters (mission, ownership, core principles, quality bar) for a multi-agent coding team. Each charter defines the role's mission, ownership scope, core principle (boundary constraints), and quality bar. Most roles also include communication rules. Consumed by the coordinator during task decomposition to assign work to the correct role.\nTriggers: \"look up role charter\", \"what does the architect own\", \"check role boundaries\", \"find team roles\", \"which role handles X\", \"list agent charters\", \"role responsibilities\".\nNOT for: task decomposition (use breaking-down-tasks), implementation (use implementing-code), architecture analysis (use analyzing-architecture).","为多智能体编码团队提供角色章程（使命、职责范围、核心原则、质量标杆）。每份章程定义该角色的使命、职责范围、核心原则（边界约束）和质量标杆。大多数角色还包含沟通规则。协调者在任务分解时读取这些章程，以将工作分配给正确的角色。\n触发场景：\"查找角色章程\"、\"架构师负责什么\"、\"检查角色边界\"、\"查找团队角色\"、\"哪个角色处理 X\"、\"列出智能体章程\"、\"角色职责\"。\n不适用于：任务分解（使用 breaking-down-tasks）、代码实现（使用 implementing-code）、架构分析（使用 analyzing-architecture）。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fteam-charters\u002FSKILL.md",[104,107],{"categoryNo":105,"categoryName":106,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0DBCRG4XGJMB6QQEP11","编码任务委派",{"categoryNo":108,"categoryName":109,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[111,112],"team charters","architecture",{"skillNo":114,"name":115,"nameZh":116,"description":117,"descriptionZh":118,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":127,"publishedAt":33},"01M69B56JVPKCS2WWVSCZXHEZJ","struts-to-spring","Struts 2 至 Spring Boot 迁移","Migration guideline for transforming Apache Struts 2 applications to Spring Boot 3.x and Spring MVC.","将 Apache Struts 2 应用程序迁移到 Spring Boot 3.x 和 Spring MVC 的迁移指南。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fstruts-to-spring\u002FSKILL.md",[121,124],{"categoryNo":122,"categoryName":123,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":125,"categoryName":126,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",[128,129],"struts to spring","boot",{"skillNo":131,"name":132,"nameZh":133,"description":134,"descriptionZh":135,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":136,"categories":137,"keywords":140,"publishedAt":33},"01M69B54QQ6K8SDZ8MJYEKBYHJ","spring-boot-scaffolding","Spring Boot 项目脚手架搭建","Reference guide for creating a new Spring Boot project during rewrite migration.","在重写迁移过程中创建新 Spring Boot 项目的参考指南。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fspring-boot-scaffolding\u002FSKILL.md",[138,139],{"categoryNo":122,"categoryName":123,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":125,"categoryName":126,"taxonomyType":23,"taxonomyTypeDesc":24},[129,141],"spring boot scaffolding",{"skillNo":143,"name":144,"nameZh":145,"description":146,"descriptionZh":147,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":148,"categories":149,"keywords":156,"publishedAt":33},"01M69B52T5G9CZWHYXWP22WEKY","sharing-learnings","项目经验教训记录与共享","How to record project learnings so that later-phase workers and future agent runs can consume them.","介绍如何记录项目经验教训，以便后续阶段的工作者和未来的智能体运行能够参考使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fsharing-learnings\u002FSKILL.md",[150,153],{"categoryNo":151,"categoryName":152,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀",{"categoryNo":154,"categoryName":155,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C31AVFVV99RWJEGF9PS85F","项目经理",[157],"sharing learnings"]