Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

environment-config

/environment-config

Zarządza konfiguracją skryptów i narzędzi przez zmienne środowiskowe, pliki dotenv i warstwowy priorytet ustawień, bez wycieku sekretów.

Repozytorium
AI-SKILLS ↗
Licencja
MIT
Ostatnia zmiana repozytorium
05.09.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 05.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Zarządza konfiguracją skryptów i narzędzi przez zmienne środowiskowe, pliki dotenv i warstwowy priorytet ustawień, bez wycieku sekretów.

Oryginalny opis (EN)

Manage script and tool configuration through env vars, dotenv files, and layered precedence without leaking secrets. Use when wiring configuration for CLIs, scripts, and local development.

Jak działa

  1. Method
  2. Boundaries
Sekcje z nagłówków SKILL.md, w oryginale · 67 linii, 456 słów
Podgląd SKILL.md
---
name: environment-config
description: Manage script and tool configuration through env vars, dotenv files, and layered precedence without leaking secrets. Use when wiring configuration for CLIs, scripts, and local development.
---

# Environment config

Configuration answers "what varies between runs and machines".
The design goals: one documented precedence order, defaults that work
out of the box, and secrets that never touch the repo or the process
list.

## Method

1. **Fix the precedence order and document it.** Flags > environment
   variables > project config file > user config file > built-in
   defaults: most specific wins, every layer optional (see
   cli-ux-design). Print the effective config on request
   (`tool config show` with sources annotated); debugging "why is
   it using that value" consumes more time than any other config
   problem.
2. **Namespace and document the env vars.** `TOOL_*` prefix so
   variables are greppable and collision-free; document each
   (name, effect, default) in help and README (see
   readme-writing); read them in one config module, not scattered
   `os.environ` calls through the codebase (see
   config-management's app-side twin, spring-boot-discipline and
   dotnet-dependency-injection for typed binding in services).
3. **Use dotenv files for local dev only.** `.env` holds local
   overrides, loaded by the tool or direnv; `.env` goes in
   .gitignore *before* the first commit, and a committed
   `.env.example` documents the shape with placeholder values
   (see onboarding-docs). Production gets real environment
   injection (orchestrator secrets, CI variables), never shipped
   dotenv files (see secrets-management).
4. **Validate at startup, fail with names.** Check required
   variables and value shapes before doing work; the error names
   the variable and the fix ("TOOL_API_URL unset: export it or
   run 'tool init'"): see request-validation's parse-don't-check
   ethic applied to the environment. Type-convert once (ports to
   ints, flags to bools with a defined truthy set) so downstream
   code never re-parses strings.
5. **Keep secrets out of argv and out of files where possible.**
   Flags leak via process lists and shell history: secrets arrive
   by env var (from a manager at spawn), by file path with 0600
   perms, or by prompting a TTY: never `--password hunter2`
   (see cli-ux-design step 6, secrets-scanning for the repo
   side). Scripts avoid `set -x` around secret handling, and log
   redacted config only (see pii-handling instincts for logs).
6. **Respect platform conventions for user config.** XDG paths
   (`~/.config/tool/`) on Linux, platform equivalents elsewhere
   (platformdirs-class helpers; see python-cli-tools boundary
   note): not dotfile sprawl in $HOME. Machine-level vs
   user-level vs project-level config each has a location and a
   reason; write config only where the user asked
   (`tool config set` edits the user layer explicitly).

## Boundaries

- Application/deployment config for services (flag systems,
  config servers, per-environment promotion) is
  config-management's territory; this skill covers tools and
  scripts.
- Environment variables are inherited by child processes
  wholesale: spawning untrusted or logging-happy subprocesses
  with secrets in the environment is a leak path (scrub or
  allowlist the child env).
- Config schemas evolve: renamed variables get a deprecation
  window reading old + warning, like any interface change (see
  api-change-management in miniature).

Wersje

W bazie nie ma innych skilli o nazwie environment-config.

Migawka bazy z 13.11.2026 · wersja paczki 7d290d74fdee (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100env-setup-wizard
    Pomaga konfigurować zmienne środowiskowe, pliki .env i zarządzanie konfiguracją aplikacji.
  • 100direnv-dotenv-environment-isolation
    Izoluje zmienne środowiskowe i konfigurację projektu za pomocą direnv, tak by sekrety nie trafiały do innych projektów.
  • 100env-vars
    Ustawia zmienne środowiskowe i klucze API w piaskownicy dla narzędzi i skryptów uruchamianych przez agenta.
  • 100env-validator
    Porównuje pliki .env z odwołaniami w kodzie i manifestami, wykrywając brakujące zmienne, niezgodności typów, niebezpieczne wartości domyślne i nieużywane wpisy.
  • 95effect-config
    Wczytuje i sprawdza typowaną konfigurację w Effect: zmienne środowiskowe, pliki .env, JSON i własne źródła.
  • 100env-manager
    Zarządza zmiennymi środowiskowymi i sekretami w środowiskach development, staging i produkcji: audyt, synchronizacja, wykrywanie braków i rotacja poświadczeń.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.