Token导航 LogoToken导航TokenDH.com
开发操作浏览器clawhub未标认证来源可访问clear审计通过

nuxtnuxt 开发

Agent Skill

nuxt 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

40,391

周安装

1,735

GitHub Stars

2

下载量

14,158
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:nuxt(nuxt 开发)
来源仓库:https://github.com/ivangdavila/nuxt
安装命令:
openclaw skills install nuxt
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install nuxt

简介

nuxt 用于辅助 Vue 3 SSR/SSG 应用开发,提供数据获取和水合作用优化方案。

  • 它适用于服务端渲染和静态站点生成场景。
  • 使用方式包括输入页面结构和数据源,由 Agent 返回组件代码。
  • 安装命令为 openclaw skills install nuxt,需确认 Node.js 和 Vite 版本。
  • 建议先运行构建测试,避免生产环境渲染失败。

SKILL.md

name
Nuxt
description
Build Vue 3 SSR/SSG applications with proper data fetching, hydration, and server patterns.
metadata
{"clawdbot":{"emoji":"💚","requires":{"bins":["node"]},"os":["linux","darwin","win32"]}}

Nuxt 3 Patterns

Data Fetching

  • useFetch deduplicates and caches requests during SSR — use it in components, not $fetch which fetches twice (server + client)
  • $fetch is for event handlers and server routes only — in <script setup> it causes hydration mismatches
  • useFetch runs on server during SSR — check process.server if you need client-only data
  • Add key option to useFetch when URL params change but path stays same — without it, cache returns stale data
  • useLazyFetch doesn't block navigation — use for non-critical data, but handle the pending state

Hydration Traps

  • Date.now() or Math.random() in templates cause hydration mismatches — compute once in setup or use <ClientOnly>
  • Browser-only APIs (localStorage, window) crash SSR — wrap in onMounted or process.client check
  • Conditional rendering based on client-only state mismatches — use <ClientOnly> component with fallback
  • v-if with async data shows flash of wrong content — use v-show or skeleton states instead

Auto-imports

  • Components in components/ auto-import with folder-based naming — components/UI/Button.vue becomes <UIButton>
  • Composables in composables/ must be named use* for auto-import — utils.ts exports won't auto-import
  • Server utils in server/utils/ auto-import in server routes only — not available in client code
  • Disable auto-imports per-file with // @ts-nocheck or explicitly import to avoid naming collisions

Server Routes

  • Files in server/api/ become API routes — server/api/users.get.ts handles GET /api/users
  • Method suffix (.get.ts, .post.ts) is required for method-specific handlers — without it, handles all methods
  • getQuery(event) for query params, readBody(event) for POST body — don't access event.req directly
  • Return value is auto-serialized to JSON — throw createError({ statusCode: 404 }) for errors

State Management

  • useState is SSR-safe and persists across navigation — regular ref() resets on each page
  • useState key must be unique app-wide — collisions silently share state between components
  • Pinia stores need storeToRefs() to keep reactivity when destructuring — without it, values lose reactivity
  • Don't initialize state with browser APIs in useState default — it runs on server too

Middleware

  • Global middleware in middleware/ with .global.ts suffix runs on every route — order is alphabetical
  • Route middleware defined in definePageMeta runs after global — use for auth checks on specific pages
  • navigateTo() in middleware must be returned — forgetting return continues to the original route
  • Server middleware in server/middleware/ runs on all server requests including API routes

Configuration

  • runtimeConfig for server secrets, runtimeConfig.public for client-safe values — env vars override with NUXT_ prefix
  • app.config.ts for build-time config that doesn't need env vars — it's bundled into the app
  • nuxt.config.ts changes require restart — app.config.ts changes hot-reload

SEO and Meta

  • useSeoMeta for standard meta tags — type-safe and handles og:/twitter: prefixes automatically
  • useHead for custom tags, scripts, and links — more flexible but no type safety for meta names
  • Meta in definePageMeta is static — use useSeoMeta in setup for dynamic values
  • titleTemplate in nuxt.config for consistent titles — %s - My Site pattern

Plugins

  • Plugins run before app creation — use nuxtApp.hook('app:created') for post-creation logic
  • provide in plugins makes values available via useNuxtApp() — but composables are cleaner
  • Plugin order: numbered prefixes (01.plugin.ts) run first, then alphabetical — dependencies need explicit ordering
  • Client-only plugins: .client.ts suffix — server-only: .server.ts suffix

Build and Deploy

  • nuxt generate creates static files — but API routes won't work without a server
  • nuxt build creates server bundle — deploy the .output directory
  • ISR with routeRules: '/blog/**': { isr: 3600 } — caches pages for 1 hour
  • Prerender specific routes: routeRules: { '/about': { prerender: true } } — builds static HTML at build time

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

91.74%
按下载量换算12,989

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills