Agent skill
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.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/tanstack-appoperation-requests
SKILL.md
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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?