agentsclimarketplace

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

Install
npx -y skills add hewr-srood/tanstack-appoperation-kit --skill tanstack-appoperation-requests

Assembled 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 AppOperation class (src/AppOperation.ts).
  • QUERY_KEYS object (as const) + Requests map + requests object (src/api.ts).
  • appOperation.getRequest as the only HTTP entry point.
  • TanStack Query hooks using appOperation in queryFn / mutationFn.
  • A single showToast(type, message) handler passed to AppOperation (and optionally overridden via setToastHandler) so all success/error toasts are handled in one place; individual calls can pass suppressToast: true when 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.

Keep looking

Skills are one crate of 326,871. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.