Environment setup

From akillness/jeo-skills · View interactive version

Environment setup is an AI agent skill from the GitHub repository akillness/jeo-skills. Organize application environment configuration: `.env` files, env precedence, typed env validation, secret handoff, framework-specific env rules, and config drift between local, staging, CI, and production. Use when the user needs help structuring environment variables, validating required config, s

How to use this skill

Skill file

Environment Configuration

Use this skill as the narrower application-config and .env compatibility skill.

The job is to make app configuration clear and safe across environments:

Read references/env-patterns.md and references/scope-boundaries.md before unusual cases or when deciding whether the real need belongs in system-environment-setup.

If the user mainly needs:

When to use this skill

When not to use this skill

Instructions

Step 1: Classify the config problem

Normalize the request into this intake first:

env_config_intake:
  primary_goal: env-structure | validation | secret-handoff | public-private-split | drift-cleanup | framework-rules | unknown
  app_shape: backend | frontend | fullstack | monorepo | unknown
  current_storage: env-files | framework-config | secret-manager | mixed | unknown
  drift_surface:
    - missing-required-vars
    - duplicate-env-files
    - CI-local-mismatch
    - public-private-leak-risk
    - undocumented-secret-source
    - framework-prefix-confusion
    - unclear
  confidence: high | medium | low

Step 2: Choose one primary mode

Pick exactly one mode for the run:

  1. env-file-structure
  1. env-validation
  1. secret-handoff-boundary
  1. framework-config-rules
  1. drift-cleanup

Step 3: Apply config rules

Step 4: Build the config brief

Return this exact structure:

# Environment Config Brief

## Recommended mode
- Mode: env-file-structure | env-validation | secret-handoff-boundary | framework-config-rules | drift-cleanup
- Why this mode fits: ...

## Current config surface
- App shape: ...
- Config sources: ...
- Main drift or risk: ...
- Confidence: high | medium | low

## Recommended config layout
1. ...
2. ...
3. ...

## Example files / checks

...


## Why this layout is safer
- ...
- ...

## Watch-outs
- ...
- ...

## Adjacent handoff
- Use `system-environment-setup` for ...
- Use `deployment-automation` for ...
- Use `security-best-practices` for ...

Step 5: Use mode-specific guidance

For env-file-structure

For env-validation

For secret-handoff-boundary

For framework-config-rules

For drift-cleanup

Step 6: Keep boundaries sharp

Before finalizing:

Examples

Example 1: Env template cleanup

Input: "Help me structure .env.example and .env.local so new devs stop guessing values."

Output: chooses env-file-structure, defines committed templates vs local overrides, and keeps the scope at app config.

Example 2: Validation hardening

Input: "We keep forgetting env vars until runtime."

Output: chooses env-validation, recommends typed validation, and shows how to fail fast.

Example 3: Framework split

Input: "Which env vars can be exposed to the frontend and which must stay server-only?"

Output: chooses framework-config-rules, explains the client/server split, and avoids broad setup drift.

Best practices

  1. Treat this as the app-config layer, not the whole-machine setup skill.
  2. Make secret sources explicit rather than implied.
  3. Prefer committed templates plus local-only overrides.
  4. Add validation once env drift becomes expensive.
  5. Route broader runnable-repo work to system-environment-setup.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.