Rules and templates for developer and partner documentation built on Diataxis: choose the page type, then write or review tutorials, how-to guides, API and SDK reference, explanations, migration guides, changelogs, runbooks, integration and troubleshooting guides; plan information architecture and docs-as-code; audit…
Jest 30 rules for JavaScript and TypeScript tests: mocks and spies, async tests, fake timers, matchers, module mocking including ESM, snapshots, configuration and CI. Baseline: jest ^30.5.2. Use this skill whenever the project runs Jest (jest in package.json or a jest.config file) and the user writes, fixes, reviews…
Redux-Saga 1.x rules for generator-based side effects in Redux apps: effect creators, takeEvery, takeLatest and takeLeading, fork and spawn, cancellation, channels and eventChannel, error handling, testing with redux-saga-test-plan, and Redux Toolkit integration. Baseline: redux-saga 1.5.1. Use this skill whenever…
Patterns for testing Zod schemas with Jest or Vitest: valid and invalid cases, asserting issues and error paths, mock data from zod-schema-faker, property-based tests with fast-check, JSON Schema snapshots, and schemas inside API handlers and forms. Baseline: zod ^4.6.0. Use this skill whenever the user writes or…
Patterns for testing Redux Sagas in Jest or Vitest: redux-saga-test-plan with expectSaga (integration) and testSaga (unit), runSaga, and stepping a generator by hand; providers, partial matchers, reducer integration, error and cancellation paths. Use this skill whenever the user writes or fixes a test for a saga, even…
Mock Service Worker (MSW) v2 and v3 rules for mocking HTTP, GraphQL, WebSocket and SSE traffic in tests, Storybook and local development: handler design, setupServer and setupWorker, HttpResponse, per-test overrides with server.use, unhandled requests, and v1 to v2 to v3 migration. Baseline: msw ^3.0.0. Use this skill…