Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

react-nextjs

/react-nextjs

Buduje i przegląda aplikacje React i Next.js z App Routerem: komponenty, serwer i klient, dane, formularze, wydajność i testy.

Licencja
MIT
Ostatnia zmiana repozytorium
11.11.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Buduje i przegląda aplikacje React i Next.js z App Routerem: komponenty, serwer i klient, dane, formularze, wydajność i testy.

Oryginalny opis (EN)

Build and review React and Next.js (App Router) apps: components, server vs client, data fetching, state, forms, performance, testing. Use when the chosen frontend stack is React or Next.js.

Jak działa

  1. Components
  2. Next.js App Router
  3. State & forms
  4. Performance
  5. Security
  6. Testing
  7. Review checklist
Sekcje z nagłówków SKILL.md, w oryginale · 31 linii, 406 słów
Podgląd SKILL.md
---
name: react-nextjs
description: "Build and review React and Next.js (App Router) apps: components, server vs client, data fetching, state, forms, performance, testing. Use when the chosen frontend stack is React or Next.js."
license: MIT
metadata:
  version: "1.0.0"
---

# React & Next.js

React counterpart to `angular-*` skills. Quality bar for UX/a11y is `ui-design-a11y`; security: `secure-by-design-coding` (XSS, CSRF, auth).

## Components
- Function components + hooks; small, single-purpose, composition over props explosion. TypeScript strict; props typed; no `any`.
- Derive state instead of syncing it (compute during render); `useEffect` is for synchronizing with external systems only, not for data derivation or event handling. Keys stable and unique (never array index for dynamic lists).
- Memoization (`useMemo`, `useCallback`, `React.memo`) only after profiling; prefer fixing structure. Check whether the React Compiler is enabled before hand-memoizing.

## Next.js App Router
- **Server Components by default**; add `"use client"` only for interactivity, browser APIs or client state, and push it to the leaves. Never import server-only code (secrets, DB) into client modules (`server-only` package).
- Data: fetch in Server Components (`async` component) close to where it is used; parallelize with `Promise.all`; stream with `Suspense` + `loading.tsx`; caching/revalidation explicit (`revalidate`, tags, `revalidateTag`) and verified for the installed major version (caching defaults changed across releases - read the docs for your version).
- Mutations: Server Actions or route handlers; **validate input with Zod on the server**, check authn/authz inside every action, return typed results, handle errors with `error.tsx` and `useActionState`.
- Routing: layouts for shared UI, route groups, parallel/intercepting routes only when needed, `generateMetadata` for SEO, `next/image` and `next/font`, dynamic imports for heavy client widgets.

## State & forms
Server state via TanStack Query (or RSC + revalidation); local state with `useState`/`useReducer`; global client state sparingly (Zustand/Context for truly global, split contexts to avoid rerenders). Forms: React Hook Form + Zod resolver or native form + Server Actions with progressive enhancement; accessible labels and errors.

## Performance
Measure first (React Profiler, Lighthouse, Web Vitals LCP/INP/CLS). Ship less JS: server rendering, code-splitting, tree-shakeable imports, avoid large client libs. Virtualize long lists; debounce inputs; reserve image space; avoid layout thrash.

## Security
No `dangerouslySetInnerHTML` without sanitization (DOMPurify); validate and escape URLs (`javascript:`); CSP via middleware/headers; httpOnly+SameSite cookies for sessions; CSRF protection for cookie auth; env vars: only `NEXT_PUBLIC_*` reach the browser.

## Testing
Vitest/Jest + React Testing Library (query by role/label, test behavior), MSW for network, Playwright for critical journeys + axe a11y checks, Storybook for component states.

## Review checklist
Server/client boundary minimal - no effect-driven derived state - server-side validation and authz in actions - Suspense/error boundaries present - bundle size checked - a11y checks pass - tests cover user-visible behavior.

Wersje

RepozytoriumWynikLicencja
Ta strona · swap-cameroon/kuro-antigravity-config90MIT
j4flmao/agent-skills95MIT
helx0071/skillsmo90MIT

Migawka bazy z 13.11.2026 · wersja paczki b812801e8dd2 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90nextjs-react-expert
    Wspiera inżynierię Next.js (App Router) i React: architekturę, granice serwer-klient, pobieranie danych, cache, wydajność i operacje produkcyjne, przy budowie, przeglądzie i debugowaniu.
  • 90NextJS
    Buduje aplikacje Next.js z App Routerem: komponenty serwerowe, cache, Server Actions, autoryzację i wdrożenie.
  • 100react-frontend
    Podpowiada wzorce frontendu w React, TypeScript i Next.js: komponenty, stan, pobieranie danych, wydajność i App Router.
  • 100react-development
    Pomaga pisać i przeglądać komponenty, hooki, zarządzanie stanem, formularze, wydajność renderowania i testy komponentów React.
  • 95nextjs-app-router-patterns
    Prowadzi przez Next.js 14+ z App Routerem: Server Components, streaming, trasy równoległe i złożone pobieranie danych, przy SSR, SSG i optymalizacji React Server Components.
  • 90nextjs-modern
    Buduje, migruje i naprawia aplikacje Next.js 16 z App Routerem i React 19, łącznie z cache i wdrożeniem produkcyjnym.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.