Skill / SKILL.md

Ast Visitor Pattern

prisma/orm

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.
1 views 47,748 repository starsUpdated Nov 28, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/prisma/orm' skill-source

Use the complete skill-source/skills-contrib/ast-visitor-pattern directory with your client’s skill installer.

  • skills-contrib/ast-visitor-pattern

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills-contrib/ast-visitor-pattern

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
348996e998c3a56a2ff59d2e4d46266b7d5d6819b0ee19e38b98e677d8416179
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills