← ClaudeAtlas

hex-wiringlisted

Use when adding a binding in `containers.py` — provider classes, binding lifetimes, the `create_container` composition root and its declaration order, and where each settings class is constructed and bound — every one before the process serves or takes work. Bound here to dishka, with other DI libraries mapped under `## Other bindings`. What a settings class declares, defaults and keeps secret is `python-settings`; the class being bound must already exist — `hex-application`, `hex-capability-adapter`; the project substrate is `hex-project-setup` and the toolchain `python-toolchain`, not runtime wiring.
wntic/pyhouse · ★ 3 · AI & Automation · score 79
Install: claude install-skill wntic/pyhouse
# Hex — Wiring Handing objects to whoever needs them, from one composition root. Settings are among those objects: what a settings class declares is `python-settings`, and this skill says where, in a hexagonal service, it is constructed and bound — at a composition root and nowhere else (`python-settings` rule 13). Each settings class is shown beside the adapter that reads it: the relational store's `PostgresSettings` in `hex-persistence`, `FooClassifierSettings` in `hex-capability-adapter`, `RedisSettings` in `hex-store-repository`, `JwtSettings` in `hex-restapi-auth`. The composition roots of that rule are, in this catalogue's layout, `src/myapp/containers.py` (the process's container), `migrations/env.py` (the migration environment, `hex-project-setup`) and `TestInfrastructureProvider` with its fixtures in `tests/integration/conftest.py` (the test infrastructure, `hex-test-integration-setup`), which constructs settings with explicit values (`test-principles`). ## When to use vs. neighbours - What a settings class declares — its namespace, defaults, secrets, derived values, validation → `python-settings`. - Binding a new class in the composition root, or choosing its lifetime → this skill. - The class being wired must already exist — a handler, repository, service, adapter → `hex-application`, `hex-persistence`, `hex-store-repository`, `hex-domain-service`, `hex-capability-adapter`. - A frozen domain-shaped view of settings values the domain consults → the tunable varian