← ClaudeAtlas

hex-store-repositorylisted

Use when an aggregate is persisted on a nonrelational store — key-value, document or wide-column (redis, mongo, dynamo) — reached through an injected SDK client, or a derived index is kept beside the authoritative store. Produces the repository adapter satisfying the narrower port such a store answers, the store's settings class and connection factory, its container token and namespace keys, record mapping, and SDK-error translation. Not a relational `Table` and its migration (`hex-persistence`), and not a single-action `ICan<Verb>` port (`hex-capability-adapter`).
wntic/pyhouse · ★ 3 · Code & Development · score 79
Install: claude install-skill wntic/pyhouse
# Hex — Store Repository Produces one repository class that adapts a domain repository protocol to a client-style datastore — any store reached through an injected SDK client rather than the shared relational bootstrap. That sentence is the whole selection rule: **the store profile, not the vendor, decides that this skill applies.** **A new vendor is its own `infrastructure/<kind>/` package under this skill — never a fork of it** (Rule 12). The pattern is fixed here (client injection, a fixed container token, record↔entity mapping, boundary translation via `exception-catalog`); the vendor rides in through three things and nothing else: the injected client type, the store's settings class and connection factory, and the SDK semantics that store documents. Key-value, document and wide-column stores are all one profile under that rule, and so is an index kept beside the authoritative store, which is why one skill serves them. ## When to use vs. neighbours - The aggregate's store is the relational bootstrap store (SQLAlchemy/Postgres) → `hex-persistence`. - The protocol file (`i_foo_repository.py`) → `hex-domain-ports`. - A single-action `ICan<Verb>` port (not an aggregate's collection) → `hex-capability-adapter`. - The obligations a settings class meets (environment namespace, secrets, construction only at a composition root) → `python-settings`; the store's own settings class is shown here, beside the adapter that reads it. - The lifetime and declaration-order rules the rep