Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计通过

tanstack-start-securitytanstack 启动安全

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

574

周安装

23

GitHub Stars

3

下载量

186
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tanstack-start-security(tanstack 启动安全)
来源仓库:https://github.com/alpoxdev/hypercore
仓库路径:skills/tanstack-start-security
安装命令:
npx skills add https://github.com/alpoxdev/hypercore --skill tanstack-start-security
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alpoxdev/hypercore --skill tanstack-start-security

简介

tanstack-start-security 用于辅助安全审计、权限检查和认证流程分析,适合梳理敏感配置和鉴权逻辑。

  • 适用于开发场景,可帮助检查依赖风险和常见漏洞。
  • 使用时不能将工具输出直接作为最终结论,需人工复核关键操作。
  • 涉及密钥、令牌或生产环境时,应先确认最小权限和操作边界。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

@rules/auth-and-session.md @rules/server-boundaries.md @rules/http-and-headers.md @rules/validation.md @references/official-security-notes.md

TanStack Start Security

Purpose

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:

  • auth and session protection
  • cookies, CSRF, trusted origins, and browser request safety
  • request middleware in src/start.ts
  • server function and server route hardening
  • secret and env boundary protection
  • SSR, hydration, and client/server execution leaks
  • security headers, CSP, webhook verification, and rate limiting

Do 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.

Trigger Examples

Positive

  • 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.

Negative

  • Make a small style-only change to a plain React page.
  • Security review an Express API server that is not a TanStack Start app.

Boundary

  • 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.

Step 1: Project Validation

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.json
  • src/routes/__root.tsx

If those signals are absent, stop and fall back to the normal implementation or security-review path.

Step 2: Read The Right Rules

Read these files before editing security-sensitive code:

  • rules/auth-and-session.md for authentication, authorization, cookies, and request-origin rules
  • rules/server-boundaries.md for createServerFn, createServerOnlyFn, env/secrets, and import boundaries
  • rules/http-and-headers.md for server routes, CSP, headers, CORS, rate limiting, and webhook handling
  • rules/validation.md for review gates and verification steps

Read references/official-security-notes.md when auth stack details, TanStack execution rules, or Better Auth specifics matter.

Start Here By Prompt Type

  • auth, session, cookie, CSRF, beforeLoad, and authorization issues: start with rules/auth-and-session.md
  • secret leaks, env exposure, loader, SSR context, hydration leaks, and import-boundary issues: start with rules/server-boundaries.md
  • src/start.ts middleware, CSP, CORS, headers, webhooks, rate limiting, and server routes: start with rules/http-and-headers.md
  • if the prompt is a copy-only edit or a non-TanStack security request, stop at the core boundary decision and route away instead of reading deeper files

Step 3: Security Mapping

Before changing code, map which security surface you are touching:

  1. Auth/session
  2. Secrets/env
  3. Request middleware in src/start.ts
  4. Server functions
  5. Server routes / HTTP endpoints
  6. Browser-delivered headers and CSP
  7. SSR / hydration / import boundary leaks

If more than one surface is affected, validate all linked rule files before editing.

Step 4: Preferred Fix Order

Use the lightest fix that closes the actual risk:

  1. Stop secret or boundary leaks first
  2. Add session/authz enforcement next
  3. Tighten cookies, origins, and mutation safety
  4. Add explicit headers, CSP, webhook checks, and rate limits
  5. Only then consider larger auth-stack or route-structure migrations

Step 5: Auto-Remediation Policy

Auto-fix directly when the change is local, reversible, and clearly safer:

  • move privileged logic behind createServerFn or createServerOnlyFn
  • add route/session guard checks
  • replace client-exposed secret access with server-only access
  • add missing input validation or origin/signature checks
  • tighten cookie or header defaults when the current stack is clear

Do not auto-apply broad, risky migrations without explicit justification:

  • replacing the auth library
  • sweeping session model changes
  • site-wide CSP rewrites without checking asset/script requirements
  • broad CORS or cookie-domain changes across environments

Core Security Gates

Block the change until fixed if any of these are true:

  • client-reachable code can import or derive a secret
  • protected data mutation trusts client-provided identity or role claims
  • a TanStack Start loader or shared utility performs privileged work without an explicit server boundary
  • a route relies on beforeLoad only, without equivalent server-side protection for protected actions
  • loader output, SSR context, or hydrated state serializes secrets or internal-only auth data
  • a server route is accepting browser state-changing input without auth/origin/CSRF strategy
  • webhook handlers trust payloads before signature verification
  • auth/session cookies are configured loosely without deliberate environment rules

Verification

Before claiming completion:

  • verify the relevant rule-file checklist
  • run the project checks that prove the change did not break the app
  • summarize what was hardened and what remains stack-dependent

For detailed review and command guidance, use rules/validation.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.87%
按下载量换算69

Claude

31.56%
按下载量换算59

Cursor

18.91%
按下载量换算35

Gemini CLI

8.95%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills