[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69B3F4D052RWBT14NWKJ59V":3,"skill-same:01M69B3F4D052RWBT14NWKJ59V":72},{"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":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":17,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M69B3F4D052RWBT14NWKJ59V","create-test-baseline","项目测试基线创建","Create a test baseline for the project to be modernized. The baseline will be used for later verification of modernization tasks.","为待现代化改造的项目创建测试基线。该基线将用于后续验证现代化改造任务。","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\u002Fcreate-test-baseline\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],"test","create test baseline","modernization","2026-11-10 10:12:30",false,"---\nname: create-test-baseline\ndescription: Create a test baseline for the project to be modernized. The baseline will be used for later verification of modernization tasks.\n---\n\n# Goal\n\nProduce a precise, executable-quality **specification** of the application's externally observable behavior that must be preserved across migration. The output is `test-cases\u002Ftest-cases.md` plus the `test-cases\u002Ftestdata\u002F` fixtures it references — **no test code is generated in this phase**. The `verify-test-baseline` skill consumes this spec to generate `*PostMigrationIT` tests against the new implementation.\n\n## User Input\n\n- **migration-scope**: The scope of the migration, e.g. \"migrate from AWS S3 to Azure Blob Storage\", \"upgrade from Java 8 to Java 11\" etc.\n- **taskid**: Identifier for this baseline run, used to namespace the summary report.\n- **modernization-work-folder**: Folder under which the summary report is written.\n\n## Principles\n\n- The spec describes behavior at **external boundaries only** — HTTP endpoints, CLI commands, public API surfaces, published\u002Fconsumed events, message queues, scheduled tasks, webhooks. No service-specific SDK types, no backend implementation details.\n- The spec must be **precise enough to be transformed into test code mechanically**. Vague phrases (\"should return a reasonable error\", \"behaves as expected\") are defects, not descriptions.\n- All payload data is **externalized** under `test-cases\u002Ftestdata\u002F` as files. The spec references them by path (relative to `test-cases\u002F`). No inline byte literals, no hand-built JSON strings in the spec.\n- `test-cases\u002Ftest-cases.md` and `test-cases\u002Ftestdata\u002F` are **FROZEN** after this skill completes — never modified, renamed, moved, or deleted by subsequent phases.\n- **No `*BaselineIT` test code is produced.** The migration uses a replace strategy: any code that exercises the old implementation would either import old SDKs (which get deleted) or substitute internal services for the real entry point (which defeats the purpose). All executable tests are produced in the verify phase against the new implementation.\n- **The module is the test-case boundary.** In a multi-module project, each module that is in scope produces its own independent `test-cases.md` under that module's test source root. A module's `test-cases.md` MUST contain only test cases whose entry points belong to that module. Never place test cases for one module inside another module's `test-cases.md` (e.g. API-gateway module test cases must not appear in a backend-services module's spec).\n- **Skip modules with no migration-relevant resource access.** If a module's code does not directly interact with any resource being migrated (e.g. it never calls Azure\u002FAWS\u002FGCP SDKs, never accesses a database or message broker that is part of the migration scope), do not create `test-cases\u002F` for that module. A module that only serves as a thin HTTP frontend delegating to another module's backend services — without touching any migrated resource itself — does not need test cases.\n- **Mock cross-module and non-migration-related dependencies.** When a module's entry point calls a service provided by another module (e.g. a shared service in a sibling module) or an external service unrelated to the migration scope, mark that dependency as **mock** in the infra decision table. The `verify-test-baseline` skill handles the actual mock implementation.\n- **Respect existing integration tests.** Scan for existing IT \u002F integration \u002F E2E tests before writing new test cases. Do not duplicate coverage they already provide — reference them and fill gaps only. New test cases MUST follow the same conventions (naming, framework, assertions, fixtures, helpers) observed in existing tests.\n\n## Output Layout\n\nFrozen baseline artifacts live under a dedicated `test-cases\u002F` subdirectory of the project's **test source root** — the standard directory the build tool already uses for tests (e.g. `src\u002Ftest\u002F` for Maven\u002FGradle Java modules, `tests\u002F` for Python \u002F Node \u002F Go projects, `\u003Cmodule>\u002Ftest\u002F` for multi-module repos). In a multi-module repo, place artifacts under each module's own test source root. Do NOT invent a new top-level folder.\n\nThe per-run summary report lives under the modernization work folder, not the test source root.\n\n```\n\u003Ctest-source-root>\u002F\n└── test-cases\u002F                 # FROZEN — entire folder is the baseline spec bundle\n    ├── test-cases.md           # FROZEN — the full behavioral spec\n    ├── infra-decision-table.md # FROZEN — mock\u002Freal\u002Ftestcontainer decision per external dependency (Step 2)\n    └── testdata\u002F               # FROZEN — fixtures referenced by test-cases.md\n        ├── inputs\u002F             # raw input files (images, JSON payloads, CSV, etc.)\n        ├── expectations\u002F       # golden outputs at the application boundary\n        └── ...                 # other data as needed (configuration, seed data, etc.)\n\n${modernization-work-folder}\u002F${taskid}\u002F\n└── baseline-summary.md         # NEW — per-run summary (Step 6)\n```\n\nAll paths inside `test-cases.md` (e.g. `testdata\u002Finputs\u002Fsample.jpg`) are interpreted **relative to `\u003Ctest-source-root>\u002Ftest-cases\u002F`**, the folder that contains `test-cases.md`.\n\n## Workflow\n\n### Step 1: Inventory External Boundaries and Orchestration Entry Points\n\nScan the production source for everything that constitutes an external boundary or orchestration entry point. Record each one with file path, symbol, and **owning module** so it can be cross-checked in Step 2.\n\n**What qualifies as an entry point** (principle, not a closed list):\n\nAn entry point is any code location invoked by something **outside the application's own call graph** — the network, the OS, the runtime scheduler, a message broker, an external SDK consumer, etc. If the application does not call it itself, it is an entry point.\n\nTypical examples (use as hints, not as an exhaustive checklist — apply the principle above to whatever the codebase actually uses):\n\n- Network-facing handlers (HTTP \u002F REST \u002F gRPC \u002F GraphQL controllers, routers, webhook receivers)\n- Process-level entries (CLI commands, `main` methods, background workers)\n- Runtime-invoked callbacks (scheduled \u002F cron jobs, framework-triggered lifecycle hooks)\n- Broker-driven consumers (message-queue listeners, streaming \u002F pub-sub subscribers)\n- Container-invoked enterprise bean entry points (EJB remote\u002Flocal business methods, message-driven beans)\n- Published library \u002F SDK methods — public methods that are never called from within the same module (i.e. only invoked by external consumers)\n\nEvery orchestration entry point in the migration scope MUST be covered by at least one **end-to-end** test case that triggers it with realistic input and verifies the final observable outcome. Test cases that exercise only helpers called *within* an entry point do NOT count toward this requirement.\n\n**Multi-module scoping:** Group entry points by owning module. For each module, determine whether it directly accesses any resource being migrated (databases, message brokers, cloud storage, caches, etc. that are in the migration scope). Modules whose code never directly interacts with a migration-relevant resource are **out of scope** — do not produce test cases for them. Record the per-module decision (in-scope \u002F out-of-scope with reason) so it is auditable in the baseline summary.\n\n### Step 2: Inventory Existing Integration Tests\n\nScan the project's test source roots for existing IT \u002F integration \u002F E2E tests. Map each existing test to the entry points inventoried in Step 1 and note which coverage categories (happy-path, boundary, special-input, failure) it covers.\n\nAlso extract the project's testing conventions: naming patterns, test framework and assertion style, fixture\u002Ftest-data organization, helper utilities, and infrastructure setup (Testcontainers, embedded servers, mocks, etc.). These conventions are binding — the `verify-test-baseline` skill MUST follow them when generating test code.\n\nInclude the existing test inventory and extracted conventions in the baseline summary (Step 7).\n\n### Step 3: Write `test-cases.md`\n\nFor each **in-scope module** (as determined in Step 1), produce `\u003Cmodule-test-source-root>\u002Ftest-cases\u002Ftest-cases.md` using [test-cases-template.md](test-cases-template.md). Each module gets its own independent spec file containing only test cases for entry points that belong to that module.\n\n**Existing test alignment rules:**\n- If an existing test already covers an entry point + category, mark it as `covered-by-existing` in the spec with the test's fully qualified name. Do NOT duplicate it.\n- New test cases fill coverage gaps only and MUST follow the conventions extracted in Step 2.\n\n**Module isolation rules:**\n- A module's `test-cases.md` MUST NOT contain test cases for entry points defined in other modules.\n- When an entry point in module A calls a service in module B, note the cross-module dependency in the test case's `Preconditions` field (e.g. \"Service B returns X\"). The infra decision table marks it as **mock**; the `verify-test-baseline` skill handles the actual mock implementation.\n- External services unrelated to the migration scope (third-party APIs, internal microservices outside the project) are noted as dependencies and marked **mock** in the infra decision table.\n\nFor each entry point, cover the **four coverage buckets**:\n\n1. **Happy path** — typical valid input, normal outcome.\n2. **Boundary values** — empty, max-size, page boundaries, off-by-one cases.\n3. **Special inputs** — unicode, reserved characters, missing referenced resources, idempotency keys.\n4. **Failure mapping** — simulated backend \u002F dependency failure → application-level response.\n\nUse **2–5 representative records per entity** (table row, queue message, container object, etc.).\n\n**Every test case MUST have all required fields populated** — see \"Required field checklist\" below. Missing or vague fields make the spec unverifiable and must be filled in before freezing.\n\n### Step 4: Externalize Test Data\n\nFor every payload referenced in `test-cases.md`, create a file under `\u003Ctest-source-root>\u002Ftest-cases\u002Ftestdata\u002F` and reference it from the spec as `testdata\u002F...` (i.e. relative to `\u003Ctest-source-root>\u002Ftest-cases\u002F`).\n\n**Requirements:**\n- Organize by purpose: `inputs\u002F`, `expectations\u002F`, `configuration\u002F`, `seed-data\u002F`.\n- If existing tests already use fixture files, prefer reusing them or following the same directory structure and naming conventions. Copy or reference existing fixtures under `testdata\u002F` rather than inventing a parallel layout.\n- No inline byte literals, hardcoded keys, or hand-built JSON strings in `test-cases.md`. Every `Input` and `Expected Output` block either references a file or contains a small structured value (status code, exit code, scalar string) that does not warrant a file.\n- File names should be descriptive and stable: `sample.jpg`, `upload-request.json`, `error-not-found.json`.\n\n### Step 5: Build Infra Decision Table (mock vs real vs testcontainer)\n\nWith the full set of test cases and their referenced dependencies now visible, decide which external dependencies the post-migration tests will exercise as **real** resources, **testcontainer** resources, or **mock** at the SDK \u002F HTTP boundary. This decision is recorded once here and is reused as-is by `verify-test-baseline` — verification does not re-decide.\n\n**Inputs:**\n- The exhaustive list of external dependencies actually touched by the test cases written in Step 3 (cross-checked against the entry-point inventory from Step 1).\n- The mock\u002Freal\u002Ftestcontainer decisions already made by existing tests (from Step 2). Prefer consistency with existing tests unless there is a clear reason to diverge.\n- The repo-root `infra\u002F` directory (`*.md`, `*.yml`, `*.yaml`) **if it exists**. If the user has scheduled an infrastructure-provisioning task before baseline setup, run it first so that `infra\u002F` reflects the resources that will actually be available at verification time.\n\n**Mandatory user confirmation before drafting rows:**\n- Confirm the integration-test environment mode with the user: `real`, `mock`, `testcontainer`, or `mixed` (per dependency). Reuse the answer from the planning questionnaire when available; if missing and an interactive question tool is available, ask explicitly before generating the table.\n\n**Rules:**\n- If the confirmed mode is `mock`: mark every dependency **mock** regardless of `infra\u002F` presence.\n- If the confirmed mode is `real`: dependency present in `infra\u002F` (provisioned endpoint + credentials) → **real**.\n- If the confirmed mode is `real` and a dependency is not present in `infra\u002F`, mark it **mock** at the SDK \u002F HTTP boundary and record that it is not provisioned.\n- If the confirmed mode is `testcontainer`: dependency with a supported emulator\u002Fcontainerized dependency strategy → **testcontainer**.\n- If the confirmed mode is `testcontainer` and a dependency has no viable emulator\u002Fcontainer strategy, mark it **mock** and record `no-testcontainer-emulator` as the reason.\n- If the confirmed mode is `mixed`: the mode is per dependency — ask the user for the decision per row, then apply the `real`, `testcontainer`, or `mock` rules above for each dependency individually.\n- If `infra\u002F` does not exist at all and mode is not `testcontainer`, mark every external dependency as **mock** and record `infra-missing` as the reason.\n- **Cross-module service dependencies** (e.g. module A calling a service API in module B) → always **mock**. Each module's tests are self-contained; inter-module calls are mocked at the service interface boundary.\n- **External services unrelated to the migration scope** (third-party APIs, internal services outside the project, legacy systems not being migrated) → always **mock**, regardless of `infra\u002F` presence.\n\n**Confirm with the user before saving.** Draft the full table in chat first, then — if an interactive user-question tool is available in the current environment (e.g. `ask_user`, `vscode_askQuestions`, or any equivalent surfaced by the host) — use it to present the draft and ask the user to confirm or correct each row's `Decision` and `Auth Method`. Apply any corrections, then write the file. If no such tool is available, skip the prompt and proceed to save (do not block the workflow).\n\n**Output:** save to `\u003Ctest-source-root>\u002Ftest-cases\u002Finfra-decision-table.md` using [infra-decision-table-template.md](infra-decision-table-template.md). One row per dependency, all columns required. The template defines the canonical column set, allowed values, decision rules, and banned phrasings.\n\nThis file is part of the frozen baseline bundle (see Step 7) and is consumed as-is by `verify-test-baseline`. Do not proceed to Step 6 until the table is saved.\n\n### Step 6: Validate the Spec (Required Field Checklist)\n\nBefore declaring the baseline frozen, validate `test-cases.md` against this checklist. Each test case MUST satisfy every item, or it is not ready to freeze.\n\n| # | Field | Validation rule |\n|---|---|---|\n| 1 | `ID` | Unique, format `TC-\u003CMODULE>-\u003CNNN>` (e.g. `TC-WEB-001`, `TC-WKR-002`). |\n| 2 | `Category` | One of: `happy-path`, `boundary`, `special-input`, `failure`. |\n| 3 | `Entry Point Type` | A short, consistent label describing the invocation mechanism (e.g. `HTTP`, `CLI`, `Scheduled`, `Message-queue listener`). The same mechanism must use the same label across all cases. |\n| 4 | `Entry Point` | Exact identifier from production code: HTTP method+path, fully qualified method, CLI command, queue\u002Ftopic name, service interface + method signature. No vague references. |\n| 5 | `Trigger` | Concrete, technology-agnostic description of how the entry point is invoked: payload reference, headers, argv, message body. Sufficient for a code generator to construct the call. |\n| 6 | `Preconditions` | All required application \u002F resource state before the trigger, with references to `testdata\u002F` for any seed data. Use `none` if truly none. |\n| 7 | `Expected Response` | The synchronous return at the entry point: status code + body file reference for HTTP, exit code + stdout\u002Fstderr file references for CLI, return value for methods. Use `none (fire-and-forget)` for async listeners with no synchronous response. |\n| 8 | `Resource Verification` | At least one bullet, OR explicit `none` with justification. Each bullet names a specific resource (object key, row PK, queue name + message shape) and the observable state. Stated in resource-neutral terms so the same check applies pre- and post-migration. |\n| 9 | `Negative Verification` | For failure \u002F skip \u002F no-op cases, list what MUST NOT happen (e.g. \"no new row in `image_metadata`\"). Mandatory whenever `Category` is `failure` or behavior is \"skip\". |\n| 10 | `Data References` | All file paths under `testdata\u002F` cited in the case actually exist. |\n\n**Banned phrasings** (auto-reject):\n- \"should return a reasonable error\" → must state exact status + body.\n- \"behaves as expected\" \u002F \"works correctly\" → must state observable outcome.\n- \"approximately N items\" → must state exact count or a precise range with bound semantics.\n- \"etc.\" in expected outputs → enumerate completely.\n- Hand-waved resource checks (\"data is persisted\") → must name the resource and the field-level state.\n\n**Entry-point coverage check**: every orchestration entry point cataloged in Step 1 appears as the `Entry Point` of at least one `happy-path` test case AND at least one `failure` test case. An entry point counts as covered if it is covered by an **existing test** (referenced as `covered-by-existing` in Step 3) OR by a **new test case** in `test-cases.md`. Both sources count toward the coverage requirement.\n\nAny validation failure → fix the spec. Do not freeze with defects.\n\n### Step 7: Freeze and Output\n\n1. Declare the entire `\u003Ctest-source-root>\u002Ftest-cases\u002F` folder **FROZEN**. Subsequent phases must not modify anything inside it; any required change forces a re-freeze cycle (unfreeze → amend → re-validate → re-freeze).\n2. Create `${modernization-work-folder}\u002F${taskid}\u002Fbaseline-summary.md` summarizing: per-module scoping decisions, entry-point inventory, existing test inventory and extracted conventions (from Step 2), test case counts (existing-covered vs. new) by category per module, `testdata\u002F` file list, the Step 5 infra decision table, and confirmation that the Step 6 checklist passed.\n3. Commit the changes.","# Goal\n\nProduce a precise, executable-quality **specification** of the application's externally observable behavior that must be preserved across migration. The output is `test-cases\u002Ftest-cases.md` plus the `test-cases\u002Ftestdata\u002F` fixtures it references — **no test code is generated in this phase**. The `verify-test-baseline` skill consumes this spec to generate `*PostMigrationIT` tests against the new implementation.\n\n## User Input\n\n- **migration-scope**: The scope of the migration, e.g. \"migrate from AWS S3 to Azure Blob Storage\", \"upgrade from Java 8 to Java 11\" etc.\n- **taskid**: Identifier for this baseline run, used to namespace the summary report.\n- **modernization-work-folder**: Folder under which the summary report is written.\n\n## Principles\n\n- The spec describes behavior at **external boundaries only** — HTTP endpoints, CLI commands, public API surfaces, published\u002Fconsumed events, message queues, scheduled tasks, webhooks. No service-specific SDK types, no backend implementation details.\n- The spec must be **precise enough to be transformed into test code mechanically**. Vague phrases (\"should return a reasonable error\", \"behaves as expected\") are defects, not descriptions.\n- All payload data is **externalized** under `test-cases\u002Ftestdata\u002F` as files. The spec references them by path (relative to `test-cases\u002F`). No inline byte literals, no hand-built JSON strings in the spec.\n- `test-cases\u002Ftest-cases.md` and `test-cases\u002Ftestdata\u002F` are **FROZEN** after this skill completes — never modified, renamed, moved, or deleted by subsequent phases.\n- **No `*BaselineIT` test code is produced.** The migration uses a replace strategy: any code that exercises the old implementation would either import old SDKs (which get deleted) or substitute internal services for the real entry point (which defeats the purpose). All executable tests are produced in the verify phase against the new implementation.\n- **The module is the test-case boundary.** In a multi-module project, each module that is in scope produces its own independent `test-cases.md` under that module's test source root. A module's `test-cases.md` MUST contain only test cases whose entry points belong to that module. Never place test cases for one module inside another module's `test-cases.md` (e.g. API-gateway module test cases must not appear in a backend-services module's spec).\n- **Skip modules with no migration-relevant resource access.** If a module's code does not directly interact with any resource being migrated (e.g. it never calls Azure\u002FAWS\u002FGCP SDKs, never accesses a database or message broker that is part of the migration scope), do not create `test-cases\u002F` for that module. A module that only serves as a thin HTTP frontend delegating to another module's backend services — without touching any migrated resource itself — does not need test cases.\n- **Mock cross-module and non-migration-related dependencies.** When a module's entry point calls a service provided by another module (e.g. a shared service in a sibling module) or an external service unrelated to the migration scope, mark that dependency as **mock** in the infra decision table. The `verify-test-baseline` skill handles the actual mock implementation.\n- **Respect existing integration tests.** Scan for existing IT \u002F integration \u002F E2E tests before writing new test cases. Do not duplicate coverage they already provide — reference them and fill gaps only. New test cases MUST follow the same conventions (naming, framework, assertions, fixtures, helpers) observed in existing tests.\n\n## Output Layout\n\nFrozen baseline artifacts live under a dedicated `test-cases\u002F` subdirectory of the project's **test source root** — the standard directory the build tool already uses for tests (e.g. `src\u002Ftest\u002F` for Maven\u002FGradle Java modules, `tests\u002F` for Python \u002F Node \u002F Go projects, `\u003Cmodule>\u002Ftest\u002F` for multi-module repos). In a multi-module repo, place artifacts under each module's own test source root. Do NOT invent a new top-level folder.\n\nThe per-run summary report lives under the modernization work folder, not the test source root.\n\n```\n\u003Ctest-source-root>\u002F\n└── test-cases\u002F                 # FROZEN — entire folder is the baseline spec bundle\n    ├── test-cases.md           # FROZEN — the full behavioral spec\n    ├── infra-decision-table.md # FROZEN — mock\u002Freal\u002Ftestcontainer decision per external dependency (Step 2)\n    └── testdata\u002F               # FROZEN — fixtures referenced by test-cases.md\n        ├── inputs\u002F             # raw input files (images, JSON payloads, CSV, etc.)\n        ├── expectations\u002F       # golden outputs at the application boundary\n        └── ...                 # other data as needed (configuration, seed data, etc.)\n\n${modernization-work-folder}\u002F${taskid}\u002F\n└── baseline-summary.md         # NEW — per-run summary (Step 6)\n```\n\nAll paths inside `test-cases.md` (e.g. `testdata\u002Finputs\u002Fsample.jpg`) are interpreted **relative to `\u003Ctest-source-root>\u002Ftest-cases\u002F`**, the folder that contains `test-cases.md`.\n\n## Workflow\n\n### Step 1: Inventory External Boundaries and Orchestration Entry Points\n\nScan the production source for everything that constitutes an external boundary or orchestration entry point. Record each one with file path, symbol, and **owning module** so it can be cross-checked in Step 2.\n\n**What qualifies as an entry point** (principle, not a closed list):\n\nAn entry point is any code location invoked by something **outside the application's own call graph** — the network, the OS, the runtime scheduler, a message broker, an external SDK consumer, etc. If the application does not call it itself, it is an entry point.\n\nTypical examples (use as hints, not as an exhaustive checklist — apply the principle above to whatever the codebase actually uses):\n\n- Network-facing handlers (HTTP \u002F REST \u002F gRPC \u002F GraphQL controllers, routers, webhook receivers)\n- Process-level entries (CLI commands, `main` methods, background workers)\n- Runtime-invoked callbacks (scheduled \u002F cron jobs, framework-triggered lifecycle hooks)\n- Broker-driven consumers (message-queue listeners, streaming \u002F pub-sub subscribers)\n- Container-invoked enterprise bean entry points (EJB remote\u002Flocal business methods, message-driven beans)\n- Published library \u002F SDK methods — public methods that are never called from within the same module (i.e. only invoked by external consumers)\n\nEvery orchestration entry point in the migration scope MUST be covered by at least one **end-to-end** test case that triggers it with realistic input and verifies the final observable outcome. Test cases that exercise only helpers called *within* an entry point do NOT count toward this requirement.\n\n**Multi-module scoping:** Group entry points by owning module. For each module, determine whether it directly accesses any resource being migrated (databases, message brokers, cloud storage, caches, etc. that are in the migration scope). Modules whose code never directly interacts with a migration-relevant resource are **out of scope** — do not produce test cases for them. Record the per-module decision (in-scope \u002F out-of-scope with reason) so it is auditable in the baseline summary.\n\n### Step 2: Inventory Existing Integration Tests\n\nScan the project's test source roots for existing IT \u002F integration \u002F E2E tests. Map each existing test to the entry points inventoried in Step 1 and note which coverage categories (happy-path, boundary, special-input, failure) it covers.\n\nAlso extract the project's testing conventions: naming patterns, test framework and assertion style, fixture\u002Ftest-data organization, helper utilities, and infrastructure setup (Testcontainers, embedded servers, mocks, etc.). These conventions are binding — the `verify-test-baseline` skill MUST follow them when generating test code.\n\nInclude the existing test inventory and extracted conventions in the baseline summary (Step 7).\n\n### Step 3: Write `test-cases.md`\n\nFor each **in-scope module** (as determined in Step 1), produce `\u003Cmodule-test-source-root>\u002Ftest-cases\u002Ftest-cases.md` using [test-cases-template.md](test-cases-template.md). Each module gets its own independent spec file containing only test cases for entry points that belong to that module.\n\n**Existing test alignment rules:**\n- If an existing test already covers an entry point + category, mark it as `covered-by-existing` in the spec with the test's fully qualified name. Do NOT duplicate it.\n- New test cases fill coverage gaps only and MUST follow the conventions extracted in Step 2.\n\n**Module isolation rules:**\n- A module's `test-cases.md` MUST NOT contain test cases for entry points defined in other modules.\n- When an entry point in module A calls a service in module B, note the cross-module dependency in the test case's `Preconditions` field (e.g. \"Service B returns X\"). The infra decision table marks it as **mock**; the `verify-test-baseline` skill handles the actual mock implementation.\n- External services unrelated to the migration scope (third-party APIs, internal microservices outside the project) are noted as dependencies and marked **mock** in the infra decision table.\n\nFor each entry point, cover the **four coverage buckets**:\n\n1. **Happy path** — typical valid input, normal outcome.\n2. **Boundary values** — empty, max-size, page boundaries, off-by-one cases.\n3. **Special inputs** — unicode, reserved characters, missing referenced resources, idempotency keys.\n4. **Failure mapping** — simulated backend \u002F dependency failure → application-level response.\n\nUse **2–5 representative records per entity** (table row, queue message, container object, etc.).\n\n**Every test case MUST have all required fields populated** — see \"Required field checklist\" below. Missing or vague fields make the spec unverifiable and must be filled in before freezing.\n\n### Step 4: Externalize Test Data\n\nFor every payload referenced in `test-cases.md`, create a file under `\u003Ctest-source-root>\u002Ftest-cases\u002Ftestdata\u002F` and reference it from the spec as `testdata\u002F...` (i.e. relative to `\u003Ctest-source-root>\u002Ftest-cases\u002F`).\n\n**Requirements:**\n- Organize by purpose: `inputs\u002F`, `expectations\u002F`, `configuration\u002F`, `seed-data\u002F`.\n- If existing tests already use fixture files, prefer reusing them or following the same directory structure and naming conventions. Copy or reference existing fixtures under `testdata\u002F` rather than inventing a parallel layout.\n- No inline byte literals, hardcoded keys, or hand-built JSON strings in `test-cases.md`. Every `Input` and `Expected Output` block either references a file or contains a small structured value (status code, exit code, scalar string) that does not warrant a file.\n- File names should be descriptive and stable: `sample.jpg`, `upload-request.json`, `error-not-found.json`.\n\n### Step 5: Build Infra Decision Table (mock vs real vs testcontainer)\n\nWith the full set of test cases and their referenced dependencies now visible, decide which external dependencies the post-migration tests will exercise as **real** resources, **testcontainer** resources, or **mock** at the SDK \u002F HTTP boundary. This decision is recorded once here and is reused as-is by `verify-test-baseline` — verification does not re-decide.\n\n**Inputs:**\n- The exhaustive list of external dependencies actually touched by the test cases written in Step 3 (cross-checked against the entry-point inventory from Step 1).\n- The mock\u002Freal\u002Ftestcontainer decisions already made by existing tests (from Step 2). Prefer consistency with existing tests unless there is a clear reason to diverge.\n- The repo-root `infra\u002F` directory (`*.md`, `*.yml`, `*.yaml`) **if it exists**. If the user has scheduled an infrastructure-provisioning task before baseline setup, run it first so that `infra\u002F` reflects the resources that will actually be available at verification time.\n\n**Mandatory user confirmation before drafting rows:**\n- Confirm the integration-test environment mode with the user: `real`, `mock`, `testcontainer`, or `mixed` (per dependency). Reuse the answer from the planning questionnaire when available; if missing and an interactive question tool is available, ask explicitly before generating the table.\n\n**Rules:**\n- If the confirmed mode is `mock`: mark every dependency **mock** regardless of `infra\u002F` presence.\n- If the confirmed mode is `real`: dependency present in `infra\u002F` (provisioned endpoint + credentials) → **real**.\n- If the confirmed mode is `real` and a dependency is not present in `infra\u002F`, mark it **mock** at the SDK \u002F HTTP boundary and record that it is not provisioned.\n- If the confirmed mode is `testcontainer`: dependency with a supported emulator\u002Fcontainerized dependency strategy → **testcontainer**.\n- If the confirmed mode is `testcontainer` and a dependency has no viable emulator\u002Fcontainer strategy, mark it **mock** and record `no-testcontainer-emulator` as the reason.\n- If the confirmed mode is `mixed`: the mode is per dependency — ask the user for the decision per row, then apply the `real`, `testcontainer`, or `mock` rules above for each dependency individually.\n- If `infra\u002F` does not exist at all and mode is not `testcontainer`, mark every external dependency as **mock** and record `infra-missing` as the reason.\n- **Cross-module service dependencies** (e.g. module A calling a service API in module B) → always **mock**. Each module's tests are self-contained; inter-module calls are mocked at the service interface boundary.\n- **External services unrelated to the migration scope** (third-party APIs, internal services outside the project, legacy systems not being migrated) → always **mock**, regardless of `infra\u002F` presence.\n\n**Confirm with the user before saving.** Draft the full table in chat first, then — if an interactive user-question tool is available in the current environment (e.g. `ask_user`, `vscode_askQuestions`, or any equivalent surfaced by the host) — use it to present the draft and ask the user to confirm or correct each row's `Decision` and `Auth Method`. Apply any corrections, then write the file. If no such tool is available, skip the prompt and proceed to save (do not block the workflow).\n\n**Output:** save to `\u003Ctest-source-root>\u002Ftest-cases\u002Finfra-decision-table.md` using [infra-decision-table-template.md](infra-decision-table-template.md). One row per dependency, all columns required. The template defines the canonical column set, allowed values, decision rules, and banned phrasings.\n\nThis file is part of the frozen baseline bundle (see Step 7) and is consumed as-is by `verify-test-baseline`. Do not proceed to Step 6 until the table is saved.\n\n### Step 6: Validate the Spec (Required Field Checklist)\n\nBefore declaring the baseline frozen, validate `test-cases.md` against this checklist. Each test case MUST satisfy every item, or it is not ready to freeze.\n\n| # | Field | Validation rule |\n|---|---|---|\n| 1 | `ID` | Unique, format `TC-\u003CMODULE>-\u003CNNN>` (e.g. `TC-WEB-001`, `TC-WKR-002`). |\n| 2 | `Category` | One of: `happy-path`, `boundary`, `special-input`, `failure`. |\n| 3 | `Entry Point Type` | A short, consistent label describing the invocation mechanism (e.g. `HTTP`, `CLI`, `Scheduled`, `Message-queue listener`). The same mechanism must use the same label across all cases. |\n| 4 | `Entry Point` | Exact identifier from production code: HTTP method+path, fully qualified method, CLI command, queue\u002Ftopic name, service interface + method signature. No vague references. |\n| 5 | `Trigger` | Concrete, technology-agnostic description of how the entry point is invoked: payload reference, headers, argv, message body. Sufficient for a code generator to construct the call. |\n| 6 | `Preconditions` | All required application \u002F resource state before the trigger, with references to `testdata\u002F` for any seed data. Use `none` if truly none. |\n| 7 | `Expected Response` | The synchronous return at the entry point: status code + body file reference for HTTP, exit code + stdout\u002Fstderr file references for CLI, return value for methods. Use `none (fire-and-forget)` for async listeners with no synchronous response. |\n| 8 | `Resource Verification` | At least one bullet, OR explicit `none` with justification. Each bullet names a specific resource (object key, row PK, queue name + message shape) and the observable state. Stated in resource-neutral terms so the same check applies pre- and post-migration. |\n| 9 | `Negative Verification` | For failure \u002F skip \u002F no-op cases, list what MUST NOT happen (e.g. \"no new row in `image_metadata`\"). Mandatory whenever `Category` is `failure` or behavior is \"skip\". |\n| 10 | `Data References` | All file paths under `testdata\u002F` cited in the case actually exist. |\n\n**Banned phrasings** (auto-reject):\n- \"should return a reasonable error\" → must state exact status + body.\n- \"behaves as expected\" \u002F \"works correctly\" → must state observable outcome.\n- \"approximately N items\" → must state exact count or a precise range with bound semantics.\n- \"etc.\" in expected outputs → enumerate completely.\n- Hand-waved resource checks (\"data is persisted\") → must name the resource and the field-level state.\n\n**Entry-point coverage check**: every orchestration entry point cataloged in Step 1 appears as the `Entry Point` of at least one `happy-path` test case AND at least one `failure` test case. An entry point counts as covered if it is covered by an **existing test** (referenced as `covered-by-existing` in Step 3) OR by a **new test case** in `test-cases.md`. Both sources count toward the coverage requirement.\n\nAny validation failure → fix the spec. Do not freeze with defects.\n\n### Step 7: Freeze and Output\n\n1. Declare the entire `\u003Ctest-source-root>\u002Ftest-cases\u002F` folder **FROZEN**. Subsequent phases must not modify anything inside it; any required change forces a re-freeze cycle (unfreeze → amend → re-validate → re-freeze).\n2. Create `${modernization-work-folder}\u002F${taskid}\u002Fbaseline-summary.md` summarizing: per-module scoping decisions, entry-point inventory, existing test inventory and extracted conventions (from Step 2), test case counts (existing-covered vs. new) by category per module, `testdata\u002F` file list, the Step 5 infra decision table, and confirmation that the Step 6 checklist passed.\n3. Commit the changes.",{"name":5,"description":7},"main","a9c9469d86e9dc078018e8fb391abc7744088078","plugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fcreate-test-baseline",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":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add microsoft\u002Fgithub-copilot-modernization --skill create-test-baseline",{"tool":54,"command":55},"bunx","bunx skills add microsoft\u002Fgithub-copilot-modernization --skill create-test-baseline",{"tool":57,"command":58},"pnpm","pnpm dlx skills add microsoft\u002Fgithub-copilot-modernization --skill create-test-baseline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fcreate-test-baseline\u002FSKILL.md",true,[62,68],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"infra-decision-table-template.md","REFERENCE","参考文档",7694,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fcreate-test-baseline\u002Finfra-decision-table-template.md",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"test-cases-template.md",8539,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fcreate-test-baseline\u002Ftest-cases-template.md",[73,85,102,119,136,148],{"skillNo":74,"name":75,"nameZh":76,"description":77,"descriptionZh":78,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":79,"categories":80,"keywords":83,"publishedAt":34},"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",[81,82],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,84],"verify test baseline",{"skillNo":86,"name":87,"nameZh":88,"description":89,"descriptionZh":90,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":91,"categories":92,"keywords":99,"publishedAt":34},"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",[93,96],{"categoryNo":94,"categoryName":95,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRK82SYBDNZ3SG8YAH5A3D","凭证与密钥管理",{"categoryNo":97,"categoryName":98,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",[100,101],"team request","infrastructure",{"skillNo":103,"name":104,"nameZh":105,"description":106,"descriptionZh":107,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":108,"categories":109,"keywords":116,"publishedAt":34},"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",[110,113],{"categoryNo":111,"categoryName":112,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0DBCRG4XGJMB6QQEP11","编码任务委派",{"categoryNo":114,"categoryName":115,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[117,118],"team charters","architecture",{"skillNo":120,"name":121,"nameZh":122,"description":123,"descriptionZh":124,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":125,"categories":126,"keywords":133,"publishedAt":34},"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",[127,130],{"categoryNo":128,"categoryName":129,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":131,"categoryName":132,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",[134,135],"struts to spring","boot",{"skillNo":137,"name":138,"nameZh":139,"description":140,"descriptionZh":141,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":142,"categories":143,"keywords":146,"publishedAt":34},"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",[144,145],{"categoryNo":128,"categoryName":129,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":131,"categoryName":132,"taxonomyType":23,"taxonomyTypeDesc":24},[135,147],"spring boot scaffolding",{"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":162,"publishedAt":34},"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",[156,159],{"categoryNo":157,"categoryName":158,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀",{"categoryNo":160,"categoryName":161,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C31AVFVV99RWJEGF9PS85F","项目经理",[163],"sharing learnings"]