zod-migration
Installation
SKILL.md
Zod Migration
Migrate a CLI for Microsoft 365 command from the legacy #initOptions()/#initValidators()/#initTelemetry() pattern to Zod schema-based validation.
When to Use
- Command still has
#initOptions(),#initValidators(), or#initTelemetry()methods - Command does not have a
schemagetter or exportedoptionsZod schema
Pre-flight
- Read the command source file (
.ts) and its test file (.spec.ts) - Identify: options, aliases, validators, telemetry, option sets, types
- Check if the command has
autocompletevalues on any options - Check whether any command option representing a GUID or UPN accepts the runtime tokens
@meidor@meusername