Pular para o conteúdo
Kitbay
Skill

nullable-new-params

NOASSERTIONAtualizado em 11 de nov. de 202672.390Estrelas no GitHubInclui scripts

A contributor skill in the Remotion repository that enforces one TypeScript convention: newly added optional parameters, props and type members in internal code become required values that may be null, so every caller decides explicitly.

O que a skill ensina

A contributor skill in the Remotion repository that enforces one TypeScript convention: newly added optional parameters, props and type members in internal code become required values that may be null, so every caller decides explicitly. A bundled scanner finds new optional members in a diff; the agent classifies each as public or internal by checking package entry points and the docs, rewrites internal ones as T | null, updates every caller to pass a value or null, and replaces truthy checks that would treat zero, empty strings or false as missing. Public APIs stay optional and are converted to null at the boundary. It reruns the scanner and builds the touched packages.

O que faz

  • Find new optional parameters in a diff
  • Tell public APIs from internal ones
  • Convert optional members to required nullable types
  • Fix truthy checks that drop valid falsy values