Agent skill · onmax

arkenv

Answer questions about ArkEnv and help implement environment variable validation. Use when developers: (1) Ask about environment variable validation or typesafety, (2) Want to setup ArkEnv in a project, (3) Need to define or update schemas using ArkType or Standard Schema, (4) Are integrating with Next.js, Nuxt, Vite, Bun, or Node.js runtimes. Triggers on: 'ArkEnv', 'env validation', 'typesafe env', 'createEnv', 'env.ts', 'arkenv'.

What it needs

About 5k tokens when loaded.

What this skill does

ArkEnv ArkEnv is a typesafe environment variable validation library for modern JavaScript and TypeScript frameworks. It provides a single canonical surface across all frameworks: import { env } from "./env". In v1, ArkEnv offers two first-class validation engines: @arkenv/core: Built-in ArkType DSL engine for high-performance schema definition and automatic coercion. @arkenv/standard: Standard Schema engine supporting any compliant validator (Zod, Valibot, etc.). --- Capabilities Core usage Define typesafe schemas using @arkenv/core ArkType DSL strings or @arkenv/standard with Zod / Valibot. Automatic coercion (string.numeric, number.port, booleans, JSON objects, arrays) and default values ("boolean = true"). Single, uniform developer experience: import env directly across frontend and backend code. Framework integration Vite (@arkenv/vite-plugin): Plugin operates in transform mode, rewriting imports from env.ts in the client graph to inline public VITE literals and replacing private server keys with throwing runtime guards. Bun (@arkenv/bun-plugin): Plugin intercepts env.ts imports in Bun.build / Bun.serve to inline public BUNPUBLIC values while guarding server secrets. Next.js (@arkenv/nextjs): Build-time and runtime validation with automatic client/server isolation proxy. Nuxt (@arkenv/nuxt): Nuxt module with Nitro boot validation and runtime proxy guard. Node.js: Direct boot-time validation via @arkenv/core or @arkenv/standard. CLI (setup & DevOps) Initialize ArkEnv in new or existing projects using pnpm dlx arkenv init (or npx arkenv init). Automatically detect frameworks (Next.js, Nuxt, Vite, Bun, etc.) and scaffold env.ts. Select hosting provider preset during init (--preset, -P <provider> or --host-preset, -H <provider>). Automatically configure tsconfig.json when needed. Schema discovery for CLI commands uses --schema or convention paths (env.ts, src/env.ts, …) — not a package.json "arkenv" field. Hosting presets ArkEnv is code-first. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills onmax/arkenv

View the source on GitHub

Browse the @skills marketplace