env-variables

Manage environment variables and generate typed env objects in a Next.js monorepo.

1|1|Updated Jan 5, 2026
One-click install
npx skills add https://github.com/hyperjumptech/mediapulse --skill env-variables
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: env-variables
Source: https://github.com/hyperjumptech/mediapulse/tree/main/.cursor/skills/env-variables
Command: npx skills add https://github.com/hyperjumptech/mediapulse --skill env-variables

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add, update, or manage environment variables in this Next.js monorepo using T3 Env and env-to-t3. Use when the user asks to add an env variable, update env.example, generate env types, work with @hermes/env or @mediapulse/env, or configure per-app environment variables.

Core Features & Use Cases

  • Update the correct env.example (or env.*.example) under packages/hermes/env/ or packages/mediapulse/env/. Add a comment explaining the purpose and where to obtain the value. Add env-to-t3 annotations after the value. Example: ACME_API_TOKEN=your-token-here #required
  • Regenerate the typed env object after changes.
  • Import from @hermes/env or @mediapulse/env instead of reading process.env directly.
  • Share .env for local development by using dev-bootstrap.sh to merge examples and symlink apps to the correct domain.

Quick Start

Regenerate the typed env object after updating env examples and import it from @hermes/env or @mediapulse/env.

Frequently Asked Questions about env-variables

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage environment variables across a Next.js monorepo?

Managing environment variables across a Next.js monorepo involves using Hermes and Mediapulse env packages to create, update, and validate variables. It enforces best practices by suggesting typed env objects and importing from the appropriate env package rather than reading process.env directly.

How do I add a new environment variable with env-to-t3 annotations?

To add an environment variable, update the correct env.example file under packages/hermes/env/ or packages/mediapulse/env/. Include a comment explaining the purpose and where to obtain the value, then append env-to-t3 annotations like #required after the value.

Why should I import from @hermes/env instead of process.env directly?

Importing from @hermes/env instead of process.env directly ensures type safety and validation. It enforces best practices by suggesting typed env objects, preventing runtime errors from missing or malformed environment variables across your monorepo applications.

How do I share .env files for local development in a monorepo?

To share .env files for local development, use dev-bootstrap.sh to merge env examples and symlink apps to the correct domain. This ensures all applications in the monorepo access shared environment configurations consistently during local development.

Does this environment variable approach work with TypeScript monorepos?

Yes, this environment variable approach works with TypeScript monorepos by generating typed env objects using T3 Env and env-to-t3. It provides type-safe environment variable access across your Next.js apps and agents.

What is the best way to generate env types after updating env.example?

The best way to generate env types after updating env.example is to regenerate the typed env object using T3 Env. This ensures your TypeScript types reflect the latest environment variables before importing them from @hermes/env or @mediapulse/env.