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 schema getter or exported options Zod schema

Pre-flight

  1. Read the command source file (.ts) and its test file (.spec.ts)
  2. Identify: options, aliases, validators, telemetry, option sets, types
  3. Check if the command has autocomplete values on any options
  4. Check whether any command option representing a GUID or UPN accepts the runtime tokens @meid or @meusername

Procedure

Step 1: Define the Zod Schema (command .ts file)

Installs
2
GitHub Stars
1.5K
First Seen
Sep 17, 2026