원클릭으로
project-tools-python-utilities
// Use when changing Python utilities under tools/ and you need the repo-specific contracts for rendering, env handling, validation, and secret-safe behavior
// Use when changing Python utilities under tools/ and you need the repo-specific contracts for rendering, env handling, validation, and secret-safe behavior
Use when onboarding to the Local-Stack repo, locating the owning service or stack for a change, or checking Swarm migration conventions before editing infrastructure files
Use when modifying stackctl.sh and you need the repo-specific safety, portability, and validation rules for stack orchestration changes
| name | project-tools-python-utilities |
| description | Use when changing Python utilities under tools/ and you need the repo-specific contracts for rendering, env handling, validation, and secret-safe behavior |
| metadata | {"migrated-from":".github/instructions/tools.instructions.md","source-format":".instructions.md"} |
Utilities under tools/ support rendering and deployment workflows for Local-Stack. Keep them dependency-light, safe by default, and strict about avoiding secret leakage or writes back into source compose files.
tools/.PyYAML for YAML parsing and keep dependencies narrow in tools/requirements.txt..env files outside intended env_file scope.For tools/render_compose.py:
-i/--input, -o/--output, optional --strict.env_file values load first, current process environment layers on top, inline environment values override both.${VAR}, ${VAR-default}, ${VAR:-default}, and unbraced $VAR.--strict is set, then fail non-zero.Run these after tool changes:
python3 -m py_compile tools/*.py
python3 tools/render_compose.py --help
docker compose -f <rendered-file> config
Update tools/README.md and tests under tools/tests/ when behavior changes.