agentleFS
wachterjohanneswachterjohannes/symfony-skills/skills/configuration/SKILL.md

configuration

Skill4 starsChanged 2 months agoMITView on GitHub

Use when deciding where a configuration value belongs — environment variable, parameter, class constant, or secret.

  • Reads credentials

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use logging, error-handling and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • diego-tobalinaSkill

    logging

    Logging best practices for Java (SLF4J/Logback) and Node.js (Winston/Pino). Use for structured logging, log levels, and avoiding sensitive data exposure.

    Also in 4 projects that use this

  • MicrosoftSkill

    error-handling

    统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。

    Also in 4 projects that use this

  • NVIDIASkill

    testing

    Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.

    Also in 5 projects that use this

  • AnthropicSkill

    architecture

    Create or evaluate an architecture decision record (ADR). Use when choosing between technologies (e.g., Kafka vs SQS), documenting a design decision with trade-offs and consequences, reviewing a system design proposal, or designing a new component from requirements and constraints.

    Also in 3 projects that use this

The file

Files
SKILL.md

Symfony configuration

Four places, distinguished by what makes the value change.

The value changesPut it inExample
Per machineenvironment variable (.env)DATABASE_URL, MAILER_DSN
Per environmentparameter (config/services.yaml)app.notifications_email
Almost neverclass constantPost::ITEMS_PER_PAGE
Must stay secretthe vault (secrets:set)API keys, passwords

Environment variables

Infrastructure only — hosts, credentials, DSNs. Defaults live in .env, which is committed. Real values live in .env.local, which is not. Read them with %env(...)%.

Application behaviour does not belong here.

Parameters

Behaviour that differs per environment. Prefix everything with app. so it can never collide with a parameter from Symfony or a bundle.

# config/services.yaml
parameters:
    app.notifications_email: 'noreply@example.com'
    app.items_per_page: 10

Class constants

Domain values that are intrinsic to the code rather than to a deployment. They work in Twig, in Doctrine queries and in plain PHP without going through the container.

final class Post
{
    public const ITEMS_PER_PAGE = 10;
    public const STATUS_DRAFT = 'draft';
}

Secrets

symfony console secrets:set DATABASE_PASSWORD

The vault is encrypted and safe to commit. Each environment has its own.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.