Script Environment Setup
CommunitySecurely load .env for scripts
Authorrylezhou
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the common issue where standalone scripts fail to load environment variables correctly due to import hoisting, leading to process.env being undefined.
Core Features & Use Cases
- Prevents Import Hoisting Issues: Ensures environment variables are loaded before application modules are evaluated.
- Dynamic Imports: Utilizes
await import()for modules that depend on environment variables. - Use Case: When running a verification script that needs to access a database connection string defined in
.env.local, this Skill ensures the connection string is available.
Quick Start
Use the script environment setup skill to load your .env.local file before running your verification script.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Script Environment Setup Download link: https://github.com/rylezhou/arlis/archive/main.zip#script-environment-setup Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.