What problem does it solve? Components and hooks in this repository call the Layer REST API, and every endpoint they touch needs a mock for vitest and Storybook, since unhandled requests fail loudly. This Skill defines the conventions for building those mocks so tests and stories stay consistent, stateful, and honest to the API schemas. ## Core Features & Use Cases - Route-mirroring file layout: Mock files under src/msw/api/** mirror the REST path and the @api hooks file for file, with a CI coverage check that fails when an endpoint lacks a handler. - createMockEndpoint and stateful stores: Each endpoint exposes a default handler plus per-test mock and mockError overrides, backed by in-memory stores that reset automatically between tests so POST-then-GET flows work. - Realistic query behavior: Shared list filters, sorters, and cursor-based pagination helpers make mocks honor query params like search, date ranges, and sorting. - Use Case: When adding a new customers endpoint hook, create the matching get.ts/post.ts mock files, register them in the enclosing handlers.ts, and the component works in both tests and Storybook. ## Quick Start Add an MSW mock for the new endpoint by creating a route-mirroring file under src/msw/api with createMockEndpoint and registering it in the enclosing handlers.ts.