Initialize or refactor a frontend project to use TanStack Query as the unified server-state layer. Use when the user asks to install TanStack Query, initialize query infrastructure, migrate ad hoc fetch/invoke/useEffect request state, standardize query keys, or make app network requests share one cache model. Also trigger when the user mentions "初始化 TanStack Query", "重构网络请求", "统一请求缓存", "install-tanstack-query", "TanStack Query refactor", or "useInvokeQuery".
$npx -y skills add lovstudio/dev-skills --skill install-tanstack-queryInstalls into the current project.
Run `npx skills use "https://github.com/lovstudio/dev-skills" --skill "lovstudio/dev-skills/install-tanstack-query"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/lovstudio/dev-skills" that are relevant to the current task. Run `npx skills add "https://github.com/lovstudio/dev-skills"` and select the relevant skills, then follow their instructions.