Architecture Compose Resource Limit Env Substitution banner
HomericIntelligence HomericIntelligence

Architecture Compose Resource Limit Env Substitution

DevOps community

Description

--- name: architecture-compose-resource-limit-env-substitution license: BSD-3-Clause description: "Planning pattern for exposing hard-coded docker-compose deploy.resources limits/reservations (cpus, memory) as overridable Compose ${VAR:-default} substitutions WITHOUT changing default behavior. CRITICAL test-breakage trap: yaml.safe_load does NOT interpolate ${VAR:-default} — it returns the literal string, so any test/parser that does float(limits['cpus']) on the raw YAML scalar raises ValueError

Installation

Installs to ~/.claude/skills/homericintelligence-projectmnemosyne-architecture-compose-resource-limit-env-substitution/SKILL.md

Terminal
mkdir -p ~/.claude/skills/homericintelligence-projectmnemosyne-architecture-compose-resource-limit-env-substitution && curl -fsSL https://raw.githubusercontent.com/HomericIntelligence/ProjectMnemosyne/HEAD/skills/architecture-compose-resource-limit-env-substitution.md -o ~/.claude/skills/homericintelligence-projectmnemosyne-architecture-compose-resource-limit-env-substitution/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository