skills/tanstack-start-security/SKILL.md
[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.
npx skillsauth add alpoxdev/hypercore tanstack-start-securityInstall 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.
@rules/auth-and-session.md @rules/server-boundaries.md @rules/http-and-headers.md @rules/validation.md @references/official-security-notes.md
<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>
Harden TanStack Start applications without turning every change into a full security rewrite.
Use this skill when the job is specifically about security posture in a TanStack Start app:
src/start.tsDo not use this skill for generic React work or non-security copy edits.
If the task is mainly TanStack Start architecture compliance rather than security hardening, use skills/tanstack-start-architecture/ instead of stretching this skill.
If the request is a generic non-TanStack security review, route away to the normal security-review path instead of forcing TanStack Start rules.
Review TanStack Start login and session handling security.Prevent secrets from leaking through a TanStack Start server function.Review auth, cookies, CSRF, and webhook security in this TanStack Start app.Make a small style-only change to a plain React page.Security review an Express API server that is not a TanStack Start app.Change only the copy on a TanStack Start page.
If there is no change to security boundaries, auth, env handling, server routes, or headers, this skill may be too heavy.Apply this skill only when the repository is actually using TanStack Start signals such as:
app.config.ts@tanstack/react-start in package.json@tanstack/react-router in package.jsonsrc/routes/__root.tsxIf those signals are absent, stop and fall back to the normal implementation or security-review path.
Read these files before editing security-sensitive code:
rules/auth-and-session.md for authentication, authorization, cookies, and request-origin rulesrules/server-boundaries.md for createServerFn, createServerOnlyFn, env/secrets, and import boundariesrules/http-and-headers.md for server routes, CSP, headers, CORS, rate limiting, and webhook handlingrules/validation.md for review gates and verification stepsRead references/official-security-notes.md when auth stack details, TanStack execution rules, or Better Auth specifics matter.
beforeLoad, and authorization issues: start with rules/auth-and-session.mdloader, SSR context, hydration leaks, and import-boundary issues: start with rules/server-boundaries.mdsrc/start.ts middleware, CSP, CORS, headers, webhooks, rate limiting, and server routes: start with rules/http-and-headers.mdBefore changing code, map which security surface you are touching:
src/start.tsIf more than one surface is affected, validate all linked rule files before editing.
Use the lightest fix that closes the actual risk:
Auto-fix directly when the change is local, reversible, and clearly safer:
createServerFn or createServerOnlyFnDo not auto-apply broad, risky migrations without explicit justification:
Block the change until fixed if any of these are true:
loader or shared utility performs privileged work without an explicit server boundarybeforeLoad only, without equivalent server-side protection for protected actionsBefore claiming completion:
For detailed review and command guidance, use rules/validation.md.
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.