Token导航 LogoToken导航

Agent Skill · 研究检索

vite-architecture(Vite 架构)

vite-architecture 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

vite-architecture 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 45,042。

总安装 874周安装 35GitHub Stars 3下载 283核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/alpoxdev/hypercore --skill vite-architecture

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息,适合快速定位候选结果。可根据关键词或任务场景提供线索,辅助信息收集与决策支持。

安装命令:npx skills add https://github.com/alpoxdev/hypercore --skill vite-architecture 使用前建议确认权限范围和维护状态,避免触发联网或命令执行。注意检查是否会读写文件或修改项目结构。

来源仓库内路径:skills/vite-architecture

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/alpoxdev/hypercore --skill vite-architecture;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

vite-architecture 怎么安装?

在终端执行 npx skills add https://github.com/alpoxdev/hypercore --skill vite-architecture。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

vite-architecture 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

vite-architecture 需要什么权限?

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

vite-architecture 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

vite-architecture 用的人多吗?

公开数据是累计安装 874 次,近一周安装 35 次,下载 283 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

vite-architecture 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
vite-architecture

Vite 架构 · 本页

8743操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Vite + TanStack Router Architecture Enforcement

Overview

Enforces hypercore Vite + TanStack Router architecture rules with strict validation before editing code.

This skill is RIGID. Follow exactly. No exceptions.

OPERATING MODE: This skill must stay self-contained. Do not block on external orchestration surfaces just to apply architecture rules. If a repo-local persistence loop is already active, carry these gates into that loop. Otherwise proceed directly with this skill.

NOTE: Some rules in this skill are stricter than TanStack Router defaults. Treat them as hypercore team conventions unless the user explicitly asks to follow official TanStack defaults instead.

Trigger Examples

Positive

  • Audit this Vite + TanStack Router app for route structure, validateSearch, and service boundaries before editing.
  • Add a new route folder in a Vite + TanStack Router app and keep hooks/services compliant.
  • Refactor a TanStack Router page so the UI stays in the route and logic moves into -hooks/.

Negative

  • Create a new Codex skill for browser QA.
  • Review a TanStack Start app that uses createServerFn and @tanstack/react-start.

Boundary

  • Make a tiny copy-only text change in a Vite route file. Direct editing can be enough if the change does not cross an architecture boundary, but touched files still need a quick compliance check.
  • The repo actually uses @tanstack/react-start. Route away to tanstack-start-architecture instead of forcing Vite rules onto a Start project.

Step 1: Project Validation

Before any work, confirm a Vite + TanStack Router project:

# Check for Vite + TanStack Router indicators (ANY of these)
grep -r "@tanstack/react-router" package.json 2>/dev/null
grep -r "vite" package.json 2>/dev/null
ls vite.config.ts 2>/dev/null
ls src/routes/__root.tsx 2>/dev/null

If NONE found: STOP. This skill does not apply. Inform the user and return to the normal implementation or review path.

If @tanstack/react-start or app.config.ts is present: STOP. Route to tanstack-start-architecture.

If the repo matches Vite + TanStack Router: proceed with architecture enforcement.

Step 2: Read Architecture Rules

Load the detailed rules reference:

REQUIRED: Read architecture-rules.md in this skill directory before writing any code.

For detailed patterns and examples, also read the relevant rule files:

  • rules/conventions.md - naming, TypeScript, imports, comments
  • rules/routes.md - route folder structure, route.tsx, loaders, search params
  • rules/services.md - public API services, query options, mutations, client boundaries
  • rules/hooks.md - custom hook separation and internal order
  • rules/execution-model.md - loader/runtime boundaries, SSR-aware caveats, env safety
  • rules/platform.md - vite.config.ts, router setup, generated files, env and alias rules

Step 3: Pre-Change Validation Checklist

Before writing ANY code, verify the planned change against these gates:

Brownfield Adoption Rule

  • Do not treat every untouched legacy deviation as an immediate project-wide failure.
  • Safety or boundary issues still block immediately, especially in touched files.
  • Hypercore-specific style or structure drift in untouched legacy code can be recorded as migration backlog.
  • Any file you touch should be brought into compliance unless that would require a materially risky migration.

Gate 1: Layer Violations

Routes -> Services -> External API
CheckRule
Route calling fetch/axios directly?BLOCKED. Must go through services
Hook calling fetch/axios directly?BLOCKED. Must go through services
Service returning raw Response to routes/hooks?BLOCKED. Return typed data
createServerFn, useServerFn, or Start-only middleware APIs in a Vite app?BLOCKED

Gate 2: Route Structure

CheckRule
Flat file route for a page that owns UI/logic? (routes/users.tsx)BLOCKED. Use a folder route (routes/users/index.tsx)
Missing -components/ folder?BLOCKED. Every page needs it
Missing -hooks/ folder?BLOCKED. Every page needs it
-functions/ folder present?BLOCKED. Vite skill does not allow server functions
const Route without export?BLOCKED. Must be export const Route
Logic in page component?BLOCKED. Extract to -hooks/
Layout route missing route.tsx while it owns shared loader/beforeLoad/layout work?BLOCKED
Route with search params but no validateSearch?BLOCKED. Use zodValidator
Route with loader but no pendingComponent?WARNING. Recommended

Gate 3: Services

CheckRule
POST/PUT/PATCH without schema validation?BLOCKED. Validate with Zod before calling
Direct fetch/axios in route or hook?BLOCKED. Use service functions
services/index.ts barrel export?BLOCKED. Import directly from concrete files
Missing explicit return type on service function?BLOCKED

Gate 4: Hooks

CheckRule
Hook logic left inside page component?BLOCKED. Move to -hooks/
Wrong hook order?BLOCKED. State -> Global -> Query -> Handlers -> Memo -> Effect
Missing exported return type interface?BLOCKED
camelCase hook filename?BLOCKED. Use use-kebab-case.ts
useServerFn in a Vite hook?BLOCKED

Gate 5: Conventions

CheckRule
camelCase filename?BLOCKED. Use kebab-case
function keyword?BLOCKED. Use const arrow functions
any type?BLOCKED. Use unknown
Missing explicit return type?BLOCKED
Wrong import order?BLOCKED. External -> @/ -> Relative -> Type
Missing Korean block comments for grouped logic?BLOCKED
Using z.string().email()?BLOCKED. Use z.email() in Zod 4

Gate 6: Execution Model

CheckRule
Treating a route loader as a private server-only boundary?BLOCKED. Loaders are client-reachable and may also participate in SSR/manual rendering
Secret, DB, filesystem, or privileged SDK access inside a route module or loader?BLOCKED. Keep it behind an actual backend/API boundary
Browser-only APIs used at module scope or in shared route helpers without a client boundary?BLOCKED
Non-VITE_ env access in client-reachable code?BLOCKED

Gate 7: Platform Setup

CheckRule
vite.config.ts missing tanstackRouter() or plugin order is wrong?BLOCKED. Router plugin must stay explicit and precede react()
routeTree.gen.ts hand-edited?BLOCKED. Treat as generated output
Router setup hidden or inconsistent with SSR/manual rendering needs?WARNING. Keep src/router.tsx explicit; use a fresh router factory when SSR/manual rendering exists
Path alias or env setup relies on implicit behavior only?WARNING. Keep tsconfig/Vite config and runtime validation explicit

Step 3.5: Auto-Remediation Policy

Auto-fix directly when the issue is local, reversible, and low-risk.

  • add missing validateSearch
  • move direct route/hook network access into services/
  • add missing pendingComponent or errorComponent
  • create missing -components/ or -hooks/ folders for touched pages
  • add or correct tanstackRouter() plugin setup, router scaffolding, or explicit env/alias wiring

Do not auto-apply broad or potentially breaking migrations without explicit justification.

  • mass route/file renames
  • sweeping route-tree restructures across many pages
  • introducing SSR/manual server rendering where the repo was SPA-only
  • large auth or API-client rewrites

Step 4: Implementation

Carry these acceptance criteria into the active task:

- [ ] Layer architecture respected (Routes -> Services -> External API)
- [ ] Route uses folder structure with -components/ and -hooks/
- [ ] export const Route = createFileRoute(...) used
- [ ] No Start-only server-function APIs in this Vite project
- [ ] Search params use zodValidator from @tanstack/zod-adapter
- [ ] Custom Hooks live in -hooks/ with correct internal order
- [ ] Loaders stay public-safe and SSR-safe
- [ ] Vite/router platform setup stays explicit (router plugin, router file, generated files)
- [ ] All filenames kebab-case
- [ ] Korean block comments present
- [ ] const arrow functions with explicit return types

Step 5: Post-Change Verification

After writing code, verify:

  1. Structure check: confirm each touched page still has -components/ and -hooks/ and no -functions/
  2. Export check: grep for export const Route
  3. Layer check: no direct fetch/axios in touched route or hook files
  4. Convention check: no camelCase filenames, no function keyword declarations
  5. Hook order check: read touched hooks and verify State -> Global -> Query -> Handlers -> Memo -> Effect
  6. Execution check: loaders and route modules do not touch secrets, DB clients, or private env values directly
  7. Platform check: vite.config.ts, src/router.tsx, env wiring, and generated router files remain coherent

Quick Reference: Folder Structure

src/
├── routes/
│   ├── __root.tsx
│   ├── index.tsx
│   └── users/
│       ├── route.tsx          # shared layout / beforeLoad / loader
│       ├── index.tsx          # /users
│       ├── -components/
│       ├── -hooks/
│       ├── $id/
│       │   ├── index.tsx      # /users/$id
│       │   ├── -components/
│       │   └── -hooks/
│       └── -sections/         # optional for large pages
├── services/<domain>/
│   ├── schemas.ts
│   ├── queries.ts
│   └── mutations.ts
├── hooks/                     # global hooks
├── stores/
├── components/
├── config/
├── env/
├── lib/
├── src/router.tsx
└── routeTree.gen.ts           # generated, do not hand-edit

Common Mistakes

MistakeFix
routes/users.tsx for a full pageroutes/users/index.tsx
routes/users/$id.tsx while the page owns its own UI/logic foldersroutes/users/$id/index.tsx
const Route = createFileRoute(...)export const Route = createFileRoute(...)
Direct fetch() in route/hookmove to services/<domain>/queries.ts or mutations.ts
createServerFn(...) or useServerFn(...) in this appuse services + TanStack Query
Page component holds useState, useQuery, mutations inlineextract to -hooks/use-*.ts
routeTree.gen.ts edited manuallyregenerate it; do not hand-edit
Loader reads secrets or non-VITE_ env valuesmove behind a real backend/API boundary
validateSearch uses raw unvalidated searchadd zodValidator(schema)

Red Flags - STOP and Fix

  • @tanstack/react-start is present but the Vite skill is being applied
  • route or hook imports fetch/axios directly
  • missing export on const Route
  • page component contains inline state/query/mutation logic
  • createServerFn, useServerFn, or -functions/ appears in the route tree
  • loader or route module reads secrets, DB clients, or private env values directly
  • routeTree.gen.ts has hand edits
  • search params are used without validateSearch

平台分布

Codex

34.99%
按下载量换算99

Claude

29%
按下载量换算82

Cursor

18.54%
按下载量换算52

Gemini CLI

9.76%
按下载量换算28

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

继续浏览同类 Skills