ワンクリックで
environment-setup
Environment variable patterns, config file validation, and setup verification for new project scaffolding.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Environment variable patterns, config file validation, and setup verification for new project scaffolding.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Multi-agent delegation rules, three-phase workflow (Plan/Build/Review), model selection, collaboration gates, and Ralph Loop integration.
Autonomous build driver after SDD spec approval: phase-scoped headless build sessions, driver-owned commits, cross-provider review gates, milestone pauses, and fail-closed escalation — under explicit opt-in autonomy profiles.
When and how to ask clarifying questions before implementing. Data model review gate and ambiguity resolution rules.
Quality gates, prohibited patterns, verification discipline, and self-audit rules for all code generation and review sessions.
Cross-copilot portable conventions: read before write, minimal changes, git discipline, project structure, and priority rules.
Copyright header rules for generated source files. Applies the company name from providers.toml to new files.
| name | environment-setup |
| description | Environment variable patterns, config file validation, and setup verification for new project scaffolding. |
Rules for managing environment variables, secrets, and local configuration across any stack.
Every project should have a template/example config file checked into source control, and the actual config file (with real values) gitignored. The developer copies the template and fills in real values locally.
| Stack | Template File | Actual File | Gitignored |
|---|---|---|---|
| Node.js / Python | .env.example | .env | .env |
| Java / Spring | application-example.yml | application.yml | application.yml |
| Go | config.example.yaml | config.yaml | config.yaml |
| Docker | docker-compose.override.example.yml | docker-compose.override.yml | docker-compose.override.yml |
During scaffolding, before the first build/run:
cp .env.example .env (or equivalent for your stack).Always validate required environment variables at startup. Fail fast with clear error messages rather than crashing with cryptic errors later.
# Pseudocode — adapt to your language/framework
required_vars = ["DATABASE_URL", "SECRET_KEY", "API_BASE_URL"]
for var in required_vars:
if var not set or empty:
raise Error("Missing required environment variable: {var}")
Most frameworks have libraries for this (e.g., Zod + dotenv for Node, pydantic-settings for Python, Spring @ConfigurationProperties for Java).
Local development:
Production:
.env files in production. Use the platform's secret management (e.g., cloud provider secrets manager, Kubernetes secrets, CI/CD variables).Team sharing:
| Symptom | Likely Cause | Fix |
|---|---|---|
| App crashes on startup | Missing required env var | Check template file, add missing vars to local config |
| "Connection refused" errors | Service not running or wrong credentials | Verify the service is running, check URL and credentials |
| "Module not found" at runtime | Missing runtime dependency | Install the dependency (may not be caught by type checkers) |
| Auth/login fails | Missing or incorrect secret key | Regenerate and set the secret key in local config |