Nuxt
Build Vue 3 SSR/SSG applications with proper data fetching, hydration, and server patterns.
Why use this skill?
Master Nuxt 3 with the Nuxt skill for OpenClaw. Learn SSR patterns, fix hydration errors, optimize data fetching, and manage state with expert-guided best practices.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ivangdavila/nuxtWhat This Skill Does
The Nuxt skill enables OpenClaw to architect, debug, and implement robust Vue 3 applications using the Nuxt framework. It provides deep architectural knowledge regarding Nuxt's unique lifecycle, including Server-Side Rendering (SSR) and Static Site Generation (SSG). The skill helps manage complex data fetching patterns, prevents common hydration errors, enforces proper state management via useState and Pinia, and ensures server routes are structured correctly. Whether you are migrating a legacy Vue app or starting a greenfield project, this skill ensures your codebase follows Nuxt 3 best practices.
Installation
To integrate this skill into your agent, run the following command in your terminal:
clawhub install openclaw/skills/skills/ivangdavila/nuxt
Use Cases
- SSR Debugging: Solving hydration mismatches where the server and client render differently.
- Data Fetching Strategy: Choosing between
useFetchfor component data and$fetchfor server-side logic. - Middleware Orchestration: Setting up authentication guards or global navigation hooks.
- Server-Side API Development: Creating secure, method-specific server endpoints within the
server/api/directory. - Performance Optimization: Implementing
useLazyFetchto prevent navigation blocking and improve perceived load times.
Example Prompts
- "Analyze my code: I'm getting a hydration mismatch error when using
Date.now()inside a template, how should I refactor this?" - "Show me how to structure a secure API route in
server/api/that handles a POST request and validates the body payload." - "Help me convert my global
ref()state intouseStateso that my user preferences persist correctly across navigation without being reset by the server."
Tips & Limitations
- Auto-imports: Always ensure composables are prefixed with
useto trigger auto-importing. Do not rely on importing utilities from files not following this convention. - Hydration: Never use browser-specific APIs like
windoworlocalStoragedirectly in your component setup. Always wrap them inonMountedor checkprocess.clientto avoid server-side crashes. - Caching: When using
useFetchwith dynamic URL parameters, you must provide a uniquekeyto prevent the cache from returning data from a previous route navigation. - Navigation: When using
navigateTo()inside middleware, remember toreturnthe function call, otherwise the agent will proceed to the original route anyway.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ivangdavila-nuxt": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
Animations
Create performant web animations with proper accessibility and timing.
Arduino
Develop Arduino projects avoiding common wiring, power, and code pitfalls.
Bulgarian
Write Bulgarian that sounds human. Not formal, not robotic, not AI-generated.
Arabic
Write Arabic that sounds human. Not formal, not robotic, not AI-generated.
Assistant
Manage tasks, communications, and scheduling with proactive and organized support.