# arkenv

Helps configure ArkEnv, define typed environment schemas, and add validation to JavaScript and TypeScript projects.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 282 installs · ★ 730 repo stars
- Author: onmax
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/onmax/nuxt-skills/tree/HEAD/skills/arkenv/SKILL.md
- Updated: 2026-11-02
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/arkenv

## What it does

This skill guides ArkEnv setup for typed environment checks. It can help create `env.ts`, choose ArkType or Standard Schema, and use one `env` import throughout frontend and backend code.

It covers Next.js, Nuxt, Vite, Bun, and Node.js integrations. The Vite and Bun plugins inline public values while guarding server-only secrets; Next.js and Nuxt use client/server isolation. The CLI can detect the framework, scaffold the schema, configure `tsconfig.json`, and apply a hosting preset.

For agent-driven setup, use `pnpm dlx arkenv init --agent`. Its JSON result exposes success or refusal details through `error.code` and `nextActions`. Schema discovery follows `env.ts`, `src/env.ts`, or an explicit `--schema` path, so custom locations need that flag.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add onmax/nuxt-skills --skill arkenv -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/arkenv/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/arkenv/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add onmax/nuxt-skills --skill arkenv -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/arkenv/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add onmax/nuxt-skills --skill arkenv -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/arkenv/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install onmax/nuxt-skills skills/arkenv
```

2. **Manually: put the files in place**
- File: `.github/skills/arkenv/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add onmax/nuxt-skills --skill arkenv -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/onmax/nuxt-skills --path skills/arkenv
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/arkenv/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add onmax/nuxt-skills --skill arkenv -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/onmax/nuxt-skills/tree/HEAD/skills/arkenv/SKILL.md

## When to use it
- validate environment variables against a schema
- scaffold `env.ts` in a new project
- define values with ArkType or Zod
- keep public values separate from server secrets
- configure ArkEnv for Next.js or Nuxt

## Example prompts
- Set up ArkEnv in this project and create the schema at `src/env.ts`.
- Run `pnpm arkenv check --schema src/env.ts` and explain any environment errors.
- Configure ArkEnv for Vite so client code cannot read server-only keys.

## Similar
- [arktype-validation](https://affpapa.org/en/nevibecode/skills/arktype-validation.md) — skill · 153 installs
- [encore-secret](https://affpapa.org/en/nevibecode/skills/encore-secret.md) — skill · 477 installs
- [mcp-server-architect](https://affpapa.org/en/nevibecode/agents/mcp-server-architect.md) — subagent · 1649 installs
- [safe-action-middleware](https://affpapa.org/en/nevibecode/skills/safe-action-middleware.md) — skill · 1200 installs
- [license-keys](https://affpapa.org/en/nevibecode/skills/license-keys.md) — skill · 696 installs
- [quality-gates-enforcer](https://affpapa.org/en/nevibecode/skills/quality-gates-enforcer.md) — skill · 284 installs

From the same set: [onmax/nuxt-skills](https://affpapa.org/en/nevibecode/by/onmax/nuxt-skills.md) — 13 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
