What problem does it solve?
Designing consistent domain data layers in the Ledger Wallet codebase is error-prone when types, state, mocks, and selectors drift apart. This Skill enforces a simple convention where one API response maps to one entity slice, keeping schemas, inferred types, initial state, and tests aligned.
Core Features & Use Cases
- Domain Modeling Guidance: Directs creation and review of domain/entity schemas and inferred types following the one-response-to-one-slice rule.
- State and Mock Scaffolding: Covers initial state, mocks, selectors, and slices so each entity has a complete, consistent data layer.
- API Client and Test Conventions: Guides domain/API clients and their tests, delegating to a canonical skill document as the single source of truth.
- Use Case: When adding a new entity to a Ledger Wallet app, use this Skill to generate the schema, inferred TypeScript types, initial state, mocks, selectors, slice, API client, and tests in one coherent pass.
Quick Start
Ask the assistant to create the domain schema, types, initial state, mocks, selectors, slice, and API client for a new entity following the ddd-types-state-mocks conventions.