skills/tanstack-start-architecture/SKILL.md
[Hyper] Enforce TanStack Start architecture in existing Start projects, especially project/folder structure, route structure, nested shared folder organization, server functions, loader/client-server boundaries, importProtection, hooks, SSR/hydration, and hypercore conventions. Use before structural code changes, folder-structure reviews, route work, server function work, or architecture audits in TanStack Start codebases.
npx skillsauth add alpoxdev/hypercore tanstack-start-architectureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@architecture-rules.md @rules/project-structure.md @rules/routes.md @rules/services.md @rules/hooks.md @rules/import-protection.md @rules/middleware.md @rules/execution-model.md @rules/server-routes.md @rules/ssr-hydration.md @rules/platform.md @rules/validation.md @references/official/tanstack-start-2026-04-30.md @references/official/tanstack-router-2026-04-30.md @references/official/api-drift-notes.md
Apply hypercore's TanStack Start architecture rules without confusing team conventions with official TanStack requirements.
<output_language>
Default all user-facing deliverables, saved artifacts, reports, plans, generated docs, summaries, handoff notes, commit/message drafts, and validation notes to Korean, even when this canonical skill file is written in English.
Preserve source code identifiers, CLI commands, file paths, schema keys, JSON/YAML field names, API names, package names, proper nouns, and quoted source excerpts in their required or original language.
Use a different language only when the user explicitly requests it, an existing target artifact must stay in another language for consistency, or a machine-readable contract requires exact English tokens. If a localized template or reference exists (for example *.ko.md or *.ko.json), prefer it for user-facing artifacts.
</output_language>
<purpose>references/official/ so rapidly changing framework details can be refreshed without bloating the core skill.<operating_mode>
This skill is self-contained. Do not depend on global skills or external orchestration before applying it.
Rules are classified as:
If a user explicitly asks for official TanStack defaults, relax hypercore-only conventions but keep official and safety rules.
</operating_mode>
<trigger_examples>
Positive:
Negative:
Boundary:
-hooks/, -components/, or -functions/ folders unless logic/server integration is introduced.</trigger_examples>
<project_validation>
Before enforcing rules, confirm at least one Start/Router indicator exists:
ls app.config.ts 2>/dev/null
grep -r "@tanstack/react-start" package.json 2>/dev/null
grep -r "@tanstack/react-router" package.json 2>/dev/null
ls src/routes/__root.tsx 2>/dev/null
If none are present, stop using this skill and route to the normal implementation/review path.
</project_validation>
<support_file_read_order>
Read only what the task needs:
architecture-rules.md for the rule taxonomy and blocking gate summary.rules/project-structure.md — official Start project shape, src/routes, route tree generation, custom route directory, shared nested folders.rules/routes.md — route organization, search validation, loaders, route lifecycle.rules/services.md — server functions, validation, query/mutation layering.rules/hooks.md — hook extraction, internal hook order, useServerFn wrapper policy.rules/import-protection.md — client/server import boundaries and vite.config.ts deny rules.rules/middleware.md — function/request middleware and sendContext validation.rules/execution-model.md — isomorphic loaders and environment-only functions.rules/server-routes.md — justified HTTP endpoints vs internal app RPC.rules/ssr-hydration.md — deterministic first render, ClientOnly, route SSR modes.rules/platform.md — getRouter(), env validation, path aliases, operational endpoints.references/official/tanstack-start-2026-04-30.md when Start API behavior matters.references/official/tanstack-router-2026-04-30.md when Router/file-route/search/loading behavior matters.references/official/api-drift-notes.md when docs conflict or current package behavior is uncertain.rules/validation.md before claiming completion.</support_file_read_order>
<workflow>| Phase | Task | Output |
|---|---|---|
| 0 | Validate this is a TanStack Start/Router project | Scope decision |
| 1 | Identify touched surfaces and load only relevant rule/reference files | Minimal evidence set |
| 2 | Classify each applicable rule as Official, Safety policy, or Hypercore convention | Enforcement plan |
| 3 | Apply safe, local, reversible fixes automatically | Code or skill changes |
| 4 | Defer broad migrations unless explicitly requested | Backlog or handoff note |
| 5 | Run validation checks from rules/validation.md | Evidence-backed completion |
<blocking_safety_summary>
Always block or fix before proceeding when touched code would:
createServerFn or createServerOnlyFn.tanstackStart() config instead of extending it.sendContext values as validated server data.Date.now(), random IDs, or locale/time-zone divergence without a stabilization strategy.</blocking_safety_summary>
<hypercore_conventions_summary>
Apply these to touched files unless the user asks for official defaults only:
-hooks/; publishing-only static pages are exempt.-functions/ and route-local hooks/components where appropriate.export const Route = createFileRoute(...) for file routes.src/lib, src/features, src/services, src/db, src/server, and src/config when they clarify ownership and runtime boundaries.any, const arrow functions, and Korean block comments for meaningful code groups.</hypercore_conventions_summary>
<validation>Before declaring the work done:
rules/validation.md.SKILL.md and do not require following an indirect reference chain.development
[Hyper] Use when working on Vite + TanStack Router projects - enforces architecture rules (layers, routes, hooks, services, conventions) with mandatory validation before any code change. Triggers on file creation, route work, hook patterns, or any structural change in a Vite + TanStack Router codebase.
development
[Hyper] Update semantic versions across node/rust/python projects, keep discovered version files synchronized, and prefer the installed `git-commit` skill for the final git step with a direct fallback when it is unavailable.
development
[Hyper] Use when working on TanStack Start projects and the task involves auth, sessions, cookies, CSRF, secrets, env exposure, server functions/routes, headers/CSP, webhooks, or security review/fixes. Triggers on protecting routes, hardening auth flows, preventing secret leaks, securing server boundaries, or reviewing HTTP/security behavior in a TanStack Start app.
tools
[Hyper] Enforce TanStack Start architecture in existing Start projects, especially project/folder structure, route structure, nested shared folder organization, server functions, loader/client-server boundaries, importProtection, hooks, SSR/hydration, and hypercore conventions. Use before structural code changes, folder-structure reviews, route work, server function work, or architecture audits in TanStack Start codebases.