alfredoperez avatar

Angular Best Practices Tanstack

If you're using TanStack Query's experimental Angular adapter, this skill keeps you on the right path with query key factories and cache invalidation patterns. It's focused on server state management, meaning it won't interfere if you're using NgRx Effects or RxJS for other parts of your app. The two rules here cover the core distinction between server and client state, plus how to structure query keys for hierarchical invalidation. This is an add-on to the main angular-best-practices skill from the same author, so you'll want both installed for complete coverage. The scope is narrow but hits the patterns that matter most when you're moving API calls to TanStack Query.

skills.sh installs
230
GitHub stars
36
last updated
Jun 3, 2026

Install

$ npx -y skills add alfredoperez/angular-best-practices --skill angular-best-practices-tanstack --agent claude-code

Installs into .claude/skills of the current project.

Files

Angular TanStack Query Best Practices

TanStack Query rules for server state with automatic caching, deduplication, and background refetching. Use with the core angular-best-practices skill for comprehensive Angular coverage.

Links

When to Apply

  • Fetching data from APIs with injectQuery
  • Performing mutations with cache invalidation
  • Structuring query keys for hierarchical invalidation

Rules

RuleImpactDescription
Know When to Use TanStack QueryMEDIUMServer state (APIs) vs client state (signals)
Use Query Key FactoriesMEDIUMConsistent key structure for hierarchical invalidation

Install

Install from skills.sh/alfredoperez/angular-best-practices:

Sponsors

Details

Repository
github.com/alfredoperez/angular-best-practices
Category
Frontend Development
First seen
Jun 3, 2026

More from alfredoperez/angular-best-practices

All 10
1gentleman-programming avatarangular-coregentleman-programming/gentleman-skillsAngular core patterns: standalone components, signals, inject, control flow, zoneless. Trigger: When creating Angular components, using signals, or setting up z228skills.sh installs
2raintree-technology avatarhig-components-layoutraintree-technology/apple-hig-skillshig components layout222skills.sh installs
3charleswiltgen avataraxiom-swiftui-layoutcharleswiltgen/axiomUse when layouts need to adapt to different screen sizes, iPad multitasking, or iOS 26 free-form windows — decision trees for ViewThatFits vs AnyLayout vs onGeo220skills.sh installs
4omer-metin avatarviral-hooksomer-metin/skills-for-antigravityExpert in creating opening lines, thumbnails, and hooks that stop the scroll. Covers curiosity gaps, pattern interrupts, emotional triggers, and platform-specif214skills.sh installs
5github avatarui-screenshotsgithub/awesome-copilotCapture screenshots of web apps during development using Playwright and PIL. Supports full-page captures, interactive states, and an iterate-on-crop workflow th212skills.sh installs
6oguzhan18 avatarangular-securityoguzhan18/angular-ecosystem-skillsALWAYS use when working with Angular Security, XSS prevention, CSRF protection, Content Security Policy, or sanitization in Angular applications.211skills.sh installs