vue-nuxt-frontend-patterns

vue-nuxt-frontend-patterns is a skill for Claude Code from shennawardana23/skillme. It costs 82 tokens per session (1,130 once invoked), scanned A, original, Apache-2.0.

A set of patterns for building Vue 3 and Nuxt 3 interfaces, including reusable composables, reactive state, server-side data loading, and components. Vue is a frontend framework, and Nuxt builds applications on top of it.

In plain words
What is it for?
Use it when creating Vue or Nuxt components, composables, shared state, or server-rendered pages, or when debugging reactivity problems.
Why use it?
It helps avoid common bugs where values stop updating because their connection to Vue’s reactive state was lost. It also provides consistent approaches for shared logic and data fetching.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the skillme plugin — 137 skills, 2 commands shipped together

Good fit Use it when creating Vue or Nuxt components, composables, shared state, or server-rendered pages, or when debugging reactivity problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shennawardana23/skillme/vue-nuxt-frontend-patterns
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 shennawardana23/skillme --skill vue-nuxt-frontend-patterns
Clone the repo
git clone --depth 1 https://github.com/shennawardana23/skillme

Made for: Claude Code.

Or install skillme, the plugin that ships this one along with the rest of its 137 skills, 2 commands.

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 vue-nuxt-frontend-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/shennawardana23/skillme/vue-nuxt-frontend-patterns/github.svg)](https://agentmods.dev/skills/shennawardana23/skillme/vue-nuxt-frontend-patterns)
Your own site
<a href="https://agentmods.dev/skills/shennawardana23/skillme/vue-nuxt-frontend-patterns"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/vue-nuxt-frontend-patterns/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 vue-nuxt-frontend-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/shennawardana23/skillme/vue-nuxt-frontend-patterns"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/vue-nuxt-frontend-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,130 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.00082 $0.01130
Opus 5 $0.00041 $0.00565
Sonnet 5 $0.00016 $0.00226
Haiku 4.5 $0.00008 $0.00113

Measured 8d ago against content hash c853ff7d317c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

vue-nuxt-frontend-patterns 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 8d 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.

skills/vue-nuxt-frontend-patterns/SKILL.md · 115 lines

How it starts

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

Vue 3 / Nuxt 3 Frontend Patterns

Composition API over Options API for new code. Reactivity is opt-in per value (ref/reactive), not automatic on plain destructuring — most "reactivity broke" bugs come from losing that connection, not from Vue itself misbehaving.

The reactivity-loss gotcha (highest-value thing to know)

Destructuring a reactive() object breaks reactivity on the destructured values — they become plain, disconnected values at the moment of destructuring:

const state = reactive({ count: 0, name: "task" });

// BROKEN: count is now a plain number, frozen at 0 forever
const { count } = state;

// CORRECT: toRefs preserves the reactive connection
const { count } = toRefs(state);

ref() values avoid this entirely because the ref object itself is passed around and only unwrapped at the point of use — prefer ref() for single values, reactive() only for grouped object state you won't destructure before the template.

Composables

A composable is a function starting with use that encapsulates reusable reactive logic — Vue's equivalent of a custom React hook, but without the rules-of-hooks ordering constraint, since Vue's reactivity doesn't depend on call order.

// composables/useDebounce.ts
export function useDebounce<T>(source: Ref<T>, delayMs: number) {
  const debounced = ref(source.value) as Ref<T>;
  let timer: ReturnType<typeof setTimeout>;
  watch(source, (value) => {
    clearTimeout(timer);
    timer = setTimeout(() => { debounced.value = value; }, delayMs);
  });
  return debounced;
}

Nuxt 3 data fetching

Use useFetch/useAsyncData inside <script setup> for SSR-safe data fetching — they dedupe requests between server and client render and integrate with Nuxt's payload serialization. Use plain $fetch only inside event handlers or outside the SSR render path (a click handler, a composable called imperatively, not during initial setup).

<script setup lang="ts">
const route = useRoute();
const { data: reservation, error, pending } = await useFetch(
  () => `/api/reservations/${route.params.id}`
);
</script>

Read the full file on GitHub · 115 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 115 lines · 82 tokens per session scan A c853ff7d317c

Subscribe to this mod's changes

vue-nuxt-frontend-patterns is a skill published in the GitHub repository shennawardana23/skillme (2 stars, last pushed 14d ago), licensed Apache-2.0. It adds 82 tokens to every session and 1,130 once invoked, about $0.0004 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.