ast-visitor-pattern

Use the frozen-class/visitor pattern for discriminated unions that have multiple dispatch sites. Use when creating a new set of variants (commands, IR nodes, factory calls) that will be switched over in 2+ places, or when refactoring an exi

Updated 2026-08-09 · Source https://github.com/prisma/prisma/tree/HEAD/skills-contrib/ast-visitor…

What does this skill do?

Use the frozen-class/visitor pattern for discriminated unions that have multiple dispatch sites. Use when creating a new set of variants (commands, IR nodes, factory calls) that will be switched over in 2+ places, or when refactoring an existing union type that has grown multiple switch sites.

How do you install it?

git clone --depth 1 https://github.com/prisma/prisma.git Then point your agent at the skill directory.

Where does it come from?

Repository: prisma/prisma 47550 stars on GitHub at the time of listing. The repository ships 1 skills in total. Homepage: https://www.prisma.io

developmentskill

adr-review  ·  write-architecture-docs