Env Config Setup
Generate environment configuration files and validation schemas
- Type
- Slash Command
- Repository
- jeremylongshore/tons-of-skills-marketplace
- GitHub stars
- 2.8k
- License
- MIT
- Repo last updated
- Sep 27, 2026
What Env Config Setup is
Env Config Setup is a slash command published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”
A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.
Env Config Setup gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.
How to install Env Config Setup
Claude Code
- Download env-config-setup.md from the repository.
- Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
- Run it by typing / followed by its name.
Claude Cowork
- Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
- In Customize → Skills, click +, then upload the ZIP.
- Run it from any task with / and the skill name.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/packages/fullstack-starter-pack/commands/env-config-setup.md, shared under the repository's MIT license. Read the full file on GitHub.
Generates environment configuration files (.env templates, validation schemas, and type-safe config loading) for multiple environments.
What This Command Does
Generated Configuration:
- .env.example (committed template)
- .env.development, .env.production
- Config validation schema (Zod)
- Type-safe config loader
- Secret management guidance
- Docker environment setup
Output: Complete environment configuration system
Time: 2-3 minutes
Usage
# Generate basic environment config
/env-config-setup
# Shortcut
/ecs --services database,redis,email
# With specific platform
/ecs --platform aws --features secrets-managerGenerated Files
.env.example (Template - Committed to Repo)
# Application
NODE_ENV=development
PORT=3000
APP_NAME=My Application
APP_URL=http://localhost:3000
# Database
DATABASE_URL=postgresql://user:password@localhost:5432/myapp
DATABASE_POOL_MIN=2
DATABASE_POOL_MAX=10
# Redis
REDIS_URL=redis://localhost:6379
REDIS_PREFIX=myapp:
# Authentication
JWT_SECRET=generate-random-32-char-secret-here
JWT_EXPIRES_IN=15m
….env.development
NODE_ENV=development
PORT=3000
DATABASE_URL=postgresql://postgres:password@localhost:5432/myapp_dev
REDIS_URL=redis://localhost:6379
LOG_LEVEL=debug.env.production
NODE_ENV=production
PORT=8080
# Use environment variables or secrets manager for sensitive values
DATABASE_URL=${DATABASE_URL}
REDIS_URL=${REDIS_URL}
JWT_SECRET=${JWT_SECRET}
LOG_LEVEL=warnconfig/env.ts (Type-Safe Config Loader)
import { z } from 'zod'
import dotenv from 'dotenv'
// Load appropriate .env file
const envFile = process.env.NODE_ENV === 'production'
? '.env.production'
: '.env.development'
dotenv.config({ path: envFile })
// Define validation schema
const envSchema = z.object({
// Application
NODE_ENV: z.enum(['development', 'production', 'test']).default('development'),
PORT: z.coerce.number().min(1).max(65535).default(3000),
APP_NAME: z.string().min(1),
APP_URL: z.string().url(),
…config/secrets.ts (AWS Secrets Manager)
import { SecretsManager } from '@aws-sdk/client-secrets-manager'
const client = new SecretsManager({ region: process.env.AWS_REGION })
export async function loadSecrets(secretName: string) {
try {
const response = await client.getSecretValue({ SecretId: secretName })
return JSON.parse(response.SecretString || '{}')
} catch (error) {
console.error('Failed to load secrets:', error)
throw error
}
}
// Usage
const secrets = await loadSecrets('prod/myapp/secrets')
process.env.JWT_SECRET = secrets.JWT_SECRETdocker-compose.env.yml
version: '3.8'
services:
app:
build: .
env_file:
- .env.development
environment:
- NODE_ENV=development
- PORT=3000
ports:
- "3000:3000"
db:
image: postgres:15-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
…Security Best Practices
1. Never Commit Secrets:
# .gitignore
.env
.env.local
.env.*.local
.env.production
*.key
*.pem
secrets/2. Use Secret Rotation:
# Rotate secrets regularly
# Use AWS Secrets Manager, GCP Secret Manager, or Azure Key Vault
# Example: Rotate JWT secrets every 30 days3. Least Privilege:
# Only provide necessary permissions
# Use separate credentials for dev/staging/prod
# Implement role-based access control4. Environment Validation:
// Validate on startup
if (process.env.NODE_ENV === 'production') {
if (!env.JWT_SECRET || env.JWT_SECRET.length < 32) {
throw new Error('Production JWT_SECRET must be at least 32 characters')
}
}Secret Generation
# Generate secure random secrets
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
# Or use openssl
openssl rand -hex 32
# For JWT secrets (base64)
openssl rand -base64 32Platform-Specific Setup
Vercel:
# Set environment variables via CLI
vercel env add DATABASE_URL production
vercel env add JWT_SECRET productionRailway:
# Environment variables in dashboard
# Or via railway.json
{
"deploy": {
"envVars": {
"NODE_ENV": "production"
}
}
}AWS ECS:
{
"containerDefinitions": [{
"secrets": [
{
"name": "DATABASE_URL",
"valueFrom": "arn:aws:secretsmanager:region:account:secret:name"
}
]
}]
}Related Commands
- /auth-setup - Generate authentication system
- /project-scaffold - Generate full project structure
Manage secrets safely. Configure environments easily. Deploy confidently. ️
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Env Config Setup?
Env Config Setup is a slash command for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Generate environment configuration files and validation schemas
How do I install Env Config Setup in Claude Code?
Download env-config-setup.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.
Can I use Env Config Setup in Claude Cowork?
Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.
Is Env Config Setup safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Monitoring Stack Deployer Deploy monitoring stacks (Prometheus, Grafana, Datadog) Plugin · jeremylongshore/tons-of-skills-marketplace
- Model Selector Recommends the right LLM model for any task by weighing quality, latency, cost, and context-window requirements across OpenAI, Anthropic, Google, and open-source options. Use when choosing a model for a new feature or reducing spend without sacrificing quality. Trigger with "which model should I use", "pick the best LLM for this". Subagent · jeremylongshore/tons-of-skills-marketplace
- Monitoring Setup Set up monitoring stack with Prometheus, Grafana, alerts Slash Command · jeremylongshore/tons-of-skills-marketplace
- Multi Agent Orchestrator Coordinates multi-agent systems by decomposing tasks, routing to the right specialist, managing handoffs with full context, and aggregating outputs into a cohesive result. Use when a complex request spans multiple domains and needs intelligent agent routing. Trigger with \"orchestrate this task\", \"route to the right agent\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Env Setup Set up and manage isolated test environments Slash Command · jeremylongshore/tons-of-skills-marketplace
- Env Config Manage environment configurations and secrets across deployments Slash Command · jeremylongshore/tons-of-skills-marketplace
- Explore Explore blockchain transactions, addresses, and contracts Slash Command · jeremylongshore/tons-of-skills-marketplace
- Drift Detect Detect infrastructure drift from desired state Slash Command · jeremylongshore/tons-of-skills-marketplace