Commit Graph

8 Commits

Author SHA1 Message Date
AldJayR f6dcb18cd8 Fix: update server function validator to inputValidator 2026-02-27 18:28:19 +08:00
Deckard Gerritsen 43c3c812fb Make CLAUDE.md a symlink to AGENTS.md and improve README
Symlink CLAUDE.md to AGENTS.md so they stay in sync automatically.
Add "Use when" sections to each skill, agent compatibility note,
and streamline the usage section.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 10:36:47 +08:00
Deckard Gerritsen 580be04391 Update README.md 2026-02-18 21:52:07 +08:00
Deckard Gerritsen 41718b4641 Update integration rules to modern TanStack Start patterns
- Replace manual dehydrate/hydrate with setupRouterSsrQueryIntegration
- Remove outdated client.tsx/ssr.tsx entry file examples
- Add tanstackStart() Vite plugin as entry point handler
- Add router-default-options rule (scrollRestoration, defaultErrorComponent, etc.)
- Update all examples to use getRouter() pattern
- Change SSR integration priority from LOW to CRITICAL

Based on react-tanstarter reference implementation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 16:51:21 +08:00
Deckard Gerritsen 9c57b2b509 Consolidate CLAUDE.md content into AGENTS.md
Merged unique content (common scenarios, code review checklist) into
AGENTS.md. CLAUDE.md now points to AGENTS.md to avoid duplication.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 16:07:06 +08:00
Deckard Gerritsen 33eea1cab2 Fix api-routes to use current createFileRoute API
The previous pattern used createAPIFileRoute which is deprecated.
Updated to use createFileRoute with server.handlers property which
is the current API for server routes in TanStack Start.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 16:00:11 +08:00
Deckard Gerritsen b281de6482 Add comprehensive missing patterns for all TanStack skills
TanStack Query (6 new rules):
- parallel-use-queries: useQueries for dynamic parallel queries
- mut-mutation-state: useMutationState for cross-component tracking
- cache-placeholder-vs-initial: Placeholder vs initial data differences
- network-mode: Offline support configuration
- query-cancellation: Proper AbortSignal usage
- persist-queries: Cache persistence for offline support

TanStack Router (5 new rules):
- err-not-found: Proper 404 handling with notFoundComponent
- load-parallel: Leverage parallel route loading
- nav-route-masks: Route masks for modal URLs
- org-virtual-routes: Virtual file routes understanding
- search-custom-serializer: Custom search param serializers

TanStack Start (5 new rules):
- api-routes: REST API endpoints for external consumers
- ssr-prerender: Static prerendering and ISR patterns
- ssr-streaming: Streaming SSR for faster TTFB
- deploy-adapters: Deployment adapter selection
- env-functions: Environment configuration patterns

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 15:47:10 +08:00
Deckard Gerritsen 25b0361992 Initial commit: TanStack Agent Skills
Comprehensive best practices for TanStack Query, Router, and Start.

Skills included:
- tanstack-query: 14 rules for data fetching, caching, mutations
- tanstack-router: 9 rules for type-safe routing, data loading
- tanstack-start: 8 rules for server functions, auth, SSR
- tanstack-integration: 4 rules for combining Query + Router + Start

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 15:27:39 +08:00