What problem does it solve?
Migrating WordPress.com Calypso Reader data-fetching code from legacy Redux data-layer handlers and @automattic/data-stores hooks to the @automattic/api-core and @automattic/api-queries React Query architecture is error-prone, with risks like orphaned cache keys, partial CRUD migrations, and stale UI state.
Core Features & Use Cases
- Structured Migration Workflow: Enforces a plan-first process with CRUD audits, cache-key consumer checks, and bridge-component decisions before any code changes.
- Fetcher and Query Scaffolding: Provides naming conventions and code templates for fetchers in api-core, query/mutation options in api-queries, and optional QueryReader bridge components.
- Redux Cleanup Guidance: Covers surgical removal of action types, reducers, selectors, and connect() HOCs, including an HOC pattern for class components.
- Use Case: When asked to migrate a QueryReaderTag component, the Skill audits all READER_* actions, plans the migration, creates fetchReadTag and readTagQuery, updates consumers, and removes the Redux slice in a separate commit.
Quick Start
Migrate the QueryReaderTag component and its Redux data-layer handlers to React Query following the api-core and api-queries architecture.