microsoft/generating-upgrade-test-baseline
> Generates behavior-locking tests before a .NET upgrade using the external dotnet-test plugin. Use when executing a generate-test-baseline task for projects with upgrade compatibility risks.
npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill generating-upgrade-test-baseline
Use the external code-testing-generator agent to create tests that lock in current behavior before
the upgrade changes production code. The generator owns test-framework detection, test-project
selection or creation, implementation, build, test, fix, lint, and final validation.
Read the ## Test Baseline status from scenario-instructions.md. If it is not enabled, complete
generate-test-baseline as skipped without invoking the generator.
The code-testing-generator agent from the dotnet-test plugin is required. If it is unavailable,
load managing-dotnet-test-installation and follow it before continuing.
scenario-instructions.md.API.0003 behavioral changes as must-cover upgrade risks.## Test Baseline block from scenario-instructions.md. Use its Projects list as theexact production-project scope.
API.0003 issues as must-cover behavioral changes.API.0002 and API.0001 issues as priority seeds.code-testing-generator with a goal-oriented brief:## Goal
Create a regression safety-net before upgrading {ProjectScope} from {current TFM} to {target TFM}.
Lock in current observable behavior so post-upgrade validation can detect regressions.
## Scope
Generate tests only for: {ProjectScope}
Do not modify production code.
## Must cover
{API.0003 call sites and documented behavior changes}
## Priority seeds
{API.0002 and API.0001 call sites}
## Additional research
Within the project scope, identify other behavior likely to change during this upgrade, including
package behavior, serialization, culture and formatting, date/time, ordering, hashing, regex,
encoding, file I/O, and concurrency. Prefer depth on plausible upgrade risks over broad coverage.
The brief supplies upgrade-specific risk context; it does not replace the generator's own research,
planning, or validation pipeline.
After code-testing-generator succeeds:
scenario-instructions.md: under ## Test Baseline, add the project-file path of everytest project used beneath Test projects.
plan.md: add the new project-file path to the applicable upgrade task description so thenormal conversion flow retargets it to the target framework before validate-test-baseline.
Do not add scope details to tasks.md; it tracks task status only.
pre-upgrade code.
Failure to establish a green baseline must not block the upgrade. Follow the
Test Coverage generation-failure flow
for the user decision and required option-state updates.
Take microsoft/generating-upgrade-test-baseline from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.