Nuxt
Use this skill when working anywhere in a Nuxt/Furo app. Every UI unit — page, component, layout — is a thin defineComponent that wires reactive state and clients in setup, delegates all logic to a paired Context class, and reads only through context.* in the template. Furo apps have auto-import disabled (everything is imported by hand) and never use <script setup> or the Options API; app code is JavaScript + JSDoc.
Foundation: [[hof-furo-context-patterns]] (the Context contract that pages, components, layouts, stores, and app-share all build on). See also [[hof-css]] for the
.unit-styling rules and [[hof-jsdoc]] (frontend) / [[hoc-jsdoc]] (shared) / [[types]] for typing.
Pages
Route-level page components under pages/. A page is a thin defineComponent that delegates to a PageContext.
| Topic | Description | Reference |
|---|---|---|
| Route file structure | index.vue-per-route, [id]/[idHash] dynamic segments, the (parents) group, and the sibling .js files stripped from the route table | pages-route-structure |
| Page component shape | setup building args and creating contexts — simple, data-fetching, and mutation pages, plus the shared statusReactive/errorMessageHashReactive vocabulary | pages-component |
| PageContext class | <Feature>PageContext.js extending BaseAppContext — create()/setupComponent() and template getters/methods | pages-context |
| definePageMeta & styling | definePageMeta (layout/alias/title, no per-page middleware) and .unit-page scoped styling | pages-meta-styling |
Components
Reusable Vue components under components/. Every component is an Xxx.vue + XxxContext.js pair.
| Topic | Description | Reference |
|---|---|---|
| Tiers & file layout | The components/ tier taxonomy (units, atoms, molecules, organisms, composites, pages, layouts, toast) and the Xxx.vue + XxxContext.js file layout | components-tier-taxonomy |
| Component shape & imports | The defineComponent + setup skeleton, context.* template access, and explicit imports (auto-import is off) | components-shape |
| Props & emits | Object-form props with JSDoc PropType casts, and emits referencing the context's EMIT_EVENT_NAME map | components-props-emits |
| Reactivity, stores & styling | Creating reactive state/stores in setup and injecting into the context, lifecycle hooks, and <style scoped> .unit- rules | components-reactivity-styling |
Composables
Reusable stateful logic in composables/ — called in setup and injected into Context classes, never called inside a context.
| Topic | Description | Reference |
|---|---|---|
| Conventions & placement | use* naming, two export styles, single params object, object-of-functions returns, repo-root composables/ location | composables-conventions |
useApp* wrappers | Thin wrappers over @openreachtech/furo-nuxt base composables — spread + override, afterRequest auth hook | composables-useapp-wrappers |
| Setup-only rule | Why composables must be called in setup and injected into contexts, never inside a context | composables-setup-only-rule |
| Debounce composables | useDebounce/useKeyedDebounce arrow-const style, single debounced function, timer cleanup on unmount | composables-debounce |
State
Global reactive state via Nuxt useState (no Pinia). Each store is a use*Store composable injected into contexts from setup.
| Topic | Description | Reference |
|---|---|---|
| Store pattern | use*Store wrapping useState, <domain>StateRef + getters/actions as inner named functions, typedefs | state-store-pattern |
| Rules | useState keys, direct mutation, single-params-object actions, async actions, typedef placement | state-rules |
| Consumption | Calling in setup/middleware/plugins and injecting into contexts | state-consumption |
App share
App-wide shared services and reactive UI state that live on nuxtApp — the AppShare instance provided as $furo.
| Topic | Description | Reference |
|---|---|---|
| AppShare | What AppShare is (a FuroShare subclass holding app-wide services/state, commonly reactive UI state), how the plugin builds and provides it as $furo, reading it via useNuxtApp() and delegating through a Context, and the conventions | app-share |
Middleware
Route middleware under middleware/ — all global, ordered by numeric prefix.
| Topic | Description | Reference |
|---|---|---|
| Structure | File naming/ordering (NNN.<name>.global.js) and the goNextAsIs() return convention | middleware-structure |
| Patterns | Auth gateway, customer data bootstrap, and page-title SEO middleware | middleware-patterns |
| Conventions | Module-top constants, return rules, and shared auth/state helpers | middleware-conventions |
Plugins
Nuxt plugins under plugins/ — register shared services, bootstrap config, hook into app lifecycle.
| Topic | Description | Reference |
|---|---|---|
| Naming & forms | plugins/NNN.<name>[.client|.server].js ordering, defineNuxtPlugin bare vs object form, conventions | plugins-naming-and-forms |
| Providing & consuming services | return { provide } → $furo/$md, the 000.furo.js wiring hub, using stores/reactivity inside a plugin | plugins-providing-services |
Runtime types
Ambient/shared type declarations in types/*.d.ts, referenced globally rather than imported.
| Topic | Description | Reference |
|---|---|---|
| File map & conventions | What lives in each types/*.d.ts file; naming, declare global/declare module, export {}, local-vs-ambient rules | types-file-map |
| Runtime config augmentation | Typing useRuntimeConfig().public.<VAR> via nuxt/schema RuntimeConfig/PublicRuntimeConfig in furo-nuxt.d.ts | types-runtime-config |
| Global utility & GraphQL types | RequiredExcept/OptionalExcept/NullableExcept in global.d.ts; the generated schema.graphql namespace | types-global-utility-types |
| Router meta & third-party ambient | vue-router RouteMeta augmentation (headerTitle); ambient consts for injected external scripts | types-router-and-ambient |
Layouts
Nuxt layouts under layouts/ — same Context Class architecture as pages, but only when they have behavior.
| Topic | Description | Reference |
|---|---|---|
| Layouts & selection | Typical layout files (default/settings/gateway) and how pages select them via layout: | layouts-and-selection |
| Layout context | Context only when there's behavior — *LayoutContext with default.vue vs. plain component gateway.vue | layouts-context |
| Nesting & slots | Nesting via <NuxtLayout name> for settings.vue, and preferring <slot/> over <NuxtPage/> | layouts-nesting-and-slots |
| Conventions | Filenames, context placement/naming, .unit-layout root, param typedefs | layouts-conventions |


