What problem does it solve?
Converting React Query mutations to documented mutations in the Opentrons codebase requires coordinated changes across react-api-client hooks, app callsites, api-client functions, localization files, and tests, and missing any step breaks access control documentation.
Core Features & Use Cases
- Hook Migration: Replace useMutation with useDocumentedMutation, wire documentationState, and forward userNotes through the api-client layer.
- Audit Log Registration: Add new AuditLogAction keys and English localization entries for access control audit trails.
- Callsite and Test Updates: Apply correct documentation state per platform (Flex, ODD, OT-2) and update hook and app tests with proper fixtures and mocks.
- Use Case: When adding an audit-logged action like pausing a run, use this Skill to convert the mutation, register the audit log key, update all callsites, and fix the tests in one guided pass.
Quick Start
Migrate the usePauseRunMutation hook to a documented mutation and update its callsites, tests, and audit log entries.