/architecture-skills:persistence-designfrom architecture-skills
Guides database and persistence design decisions: data ownership, transaction boundaries, CQRS, caching, migrations, partitioning, and multi-tenancy.
Ships in architecture-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Start with business capability, ownership, and required consistency. Database technology, repositories, schemas, caches, and messages follow those decisions.
| Need | Mechanism |
|---|---|
| Atomic local decision and mutation | Database transaction with required isolation |
| Aggregate invariant | Load, decide, and save the aggregate as a unit |
| Infrequent write conflict | Optimistic version or ETag |
| Short serialized database operation | Pessimistic row lock |
| Finite resource in a long workflow | Reserve, confirm, and expire |
| State plus outgoing message | Transactional outbox |
| Multiple independent owners | Explicit eventual workflow or redesigned ownership |
A transaction alone is not enough; isolation must cover the reads and writes that determine correctness. Do not hold database transactions open through a long-running business process.
Optimize queries first and consider a read replica or purpose-built read model. If caching remains justified, define its update strategy, TTL, stale behavior, ownership, and database fallback load. Cache useful transformations rather than blindly mirroring rows.
For schema changes, expand with compatible structures, deploy code that handles old and new shapes, backfill, tighten constraints, then remove obsolete structures in a later release. Ensure old and new application versions can coexist during rolling deployment.
Choose shared, pooled, dedicated, or hybrid tenant storage after identifying the isolation target: data leakage, noisy neighbors, deployment, failure radius, compliance, residency, or dedicated capacity. Storage topology does not enforce tenancy by itself. Establish trusted tenant context at entry points, carry it through queries, writes, messages, background work, caches, and projections, and test that cross-tenant access fails.
What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/codebase-designUse for code-level module design, deep modules, interfaces, seams, adapters, testability, refactoring shallow modules, and finding architecture improvements in an existing codebase./design-reviewDesign review of a codebase area, branch, or PR. Maps its bounded contexts, vertical slices, and modules, then judges where rules live and whether flexibility sits where change actually happens. Use when the user asks for a design or architecture review, or when a review should judge structure rather than bugs or style./domain-driven-designUse for domain-driven design, domain modeling, ubiquitous language, bounded contexts, aggregates, invariants, entities, value objects, domain services, domain events, and deciding whether a rich domain model is warranted.Other plugins' skills for the same job
npx claudepluginhub eralmansouri/skills --plugin architecture-skills