Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Integrate dotenv for environment variable loading with validation and type coercion.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -34% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -58% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -4% | 0% |
| case-17 | ✗→✓ | ▲ Improved | -6% | 0% |
| case-20 | ✗→✓ | ▲ Improved | -9% | 0% |
Integrate dotenv for environment variable loading.
typescriptimport { config } from 'dotenv'; import { expand } from 'dotenv-expand'; import { z } from 'zod'; // Load .env files in order for (const file of ['.env.local', `.env.${process.env.NODE_ENV}`, '.env']) { expand(config({ path: file })); } const envSchema = z.object({ NODE_ENV: z.enum(['development', 'production', 'test']).default('development'), PORT: z.coerce.number().default(3000), DATABASE_URL: z.string().url(), API_KEY: z.string().min(1), }); export const env = envSchema.parse(process.env);
Other measured skills in the registry, with their headline benchmark lift.