npx skills add smithery/martinholovsky --skill vue-nuxt
pluginagentmarketplace/custom-plugin-vue · Archived
vue-nuxt
Master Nuxt.js - SSR, SSG, Nitro Server, Modules, Auto-imports, Deployment
Installation
npx skills add pluginagentmarketplace/custom-plugin-vue --skill vue-nuxt
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Master Vue TypeScript - Type-safe Components, Generics, Type Inference, Advanced Patterns
4 installsMaster Pinia State Management - Stores, Actions, Getters, Plugins, Persistence
4 installsMaster Vue Router - Navigation, Guards, Lazy Loading, Meta Fields, History Modes
3 installsMaster Vue Composition API - Composables, Reactivity Utilities, Script Setup, Provide/Inject
3 installsSimilar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Browser automation CLI for AI agents. Use when the user needs to interact with websites, includ…
810.4K installsReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "chec…
617.3K installsBuild, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and …
576.5K installsArchitect and provision enterprise Azure infrastructure from workload descriptions. For cloud a…
402.8K installsAlso in this package
Other skills from pluginagentmarketplace/custom-plugin-vue.
npx skills add pluginagentmarketplace/custom-plugin-vue
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Skill metadata
Parsed from SKILL.md frontmatter.
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md6,108 B -
docs
SUMMARY.md90 B
History
- First seen on skills.sh
- First recorded snapshot · 3 installs
SKILL.md
Vue Nuxt Skill
Production-grade skill for mastering Nuxt 3 and building full-stack Vue applications.
Purpose
Single Responsibility: Teach Nuxt 3 architecture including SSR/SSG, Nitro server, modules, auto-imports, and deployment strategies.
Parameter Schema
interface NuxtParams {
topic: 'config' | 'ssr' | 'ssg' | 'api' | 'modules' | 'deploy' | 'all';
level: 'beginner' | 'intermediate' | 'advanced';
context?: {
hosting?: 'vercel' | 'netlify' | 'cloudflare' | 'node';
rendering?: 'ssr' | 'ssg' | 'hybrid';
};
}
Learning Modules
Module 1: Nuxt Fundamentals
Prerequisites: vue-fundamentals, vue-composition-api
Duration: 3-4 hours
Outcome: Set up and configure Nuxt 3
| Topic | Concept | Exercise |
|---|---|---|
| Installation | nuxi create | New project |
| Config | nuxt.config.ts | Basic setup |
| Directory | pages/, components/ | Structure app |
| Auto-imports | No manual imports | Use composables |
| Dev tools | Nuxt DevTools | Debugging |
Module 2: File-Based Routing
Prerequisites: Module 1
Duration: 2 hours
Outcome: Master Nuxt routing conventions
| Pattern | File | Route |
|---|---|---|
| Static | pages/about.vue |
/about |
| Dynamic | pages/user/[id].vue |
/user/:id |
| Catch-all | pages/[...slug].vue |
/* |
| Optional | pages/[[optional]].vue |
/:optional? |
| Nested | pages/dashboard/settings.vue |
/dashboard/settings |
Page Metadata:
<script setup>
definePageMeta({
layout: 'admin',
middleware: ['auth'],
title: 'Dashboard'
})
</script>
Module 3: Data Fetching
Prerequisites: Module 2
Duration: 3-4 hours
Outcome: Fetch data correctly in Nuxt
| Composable | Use Case | Example |
|---|---|---|
| useFetch | Simple fetching | API calls |
| useAsyncData | Full control | Transform data |
| useLazyFetch | Non-blocking | Secondary data |
| $fetch | Server-side | API routes |
Fetching Patterns:
// Block navigation
const { data } = await useFetch('/api/user')
// Non-blocking
const { data, pending } = useLazyFetch('/api/posts')
// With transform
const { data } = await useAsyncData('user',
() => $fetch('/api/user'),
{ transform: (d) => d.user }
)
Module 4: Server API (Nitro)
Prerequisites: Module 3
Duration: 3-4 hours
Outcome: Build server API routes
| Topic | Location | Exercise |
|---|---|---|
| GET | server/api/users.get.ts |
List users |
| POST | server/api/users.post.ts |
Create user |
| Dynamic | server/api/users/[id].ts |
Get by ID |
| Middleware | server/middleware/ |
Auth check |
| Utils | server/utils/ |
Shared code |
API Route Example:
// server/api/users/[id].get.ts
export default defineEventHandler(async (event) => {
const id = getRouterParam(event, 'id')
if (!id) {
throw createError({ statusCode: 400, message: 'ID required' })
}
const user = await db.user.findUnique({ where: { id } })
if (!user) {
throw createError({ statusCode: 404, message: 'Not found' })
}
return user
})
Module 5: Rendering & Deployment
Prerequisites: Modules 1-4
Duration: 3 hours
Outcome: Deploy Nuxt applications
| Mode | Config | Use Case |
|---|---|---|
| SSR | ssr: true |
Dynamic content |
| SSG | routeRules: { prerender } |
Static content |
| SPA | ssr: false |
Client-only |
| Hybrid | routeRules per route |
Mixed content |
Deployment Targets:
| Platform | Preset | Config |
|---|---|---|
| Vercel | vercel |
Zero-config |
| Netlify | netlify |
netlify.toml |
| Cloudflare | cloudflare-pages |
wrangler.toml |
| Node | node-server |
Docker |
Validation Checkpoints
Beginner Checkpoint
- Create Nuxt app with pages
- Use auto-imported composables
- Fetch data with useFetch
- Create basic API route
Intermediate Checkpoint
- Build dynamic routes with params
- Implement middleware
- Create CRUD API routes
- Use layouts and error pages
Advanced Checkpoint
- Configure hybrid rendering
- Implement auth with middleware
- Deploy to production
- Optimize performance
Retry Logic
const skillConfig = {
maxAttempts: 3,
backoffMs: [1000, 2000, 4000],
onFailure: 'simplify_config'
}
Observability
tracking:
- event: project_created
data: [template, modules]
- event: api_route_built
data: [method, path]
- event: deployed
data: [platform, render_mode]
Troubleshooting
Common Issues
| Issue | Cause | Solution |
|---|---|---|
| Hydration mismatch | SSR/client diff | Use <ClientOnly> |
| Auto-import fails | Wrong directory | Check naming |
| API 500 error | Server error | Check server logs |
| Build fails | Config error | Validate nuxt.config |
Debug Steps
- Check Nuxt DevTools
- Review server/api logs
- Verify nuxt.config.ts
- Test API routes directly
Unit Test Template
import { describe, it, expect } from 'vitest'
import { setup, $fetch } from '@nuxt/test-utils'
describe('API Routes', async () => {
await setup({ server: true })
it('returns users', async () => {
const users = await $fetch('/api/users')
expect(Array.isArray(users)).toBe(true)
})
it('returns 404 for missing user', async () => {
const response = await $fetch('/api/users/999', {
ignoreResponseError: true
})
expect(response.statusCode).toBe(404)
})
})
Usage
Skill("vue-nuxt")
Related Skills
vue-composition-api- Prerequisitevue-testing- Testing Nuxt appsvue-typescript- Type-safe Nuxt