[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69B3P0H295MDRDB1Q27HMH6":3,"skill-same:01M69B3P0H295MDRDB1Q27HMH6":65},{"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":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":17,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M69B3P0H295MDRDB1Q27HMH6","cve-remediation","依赖 CVE 漏洞修复","Scan dependency manifests against known CVEs and remediate by upgrading vulnerable\ndependencies to patched versions, then rebuild and re-scan to confirm. Self-contained\nscan→fix→verify loop for any project with a dependency manifest.\n\nUse when: a cve-remediation task is dispatched; dependency set changed (version bump,\nnew framework); assessment flagged vulnerable or EOL dependencies; or user asked to\n\"fix CVEs\", \"patch vulnerabilities\", or \"dependency security\".\n\nTriggers: \"cve\", \"remediate cve\", \"fix cves\", \"patch vulnerable dependencies\",\n\"vulnerability scanning\", \"dependency security\", \"vulnerable dependencies\",\n\"security advisories\", \"npm audit\", \"pnpm audit\", \"maven audit\", \"gradle audit\",\n\"dependency scan\", \"vulnerability remediation\".\n\nNOT for: security audit of auth\u002Finput\u002Fsecrets\u002FOWASP code paths (use security-review).","扫描依赖清单（dependency manifest）中的已知 CVE，通过将存在漏洞的依赖项升级到已修复版本来进行修复，随后重新构建并重新扫描以确认。这是一个适用于任何含依赖清单项目的自检自足的“扫描→修复→验证”闭环。\n\n适用场景：分派了 cve-remediation 任务；依赖项集合发生变化（版本升级、引入新框架）；评估标记出存在漏洞或 EOL（生命周期终止）的依赖项；或用户要求“修复 CVE”“修补漏洞”或“依赖安全”。\n\n触发词：“cve”“remediate cve”“fix cves”“patch vulnerable dependencies”“vulnerability scanning”“dependency security”“vulnerable dependencies”“security advisories”“npm audit”“pnpm audit”“maven audit”“gradle audit”“dependency scan”“vulnerability remediation”。\n\n不适用于：针对 auth\u002Finput\u002Fsecrets\u002FOWASP 代码路径的安全审计（请使用 security-review）。","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\u002Fcve-remediation\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全","SCENARIO","使用场景",[31,32,33,34,35,36],"cve remediation","review","security","vulnerabilities","auth","assessment","2026-11-10 10:12:30",false,"---\nname: cve-remediation\ndescription: |\n  Scan dependency manifests against known CVEs and remediate by upgrading vulnerable\n  dependencies to patched versions, then rebuild and re-scan to confirm. Self-contained\n  scan→fix→verify loop for any project with a dependency manifest.\n\n  Use when: a cve-remediation task is dispatched; dependency set changed (version bump,\n  new framework); assessment flagged vulnerable or EOL dependencies; or user asked to\n  \"fix CVEs\", \"patch vulnerabilities\", or \"dependency security\".\n\n  Triggers: \"cve\", \"remediate cve\", \"fix cves\", \"patch vulnerable dependencies\",\n  \"vulnerability scanning\", \"dependency security\", \"vulnerable dependencies\",\n  \"security advisories\", \"npm audit\", \"pnpm audit\", \"maven audit\", \"gradle audit\",\n  \"dependency scan\", \"vulnerability remediation\".\n\n  NOT for: security audit of auth\u002Finput\u002Fsecrets\u002FOWASP code paths (use security-review).\n---\n\n# CVE Remediation\n\nThis skill is the implementer-owned scan→fix→verify loop for dependency CVEs. It is\ndispatched as an **execute-phase** task to an implementer role (backend), runs\n**per group**, and produces patched dependency manifests plus an audit trail.\n\n## Ownership & boundaries\n\n- **This is implementer work, not audit work.** The `security` role audits and escalates\n  but does NOT fix. This skill performs the *fix* (editing dependency manifests), so it is\n  owned by the implementer who owns those manifests — not by the `security` role.\n- **The rebuild\u002Fre-scan is a self-check, not a quality gate.** It is the implementer\n  confirming their own change took — analogous to compiling after editing code. It must\n  NOT masquerade as the project's security gate, and it stays within the **Implementation**\n  phase label. The independent gates (`smoke-test`, `runtime-validation`, and the\n  coordinator's verdict rules) remain separate and unchanged.\n- **Scope is per-group.** Each in-scope group has its own dependency manifests; remediate\n  the manifests belonging to the dispatched group.\n\n## Scanning: tool-first with LLM fallback\n\nCVE scanning is performed by the shared **`appmod-cve-assessment`** tool, which all\nmodernization surfaces (VS Code extension, IntelliJ plugin, Copilot CLI plugin, MCP server)\nexpose. It queries the GitHub Security Advisories API for a set of package ecosystems and\nwrites structured findings to a result file. Using the shared tool keeps scanning\nconsistent across products and emits the standard telemetry.\n\n- **Primary — `appmod-cve-assessment` tool** (preferred whenever it applies). Consult the\n  tool's own `ecosystem` parameter for the ecosystems it currently accepts — treat that\n  schema as the source of truth rather than assuming a fixed list, since it may grow over\n  time.\n- **Fallback — LLM-only scan** when the tool path does **not** apply. This covers **two**\n  cases, both signalled by the tool itself:\n  1. **Tool unavailable** — `appmod-cve-assessment` is not registered in the current\n     runtime (e.g. a standalone Copilot CLI \u002F rearchitecture runtime without the tool wired\n     up).\n  2. **Ecosystem not accepted** — the tool rejects the project's ecosystem (its\n     `ecosystem` parameter does not accept it \u002F input validation fails). Whichever\n     ecosystems the tool does not yet cover fall here automatically.\n\n  In either case the model identifies known CVEs for the listed dependency versions from\n  its own knowledge and writes the **same findings schema** (see Step 3). This is\n  best-effort — model knowledge has a training cutoff and may miss recent advisories — so\n  prefer the tool whenever it applies.\n\nMap the project's package manager to the ecosystem identifier the tool accepts (for example,\nMaven and Gradle both resolve to the same JVM identifier). If the tool does not accept any\nidentifier for the project's ecosystem, go straight to the LLM-only fallback.\n\n## Artifact path\n\nThe coordinator provides an artifact path for this task. Throughout this skill,\n`{{ARTIFACT_PATH}}` refers to that directory. Write all reports and the fix summary there.\n\n## Workflow\n\n### Step 1: Precheck — detect project type and build tool\n\nBefore running any build or dependency commands, verify that the required build tool is\navailable.\n\n1. **Detect the project type** by examining the group's project root:\n\n   | File(s) found | Project type | Tool ecosystem id (common mapping) |\n   |---|---|---|\n   | `pom.xml` | Maven (Java) | maven |\n   | `build.gradle` or `build.gradle.kts` | Gradle (Java) | maven |\n   | `*.sln` | .NET solution | nuget |\n   | `*.csproj` | C# project | nuget |\n   | `packages.config` | Legacy .NET | nuget |\n   | `package.json` | Node.js (npm\u002Fpnpm\u002Fyarn) | npm |\n   | any other manifest (e.g. `requirements.txt`, `pyproject.toml`, `go.mod`, `Cargo.toml`, `Gemfile`, `composer.json`) | other | whatever the tool accepts, else LLM-only fallback (Step 2c) |\n\n   > The ecosystem ids above are the **common** mappings at the time of writing. The tool's\n   > `ecosystem` parameter is authoritative — if it accepts an identifier for the project's\n   > ecosystem, use the tool; otherwise use the LLM-only fallback.\n\n2. **Resolve the build command** — prefer project-local wrappers over global tools:\n\n   | Project type | Check order (prefer first match) | Fallback |\n   |---|---|---|\n   | Maven | `.\u002Fmvnw` (Unix) or `mvnw.cmd` (Windows) | `mvn` on PATH |\n   | Gradle | `.\u002Fgradlew` (Unix) or `gradlew.bat` (Windows) | `gradle` on PATH |\n   | .NET | `dotnet --version` | — |\n   | Node.js | `npm` \u002F `pnpm` \u002F `yarn` (only needed to *apply* fixes) | — |\n\n3. **If the required tool is not found**, stop and report the error. Do not proceed.\n\n### Step 2: Scan dependencies against CVE databases\n\nThe scan also serves as **detection**: a clean result (an empty findings array) means the\ngroup has no known dependency CVEs and the task exits cheaply.\n\n#### Step 2a: Collect dependency coordinates and locations\n\nExtract the dependency coordinates for the group, capturing for each one the\nworkspace-relative file path and 1-based line number where it is declared. Prefer\n**resolved** versions (which include transitive dependencies — the common source of CVEs)\nand fall back to manifest-declared versions when a resolver is unavailable.\n\n| Ecosystem | Coordinate format | Where to read |\n|---|---|---|\n| `maven` | `groupId:artifactId:version` | `mvn dependency:list` \u002F `gradle dependencies` (resolved), else `pom.xml` \u002F `build.gradle` \u002F `gradle.properties` |\n| `nuget` | `PackageName@version` | `dotnet list package` (resolved), else `*.csproj` \u002F `Directory.Packages.props` \u002F `packages.config` |\n| `npm` | `package-name@version` (e.g. `express@4.18.2`, `@angular\u002Fcore@16.0.0`) | lockfile (`package-lock.json`, `pnpm-lock.yaml`, `yarn.lock` — resolved, includes transitives), else `package.json` |\n\n> These are the common ecosystems and their coordinate formats. For the authoritative\n> coordinate format expected by each ecosystem the tool accepts, consult the tool's\n> `dependencies` \u002F `ecosystem` parameter descriptions. For an ecosystem the tool does not\n> accept (LLM-only fallback), use that ecosystem's natural coordinate form (e.g.\n> `package==version` for Python) read from its manifest or lockfile.\n\n#### Step 2b: Scan with the `appmod-cve-assessment` tool (primary)\n\nCall `appmod-cve-assessment` with:\n\n- `cveResultFilePath` — an **absolute** path of `{{ARTIFACT_PATH}}\u002Fcve-report-N.json`\n  (start at `1`, increment each scan to preserve history).\n- `ecosystem` — the identifier the tool accepts for the project's package ecosystem (see\n  the tool's `ecosystem` parameter for the accepted values).\n- `dependencies` — the coordinate array from Step 2a.\n- `dependencyLocations` — `{ coordinate, filePath, lineNumber }` for each dependency.\n\nThe tool fetches CVEs, writes the findings JSON to `cveResultFilePath`, and returns a\nsummary message. For very large dependency sets, scan in batches, writing each batch to its\nown numbered report. **If the tool is unavailable, or it rejects the `ecosystem` as not\naccepted, switch to the LLM-only fallback (Step 2c).**\n\n#### Step 2c: LLM-only scan (fallback — tool unavailable OR ecosystem not accepted)\n\nUse this path when the tool cannot do the scan — either because `appmod-cve-assessment` is\n**not available** in the current runtime, or because the tool **does not accept** the\nproject's ecosystem (its `ecosystem` parameter rejects it). Perform the scan from model\nknowledge instead: for each coordinate + version, identify known CVEs and write the **same\nfindings schema** (see Step 3) to `{{ARTIFACT_PATH}}\u002Fcve-report-N.json`. Note in the fix\nsummary that the LLM fallback was used (and why), since it is best-effort and may miss\nrecent advisories.\n\n**Large projects**: if scanning is slow, run it in a **background (async) terminal** and,\nwhile it runs, review and fix vulnerabilities already known from earlier runs. Address any\nnewly discovered issues once it completes.\n\n### Step 3: Review the report and identify vulnerable dependencies\n\nParse the latest `cve-report-N.json` and examine each finding:\n\n1. Read the report file and parse the JSON (an array of findings; `[]` means no CVEs).\n2. Group by `severity`: **critical** > **high** > **medium** > **low**.\n3. For each finding note: the affected dependency + current version and the upgrade target\n   — both are in the `evidence.explanation` (the `Affected dependencies` and\n   `Recommended fix` lines) — plus the CVE identifier (`id`) and `name`.\n4. Prioritize critical and high severity for immediate remediation.\n\nReport schema (one object per CVE):\n```json\n[\n  {\n    \"id\": \"CVE-2022-22965\",\n    \"name\": \"Spring Framework RCE via Data Binding on JDK 9+\",\n    \"status\": \"FOUND\",\n    \"category\": \"CVE\",\n    \"severity\": \"critical\",\n    \"storyPoint\": 1,\n    \"evidence\": {\n      \"files\": [\"pom.xml:20\"],\n      \"explanation\": \"[CVE-2022-22965](https:\u002F\u002Fgithub.com\u002Fadvisories\u002FGHSA-36p3-wjmg-h94x): Spring Framework RCE via Data Binding on JDK 9+\\n\\nSeverity: CRITICAL\\n\\nAffected dependencies:\\n  - org.springframework:spring-core@5.3.9\\n\\nRecommended fix:\\n  - Upgrade org.springframework:spring-core to 5.3.18 or later\"\n    }\n  }\n]\n```\n\n> A finding whose `explanation` contains **no** `Recommended fix` line has no upstream patch\n> available (unfixable). An empty array (`[]`) means no known CVEs were found.\n\n### Step 4: Update vulnerable dependencies to secure versions\n\nFor each vulnerable dependency, update to a secure version (the upgrade target from the\n`Recommended fix` line) using the appropriate method.\n\n**Fix principles** (consistent with the security agent):\n- **Direct upgrade, not a framework upgrade.** Bump the affected dependency **directly** to\n  the patched version — no stepping through intermediate versions. CVE remediation is a\n  targeted patch, not a version migration.\n- **Respect a pinned target version.** If the user's request pins a target version\u002Fline for\n  a dependency (e.g. \"upgrade Spring Framework to 6.2.18\"), remediate **within** it — a\n  patch bump within that line to clear a CVE is fine. Only when no in-range patch exists do\n  you leave it — record it as a follow-up (Step 7.3) rather than forcing a major jump.\n- **Minimal changes.** Change only what is needed to clear the CVE. Do not refactor,\n  reformat, or make unrelated edits.\n- **Batch related fixes.** When a single upgrade clears several CVEs (e.g. a shared\n  BOM\u002Fparent), apply it once for all of them.\n\n#### Java — Maven (pom.xml)\n1. Find the version (may be in `\u003Cproperties>`, `\u003CdependencyManagement>`, or inline `\u003Cversion>`).\n2. Update to the patched version (or the latest stable if the patched version is also outdated).\n3. If the version is inherited from a parent POM (e.g. Spring Boot starter parent), update the parent version instead.\n\n> **Where CVEs hide — check BOM overrides first.** Pay special attention to dependencies\n> that explicitly declare a `\u003Cversion>` tag *overriding* a managed BOM (e.g. the Spring Boot\n> dependencies BOM). These inline overrides bypass BOM management and are the most common\n> source of missed CVE vulnerabilities — bumping the BOM\u002Fparent version alone will not patch\n> them. Cross-check the `\u003Cversion>` tags in each sub-module's `pom.xml` against the\n> vulnerable dependencies and update the override (or remove it to fall back to the managed\n> version) as needed.\n\n#### Java — Gradle (build.gradle)\n1. Find the version in `build.gradle` or `gradle.properties`.\n2. Update the version string to the patched version.\n3. If using a BOM or platform dependency, update the BOM version.\n\n#### .NET (csproj)\n1. Find `\u003CPackageReference Include=\"PackageName\" Version=\"X.Y.Z\" \u002F>`.\n2. Update the `Version` attribute to the patched version.\n3. If versions are managed centrally via `Directory.Packages.props`, update them there instead.\n4. Alternatively: `dotnet add package PackageName --version X.Y.Z`.\n\n#### Node.js — npm \u002F pnpm \u002F yarn (package.json)\n1. Find the version in `package.json` under `dependencies` or `devDependencies`.\n2. Update the range to the patched version (e.g. `\"^4.17.21\"`), then **regenerate the\n   lockfile** so the resolved transitive versions update too:\n   - npm: `npm install pkg@X.Y.Z` (or edit `package.json` then `npm install`)\n   - pnpm: `pnpm add pkg@X.Y.Z` (or edit then `pnpm install`)\n   - yarn: `yarn add pkg@X.Y.Z` (or edit then `yarn install`)\n3. **Transitive dependencies** (the common case for npm CVEs) are pulled in by other\n   packages and have no direct entry in `package.json`. Force a patched version with an\n   override instead of a direct edit:\n   - npm: add an `\"overrides\"` block (`{ \"overrides\": { \"pkg\": \"X.Y.Z\" } }`)\n   - pnpm: add `\"pnpm\": { \"overrides\": { \"pkg\": \"X.Y.Z\" } }`\n   - yarn (Berry): add a `\"resolutions\"` block\n   Then re-run the install command to regenerate the lockfile.\n\n### Step 5: Re-scan to confirm issues are resolved (self-check)\n\nRe-run the Step 2 scan and write the output with the next sequential number. Then compare\nthe new report against the previous one and **exit the loop** when ANY of these hold:\n\n- **Clean** — the report is an empty array (`[]`). Success.\n- **Only unfixable CVEs remain** — every remaining finding has no `Recommended fix` line in\n  its `explanation` (no upstream patch available). Success; record these in the summary as\n  accepted\u002Funfixable.\n- **No progress** — after a fix attempt the **same** fixable CVEs persist — compare by CVE\n  **id**, not by raw count. A fix that resolves the targeted CVE but surfaces a *different,\n  newly-disclosed* CVE is **progress, not a stall**: bump to the highest recommended\n  **released** version and keep going. Treat it as no-progress (and stop) only when the same\n  CVE id keeps reappearing despite a fix, **or** when the only way forward is a recommended\n  version that is **not yet released** (no installable artifact) — record those as\n  accepted\u002Fstuck in the summary. Stop here rather than looping forever.\n\n> **Fixable vs. unfixable — important.** A CVE is *unfixable* **only** when it has no\n> `Recommended fix` line (no patched version exists upstream). A CVE that requires a\n> **major-version upgrade** still has a patched version, so it is **fixable** — leaving it\n> means remediation is **incomplete** (the *No progress* \u002F deferred path, surfaced as a\n> Step 7 follow-up), **not** the *Only unfixable* success. Treat the run as fully successful\n> only when **no fixable CVEs remain**. This matches the security agent's rule: do not claim\n> success while patchable CVEs are still outstanding.\n\nOtherwise — if the count dropped but fixable CVEs (those with a `Recommended fix`) still\nremain — return to Step 4, fix the newly reported CVEs, and re-scan, incrementing the report\nnumber each time. This loop is the implementer's own confirmation — not a separate gate.\n\n### Step 6: Build and test after updates\n\nUse the build command resolved in Step 1.\n\n```shell\n.\u002Fmvnw clean verify     # Maven\n.\u002Fgradlew clean build   # Gradle\ndotnet build && dotnet test   # .NET\nnpm install && npm test       # Node.js (npm) — use pnpm\u002Fyarn equivalents as appropriate\n```\n\nVerify the build completes, existing tests pass, and the app starts (if applicable). If the\nbuild fails due to breaking API changes from an upgrade, apply the necessary code fixes and\nre-run the build. **Cap this at 3 fix attempts** — if the build still fails, stop, keep the\ndependency changes that scanned clean, and document the build issue in the summary (Step 7)\nrather than looping. Keep this within the Implementation phase — it is a build recheck, not\na new phase.\n\n### Step 7: Document the changes\n\n1. Write a summary of CVEs fixed (CVE\u002FGHSA ID, dependency + version, patched version,\n   severity, brief description) to `{{ARTIFACT_PATH}}\u002Fcve-fix-summary.md`. Note whether the\n   scan used the `appmod-cve-assessment` tool or the LLM-only fallback.\n2. Run a final scan and write it as the final report\n   (`{{ARTIFACT_PATH}}\u002Ffinal-cve-report.json`). All intermediate numbered reports are\n   preserved for audit history.\n3. If any fix requires a **major** version upgrade (breaking-change risk), record it as a\n   follow-up item in the summary rather than forcing it silently — and surface it to the\n   coordinator so dependent tasks and reviews are aware.\n\n---\n\n## Environment Setup\n\n### Prerequisites\n\n1. **Build tool** (one of): `mvn` \u002F `mvnw`, `gradle` \u002F `gradlew`, or `dotnet` — to apply\n   fixes and rebuild.\n2. **Node.js package manager** (`npm` \u002F `pnpm` \u002F `yarn`) — only needed to apply Node.js fixes.\n3. **GitHub token** (optional, recommended for the tool path — raises the GitHub Security\n   Advisories rate limit from 60 to 5000 req\u002Fhr): export `GITHUB_TOKEN` (or `GITHUB_PAT`).\n   The `appmod-cve-assessment` tool reads it from the environment when present.\n\n---\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `appmod-cve-assessment` not available | Tool not registered in the current runtime | Use the **LLM-only fallback** (Step 2c) |\n| Tool rejects the `ecosystem` | The tool does not accept this project's ecosystem | Use the **LLM-only fallback** (Step 2c) |\n| Rate limit \u002F HTTP 403 from the tool | Too many advisory API calls without auth | Set `GITHUB_TOKEN` \u002F `GITHUB_PAT` in the environment |\n| Empty \u002F malformed coordinate rejected | Wrong coordinate format | maven: `groupId:artifactId:version`; nuget: `PackageName@version`; npm: `package-name@version` |\n| `Maven\u002FGradle not found` | Build tool not in PATH | Install or ensure the wrapper (`mvnw`\u002F`gradlew`) exists |\n| `dotnet CLI not found` | .NET SDK not installed | Install .NET SDK |\n| `No supported project files found` | Unrecognized project type | Ensure the root has pom.xml, build.gradle, *.sln, *.csproj, packages.config, or package.json |\n\n---\n\n## Troubleshooting\n\n### List dependencies manually (to build the coordinate list for Step 2a)\n\n```bash\n# Maven\nmvn dependency:list -DoutputFile=deps.txt -q\ngrep -E \"^   [a-zA-Z]\" deps.txt | sed 's\u002F^   \u002F\u002F' | awk -F: '{print $1\":\"$2\":\"$4}' > coordinates.txt\n\n# Gradle\n.\u002Fgradlew dependencies --configuration compileClasspath > deps.txt\n\n# .NET\ndotnet list package > deps.txt\n\n# Node.js (npm) — from package-lock.json (lockfileVersion 2\u002F3)\njq -r '.packages | to_entries[] | select(.key|startswith(\"node_modules\u002F\")) | select(.value.version) | \"\\(.key|sub(\".*node_modules\u002F\";\"\"))@\\(.value.version)\"' package-lock.json | sort -u > coordinates.txt\n```\n\nFeed the resulting coordinates (with their file\u002Fline locations) into the\n`appmod-cve-assessment` tool, or — when the tool is unavailable — into the LLM-only\nfallback scan.\n\n### Rate limit errors\n\nSet a GitHub token in the environment so the tool authenticates its advisory API calls:\n```bash\nexport GITHUB_TOKEN=$(gh auth token)\n```\n","# CVE Remediation\n\nThis skill is the implementer-owned scan→fix→verify loop for dependency CVEs. It is\ndispatched as an **execute-phase** task to an implementer role (backend), runs\n**per group**, and produces patched dependency manifests plus an audit trail.\n\n## Ownership & boundaries\n\n- **This is implementer work, not audit work.** The `security` role audits and escalates\n  but does NOT fix. This skill performs the *fix* (editing dependency manifests), so it is\n  owned by the implementer who owns those manifests — not by the `security` role.\n- **The rebuild\u002Fre-scan is a self-check, not a quality gate.** It is the implementer\n  confirming their own change took — analogous to compiling after editing code. It must\n  NOT masquerade as the project's security gate, and it stays within the **Implementation**\n  phase label. The independent gates (`smoke-test`, `runtime-validation`, and the\n  coordinator's verdict rules) remain separate and unchanged.\n- **Scope is per-group.** Each in-scope group has its own dependency manifests; remediate\n  the manifests belonging to the dispatched group.\n\n## Scanning: tool-first with LLM fallback\n\nCVE scanning is performed by the shared **`appmod-cve-assessment`** tool, which all\nmodernization surfaces (VS Code extension, IntelliJ plugin, Copilot CLI plugin, MCP server)\nexpose. It queries the GitHub Security Advisories API for a set of package ecosystems and\nwrites structured findings to a result file. Using the shared tool keeps scanning\nconsistent across products and emits the standard telemetry.\n\n- **Primary — `appmod-cve-assessment` tool** (preferred whenever it applies). Consult the\n  tool's own `ecosystem` parameter for the ecosystems it currently accepts — treat that\n  schema as the source of truth rather than assuming a fixed list, since it may grow over\n  time.\n- **Fallback — LLM-only scan** when the tool path does **not** apply. This covers **two**\n  cases, both signalled by the tool itself:\n  1. **Tool unavailable** — `appmod-cve-assessment` is not registered in the current\n     runtime (e.g. a standalone Copilot CLI \u002F rearchitecture runtime without the tool wired\n     up).\n  2. **Ecosystem not accepted** — the tool rejects the project's ecosystem (its\n     `ecosystem` parameter does not accept it \u002F input validation fails). Whichever\n     ecosystems the tool does not yet cover fall here automatically.\n\n  In either case the model identifies known CVEs for the listed dependency versions from\n  its own knowledge and writes the **same findings schema** (see Step 3). This is\n  best-effort — model knowledge has a training cutoff and may miss recent advisories — so\n  prefer the tool whenever it applies.\n\nMap the project's package manager to the ecosystem identifier the tool accepts (for example,\nMaven and Gradle both resolve to the same JVM identifier). If the tool does not accept any\nidentifier for the project's ecosystem, go straight to the LLM-only fallback.\n\n## Artifact path\n\nThe coordinator provides an artifact path for this task. Throughout this skill,\n`{{ARTIFACT_PATH}}` refers to that directory. Write all reports and the fix summary there.\n\n## Workflow\n\n### Step 1: Precheck — detect project type and build tool\n\nBefore running any build or dependency commands, verify that the required build tool is\navailable.\n\n1. **Detect the project type** by examining the group's project root:\n\n   | File(s) found | Project type | Tool ecosystem id (common mapping) |\n   |---|---|---|\n   | `pom.xml` | Maven (Java) | maven |\n   | `build.gradle` or `build.gradle.kts` | Gradle (Java) | maven |\n   | `*.sln` | .NET solution | nuget |\n   | `*.csproj` | C# project | nuget |\n   | `packages.config` | Legacy .NET | nuget |\n   | `package.json` | Node.js (npm\u002Fpnpm\u002Fyarn) | npm |\n   | any other manifest (e.g. `requirements.txt`, `pyproject.toml`, `go.mod`, `Cargo.toml`, `Gemfile`, `composer.json`) | other | whatever the tool accepts, else LLM-only fallback (Step 2c) |\n\n   > The ecosystem ids above are the **common** mappings at the time of writing. The tool's\n   > `ecosystem` parameter is authoritative — if it accepts an identifier for the project's\n   > ecosystem, use the tool; otherwise use the LLM-only fallback.\n\n2. **Resolve the build command** — prefer project-local wrappers over global tools:\n\n   | Project type | Check order (prefer first match) | Fallback |\n   |---|---|---|\n   | Maven | `.\u002Fmvnw` (Unix) or `mvnw.cmd` (Windows) | `mvn` on PATH |\n   | Gradle | `.\u002Fgradlew` (Unix) or `gradlew.bat` (Windows) | `gradle` on PATH |\n   | .NET | `dotnet --version` | — |\n   | Node.js | `npm` \u002F `pnpm` \u002F `yarn` (only needed to *apply* fixes) | — |\n\n3. **If the required tool is not found**, stop and report the error. Do not proceed.\n\n### Step 2: Scan dependencies against CVE databases\n\nThe scan also serves as **detection**: a clean result (an empty findings array) means the\ngroup has no known dependency CVEs and the task exits cheaply.\n\n#### Step 2a: Collect dependency coordinates and locations\n\nExtract the dependency coordinates for the group, capturing for each one the\nworkspace-relative file path and 1-based line number where it is declared. Prefer\n**resolved** versions (which include transitive dependencies — the common source of CVEs)\nand fall back to manifest-declared versions when a resolver is unavailable.\n\n| Ecosystem | Coordinate format | Where to read |\n|---|---|---|\n| `maven` | `groupId:artifactId:version` | `mvn dependency:list` \u002F `gradle dependencies` (resolved), else `pom.xml` \u002F `build.gradle` \u002F `gradle.properties` |\n| `nuget` | `PackageName@version` | `dotnet list package` (resolved), else `*.csproj` \u002F `Directory.Packages.props` \u002F `packages.config` |\n| `npm` | `package-name@version` (e.g. `express@4.18.2`, `@angular\u002Fcore@16.0.0`) | lockfile (`package-lock.json`, `pnpm-lock.yaml`, `yarn.lock` — resolved, includes transitives), else `package.json` |\n\n> These are the common ecosystems and their coordinate formats. For the authoritative\n> coordinate format expected by each ecosystem the tool accepts, consult the tool's\n> `dependencies` \u002F `ecosystem` parameter descriptions. For an ecosystem the tool does not\n> accept (LLM-only fallback), use that ecosystem's natural coordinate form (e.g.\n> `package==version` for Python) read from its manifest or lockfile.\n\n#### Step 2b: Scan with the `appmod-cve-assessment` tool (primary)\n\nCall `appmod-cve-assessment` with:\n\n- `cveResultFilePath` — an **absolute** path of `{{ARTIFACT_PATH}}\u002Fcve-report-N.json`\n  (start at `1`, increment each scan to preserve history).\n- `ecosystem` — the identifier the tool accepts for the project's package ecosystem (see\n  the tool's `ecosystem` parameter for the accepted values).\n- `dependencies` — the coordinate array from Step 2a.\n- `dependencyLocations` — `{ coordinate, filePath, lineNumber }` for each dependency.\n\nThe tool fetches CVEs, writes the findings JSON to `cveResultFilePath`, and returns a\nsummary message. For very large dependency sets, scan in batches, writing each batch to its\nown numbered report. **If the tool is unavailable, or it rejects the `ecosystem` as not\naccepted, switch to the LLM-only fallback (Step 2c).**\n\n#### Step 2c: LLM-only scan (fallback — tool unavailable OR ecosystem not accepted)\n\nUse this path when the tool cannot do the scan — either because `appmod-cve-assessment` is\n**not available** in the current runtime, or because the tool **does not accept** the\nproject's ecosystem (its `ecosystem` parameter rejects it). Perform the scan from model\nknowledge instead: for each coordinate + version, identify known CVEs and write the **same\nfindings schema** (see Step 3) to `{{ARTIFACT_PATH}}\u002Fcve-report-N.json`. Note in the fix\nsummary that the LLM fallback was used (and why), since it is best-effort and may miss\nrecent advisories.\n\n**Large projects**: if scanning is slow, run it in a **background (async) terminal** and,\nwhile it runs, review and fix vulnerabilities already known from earlier runs. Address any\nnewly discovered issues once it completes.\n\n### Step 3: Review the report and identify vulnerable dependencies\n\nParse the latest `cve-report-N.json` and examine each finding:\n\n1. Read the report file and parse the JSON (an array of findings; `[]` means no CVEs).\n2. Group by `severity`: **critical** > **high** > **medium** > **low**.\n3. For each finding note: the affected dependency + current version and the upgrade target\n   — both are in the `evidence.explanation` (the `Affected dependencies` and\n   `Recommended fix` lines) — plus the CVE identifier (`id`) and `name`.\n4. Prioritize critical and high severity for immediate remediation.\n\nReport schema (one object per CVE):\n```json\n[\n  {\n    \"id\": \"CVE-2022-22965\",\n    \"name\": \"Spring Framework RCE via Data Binding on JDK 9+\",\n    \"status\": \"FOUND\",\n    \"category\": \"CVE\",\n    \"severity\": \"critical\",\n    \"storyPoint\": 1,\n    \"evidence\": {\n      \"files\": [\"pom.xml:20\"],\n      \"explanation\": \"[CVE-2022-22965](https:\u002F\u002Fgithub.com\u002Fadvisories\u002FGHSA-36p3-wjmg-h94x): Spring Framework RCE via Data Binding on JDK 9+\\n\\nSeverity: CRITICAL\\n\\nAffected dependencies:\\n  - org.springframework:spring-core@5.3.9\\n\\nRecommended fix:\\n  - Upgrade org.springframework:spring-core to 5.3.18 or later\"\n    }\n  }\n]\n```\n\n> A finding whose `explanation` contains **no** `Recommended fix` line has no upstream patch\n> available (unfixable). An empty array (`[]`) means no known CVEs were found.\n\n### Step 4: Update vulnerable dependencies to secure versions\n\nFor each vulnerable dependency, update to a secure version (the upgrade target from the\n`Recommended fix` line) using the appropriate method.\n\n**Fix principles** (consistent with the security agent):\n- **Direct upgrade, not a framework upgrade.** Bump the affected dependency **directly** to\n  the patched version — no stepping through intermediate versions. CVE remediation is a\n  targeted patch, not a version migration.\n- **Respect a pinned target version.** If the user's request pins a target version\u002Fline for\n  a dependency (e.g. \"upgrade Spring Framework to 6.2.18\"), remediate **within** it — a\n  patch bump within that line to clear a CVE is fine. Only when no in-range patch exists do\n  you leave it — record it as a follow-up (Step 7.3) rather than forcing a major jump.\n- **Minimal changes.** Change only what is needed to clear the CVE. Do not refactor,\n  reformat, or make unrelated edits.\n- **Batch related fixes.** When a single upgrade clears several CVEs (e.g. a shared\n  BOM\u002Fparent), apply it once for all of them.\n\n#### Java — Maven (pom.xml)\n1. Find the version (may be in `\u003Cproperties>`, `\u003CdependencyManagement>`, or inline `\u003Cversion>`).\n2. Update to the patched version (or the latest stable if the patched version is also outdated).\n3. If the version is inherited from a parent POM (e.g. Spring Boot starter parent), update the parent version instead.\n\n> **Where CVEs hide — check BOM overrides first.** Pay special attention to dependencies\n> that explicitly declare a `\u003Cversion>` tag *overriding* a managed BOM (e.g. the Spring Boot\n> dependencies BOM). These inline overrides bypass BOM management and are the most common\n> source of missed CVE vulnerabilities — bumping the BOM\u002Fparent version alone will not patch\n> them. Cross-check the `\u003Cversion>` tags in each sub-module's `pom.xml` against the\n> vulnerable dependencies and update the override (or remove it to fall back to the managed\n> version) as needed.\n\n#### Java — Gradle (build.gradle)\n1. Find the version in `build.gradle` or `gradle.properties`.\n2. Update the version string to the patched version.\n3. If using a BOM or platform dependency, update the BOM version.\n\n#### .NET (csproj)\n1. Find `\u003CPackageReference Include=\"PackageName\" Version=\"X.Y.Z\" \u002F>`.\n2. Update the `Version` attribute to the patched version.\n3. If versions are managed centrally via `Directory.Packages.props`, update them there instead.\n4. Alternatively: `dotnet add package PackageName --version X.Y.Z`.\n\n#### Node.js — npm \u002F pnpm \u002F yarn (package.json)\n1. Find the version in `package.json` under `dependencies` or `devDependencies`.\n2. Update the range to the patched version (e.g. `\"^4.17.21\"`), then **regenerate the\n   lockfile** so the resolved transitive versions update too:\n   - npm: `npm install pkg@X.Y.Z` (or edit `package.json` then `npm install`)\n   - pnpm: `pnpm add pkg@X.Y.Z` (or edit then `pnpm install`)\n   - yarn: `yarn add pkg@X.Y.Z` (or edit then `yarn install`)\n3. **Transitive dependencies** (the common case for npm CVEs) are pulled in by other\n   packages and have no direct entry in `package.json`. Force a patched version with an\n   override instead of a direct edit:\n   - npm: add an `\"overrides\"` block (`{ \"overrides\": { \"pkg\": \"X.Y.Z\" } }`)\n   - pnpm: add `\"pnpm\": { \"overrides\": { \"pkg\": \"X.Y.Z\" } }`\n   - yarn (Berry): add a `\"resolutions\"` block\n   Then re-run the install command to regenerate the lockfile.\n\n### Step 5: Re-scan to confirm issues are resolved (self-check)\n\nRe-run the Step 2 scan and write the output with the next sequential number. Then compare\nthe new report against the previous one and **exit the loop** when ANY of these hold:\n\n- **Clean** — the report is an empty array (`[]`). Success.\n- **Only unfixable CVEs remain** — every remaining finding has no `Recommended fix` line in\n  its `explanation` (no upstream patch available). Success; record these in the summary as\n  accepted\u002Funfixable.\n- **No progress** — after a fix attempt the **same** fixable CVEs persist — compare by CVE\n  **id**, not by raw count. A fix that resolves the targeted CVE but surfaces a *different,\n  newly-disclosed* CVE is **progress, not a stall**: bump to the highest recommended\n  **released** version and keep going. Treat it as no-progress (and stop) only when the same\n  CVE id keeps reappearing despite a fix, **or** when the only way forward is a recommended\n  version that is **not yet released** (no installable artifact) — record those as\n  accepted\u002Fstuck in the summary. Stop here rather than looping forever.\n\n> **Fixable vs. unfixable — important.** A CVE is *unfixable* **only** when it has no\n> `Recommended fix` line (no patched version exists upstream). A CVE that requires a\n> **major-version upgrade** still has a patched version, so it is **fixable** — leaving it\n> means remediation is **incomplete** (the *No progress* \u002F deferred path, surfaced as a\n> Step 7 follow-up), **not** the *Only unfixable* success. Treat the run as fully successful\n> only when **no fixable CVEs remain**. This matches the security agent's rule: do not claim\n> success while patchable CVEs are still outstanding.\n\nOtherwise — if the count dropped but fixable CVEs (those with a `Recommended fix`) still\nremain — return to Step 4, fix the newly reported CVEs, and re-scan, incrementing the report\nnumber each time. This loop is the implementer's own confirmation — not a separate gate.\n\n### Step 6: Build and test after updates\n\nUse the build command resolved in Step 1.\n\n```shell\n.\u002Fmvnw clean verify     # Maven\n.\u002Fgradlew clean build   # Gradle\ndotnet build && dotnet test   # .NET\nnpm install && npm test       # Node.js (npm) — use pnpm\u002Fyarn equivalents as appropriate\n```\n\nVerify the build completes, existing tests pass, and the app starts (if applicable). If the\nbuild fails due to breaking API changes from an upgrade, apply the necessary code fixes and\nre-run the build. **Cap this at 3 fix attempts** — if the build still fails, stop, keep the\ndependency changes that scanned clean, and document the build issue in the summary (Step 7)\nrather than looping. Keep this within the Implementation phase — it is a build recheck, not\na new phase.\n\n### Step 7: Document the changes\n\n1. Write a summary of CVEs fixed (CVE\u002FGHSA ID, dependency + version, patched version,\n   severity, brief description) to `{{ARTIFACT_PATH}}\u002Fcve-fix-summary.md`. Note whether the\n   scan used the `appmod-cve-assessment` tool or the LLM-only fallback.\n2. Run a final scan and write it as the final report\n   (`{{ARTIFACT_PATH}}\u002Ffinal-cve-report.json`). All intermediate numbered reports are\n   preserved for audit history.\n3. If any fix requires a **major** version upgrade (breaking-change risk), record it as a\n   follow-up item in the summary rather than forcing it silently — and surface it to the\n   coordinator so dependent tasks and reviews are aware.\n\n---\n\n## Environment Setup\n\n### Prerequisites\n\n1. **Build tool** (one of): `mvn` \u002F `mvnw`, `gradle` \u002F `gradlew`, or `dotnet` — to apply\n   fixes and rebuild.\n2. **Node.js package manager** (`npm` \u002F `pnpm` \u002F `yarn`) — only needed to apply Node.js fixes.\n3. **GitHub token** (optional, recommended for the tool path — raises the GitHub Security\n   Advisories rate limit from 60 to 5000 req\u002Fhr): export `GITHUB_TOKEN` (or `GITHUB_PAT`).\n   The `appmod-cve-assessment` tool reads it from the environment when present.\n\n---\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `appmod-cve-assessment` not available | Tool not registered in the current runtime | Use the **LLM-only fallback** (Step 2c) |\n| Tool rejects the `ecosystem` | The tool does not accept this project's ecosystem | Use the **LLM-only fallback** (Step 2c) |\n| Rate limit \u002F HTTP 403 from the tool | Too many advisory API calls without auth | Set `GITHUB_TOKEN` \u002F `GITHUB_PAT` in the environment |\n| Empty \u002F malformed coordinate rejected | Wrong coordinate format | maven: `groupId:artifactId:version`; nuget: `PackageName@version`; npm: `package-name@version` |\n| `Maven\u002FGradle not found` | Build tool not in PATH | Install or ensure the wrapper (`mvnw`\u002F`gradlew`) exists |\n| `dotnet CLI not found` | .NET SDK not installed | Install .NET SDK |\n| `No supported project files found` | Unrecognized project type | Ensure the root has pom.xml, build.gradle, *.sln, *.csproj, packages.config, or package.json |\n\n---\n\n## Troubleshooting\n\n### List dependencies manually (to build the coordinate list for Step 2a)\n\n```bash\n# Maven\nmvn dependency:list -DoutputFile=deps.txt -q\ngrep -E \"^   [a-zA-Z]\" deps.txt | sed 's\u002F^   \u002F\u002F' | awk -F: '{print $1\":\"$2\":\"$4}' > coordinates.txt\n\n# Gradle\n.\u002Fgradlew dependencies --configuration compileClasspath > deps.txt\n\n# .NET\ndotnet list package > deps.txt\n\n# Node.js (npm) — from package-lock.json (lockfileVersion 2\u002F3)\njq -r '.packages | to_entries[] | select(.key|startswith(\"node_modules\u002F\")) | select(.value.version) | \"\\(.key|sub(\".*node_modules\u002F\";\"\"))@\\(.value.version)\"' package-lock.json | sort -u > coordinates.txt\n```\n\nFeed the resulting coordinates (with their file\u002Fline locations) into the\n`appmod-cve-assessment` tool, or — when the tool is unavailable — into the LLM-only\nfallback scan.\n\n### Rate limit errors\n\nSet a GitHub token in the environment so the tool authenticates its advisory API calls:\n```bash\nexport GITHUB_TOKEN=$(gh auth token)\n```\n",{"name":5,"description":7},"main","a9c9469d86e9dc078018e8fb391abc7744088078","plugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fcve-remediation",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":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add microsoft\u002Fgithub-copilot-modernization --skill cve-remediation",{"tool":57,"command":58},"bunx","bunx skills add microsoft\u002Fgithub-copilot-modernization --skill cve-remediation",{"tool":60,"command":61},"pnpm","pnpm dlx skills add microsoft\u002Fgithub-copilot-modernization --skill cve-remediation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fcve-remediation\u002FSKILL.md",true,[],[66,83,100,117,134,146],{"skillNo":67,"name":68,"nameZh":69,"description":70,"descriptionZh":71,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":72,"categories":73,"keywords":80,"publishedAt":37},"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",[74,77],{"categoryNo":75,"categoryName":76,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":78,"categoryName":79,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[81,82],"test","verify test baseline",{"skillNo":84,"name":85,"nameZh":86,"description":87,"descriptionZh":88,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":89,"categories":90,"keywords":97,"publishedAt":37},"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",[91,94],{"categoryNo":92,"categoryName":93,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRK82SYBDNZ3SG8YAH5A3D","凭证与密钥管理",{"categoryNo":95,"categoryName":96,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",[98,99],"team request","infrastructure",{"skillNo":101,"name":102,"nameZh":103,"description":104,"descriptionZh":105,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":106,"categories":107,"keywords":114,"publishedAt":37},"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",[108,111],{"categoryNo":109,"categoryName":110,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0DBCRG4XGJMB6QQEP11","编码任务委派",{"categoryNo":112,"categoryName":113,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[115,116],"team charters","architecture",{"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":37},"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",[125,128],{"categoryNo":126,"categoryName":127,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":129,"categoryName":130,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",[132,133],"struts to spring","boot",{"skillNo":135,"name":136,"nameZh":137,"description":138,"descriptionZh":139,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":140,"categories":141,"keywords":144,"publishedAt":37},"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",[142,143],{"categoryNo":126,"categoryName":127,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":129,"categoryName":130,"taxonomyType":23,"taxonomyTypeDesc":24},[133,145],"spring boot scaffolding",{"skillNo":147,"name":148,"nameZh":149,"description":150,"descriptionZh":151,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":152,"categories":153,"keywords":160,"publishedAt":37},"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",[154,157],{"categoryNo":155,"categoryName":156,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀",{"categoryNo":158,"categoryName":159,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C31AVFVV99RWJEGF9PS85F","项目经理",[161],"sharing learnings"]