nextjs-rules
/nextjs-rules
Podaje zasady i komendy sprawdzające dla kodu Next.js, React, TypeScript i Tailwind przy pisaniu lub przeglądzie kodu.
- Autor
- 1AngelMicka ↗
- Repozytorium
- quality-pack ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 1
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.
Co robi i kiedy
Podaje zasady i komendy sprawdzające dla kodu Next.js, React, TypeScript i Tailwind przy pisaniu lub przeglądzie kodu.
Oryginalny opis (EN)
Shipwright rules and check commands for Next.js, React, TypeScript, Tailwind. Use when writing, reviewing or auditing code in a project that uses this stack. FR : règles et commandes de vérification pour Next.js, React, TypeScript, Tailwind.
Jak działa
- Rules
- Check commands
Podgląd SKILL.md
---
name: nextjs-rules
description: "Shipwright rules and check commands for Next.js, React, TypeScript, Tailwind. Use when writing, reviewing or auditing code in a project that uses this stack. FR : règles et commandes de vérification pour Next.js, React, TypeScript, Tailwind."
---
<!-- Generated by tools/build.py from the referential YAML. Do not edit by hand. -->
# Next.js, React, TypeScript, Tailwind
These rules add to the core build skills of Shipwright.
## Rules
- Server components by default; 'use client' only where interactivity is needed.
- Validate Server Action and Route Handler inputs with Zod, and check the session in each one.
- Only NEXT_PUBLIC_ variables reach the client: no secret may use that prefix.
- Images with next/image, fonts with next/font, metadata through the Metadata API (title, description, OpenGraph).
- loading.tsx, error.tsx and not-found.tsx files for every route segment that loads data.
- Security headers and CSP in next.config or middleware.
- Tailwind: colours and spacing in the config or CSS variables; no arbitrary bracket values.
## Check commands
Used by `/sw:audit`. `{pm}` is the project's package manager, `{url}` the app URL, `{host}` its host name.
| Check | Command | Passes if |
| --- | --- | --- |
| typecheck | `{pm} exec tsc --noEmit && {pm} run build` | exit code 0 |
| lint | `{pm} run lint` | exit code 0, no errors |
| test_run | `{pm} test` | exit code 0, no skipped test without a written reason |
| e2e | `{pm} exec playwright test` | exit code 0 |
| e2e_cross_browser | `{pm} exec playwright test --project=chromium --project=firefox --project=webkit` | exit code 0 on all three |
| deps_audit | `{pm} audit --audit-level=high` | no high or critical advisory |
| license_check | `npx --yes license-checker-rseidelsohn --summary --failOn 'GPL;AGPL'` | exit code 0 |
| bundle_size | `{pm} run build` | First Load JS of main routes under 200 kB (read the build output table) |
| lighthouse | `npx --yes @lhci/cli autorun --collect.url={url}` | LCP < 2.5 s, CLS < 0.1, TBT < 200 ms on mobile |
| design_token_scan | `grep -rnE '#[0-9a-fA-F]{3,8}\b\|\[[0-9]+px\]\|(bg\|text\|border)-\[#' app components src --include=*.tsx --include=*.ts --include=*.css` | no match outside the token files (tailwind config, globals.css) |
| load_test | `npx --yes autocannon -c 50 -d 30 {url}` | 0 errors, p97.5 latency under 1 s |
Wersje
W bazie nie ma innych skilli o nazwie nextjs-rules.
Migawka bazy z 13.11.2026 · wersja paczki a2ebe70bf62b (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
- 90expo-rules
Stosuje reguły i polecenia sprawdzające dla Expo i React Native przy pisaniu, przeglądzie i audycie kodu na iOS i Androidzie. - 90tauri-rules
Stosuje reguły i komendy sprawdzające Shipwright dla aplikacji desktopowych w Tauri, przy pisaniu, przeglądzie i audycie kodu. - 100nextjs-app-engineering
Prowadzi budowę i wdrażanie aplikacji Next.js App Router w React, TypeScript, Tailwind CSS i Vitest, także przy przenoszeniu projektu wizualnego na kod. - 90react-component
Generuje gotowe do produkcji komponenty React i TypeScript ze stylami Tailwind CSS i dostępnymi interakcjami w projektach React lub Next.js. - 100react-web-app-engineering
Wspiera pisanie, testowanie i wydawanie aplikacji webowej w React, TypeScript, Tailwind CSS i Vitest. - 100nextjs-react-expert
Podaje zasady wydajności React i Next.js od największego wpływu: wodospady zapytań, paczki, ponowne renderowanie i cache.