/nuxt-modern-dev:vue3-compositionfrom nuxt-modern-dev
Guides Vue 3 component and composable development with Composition API, script setup, reactivity patterns, and provide/inject.
Ships in nuxt-modern-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Baseline: Vue 3 Composition API with <script setup lang="ts">. Confirm the exact Vue version from the repository lockfile.
| ALWAYS | NEVER |
|---|---|
<script setup lang="ts"> for new components | Options API for new code |
Composables named useXxx, return object | Return bare refs without naming |
readonly() for state consumers must not mutate | Mutate props |
| Tailwind utilities for styling | Scoped CSS / inline styles (see tailwindcss4) |
composables/useXxx.tsprovide / inject with typed keysref / reactive in the componentnuxt4-frontend (useFetch / useAsyncData)<script setup lang="ts">
interface Props {
title: string
count?: number
}
const props = withDefaults(defineProps<Props>(), { count: 0 })
const emit = defineEmits<{ save: [id: string] }>()
const open = ref(false)
</script>
<template>
<section class="space-y-2">
<h2 class="text-lg font-semibold">{{ props.title }}</h2>
<button class="rounded-lg bg-slate-900 px-3 py-2 text-white" @click="open = !open">
Toggle
</button>
</section>
</template>
// composables/useToggle.ts
export function useToggle(initial = false) {
const on = ref(initial)
function toggle() {
on.value = !on.value
}
return { on: readonly(on), toggle }
}
props → lose reactivity unless toRefs / storeToRefsreactive + reassignment → prefer ref for reassignable stateawait in Nuxt → prefer Nuxt async data APIs| When | Read |
|---|---|
| Nuxt-specific structure / data | nuxt4-frontend skill |
| Styling | tailwindcss4 skill |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pstuart/pstuart --plugin nuxt-modern-dev7 skills in this plugin
/accessibility-auditAudit web pages and apps for WCAG 2.1 AA accessibility compliance. Use when fixing lighthouse issues, contrast ratios, ARIA labels, or keyboard navigation./nuxt4-frontendUse when building or reviewing Nuxt 4 apps, app/ directory layout, pages, layouts, server routes, composables, layers, or Nuxt data fetching./security-auditSecurity audit checklist for web applications. Use when reviewing security posture, checking for vulnerabilities, or hardening a deployment./tailwindcss4Use when styling Nuxt or Vue UI, migrating from Tailwind 3, configuring @tailwindcss/vite, writing utility classes, or tempted to add custom CSS or inline styles./typescript-strictUse when writing or reviewing TypeScript in Vue, Nuxt, Node, or shared TS utilities, fixing type errors, or deciding how to type API responses and composables./web-qualityUse when setting up or running ESLint, Prettier, Vitest, or Playwright for Nuxt/Vue projects, deciding what to test, or enforcing pre-deploy quality gates.Other plugins' skills for the same job