fec-accessibility-chec…
Use when reviewing or improving frontend accessibility, semantic structure, keyboard support, focus management, ARIA labels, screen reader behavior, WCAG 2.2…
Use when creating or reviewing Next.js 14+ App Router projects, file routes, layouts, server/client component boundaries, SSR/SSG/ISR, streaming, metadata, middleware, server actions, or Next-specific data fetching. For generic client React component architecture, apply the
$ npx -y skills add bovinphang/frontend-craft --skill fec-nextjs-project-standard --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/fec-nextjs-project-standardContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when creating or reviewing Next.js 14+ App Router projects, file routes, layouts, server/client component boundaries, SSR/SSG/ISR, streaming, metadata, middleware, server actions, or Next-specific data fetching. For generic client React component architecture, apply the
name: fec-nextjs-project-standard description: Use when creating or reviewing Next.js 14+ App Router projects, file routes, layouts, server/client component boundaries, SSR/SSG/ISR, streaming, metadata, middleware, server actions, or Next-specific data fetching. For generic client React component architecture, apply the project's React conventions separately; Chinese triggers include Next.js, App Router.
For repositories using Next.js 14+ with App Router.
Standardize engineering practices for App Router, SSR/SSG/ISR rendering modes, data acquisition, route layout, middleware and SEO metadata in Next.js 14+ projects to ensure server-side priority, performance optimization and maintainability.
1. First identify whether the target belongs to App Router, layout, server data, middleware, metadata or client interaction. 2. Default server-side components take precedence; use `'use client'` only when browser API, interactive state or event handling is required. 3. Clarify SSR / SSG / ISR / CSR rendering mode and Next fetch/cache strategy. 4. Complete the server-side boundaries of `loading.tsx`, `error.tsx`, `not-found.tsx`, metadata and sensitive logic for routing. 5. Check whether Server Component is supported before introducing third-party libraries; browser-specific, animation, chart, editor and WebGL libraries must be placed into client leaf components and loaded on demand. 6. Prioritize evidence review for dynamic rendering, cache invalidation, RSC serialization, route handler, middleware, and first-screen bundles; first collect build, trace, headers, or routing behavior evidence when unsure. 7. Client component architecture issues are offloaded to the React project workflow.
src/ ├── app/ # App Router │ ├── layout.tsx # Root layout │ ├── page.tsx # Home page │ ├── loading.tsx # Global loading UI │ ├── error.tsx # Global error boundary │ ├── not-found.tsx # 404 │ ├── globals.css │ │ │ ├── (auth)/ # Routing group │ │ ├── login/ │ │ │ └── page.tsx │ │ └── register/ │ │ └── page.tsx │ │ │ ├── (dashboard)/ # Dashboard routing group │ │ ├── layout.tsx # Shared layout │ │ ├── dashboard/ │ │ │ └── page.tsx │ │ └── users/ │ │ ├── page.tsx │ │ └── [id]/ │ │ └── page.tsx │ │ │ └── api/ # API Routes │ └── users/ │ └── route.ts │ ├── components/ # Shared components ├── lib/ # Tools, configuration ├── hooks/ ├── services/ └── types/
| Patterns | Usage scenarios | Implementation methods | | ------- | ---------------- | ----------------------------------------------- | | **SSR** | Dynamic, real-time data required | Default, `fetch` does not cache or `cache: 'no-store'` | | **SSG** | Static content | `generateStaticParams` + static `fetch` | | **ISR** | Periodically updated | `revalidate` or `revalidatePath` | | **CSR** | Client interaction | `'use client'` + `useEffect` or SWR/React Query |
frontend-craft is a universal frontend plugin that brings the same opinionated engineering standards to all 15 AI coding assistants.
Repo: bovinphang/frontend-craft
Use when reviewing or improving frontend accessibility, semantic structure, keyboard support, focus management, ARIA labels, screen reader behavior, WCAG 2.2…
Use when absorbing ideas, capabilities, workflows, architecture, quality systems, ecosystem extensions, or engineering practices from any reference system into…
Use when designing, implementing, or reviewing frontend-to-backend API integration, typed API clients, REST/tRPC/OpenAPI client choices, auth refresh, API…
Use when frontend work needs to communicate data, action, state, permission, validation, or business-rule needs to backend teams without dictating endpoint…
Use when choosing, implementing, or reviewing browser storage such as localStorage, sessionStorage, IndexedDB, cookies, client persistence, offline data,…
Use when building or reviewing Canvas 2D, Three.js/WebGL, React Three Fiber, GLSL shaders, ShaderToy-to-WebGL adaptation, 2D/3D visualization, game rendering,…