nuxt-project-standard
Nuxt 3 项目规范,涵盖目录结构、SSR/SSG、组合式 API、数据获取、路由、中间件、插件与模块。当用户在 Nuxt 3 项目中创建、修改页面或模块时自动激活。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bovinphang/nuxt-project-standardWhat This Skill Does
The nuxt-project-standard skill acts as an expert architectural consultant for Nuxt 3 development. It enforces industry best practices for file structure, state management, and rendering patterns. By analyzing your repository's structure, the agent ensures that your project remains maintainable, performant, and correctly configured. It provides guided assistance on implementing server-side rendering (SSR), static site generation (SSG), and client-side data fetching strategies, helping developers avoid common hydration issues and performance bottlenecks unique to the Nuxt ecosystem.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/bovinphang/nuxt-project-standard
Once installed, the agent will monitor your Nuxt 3 project files and automatically suggest architectural improvements when you modify routes, pages, or API endpoints.
Use Cases
- Project Initialization: Establishing a robust directory structure that leverages Nuxt's auto-import features effectively.
- Performance Tuning: Transitioning between SSR and SSG modes based on specific route requirements.
- State Synchronization: Implementing
useStateor Pinia stores correctly to avoid cross-request state pollution. - Middleware Management: Setting up complex authentication guards or global layout shifts efficiently.
- API Integration: Refactoring legacy client-side fetching logic into optimized
useFetchoruseAsyncDatapatterns.
Example Prompts
- "I am building a dashboard with restricted routes. Can you show me how to implement an authentication middleware using the standard middleware directory and apply it to the entire /dashboard sub-path?"
- "My page is failing to hydrate correctly due to client-only DOM elements. How should I refactor this component to use the
<ClientOnly>tag while ensuring SSR performance?" - "Help me restructure my API route handling. I have a growing number of backend endpoints in
server/api. How should I organize them for better modularity?"
Tips & Limitations
- SSR Awareness: Always remember that code in
plugins/orcomposables/might run on both the server and the client. Wrap browser-specific APIs (likewindoworlocalStorage) inonMountedor use the.clientsuffix. - Auto-Imports: Leverage Nuxt's auto-import feature for components and composables to keep your files clean, but use explicit imports if your project grows to a massive scale to aid IDE intellisense.
- Data Fetching: Avoid using
awaitat the top level of yoursetup()function unless you are inside anasyncDatacall, as this can block navigation. Always preferuseFetchto leverage Nuxt's built-in caching and deduplication capabilities.
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-bovinphang-nuxt-project-standard": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write
Related Skills
frontend-code-review
从架构、可维护性、类型安全、可访问性、样式一致性、性能和可测试性等角度审查前端代码,并将报告保存为 Markdown 文件。当用户要求代码审查、Review、评审代码质量时自动激活。
legacy-web-standard
针对 JavaScript + jQuery + HTML/CSS 传统前端项目的开发与维护规范。当用户在非框架项目中工作,涉及 jQuery、原生 JS、传统多页面应用(MPA)、模板引擎渲染页面、或维护遗留代码时自动激活。
accessibility-check
审查或改进前端 UI 的语义结构、键盘支持、焦点管理、标签以及常见的 WCAG 相关问题,并将报告保存为 Markdown 文件。当用户提到无障碍、accessibility、a11y、WCAG,或在实现交互组件时自动激活。
security-review
前端代码安全审查,检测 XSS、CSRF、敏感数据泄露、不安全的用户输入处理和依赖风险,并将报告保存为 Markdown 文件。当用户要求安全检查、安全审查,或代码涉及用户输入、认证、支付、文件上传等敏感操作时自动激活。
nextjs-project-standard
Next.js 14+ 项目规范,涵盖 App Router、SSR/SSG、流式渲染、路由与布局、数据获取、中间件、元数据与 SEO。当用户在 Next.js 项目中创建、修改页面或模块时自动激活。