nuxt4-frontend
/nuxt4-frontend
Pomaga budować i przeglądać aplikacje Nuxt 4: układ katalogu app, strony, layouty, trasy serwera, composables, layery i pobieranie danych.
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 22.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pomaga budować i przeglądać aplikacje Nuxt 4: układ katalogu app, strony, layouty, trasy serwera, composables, layery i pobieranie danych.
Oryginalny opis (EN)
Use when building or reviewing Nuxt 4 apps, app/ directory layout, pages, layouts, server routes, composables, layers, or Nuxt data fetching.
Jak działa
- Non-negotiables
- Project structure
- Decision tree
- Core patterns
- Quick commands
- Load next
- Common mistakes
- Pre-finish checklist
Podgląd SKILL.md
---
name: nuxt4-frontend
description: Use when building or reviewing Nuxt 4 apps, app/ directory layout, pages, layouts, server routes, composables, layers, or Nuxt data fetching.
---
# Nuxt 4 Frontend
**Baseline:** Nuxt 4.4.x, the `app/` directory, Tailwind 4, and strict TypeScript. Follow the repository's existing package manager and lockfile.
## Non-negotiables
| ALWAYS | NEVER |
|--------|--------|
| Put app code under `app/` | Root-level `pages/` / `components/` for new Nuxt 4 apps |
| Use the package manager selected by the repository | Introduce a second lockfile |
| Tailwind utilities only | Inline styles / `<style scoped>` |
| Type fetch results | Mock API payloads on failure |
| ESLint `@nuxt/eslint` | Ship without lint script |
## Project structure
```
app/
├── components/
├── composables/
├── utils/
├── types/
├── pages/
├── layouts/
├── middleware/
├── plugins/
└── assets/css/main.css
server/ # API routes (root)
layers/ # optional shared layers
nuxt.config.ts
```
## Decision tree
- Simple GET tied to route? → `useFetch`
- Complex key / transform / lazy? → `useAsyncData`
- Shared UI across sites? → Nuxt layer or a focused shared package
- Styling? → `tailwindcss4` skill
- Types? → `typescript-strict` skill
- Lint/test gates? → `web-quality` skill
## Core patterns
```vue
<script setup lang="ts">
const { data, error, pending } = await useFetch<Item[]>('/api/items')
</script>
<template>
<div class="p-6">
<p v-if="pending" class="text-slate-500">Loading…</p>
<p v-else-if="error" class="text-red-600">Failed to load</p>
<ul v-else class="space-y-2">
<li v-for="item in data" :key="item.id" class="rounded-lg border p-3">
{{ item.name }}
</li>
</ul>
</div>
</template>
```
```ts
// server/api/items.get.ts
export default defineEventHandler(async () => {
// real data source — no fake arrays for “happy path demos” in production code
return await listItems()
})
```
## Quick commands
```bash
bun run dev
bun run typecheck
bun run lint
bun run lint:fix
bun run test
bun run build
```
## Load next
| When | Read |
|------|------|
| Vue component patterns | `vue3-composition` |
| CSS | `tailwindcss4` |
| ESLint / Vitest / Playwright | `web-quality` |
| Deploy failures | harness `deployment-doctor` (not this pack) |
## Common mistakes
| Excuse | Reality |
|--------|---------|
| "Pages at repo root is fine" | Nuxt 4 convention is `app/` |
| "I'll use a different package manager locally" | Match the checked-in lockfile and repository tooling |
| "Placeholder items for UI" | Use empty/error states |
## Pre-finish checklist
- [ ] Files under `app/` (or `server/`)
- [ ] Tailwind-only styling
- [ ] Typed data fetching; real error UI
- [ ] lint/typecheck considered
Wersje
W bazie nie ma innych skilli o nazwie nuxt4-frontend.
Migawka bazy z 13.11.2026 · wersja paczki df851d0042f0 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90vue-nuxt
Pomaga budować aplikacje Nuxt 3: routing w pages, useFetch, trasy serwerowe, auto-importy, układy i warstwy. - 100nuxt-improve-codebase-architecture
Przegląda architekturę projektu z nuxt.config.ts i proponuje refaktoryzacje obejmujące moduły, layery, wtyczki, composables, trasy serwera, Nitro i konfigurację uruchomieniową. - 95nuxt3
Prowadzi przez pełnostosowy framework Vue Nuxt 3: routing oparty na plikach, pobieranie danych, trasy serwerowe i automatyczne importy. - 100fec-nuxt-project-standard
Pomaga tworzyć i przeglądać projekty Nuxt 3: trasy plikowe, strony, layouty, SSR, SSG i SPA, pobieranie danych, middleware tras, wtyczki, moduły i trasy serwerowe. - 100nuxt-best-practices
Stosuje wytyczne wydajności i architektury Nuxt 4 przy pisaniu i przeglądzie kodu: pobieranie danych, trasy serwera, auto-importy, tryby renderowania, layouty i named views. - 90vue-nuxt
Buduje i aktualizuje aplikacje Vue i Nuxt z renderowaniem po stronie serwera i typowanymi granicami danych.