BumpyClock/agent-templates / skills/ios-macos-development
ios-macos-development
FlaggedBuild, debug, or release iOS and macOS apps with Swift and Apple platform tools.
ios-simulator/scripts/common/env_config.py
View on GitHub#!/usr/bin/env python3
"""Env-var overrides for tunable defaults.
All overrides use the ``IOS_SIM_`` prefix. See SKILL.md → Configuration
for the canonical list of supported variables.
"""
import os
import sys
def env_int(name: str, default: int, min_value: int = 1) -> int:
"""Read ``name`` as an int, falling back to ``default`` on miss or parse error."""
raw = os.environ.get(name)
if raw is None or raw == "":
return default
try:
value = int(raw)
except ValueError:
print(f"warning: {name}={raw!r} is not an int; using default {default}", file=sys.stderr)
return default
return max(value, min_value)
def env_float(name: str, default: float, min_value: float = 0.0) -> float:
"""Read ``name`` as a float, falling back to ``default`` on miss or parse error."""
raw = os.environ.get(name)
if raw is None or raw == "":
return default
try:
value = float(raw)
except ValueError:
print(f"warning: {name}={raw!r} is not a float; using default {default}", file=sys.stderr)
return default
return max(value, min_value)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |