用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/microsoft/github-copilot-modernization --skill create-modernization-plan命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Convert an arbitrary CSV report (e.g. a Black Duck export or a custom migration-issue inventory) into a schema-valid assessment `report.json` the modernization pipeline can consume — so it appears in the assessment UI and migration solutions resolve automatically. This skill is LLM-driven: you read and interpret the CSV yourself and author `report.json` by hand against the schema. A small helper script only does deterministic lookups (migration solutions, the ruleId for a solution) and validates the finished report. There is NO "convert everything" script and NO assumed column layout. Triggers: "convert csv to assessment report", "import csv report", "turn this spreadsheet into a report.json", "Black Duck csv to report", "build report.json from csv", "migrate a third-party assessment export". NOT for: AppCAT-style analysis from source (use `assessment`), generating a modernization plan (use `create-modernization-plan`), or editing a report.json the pipeline already produced.
Create a test baseline for the project to be modernized. The baseline will be used for later verification of modernization tasks.
Run multi-layer integration tests for modernized Java applications. Supports 4 layers - Layer 1 (TestContainers), Layer 2 (Smoke Tests), Layer 3 (Azure Integration), Layer 4 (Behavioral Comparison). Java projects only - skip if source code is not Java. Triggers: "generate integration tests", "add integration tests", "create Layer 1 tests", "create Layer 2 tests" NOT for: unit tests, performance tests, load tests.
正在显示 SKILL.md
| name | create-modernization-plan |
| description | Create a modernization plan to migrate the project to Azure |
This skill is used to create a modernization plan to migrate the a given project to Azure
Read the supported patterns file based on the language:
supported-patterns-dotnet.mdsupported-patterns-java.md. Default option.These files contain the list of supported task patterns with and without skill definitions. If a skill is available, the skill location should be set to builtin.
Given the user input, do this:
Double Check the issues IMPORTANT:
Load context: Retrieve information for plan, you can read
Clarification and Questionnaire (only when the ask_user tool is available): If there are any open issues or ambiguities that need user input, use the following steps to answer any questions. Also ask the questions outlined in questionnaire.md via ask_user tool to scope the modernization plan. For questionnaire questions, if the user input already provides the answer, skip asking that question and use the provided information as the answer.
ask_user tool to ask the user each clarification question directly. Wait for the user's response before proceeding.ask_user tool is not available, skip this step entirely and proceed to plan generation using best-effort defaults.Generate plan and tasks: Generate plan.md and tasks.json using the appropriate templates:
Template Selection:
Plan Generation:
Clarification Outcomes in Plan: Incorporate all clarification answers from steps 3–4 into plan.md and tasks.json:
requirements or description in tasks.json based on the answer. Do NOT create a separate task for an implementation detail—only add a new task when the answer introduces entirely new migration scope.plan.md:
- [x] Q: ... → A: ...- [ ] ...IMPORTANT: The plan.md should NOT contain the detailed task breakdown. Those details go into tasks.json for better tracking and programmatic access.
Task Breakdown Rules: When creating tasks for tasks.json and plan.md:
Rulebook Compliance Validation (only when rulebook attachments are present):
After generating the plan and tasks, call skill validate-rulebook-compliance to validate that the plan tasks cover the rulebook rules:
${modernization-work-folder}/.metadata/tasks.json${modernization-work-folder}/rulebook-compliance.md${modernization-work-folder}/plan.md and ${modernization-work-folder}/.metadata/tasks.json.${modernization-work-folder}/rulebook-compliance.md explaining that validation was skipped or failed and why, if known.Summary & Confirmation (only when the ask_user tool is available):
ask_user that includes:
ask_user tool is not available, skip this step entirely.ask_user, answers incorporated into plan.md and tasks.json, and outcomes recorded in the "## Open Questions & Questionnaire" section of plan.md${modernization-work-folder}assessment-report is provided, the task description must identify which specific issues from the assessment report are addressed by that task (e.g., "Addresses issues: , ")skill tool description..github/skills/ versus other skills, MUST use the one defined in project.Integration Test Task Rules: Add an integration test task when EITHER of these conditions is met:
When an integration test task is included:
./infra/infra-config.md.Baseline Task Rules: A setupBaseline task is mandatory whenever an integrationTest task is included in the plan.
snapshotFolder to the project's main source directory (relative to project root).dependencies array or omit it). Upgrade/transform tasks depend on the previous upgrade/transform task in sequence. Only the integrationTest verification task depends on ALL of: setupBaseline, infrastructure (if present), and all transform/upgrade tasks completing.Java Upgrade Task Guidelines: Only add an upgrade task if the user explicitly requests it. You must refer to the ./java-upgrade-guideline.md for specific rules and guidelines when creating Java upgrade tasks.
.NET Upgrade Task Guidelines: You must refer to the ./dotnet-upgrade-guideline.md for specific rules and guidelines when creating .NET upgrade tasks.
Deployment Task Rules:
containerization if deployment task already exists, deployment task will cover the containerization work if needed.Security Task Guidelines: The security task order should be after all the upgrade and transform tasks and before the deployment tasks in the generated plan. If the user provides specific security requirements, incorporate them into the security task; otherwise, use the default requirements from the template.
IMPORTANT: The upgrade task must be the first task in the task list because subsequent transform tasks (e.g., migrating to Azure services) depend on the upgraded runtime and project format.