·arktype

Arktype patterns for discriminated unions using .merge() and .or(), spread key syntax, and type composition. Use when building union types, combining base schemas with variants, or defining command/event schemas with arktype.

13Installs·0Trend·@epicenterhq

Installation

$npx skills add https://github.com/epicenterhq/epicenter --skill arktype

How to Install arktype

Quickly install arktype AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/epicenterhq/epicenter --skill arktype
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: epicenterhq/epicenter.

SKILL.md

View raw

Patterns for composing discriminated unions with arktype's .merge() and .or() methods.

Use when you have shared base fields and per-variant payloads discriminated on a literal key. .merge() distributes over unions — it merges the base into each branch of the union automatically.

| Base is a real Type | Reusable, composable, inspectable at runtime | | .merge() distributes | No need to repeat base.merge(...) per variant | | type.or() is flat | All variants in one list — easy to read and add to | | Base appears once | DRY — change base fields in one place | | Auto-discrimination | No manual discriminant config needed |

Arktype patterns for discriminated unions using .merge() and .or(), spread key syntax, and type composition. Use when building union types, combining base schemas with variants, or defining command/event schemas with arktype. Source: epicenterhq/epicenter.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/epicenterhq/epicenter --skill arktype
Category
</>Dev Tools
Verified
First Seen
2026-03-09
Updated
2026-03-11

Browse more skills from epicenterhq/epicenter

Quick answers

What is arktype?

Arktype patterns for discriminated unions using .merge() and .or(), spread key syntax, and type composition. Use when building union types, combining base schemas with variants, or defining command/event schemas with arktype. Source: epicenterhq/epicenter.

How do I install arktype?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/epicenterhq/epicenter --skill arktype Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/epicenterhq/epicenter

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-03-09