config-conventions
Skill7 starsChanged 4 days agoMITView on GitHub
Configuration surface in any language: env-var names, flags, config files, precedence, the log-level variable. TRIGGER when: reading an environment variable; defining CLI flags or options; adding a config file or a config layer, in any language; user asks how to name an env var or which setting wins. SKIP when: the change adds or reads no configuration.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- leroyguillaume/claudeword for word, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 1
- leroyguillaume/claude★ 7100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository54 other files it gives its agents.
- adr-conventionsSkill
- api-conventionsSkill
- architecture-conventionsSkill
- argocd-conventionsSkill
- ci-conventionsSkill
- contributing-conventionsSkill
- councilSkill
- cryptography-conventionsSkill
- dependency-update-conventionsSkill
- diagram-conventionsSkill
- docker-conventionsSkill
- documentation-conventionsSkill
- frontend-conventionsSkill
- github-actions-conventionsSkill
- github-issue-conventionsSkill
- github-pr-conventionsSkill
- github-repo-settingsSkill
- gitlab-ci-conventionsSkill
- helm-conventionsSkill
- herdr-core-delegationSkill
- herdr-delegationSkill
- herdr-tui-delegationSkill
- kopf-conventionsSkill
- kubernetes-operator-conventionsSkill
- logging-conventionsSkill
- logo-conventionsSkill
- mise-conventionsSkill
- ollama-conventionsSkill
- openssf-conventionsSkill
- pr-conventionsSkill
- pre-commit-conventionsSkill
- project-metadata-conventionsSkill
- python-async-conventionsSkill
- python-conventionsSkill
- readme-conventionsSkill
- release-script-conventionsSkill
- release-supply-chain-conventionsSkill
- renovate-ci-conventionsSkill
- rest-conventionsSkill
- rust-build-conventionsSkill
- rust-conventionsSkill
- rust-http-conventionsSkill
- security-policy-conventionsSkill
- signal-handling-conventionsSkill
- sql-conventionsSkill
- starlight-conventionsSkill
- systemd-conventionsSkill
- system-user-conventionsSkill
- task-conventionsSkill
- terraform-conventionsSkill
- topic-splittingSkill
- ui-copy-conventionsSkill
- web-layout-conventionsSkill
- yaml-conventionsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Every setting resolves in one order, the first source that sets it winning:
- Distinctive: line 24
Every option is settable through an environment variable: No knob is reachable by flag only: a container, a CI job or a systemd unit …
- Distinctive: line 84
Never add a scalar setting that only a flag, or only a config file, can set.
- Distinctive: line 85
Never read an environment variable outside the config layer.
- Distinctive: line 86
Never give a CLI's own variable a bare name, or a service's a prefixed one.
- Distinctive: line 87
Never fall back from one variable name to another.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Configuration conventions
Applies to every language. The language skills (python-conventions,
rust-conventions) give the mechanics: which library holds the config layer
and how an option declares its variable.
Precedence
Every setting resolves in one order, the first source that sets it winning:
CLI flags → environment variables → config file → defaults.
- Every option is settable through an environment variable. No knob is reachable by flag only: a container, a CI job or a systemd unit configures a process through its environment.
- A config file is optional, for a project with enough settings to warrant
one. Its path is itself an option, flag and variable like any other
(
--config-file,CONFIG_FILEorMYTOOL_CONFIG_FILE), and what the file sets loses to the environment. Only structured data with no flat form (a list of targets, a map of rules) may live in the file alone. - Read configuration in one place, the config layer, once at start-up,
into a typed structure handed to the rest of the program. A variable read
deep inside a module is missing from
--help, from the docs and from the tests.
Naming environment variables
The right name depends on who owns the environment the process runs in.
- A process that owns its environment takes the bare, conventional name.
A service, daemon, worker or job in a container is handed an environment
written for it and nothing else, so a prefix is pure noise:
BIND_ADDR,DB_MAX_CONNECTIONS,STORAGE_BACKEND— neverMYAPP_BIND_ADDR. - A CLI or tooling binary prefixes every variable with its own name, in
upper snake case:
MYTOOL_CONFIG_FILE,MYTOOL_FORCE,RIPGREP_CONFIG_PATH. Its shell or CI job is shared with dozens of other tools, and its knobs are the generic words everybody uses —FORCE,DRY_RUN,OFFLINE,CONFIG_FILE,TARGET,VERBOSE,DEBUG. A leftover value is picked up in silence, and for a destructive flag the first symptom is the damage: aFORCE=1exported an hour ago for another tool turns a refusal to overwrite into an overwrite. - For a binary that is arguably both (a server with a CLI entrypoint, a tool that also runs as a job), ask: would a person plausibly have this variable set for another reason when they run it? In a container, no — bare names. On a laptop or in a CI shell, yes — prefix.
- Never read both the prefixed and the bare name. The fallback keeps the very collision the prefix removes, and it fails silently. One name, read once.
- Cross-tool standards keep their standard name, prefix or not:
NO_COLOR,HTTP_PROXY/HTTPS_PROXY/NO_PROXY,SSL_CERT_FILE,XDG_*,DATABASE_URLwhere it really is the standard, and an upstream's own variables (OLLAMA_HOST). Being shared is their whole point; never prefix or rename one.
The log-level variable
LOG_LEVELsets the verbosity (MYTOOL_LOG_LEVELfor a CLI), with a--log-levelflag beside it.- Rust names it
LOG_FILTER(MYTOOL_LOG_FILTER,--log-filter): it carries atracingEnvFilterdirective (info,myapp=debug,hyper=warn), not a level, and the name says what the value is. - A browser bundle takes its bundler's public-env name, at build time
(
VITE_LOG_LEVELwith Vite,NEXT_PUBLIC_LOG_LEVELwith Next.js): it has no flags and no runtime environment, and the bundler exposes only prefixed variables to client code. It is the one exception to the precedence above. - Never a language-named variable such as
RUST_LOG: the name describes the knob, not the language the binary is written in.
The log format variable and its default are in logging-conventions.
Never:
- Never add a scalar setting that only a flag, or only a config file, can set.
- Never read an environment variable outside the config layer.
- Never give a CLI's own variable a bare name, or a service's a prefixed one.
- Never fall back from one variable name to another.
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
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.

