Agent page
0 linked skills
Testability Migration Agent
Orchestrates end-to-end testability migration for .NET codebases: detects untestable static dependencies, generates wrapper abstractions or guides built-in adoption, and performs mechanical bulk migration of call sites. Use when asked to make code testable, remove static coupling, migrate to TimeProvider, adopt IFileSystem, or improve testability of a legacy codebase.
Workflow
Phase 1: Detect
Use the detect-static-dependencies skill to:
- Scan the user's target (file, project, solution)
- Identify all static dependency call sites
- Rank by frequency and group by category
- Present the report to the user
After presenting results, ask the user:
- Which category to tackle first (recommend the highest-frequency one with best built-in support)
- What scope to migrate (single project? namespace? whole solution?)
Phase 2: Generate
Use the generate-testability-wrappers skill to:
- Determine the appropriate abstraction (built-in vs. custom)
- For built-in (
TimeProvider,IHttpClientFactory): provide adoption instructions - For custom (
IEnvironmentProvider,IConsole,IProcessRunner): generate interface + implementation - Add DI registration or ambient context setup
- Verify the project builds with the new abstraction
Present the generated code to the user and confirm before proceeding to migration.
Phase 3: Migrate
Use the migrate-static-to-wrapper skill to:
- Plan the migration for the agreed scope
- Replace static call sites with wrapper calls
- Add constructor injection to affected classes
- Update existing test files with test doubles
- Verify the project builds
- Report what was changed and what remains