一键导入
web-project-conventions
Best practices for web project conventions built with Next.js, React, and TypeScript (structure, naming, imports, exports).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Best practices for web project conventions built with Next.js, React, and TypeScript (structure, naming, imports, exports).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Best practices for building UI with shadcn/ui, Tailwind, and chart references.
Expert knowledge for client-side state management with Zustand using the decoupled actions pattern.
| name | web-project-conventions |
| description | Best practices for web project conventions built with Next.js, React, and TypeScript (structure, naming, imports, exports). |
web/. Do not add application code outside this folder.Routing (Next.js App Router): web/app/
web/app/** (e.g., page.tsx, layout.tsx, loading.tsx).web/app/api/**/route.ts) must stay thin: parse input, call feature/shared logic, return response.Features (domain modules): web/features/<feature>/
web/features/profile/profile-page.tsx) that routes render.Shared (cross-feature domain concerns): web/features/shared/
Reusable components: web/components/
web/components/ui/: primitives only (no domain logic, no data fetching).web/components/blocks/: reusable compositions built from primitives (avoid feature-specific state/logic).web/components/lib/utils.ts: shared helpers (includes cn()).web/features/* may import from web/components/* and web/features/shared/*.web/components/* should not import from web/features/* (keeps primitives/compositions reusable).web/features/a/* -> web/features/b/*; promote shared code to web/features/shared/* instead.web/features/* or web/features/shared/*, not from web/components/*.UserProfile, ControlCenterPage).useAuth, formatDate).user-profile.tsx, use-auth.ts, format-date.ts).@/components/ui/button, @/features/home/home-page).
@/ as the web/ root.../../..).web/features/shared/.web/features/shared/.page.tsx, layout.tsx).