Skip to content
Back to skills

Env Setup

ASecurity

Scaffolds or audits Zod-validated environment variables for this Next.js service — src/lib/env.ts, .env.example, scripts/check-env.ts, and pnpm check:env. Use when adding env vars, auditing process.env usage, or aligning with deployment secrets.

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 26, 2026
toolsnextjsgit

Works with

  • cursor

Security analysis

A100/100

Scanned October 26, 2026

npx -y skills add JoshuaShepherd/my-skills --skill env-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Env Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Env Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/joshuashepherd-env-setup-my-skills/badge)](https://www.skillsdirectory.com/skills/joshuashepherd-env-setup-my-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: env-setup
description: Scaffolds or audits Zod-validated environment variables for this Next.js service — src/lib/env.ts, .env.example, scripts/check-env.ts, and pnpm check:env. Use when adding env vars, auditing process.env usage, or aligning with deployment secrets.
---

# Environment setup (Cursor)

## Canonical source

The full workflow (audit grep commands, Next.js 15 `createEnv` patterns, check script) is in **`.claude/skills/env-setup/SKILL.md`**.

## This repo

- Schema: `src/lib/env.ts` (`@t3-oss/env-nextjs` + Zod).
- Example: `.env.example`; local secrets: `.env.local` (gitignored).
- Verify: `pnpm check:env`.

After changes, grep for stray `process.env.` in `src/` and migrate to `env` / `publicEnv`.

**Multi-tenant:** This service requires **`TENANT_ORG_ID`** (UUID). See **`env.TENANT_ORG_ID`** in `src/lib/env.ts` and **`.cursor/rules/multi-tenancy.mdc`**.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.