paishu-ai/pai-zong-nb-v5.8/20-data-fetching-state
Claude Code and agent skill by paishu-ai/pai-zong-nb-v5.8
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Design and implement client-side data fetching and server state for API-driven desktop and web apps: caching, invalidation, optimistic updates, polling, subscriptions, pagination, stale data, offline behavior, and request race handling.
Install
npx vskill@latest install paishu-ai/pai-zong-nb-v5.8/20-data-fetching-stateSKILL.md
The same SKILL.md was published earlier as paishu-ai/pai-zong-nb-v5.8/20-data-fetching-state.
Data Fetching State
Workflow
- Classify data as server state, client UI state, form draft, or local persisted state.
- Choose existing project tooling: TanStack Query, SWR, RTK Query, Apollo, custom store, or native async patterns.
- Define cache keys, invalidation rules, stale time, retry behavior, and background refresh.
- Handle race conditions, cancellation, duplicated requests, and auth expiry.
- Decide whether optimistic updates are safe; provide rollback if used.
Required Checks
- Do not duplicate server state across unrelated stores without a reason.
- Keep loading, refetching, stale, error, and saving states distinct.
- Use cursor pagination when the API supports it for changing datasets.
- Avoid polling when events, webhooks, or push channels already exist and are reliable.
- Make destructive mutations invalidate or update affected queries.
Output
State state categories, fetch strategy, cache/invalidation behavior, mutation behavior, and tests.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/20-data-fetching-state/SKILL.md
Popularity
- Repository stars
- 1
- Repository forks
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/paishu-ai/pai-zong-nb-v5.8/20-data-fetching-state)