Tanstack appoperation requests
Skill hewr-srood/tanstack-appoperation-kit/.cursor/skills/tanstack-appoperation-requests
Standardize how API requests are defined and consumed via AppOperation together with TanStack Query. Use in React Native/Expo projects when the user mentions appOperation, QUERY_KEYS, api.ts from this kit, or wants to add new API calls, hooks, or screens that talk to the backend.From its SKILL.md
npx -y skills add hewr-srood/tanstack-appoperation-kit --skill tanstack-appoperation-requestsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.1 KB, 180 tokens by cl100k_base, as published. Nobody here has run it
TanStack Query + AppOperation Requests (Kit)
This skill is the portable version of the pattern:
- Central
AppOperationclass (src/AppOperation.ts). QUERY_KEYSobject (as const) +Requestsmap +requestsobject (src/api.ts).appOperation.getRequestas the only HTTP entry point.- TanStack Query hooks using
appOperationinqueryFn/mutationFn. - A single
showToast(type, message)handler passed toAppOperation(and optionally overridden viasetToastHandler) so all success/error toasts are handled in one place; individual calls can passsuppressToast: truewhen they must be silent.
Use this whenever editing projects that consume tanstack-appoperation-kit.
For full instructions and examples, see the main README.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.