Skip to content
Back to skills

Config Env Parameters

ASecurity

Manage Symfony configuration with .env files, parameters, secrets vault, and environment-specific settings

  • 233 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added August 31, 2026
developmentshellbashrails

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 6, 2026

npx -y skills add dev-toolings/superpowers-symfony --skill config-env-parameters --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Config Env Parameters?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Config Env Parameters
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dev-toolings-config-env-parameters/badge)](https://www.skillsdirectory.com/skills/dev-toolings-config-env-parameters)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: config-env-parameters
description: Manage Symfony configuration with .env files, parameters, secrets vault, and environment-specific settings
capabilities: [read, search, edit, shell]
tags: [architecture, config]
# projected by `bun run build` — do not edit by hand
allowed-tools:
  - Read
  - Glob
  - Grep
  - Write
  - Edit
  - Bash
---

# Config Env Parameters (Symfony)

## Use when
- Adding or changing an environment variable, a parameter, or a secret.
- A value differs between environments (dev, test, prod).
- Casting or parsing env values (`int:`, `bool:`, `json:`, `csv:`, `file:`).
- Storing credentials in the Symfony secrets vault.

## Default workflow
1. Decide where the value lives: `.env` default, `.env.local`, real environment, or the vault for secrets.
2. Declare it with a safe committed default, never a real credential.
3. Inject it with `%env(...)%` and the right processor, through a parameter or `#[Autowire]`.
4. Put environment-specific settings in `config/packages/<env>/` or `when@<env>` blocks.
5. Fail fast in the service when a required value is empty.

## Guardrails
- Never commit `.env.local`, `.env.*.local` or the vault decryption key.
- In production, set variables in the server or container environment, not in files.
- Env values are strings until processed: cast them, do not compare `"false"` to `false`.
- Remember the loading order: `.env`, `.env.local` (skipped in test), `.env.<env>`, `.env.<env>.local`.

## Progressive disclosure
- Use this file for execution posture and risk controls.
- Open references when deep implementation details are needed.

## Output contract
- Where each new value is defined, per environment.
- The injection point and the processor used.
- Secrets added to the vault, named but never printed.

## References
- `reference.md`

Files in this skill

  • SKILL.md1.1 KB
  • reference.md7.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.