AgentSkillsCN

env-local

为本地开发环境生成 .env.local 文件,用于存储开发者专属的配置,如 API URL、端口以及功能标志等。出于安全考虑,该文件会被 Git 忽略。

SKILL.md
--- frontmatter
name: env-local
description: Generates .env.local file for local development environment variables. Contains developer-specific configuration like API URLs, ports, and feature flags. Gitignored for security.

Environment Local Skill

Purpose

Generate .env.local file for local development environment configuration.

Output

Create the file: .env.local

Notes

  • .env.local is used for local development environment variables
  • This file should be in .gitignore (never commit secrets)
  • Developers must replace <> placeholders with actual values
  • Used by Vite to inject environment variables at build time
  • All Vite env vars must be prefixed with VITE_ to be exposed to client code
  • NODE_ENV determines the build mode (development, production, test)