Claude-skill-registry env-constants

Generates src/shared/EnvConsts.ts for type-safe environment variable access. Provides TypeScript interface and exports for accessing Vite environment variables throughout the application.

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/env-constants" ~/.claude/skills/majiayu000-claude-skill-registry-env-constants && rm -rf "$T"
manifest: skills/data/env-constants/SKILL.md
source content

Environment Constants Skill

Purpose

Generate the

src/shared/EnvConsts.ts
file for accessing environment variables with type safety.

Output

Create the file:

src/shared/EnvConsts.ts

Example File

See:

examples.md
in this directory for complete examples and detailed explanations.

Notes

  • Wraps Vite's import.meta.env for type safety
  • Provides default values for all environment variables.