vue3-and-nuxt3-architecture

vue3-and-nuxt3-architecture is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 43 tokens per session (2,396 once invoked), scanned A, original, MIT.

Architecture guidance for Vue 3 and Nuxt 3, tools for building web applications with Vue and server-side or hybrid rendering. It covers shared state, reusable logic, rendering modes, server routes, and performance.

In plain words
What is it for?
Use it to design Vue components and composables, configure Nuxt rendering and routing, validate server APIs, and plan application state.
Why use it?
It helps keep larger Vue applications organised and avoids common mistakes with reactivity, rendering, and server code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design Vue components and composables, configure Nuxt rendering and routing, validate server APIs, and plan application state.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/vue3-and-nuxt3-architecture
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzabellouch/agent-skills --skill vue3-and-nuxt3-architecture
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vue3-and-nuxt3-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/vue3-and-nuxt3-architecture/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/vue3-and-nuxt3-architecture)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/vue3-and-nuxt3-architecture"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/vue3-and-nuxt3-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vue3-and-nuxt3-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/vue3-and-nuxt3-architecture"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/vue3-and-nuxt3-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,396 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.02396
Opus 5 $0.00022 $0.01198
Sonnet 5 $0.00009 $0.00479
Haiku 4.5 $0.00004 $0.00240

Measured 9d ago against content hash 5e171a48de0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

vue3-and-nuxt3-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Advanced Frontend Frameworks/vue3-and-nuxt3-architecture/SKILL.md · 320 lines

How it starts

The opening of the file, as written. The whole thing — 320 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vue 3 & Nuxt 3 Enterprise Architecture Guide

Core Architectural Principles

1. Composition API & Composables Design

  • Single Responsibility: Each composable should manage one specific domain concept or side-effect (e.g., useAuth, useInfiniteScroll, useWebNotification).
  • Explicit Return Types & Reactivity: Prefer returning an explicit object of ShallowRef, Ref, or Readonly<Ref> to preserve reactivity encapsulation.
  • Context Injection: Use provide/inject with Symbol keys for scope-level dependency injection (e.g., module configuration, UI themes, scoped dynamic state).
  • Vue 3.5+ Reactive Props Destructuring: Take advantage of native destructuring for defineProps() without losing reactivity, utilizing default value assignment natively.

2. Nuxt 3 Full-Stack & Rendering Strategies

  • Hybrid Rendering & Route Rules: Assign rendering modes strategically in nuxt.config.ts (ssr: true, swr, static, prerender) based on page freshness and SEO requirements.
  • Nitro Engine & Server Routes: Enforce strict validation on server/api/ and server/routes/ using Zod or H3 built-in helpers (readValidatedBody, getValidatedQuery).
  • Payload Extraction & Hydration: Avoid passing non-serializable objects (DOM nodes, class instances, circular references) in useAsyncData or useState.

3. State Management with Pinia & Nuxt useState

  • Setup Stores over Option Stores: Standardize on Setup Store syntax (defineStore('id', () => { ... })) for improved Composition API synergy and TypeScript inference.
  • SSR State Isolation: Avoid top-level global variables outside of functions in server routes or composables to prevent multi-tenant cross-request data leaks.
  • SSR Hydration Boundaries: Mark client-only states appropriately, using onMounted or <ClientOnly> wrappers when referencing browser APIs like window, localStorage, or Web APIs.

Production Code Examples

Example 1: Type-Safe Dynamic Composable with Auto Cleanup

Location: composables/useWebSocketStream.ts

Read the full file on GitHub · 320 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 320 lines · 43 tokens per session scan A 5e171a48de0b

Subscribe to this mod's changes

vue3-and-nuxt3-architecture is a skill published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 43 tokens to every session and 2,396 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.