nuxt4-patterns
Build and Review Nuxt 4 Apps
Nuxt pages can render different markup on the server and browser, fetch data twice, or load nonessential components too early. Use Nuxt 4 patterns to diagnose hydration issues, reuse server-fetched data, and choose rendering and loading strategies by route.
Instalar com meu Agente
Copie esta solicitação para o seu Agente. Ela inclui a página canônica do Skill e o manifesto.
Review the Skillstore skill "nuxt4-patterns" from https://skillstore.io/skills/affaan-m-nuxt4-patterns.md and its manifest at https://skillstore.io/api/skills/affaan-m-nuxt4-patterns/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Seu Agente ainda deve apresentar o plano e solicitar qualquer confirmação exigida pela política de segurança.
Recursos legíveis por agentes
Use estes links quando um agente de IA, crawler ou script precisar de contexto limpo em vez de ler a página completa.
Testar
Usando "nuxt4-patterns". The product page shows a hydration warning when it renders a timestamp and reads browser storage.
Resultado esperado:
- Render the same initial timestamp on the server and client by reusing the server value.
- Read browser storage after the component mounts and use a stable placeholder until then.
Usando "nuxt4-patterns". An article loads on the server and again on hydration. Comments are not needed for the first render.
Resultado esperado:
- Load the article through a server-rendered data composable so hydration can reuse the result.
- Defer the comments request and show a loading state without blocking navigation.
Usando "nuxt4-patterns". The homepage is stable, the catalog changes hourly, and the account dashboard is personalized.
Resultado esperado:
- Prerender the homepage and consider background revalidation for the public catalog.
- Keep personalized dashboard and API responses out of shared caches.
Auditoria de segurança
Risco MédioAll 38 static alerts were false positives: they matched Markdown formatting, Nuxt data-fetching guidance and a relative API example, or ordinary framework documentation. No evidence of prompt injection, shell execution, or external data transfer was found. A separate finding identifies a blanket API cache rule that could expose personalized responses across users.
Preocupações de segurança confirmadas (1)
Fatores de risco
⚙️ Comandos externos (34)
🌐 Acesso à rede (3)
Compartilhar e citar este relatório
Compartilhe o relatório de avaliação versionado, o badge neutro, o cartão incorporável e as citações. A Skillstore apresenta evidências sem decidir se este Skill é seguro.
Copiar link do relatório
https://skillstore.io/skills/affaan-m-nuxt4-patterns/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportBadge Markdown
[](https://skillstore.io/skills/affaan-m-nuxt4-patterns?utm_source=security_passport_badge)Badge HTML
<a href="https://skillstore.io/skills/affaan-m-nuxt4-patterns?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/affaan-m-nuxt4-patterns/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Cartão incorporável
<iframe src="https://skillstore.io/embed/skills/affaan-m-nuxt4-patterns.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Citações acadêmicas (APA · BibTeX · CFF)
Citação APA
affaan-m. (2026). nuxt4-patterns security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/affaan-m-nuxt4-patterns/audits/1Citação BibTeX
@techreport{affaan-m-affaan-m-nuxt4-patterns-2026,
author = {affaan-m},
title = {nuxt4-patterns security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/affaan-m-nuxt4-patterns/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "nuxt4-patterns security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "affaan-m"
date-released: "2026-11-20"
url: "https://skillstore.io/skills/affaan-m-nuxt4-patterns/audits/1"
identifiers:
- type: other
value: "skillstore:affaan-m-nuxt4-patterns:audit:1"
description: "Skillstore immutable audit report identifier"
Pontuação do Skillstore
Por que esta pontuação Confiança das evidências: MédioO que você pode criar
Fix a Hydration Warning
Trace differences between the server HTML and the browser's first render, then isolate the logic that requires the browser.
Review Page Data Fetching
Check whether pages reuse server-fetched data during hydration and whether slower secondary requests have clear loading states.
Plan Rendering by Route
Choose rendering rules for a homepage, product catalog, and dashboard based on indexing, freshness, and user-specific content.
Teste estes prompts
Explain why reading browser storage can cause a hydration mismatch. Suggest how to keep the first render consistent before reading the stored value.
Review this article page and choose how to load the article and its comments. Explain the data key and show where a pending state belongs.
Review the component tree and recommend what should load immediately, load conditionally, or hydrate when visible. Explain the tradeoffs for initial interaction.
Compare rendering options for the provided route groups using indexing and freshness requirements. Identify which public responses can be cached and keep personalized responses out of shared caches.
Boas práticas
- Keep the server and client first render consistent, and defer browser-only reads until after mounting.
- Use stable data keys and give deferred requests an explicit pending state.
- Choose rendering rules per route group and cache only responses that are safe to share.
Evitar
- Disabling server rendering across the app to hide a hydration mismatch.
- Using a direct top-level fetch for page data that the client should reuse from the server.
- Applying a shared cache to all API routes without distinguishing public and personalized responses.
Perguntas frequentes
Which versions of Nuxt does this skill cover?
When should I use useAsyncData instead of useFetch?
Should I disable server rendering to fix hydration warnings?
What is the difference between lazy loading and lazy hydration?
Does incremental static regeneration work on every host?
Can I apply the sample API cache rule to every endpoint?
Detalhes do desenvolvedor
Autor
affaan-mLicença
Desconhecido
Revisão da Skillstore
r1
Aviso de versão
O autor não declarou uma versão.
Repositório
https://github.com/affaan-m/ecc/tree/4adeee6732a12d1540f49a4d50a38ce8c97f9a53/skills/nuxt4-patternsReferência
5a685fd3b2304f9e4cbf5164d3ac3186cd35324e
Atualidade da manutenção
25/11/2026
Uso
0 downloads · 0 visualizações
Estrutura de arquivos
📄 SKILL.md