[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FD9X72G0H9BHS3C889J1QW":3,"skill-same:01M7FD9X72G0H9BHS3C889J1QW":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M7FD9X72G0H9BHS3C889J1QW","vue-nuxt",null,"Use when building or reviewing a Vue 3 + Nuxt 4 app — `\u003Cscript setup>` reactivity, SSR\u002FSSG\u002Fhybrid `routeRules`, the `app\u002F`+`server\u002F` layout, SSR-safe fetching (`useFetch`\u002F`useAsyncData`) and state (`useState`\u002FPinia), Nitro routes, hydration mismatches, Nuxt 3→4 migration. NOT React\u002FRSC (that is nextjs), NOT a static islands site (that is astro).","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fvue-nuxt\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: vue-nuxt\ndescription: \"Use when building or reviewing a Vue 3 + Nuxt 4 app — `\u003Cscript setup>` reactivity, SSR\u002FSSG\u002Fhybrid `routeRules`, the `app\u002F`+`server\u002F` layout, SSR-safe fetching (`useFetch`\u002F`useAsyncData`) and state (`useState`\u002FPinia), Nitro routes, hydration mismatches, Nuxt 3→4 migration. NOT React\u002FRSC (that is nextjs), NOT a static islands site (that is astro).\"\ntags: [vue, nuxt, frontend, web, ssr]\nrecommends: [design, deployment, secure-coding]\norigin: risco\n---\n\n# Vue 3 + Nuxt 4 — Composition API, SSR, SSR-safe data & state\n\nBuild and review Vue 3 (`\u003Cscript setup>` + Composition API) on the Nuxt 4 meta-framework:\nSSR\u002FSSG\u002Fhybrid rendering, the `app\u002F` + `server\u002F` layout, SSR-safe fetching and state, Nitro\nserver routes, and the reactivity discipline that keeps hydration correct. Nuxt's render model\nis **whole-component render-then-hydrate** — there is no React-style \"server component\" boundary,\nso never import RSC mental models here.\n\nNot this skill: React \u002F Next App Router \u002F server actions → [`nextjs`](..\u002Fnextjs\u002FSKILL.md) or\n[`react`](..\u002Freact\u002FSKILL.md). Content-first site mixing frameworks\u002Fislands →\n[`astro`](..\u002Fastro\u002FSKILL.md); fine-grained signals → [`solid-js`](..\u002Fsolid-js\u002FSKILL.md);\ncompiler-first no-VDOM peer → [`svelte`](..\u002Fsvelte\u002FSKILL.md); [`angular`](..\u002Fangular\u002FSKILL.md).\nBackend not in Nitro\u002FJS → [`fastapi`](..\u002Ffastapi\u002FSKILL.md), [`go`](..\u002Fgo\u002FSKILL.md),\n[`laravel`](..\u002Flaravel\u002FSKILL.md). Test *strategy* beyond the Vitest + `@vue\u002Ftest-utils` +\n`@nuxt\u002Ftest-utils` setup named here → [`e2e-testing`](..\u002Fe2e-testing\u002FSKILL.md) \u002F\n[`testing-web`](..\u002Ftesting-web\u002FSKILL.md). Generic security review →\n[`secure-coding`](..\u002Fsecure-coding\u002FSKILL.md); SEO\u002Fcontent strategy →\n[`marketing`](..\u002Fmarketing\u002FSKILL.md); component visual language → [`design`](..\u002Fdesign\u002FSKILL.md).\n\n## First: detect Nuxt vs plain Vue, and the version\n\nNever prescribe `useFetch`\u002F`useState`\u002Fauto-imports in a project that does not have them. Detect\nbefore you write a line.\n\n| Signal in the repo | Verdict | What is available |\n|---|---|---|\n| `nuxt.config.{ts,js,mjs}` + `app\u002F` dir holding `pages\u002F`,`components\u002F` | **Nuxt 4** (current) | full auto-imports, `useFetch`\u002F`useState`, `server\u002F`, `routeRules` |\n| `nuxt.config.*` + root `pages\u002F`,`components\u002F` (no `app\u002F`) | **Nuxt 3 layout** | same APIs; flag the migration (see [`references\u002Fmigration-nuxt4.md`](references\u002Fmigration-nuxt4.md)) |\n| `vite.config.*` + `createApp(...).mount(...)`, no `nuxt.config` | **plain Vue 3 SPA** | Vue reactivity only — NO `useFetch`\u002F`useState`\u002FNitro\u002Fauto-imports |\n\nRule: in a plain-Vue SPA, fetch with the browser `fetch`\u002Fa client library inside `onMounted` or a\ncomposable, manage shared state with `reactive`\u002F`provide`\u002FPinia — `useFetch`\u002F`useState` do not\nexist there. Confirm `nuxt` is in `package.json` before reaching for any Nuxt API.\n\n## Composition API & reactivity core\n\nUse `\u003Cscript setup lang=\"ts\">` for every SFC. Prefer `ref` over `reactive` — `ref` survives\ndestructuring through `.value`, works for primitives, and reads uniformly. Reach for `reactive`\nonly for a grouped object you never destructure.\n\n```vue\n\u003Cscript setup lang=\"ts\">\nimport { ref, computed, watch, onWatcherCleanup } from 'vue'\n\nconst count = ref(0)\nconst doubled = computed(() => count.value * 2)        \u002F\u002F cached, recomputes on dep change\n\nwatch(count, async (next, _prev, onCleanup) => {        \u002F\u002F explicit dep, gets old value\n  const ctrl = new AbortController()\n  onCleanup(() => ctrl.abort())                          \u002F\u002F or onWatcherCleanup(...) (3.5)\n  await fetch(`\u002Fapi\u002Flog?n=${next}`, { signal: ctrl.signal })\n})\n\u003C\u002Fscript>\n```\n\n`watch` vs `watchEffect`: use `watch` when you need the previous value or an explicit dependency;\nuse `watchEffect` for \"run now and re-run when anything I touched changes\". Register teardown with\n`onWatcherCleanup()` (Vue 3.5) or the `onCleanup` arg to cancel stale async work — why: a watcher\nthat fires faster than its async settles will otherwise apply an out-of-order result.\n\nReactive props destructure is **stable in Vue 3.5** — the compiler rewrites `count` to\n`props.count`, so the binding stays reactive and you get clean default syntax:\n\n```vue\n\u003Cscript setup lang=\"ts\">\nconst { count = 0, label } = defineProps\u003C{ count?: number; label: string }>()\n\u002F\u002F `count`\u002F`label` here ARE reactive — compiler maps them back to props.x\n\u003C\u002Fscript>\n```\n\nTwo-way binding uses `defineModel()` (stable since 3.4), replacing the manual\n`props`+`emit('update:x')` pair. Template DOM refs use `useTemplateRef('name')` (3.5), not a\nmanually-named `ref`.\n\n```vue\n\u003Cscript setup lang=\"ts\">\nimport { useTemplateRef } from 'vue'\nconst model = defineModel\u003Cstring>()          \u002F\u002F parent: \u003CComp v-model=\"x\" \u002F>\nconst input = useTemplateRef('inputEl')       \u002F\u002F \u003Cinput ref=\"inputEl\">\n\u003C\u002Fscript>\n```\n\n### Bad → Good: do not destructure a `reactive()`\n\n```vue\n\u003Cscript setup lang=\"ts\">\nimport { reactive, toRefs } from 'vue'\nconst state = reactive({ name: 'a', age: 1 })\n\n\u002F\u002F Bad — `name` is a detached plain string; mutating state.name won't update it.\nconst { name } = state\n\n\u002F\u002F Good — keep the proxy, or toRefs to preserve reactivity per key.\nconst { name: nameRef } = toRefs(state)   \u002F\u002F nameRef.value stays linked\n\u002F\u002F or just read state.name where you need it.\n\u003C\u002Fscript>\n```\n\nDeep reactivity, effect scope, advanced `provide\u002Finject`, and render-function\u002FJSX notes live in\n[`references\u002Freactivity.md`](references\u002Freactivity.md).\n\n## Components & composables\n\nType `defineProps`\u002F`defineEmits` with generics, not the runtime object form — you get\ncompile-time checking for free:\n\n```vue\n\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{ id: string; tags?: string[] }>()\nconst emit = defineEmits\u003C{ select: [id: string]; close: [] }>()\ndefineExpose({ focus })   \u002F\u002F only what a parent template-ref may call\n\u003C\u002Fscript>\n```\n\nExtract reusable logic into `composables\u002FuseX.ts` returning refs — **a composable, never a mixin**\n(why: mixins merge invisibly and collide on names; composables are explicit and tree-shakeable).\nNo side effects at module scope (that runs once per server process and leaks across requests — see\nstate below). Use typed `provide`\u002F`inject` with an `InjectionKey` for dependency injection down a\ntree instead of prop-drilling.\n\n## The data-fetching boundary (core)\n\nThis is where most Nuxt bugs live. Pick deliberately:\n\n| API | Use it for | SSR behavior |\n|---|---|---|\n| `useFetch(url, opts)` | the common case — fetch a URL in a page\u002Fcomponent | fetches **once on server**, transfers payload to client, no refetch on hydration |\n| `useAsyncData(key, fn)` | wrap custom logic \u002F multiple `$fetch` calls \u002F a non-URL source | same once-then-transfer; you control the fn |\n| `$fetch(url)` | inside event handlers, server routes, or after mount | a plain request; **NOT** for top-level `setup` data |\n\n### Bad → Good: bare `$fetch` in setup double-fetches on SSR\n\n```vue\n\u003Cscript setup lang=\"ts\">\n\u002F\u002F Bad — runs on the server render AND again during client hydration (2× the API hit,\n\u002F\u002F possible mismatch). $fetch does not transfer a payload.\nconst product = await $fetch(`\u002Fapi\u002Fproducts\u002F${id}`)\n\n\u002F\u002F Good — one server fetch, payload serialized into the page, reused on hydration.\nconst { data: product, status, error, refresh } = await useAsyncData(\n  `product:${id}`,                       \u002F\u002F stable key → dedupe + shared ref across components\n  () => $fetch(`\u002Fapi\u002Fproducts\u002F${id}`),\n)\n\u002F\u002F equivalently for a plain URL: useFetch(`\u002Fapi\u002Fproducts\u002F${id}`, { key: `product:${id}` })\n\u003C\u002Fscript>\n```\n\nKey options: `key` (shared\u002Fdeduped result — same key returns the same `data`\u002F`error`\u002F`status` ref,\nauto-cleaned on last unmount), `lazy: true` (don't block navigation), `server: false` (client-only\nfetch), `transform` (reshape before storing), `pick` (keep only listed fields — shrinks payload),\n`watch`\u002Freactive keys (a `ref`\u002F`computed`\u002Fgetter key refetches when it changes). Type the result\nwith `useFetch\u003CT>()` \u002F `useAsyncData\u003CT>()`. In **Nuxt 4 the returned `data` is a `shallowRef`** —\nreplace the whole value, don't deep-mutate, to trigger updates. Nuxt 4.2 adds `AbortController`\nsignal support for request cancellation. Re-run with the returned `refresh()`, or invalidate\nbroadly with `refreshNuxtData(key)`.\n\nFull option matrix, custom `$api` factory, optimistic UI, and error\u002Fpending patterns are in\n[`references\u002Fdata-and-state.md`](references\u002Fdata-and-state.md).\n\n## SSR-safe state\n\nOn the server one Node process serves many requests. A module-level `ref` is created **once** and\nshared by every visitor — a textbook cross-request data leak.\n\n| Approach | Per-request? | When |\n|---|---|---|\n| module-level `ref`\u002F`reactive` | **NO — leaks across requests** | never for request data; fine only for true constants |\n| `useState(key, init)` | yes — serialized after SSR, restored on hydration, shared by key | lightweight shared value |\n| Pinia store (`@pinia\u002Fnuxt`) | yes — hydrated from Nuxt payload | structured state, actions, multiple consumers |\n\n### Bad → Good: module `ref` → `useState`\n\n```ts\n\u002F\u002F Bad — module scope: one instance for the whole server, shared between users.\nimport { ref } from 'vue'\nexport const user = ref(null)\n\n\u002F\u002F Good — per-request, hydration-safe, shared by key.\nexport const useUser = () => useState('user', () => null)\n```\n\nPinia 3 (dropped Vue 2) with `@pinia\u002Fnuxt` auto-imports stores from `app\u002Fstores\u002F`. Use the\n**setup-store** form; SSR state hydrates from the payload automatically:\n\n```ts\n\u002F\u002F app\u002Fstores\u002Fcart.ts\nexport const useCartStore = defineStore('cart', () => {\n  const items = ref\u003CItem[]>([])\n  const count = computed(() => items.value.length)\n  function add(i: Item) { items.value.push(i) }\n  return { items, count, add }\n})\n```\n\n## Hydration mismatches\n\nA mismatch means the server-rendered HTML differs from the client's first render. Common causes:\n`Date.now()`\u002F`new Date()`\u002F`Math.random()` in render, reading `localStorage`\u002F`window`\u002F`document` in\n`setup`, locale\u002Ftimezone differences, invalid HTML nesting (`\u003Cp>` wrapping a `\u003Cdiv>`), and\nnon-deterministic iteration order.\n\nFix kit: wrap genuinely client-only UI in `\u003CClientOnly>`; branch with `import.meta.client` \u002F\n`import.meta.server`; do browser work in `onMounted` (never in `setup` body); and pin a\nserver-generated value with `useState` so the client reuses the exact same value instead of\nrecomputing it.\n\n```vue\n\u003Ctemplate>\n  \u003CClientOnly>\u003CLiveClock \u002F>\u003C\u002FClientOnly>\n\u003C\u002Ftemplate>\n\u003Cscript setup lang=\"ts\">\nconst seed = useState('seed', () => Math.random())   \u002F\u002F generated once on server, reused on client\nonMounted(() => { \u002F* safe: window\u002FlocalStorage here *\u002F })\n\u003C\u002Fscript>\n```\n\n## Nitro server routes\n\nFiles in `server\u002Fapi\u002F*` and `server\u002Froutes\u002F*` run on Nitro (Nuxt's server engine). Name by method\nwith `.get.ts`\u002F`.post.ts`. Validate input; throw `createError` for HTTP errors.\n\n```ts\n\u002F\u002F server\u002Fapi\u002Fproducts\u002F[id].get.ts\nexport default defineEventHandler(async (event) => {\n  const id = getRouterParam(event, 'id')\n  const { fields } = getQuery(event)\n  if (!id) throw createError({ statusCode: 400, statusMessage: 'id required' })\n  const config = useRuntimeConfig()              \u002F\u002F private keys server-only\n  const data = await fetchFromDb(id, config.dbUrl)\n  if (!data) throw createError({ statusCode: 404, statusMessage: 'Not found' })\n  return data\n})\n```\n\n`useRuntimeConfig()` exposes top-level keys **only on the server**; only `config.public.*` reaches\nthe browser bundle. Rule: a secret in `runtimeConfig.public` (or any `NUXT_PUBLIC_*` env) ships to\nevery client — keep API keys, DB URLs, and tokens at the top level, never under `public`. Type\ncalls to your own API with `$fetch\u003CProductDto>('\u002Fapi\u002F...')`. Handlers, route-rule recipes,\nmiddleware, and `defineCachedEventHandler` caching live in\n[`references\u002Fnitro-and-rendering.md`](references\u002Fnitro-and-rendering.md).\n\n## Rendering strategy\n\nSet per-route rendering in `nuxt.config.ts` with `routeRules`; the right mix is usually hybrid,\nnot all-SSR.\n\n```ts\nexport default defineNuxtConfig({\n  routeRules: {\n    '\u002F':            { prerender: true },             \u002F\u002F SSG at build\n    '\u002Fblog\u002F**':     { swr: 3600 },                   \u002F\u002F stale-while-revalidate cache 1h\n    '\u002Fproducts\u002F**': { isr: true },                   \u002F\u002F incremental static regeneration\n    '\u002Fadmin\u002F**':    { ssr: false },                  \u002F\u002F client-only SPA island\n    '\u002Fold':         { redirect: '\u002Fnew' },\n    '\u002Fapi\u002F**':      { headers: { 'cache-control': 's-maxage=60' } },\n  },\n})\n```\n\n`nuxt build` produces an SSR server; `nuxt generate` prerenders a fully static site. The **Nitro\npreset** chooses the deploy target (node-server, vercel, netlify, cloudflare-pages, …) — pick the\npreset here, then hand platform specifics to [`deployment`](..\u002Fdeployment\u002FSKILL.md),\n[`vercel`](..\u002Fvercel\u002FSKILL.md), [`netlify`](..\u002Fnetlify\u002FSKILL.md), or\n[`cloudflare`](..\u002Fcloudflare\u002FSKILL.md).\n\n## Performance\n\n- `shallowRef`\u002F`shallowReactive` for large payloads\u002Flists — skip deep proxy cost; replace the whole\n  value to update. Why: deep reactivity on a 10k-row array is pure overhead.\n- `v-memo` to freeze a subtree on stable deps; `v-once` for render-once static content.\n- `defineAsyncComponent` and Nuxt's auto `Lazy\u003CComponent>` prefix to code-split below the fold.\n- `\u003CNuxtImg>` \u002F `@nuxt\u002Fimage` for responsive, optimized images (a top LCP lever).\n- Shrink the SSR payload with `pick`\u002F`transform` on `useFetch`\u002F`useAsyncData`.\n- Vue 3.6 **Vapor Mode** (compile-time, no-VDOM, opt-in per component via `\u003Cscript setup vapor>`) is\n  a 2026 preview targeting mid-2026 stable — treat as opt-in, not the default.\n- Targets: LCP \u003C 2.5s, CLS \u003C 0.1, INP \u003C 200ms.\n\n## Anti-patterns → STOP\n\n| Smell | Why it is wrong | Do instead |\n|---|---|---|\n| `await $fetch()` for page data in `setup` | runs on server AND client → double API hit, mismatch | `useAsyncData(key, () => $fetch(...))` \u002F `useFetch` |\n| Module-level `ref`\u002F`reactive` for shared state | one instance per server process → leaks across requests | `useState(key, init)` or a Pinia store |\n| `window`\u002F`localStorage`\u002F`document` in `setup` body | undefined on server → hydration mismatch | `onMounted`, `import.meta.client`, or `\u003CClientOnly>` |\n| Treating Nuxt like Next RSC (\"use server\", server components) | Vue has no RSC boundary; whole component renders + hydrates | model it as SSR + client hydration |\n| Destructuring a `reactive()` object | detaches the value from the proxy → loses reactivity | `toRefs()`, or read `state.x`, or prefer `ref` |\n| Secret in `runtimeConfig.public` \u002F `NUXT_PUBLIC_*` | shipped into the client bundle | top-level `runtimeConfig`, server-only |\n| `useFetch`\u002F`useState` in a plain-Vue (non-Nuxt) app | those auto-imports don't exist there | client `fetch` in `onMounted` + Pinia\u002F`provide` |\n| `\u003CClientOnly>` wrapping everything to \"fix\" mismatches | kills SSR, hurts SEO\u002FLCP, hides the real bug | find the non-deterministic source; pin with `useState` |\n| Same fetch in two components without a shared `key` | duplicate requests, divergent refs | one stable `key` → shared deduped result |\n| `ref(hugeArray)` \u002F deep `reactive` on big lists | per-element proxy overhead | `shallowRef`\u002F`shallowReactive`, replace whole value |\n\n## Verify\n\n`scripts\u002Fverify.sh` runs from the project root. With a `nuxt.config.{ts,js,mjs}` it runs `nuxi\ntypecheck` (fallback `vue-tsc --noEmit`), the package `lint` script if present, `vitest run` if\nVitest is present, then `nuxi build`; with no Nuxt config, `vue-tsc --noEmit`, lint, vitest, then\n`vite build`. Keep `strict: true` in tsconfig so the typecheck is worth running. Every missing tool\nis a yellow SKIP, never a failure; everything is read-only except the final build, which writes\n`.nuxt\u002F`\u002F`.output\u002F` (or `dist\u002F`). No installs, no network mutations, safe to re-run, exits 0 on a\nclean\u002Fempty target.\n\n## Project grounding (02-DOCS + CLAUDE.md)\n\nIn a project with a `02-DOCS\u002F` layer (the [`harness`](..\u002Fharness\u002FSKILL.md) Karpathy wiki), read\n`02-DOCS\u002Fwiki\u002Fstack\u002Fvue-nuxt.md` first and stay consistent with it. If it is missing or stale,\ncreate\u002Fupdate it with this app's real choices — rendering mode per route (`routeRules`), the\n`useFetch`\u002F`useAsyncData` conventions, `useState` vs Pinia, the Nitro preset\u002Fdeploy target, the\ndesign-system hookup — bump its `Updated` date, and link it from a `## Knowledge map` section in\nthe root `CLAUDE.md` (creating that section, and `CLAUDE.md` itself, if absent). No `02-DOCS\u002F`\nlayer? Skip silently. Technical conventions are *recorded, not gated* — never block the task.\n\nNuxt 3 → 4 deltas (`app\u002F` move, `compatibilityVersion`, shared-key data, shallowRef payload,\nrenamed APIs) and Vue 3.4 → 3.5 changes are in\n[`references\u002Fmigration-nuxt4.md`](references\u002Fmigration-nuxt4.md).\n","# Vue 3 + Nuxt 4 — Composition API, SSR, SSR-safe data & state\n\nBuild and review Vue 3 (`\u003Cscript setup>` + Composition API) on the Nuxt 4 meta-framework:\nSSR\u002FSSG\u002Fhybrid rendering, the `app\u002F` + `server\u002F` layout, SSR-safe fetching and state, Nitro\nserver routes, and the reactivity discipline that keeps hydration correct. Nuxt's render model\nis **whole-component render-then-hydrate** — there is no React-style \"server component\" boundary,\nso never import RSC mental models here.\n\nNot this skill: React \u002F Next App Router \u002F server actions → [`nextjs`](..\u002Fnextjs\u002FSKILL.md) or\n[`react`](..\u002Freact\u002FSKILL.md). Content-first site mixing frameworks\u002Fislands →\n[`astro`](..\u002Fastro\u002FSKILL.md); fine-grained signals → [`solid-js`](..\u002Fsolid-js\u002FSKILL.md);\ncompiler-first no-VDOM peer → [`svelte`](..\u002Fsvelte\u002FSKILL.md); [`angular`](..\u002Fangular\u002FSKILL.md).\nBackend not in Nitro\u002FJS → [`fastapi`](..\u002Ffastapi\u002FSKILL.md), [`go`](..\u002Fgo\u002FSKILL.md),\n[`laravel`](..\u002Flaravel\u002FSKILL.md). Test *strategy* beyond the Vitest + `@vue\u002Ftest-utils` +\n`@nuxt\u002Ftest-utils` setup named here → [`e2e-testing`](..\u002Fe2e-testing\u002FSKILL.md) \u002F\n[`testing-web`](..\u002Ftesting-web\u002FSKILL.md). Generic security review →\n[`secure-coding`](..\u002Fsecure-coding\u002FSKILL.md); SEO\u002Fcontent strategy →\n[`marketing`](..\u002Fmarketing\u002FSKILL.md); component visual language → [`design`](..\u002Fdesign\u002FSKILL.md).\n\n## First: detect Nuxt vs plain Vue, and the version\n\nNever prescribe `useFetch`\u002F`useState`\u002Fauto-imports in a project that does not have them. Detect\nbefore you write a line.\n\n| Signal in the repo | Verdict | What is available |\n|---|---|---|\n| `nuxt.config.{ts,js,mjs}` + `app\u002F` dir holding `pages\u002F`,`components\u002F` | **Nuxt 4** (current) | full auto-imports, `useFetch`\u002F`useState`, `server\u002F`, `routeRules` |\n| `nuxt.config.*` + root `pages\u002F`,`components\u002F` (no `app\u002F`) | **Nuxt 3 layout** | same APIs; flag the migration (see [`references\u002Fmigration-nuxt4.md`](references\u002Fmigration-nuxt4.md)) |\n| `vite.config.*` + `createApp(...).mount(...)`, no `nuxt.config` | **plain Vue 3 SPA** | Vue reactivity only — NO `useFetch`\u002F`useState`\u002FNitro\u002Fauto-imports |\n\nRule: in a plain-Vue SPA, fetch with the browser `fetch`\u002Fa client library inside `onMounted` or a\ncomposable, manage shared state with `reactive`\u002F`provide`\u002FPinia — `useFetch`\u002F`useState` do not\nexist there. Confirm `nuxt` is in `package.json` before reaching for any Nuxt API.\n\n## Composition API & reactivity core\n\nUse `\u003Cscript setup lang=\"ts\">` for every SFC. Prefer `ref` over `reactive` — `ref` survives\ndestructuring through `.value`, works for primitives, and reads uniformly. Reach for `reactive`\nonly for a grouped object you never destructure.\n\n```vue\n\u003Cscript setup lang=\"ts\">\nimport { ref, computed, watch, onWatcherCleanup } from 'vue'\n\nconst count = ref(0)\nconst doubled = computed(() => count.value * 2)        \u002F\u002F cached, recomputes on dep change\n\nwatch(count, async (next, _prev, onCleanup) => {        \u002F\u002F explicit dep, gets old value\n  const ctrl = new AbortController()\n  onCleanup(() => ctrl.abort())                          \u002F\u002F or onWatcherCleanup(...) (3.5)\n  await fetch(`\u002Fapi\u002Flog?n=${next}`, { signal: ctrl.signal })\n})\n\u003C\u002Fscript>\n```\n\n`watch` vs `watchEffect`: use `watch` when you need the previous value or an explicit dependency;\nuse `watchEffect` for \"run now and re-run when anything I touched changes\". Register teardown with\n`onWatcherCleanup()` (Vue 3.5) or the `onCleanup` arg to cancel stale async work — why: a watcher\nthat fires faster than its async settles will otherwise apply an out-of-order result.\n\nReactive props destructure is **stable in Vue 3.5** — the compiler rewrites `count` to\n`props.count`, so the binding stays reactive and you get clean default syntax:\n\n```vue\n\u003Cscript setup lang=\"ts\">\nconst { count = 0, label } = defineProps\u003C{ count?: number; label: string }>()\n\u002F\u002F `count`\u002F`label` here ARE reactive — compiler maps them back to props.x\n\u003C\u002Fscript>\n```\n\nTwo-way binding uses `defineModel()` (stable since 3.4), replacing the manual\n`props`+`emit('update:x')` pair. Template DOM refs use `useTemplateRef('name')` (3.5), not a\nmanually-named `ref`.\n\n```vue\n\u003Cscript setup lang=\"ts\">\nimport { useTemplateRef } from 'vue'\nconst model = defineModel\u003Cstring>()          \u002F\u002F parent: \u003CComp v-model=\"x\" \u002F>\nconst input = useTemplateRef('inputEl')       \u002F\u002F \u003Cinput ref=\"inputEl\">\n\u003C\u002Fscript>\n```\n\n### Bad → Good: do not destructure a `reactive()`\n\n```vue\n\u003Cscript setup lang=\"ts\">\nimport { reactive, toRefs } from 'vue'\nconst state = reactive({ name: 'a', age: 1 })\n\n\u002F\u002F Bad — `name` is a detached plain string; mutating state.name won't update it.\nconst { name } = state\n\n\u002F\u002F Good — keep the proxy, or toRefs to preserve reactivity per key.\nconst { name: nameRef } = toRefs(state)   \u002F\u002F nameRef.value stays linked\n\u002F\u002F or just read state.name where you need it.\n\u003C\u002Fscript>\n```\n\nDeep reactivity, effect scope, advanced `provide\u002Finject`, and render-function\u002FJSX notes live in\n[`references\u002Freactivity.md`](references\u002Freactivity.md).\n\n## Components & composables\n\nType `defineProps`\u002F`defineEmits` with generics, not the runtime object form — you get\ncompile-time checking for free:\n\n```vue\n\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{ id: string; tags?: string[] }>()\nconst emit = defineEmits\u003C{ select: [id: string]; close: [] }>()\ndefineExpose({ focus })   \u002F\u002F only what a parent template-ref may call\n\u003C\u002Fscript>\n```\n\nExtract reusable logic into `composables\u002FuseX.ts` returning refs — **a composable, never a mixin**\n(why: mixins merge invisibly and collide on names; composables are explicit and tree-shakeable).\nNo side effects at module scope (that runs once per server process and leaks across requests — see\nstate below). Use typed `provide`\u002F`inject` with an `InjectionKey` for dependency injection down a\ntree instead of prop-drilling.\n\n## The data-fetching boundary (core)\n\nThis is where most Nuxt bugs live. Pick deliberately:\n\n| API | Use it for | SSR behavior |\n|---|---|---|\n| `useFetch(url, opts)` | the common case — fetch a URL in a page\u002Fcomponent | fetches **once on server**, transfers payload to client, no refetch on hydration |\n| `useAsyncData(key, fn)` | wrap custom logic \u002F multiple `$fetch` calls \u002F a non-URL source | same once-then-transfer; you control the fn |\n| `$fetch(url)` | inside event handlers, server routes, or after mount | a plain request; **NOT** for top-level `setup` data |\n\n### Bad → Good: bare `$fetch` in setup double-fetches on SSR\n\n```vue\n\u003Cscript setup lang=\"ts\">\n\u002F\u002F Bad — runs on the server render AND again during client hydration (2× the API hit,\n\u002F\u002F possible mismatch). $fetch does not transfer a payload.\nconst product = await $fetch(`\u002Fapi\u002Fproducts\u002F${id}`)\n\n\u002F\u002F Good — one server fetch, payload serialized into the page, reused on hydration.\nconst { data: product, status, error, refresh } = await useAsyncData(\n  `product:${id}`,                       \u002F\u002F stable key → dedupe + shared ref across components\n  () => $fetch(`\u002Fapi\u002Fproducts\u002F${id}`),\n)\n\u002F\u002F equivalently for a plain URL: useFetch(`\u002Fapi\u002Fproducts\u002F${id}`, { key: `product:${id}` })\n\u003C\u002Fscript>\n```\n\nKey options: `key` (shared\u002Fdeduped result — same key returns the same `data`\u002F`error`\u002F`status` ref,\nauto-cleaned on last unmount), `lazy: true` (don't block navigation), `server: false` (client-only\nfetch), `transform` (reshape before storing), `pick` (keep only listed fields — shrinks payload),\n`watch`\u002Freactive keys (a `ref`\u002F`computed`\u002Fgetter key refetches when it changes). Type the result\nwith `useFetch\u003CT>()` \u002F `useAsyncData\u003CT>()`. In **Nuxt 4 the returned `data` is a `shallowRef`** —\nreplace the whole value, don't deep-mutate, to trigger updates. Nuxt 4.2 adds `AbortController`\nsignal support for request cancellation. Re-run with the returned `refresh()`, or invalidate\nbroadly with `refreshNuxtData(key)`.\n\nFull option matrix, custom `$api` factory, optimistic UI, and error\u002Fpending patterns are in\n[`references\u002Fdata-and-state.md`](references\u002Fdata-and-state.md).\n\n## SSR-safe state\n\nOn the server one Node process serves many requests. A module-level `ref` is created **once** and\nshared by every visitor — a textbook cross-request data leak.\n\n| Approach | Per-request? | When |\n|---|---|---|\n| module-level `ref`\u002F`reactive` | **NO — leaks across requests** | never for request data; fine only for true constants |\n| `useState(key, init)` | yes — serialized after SSR, restored on hydration, shared by key | lightweight shared value |\n| Pinia store (`@pinia\u002Fnuxt`) | yes — hydrated from Nuxt payload | structured state, actions, multiple consumers |\n\n### Bad → Good: module `ref` → `useState`\n\n```ts\n\u002F\u002F Bad — module scope: one instance for the whole server, shared between users.\nimport { ref } from 'vue'\nexport const user = ref(null)\n\n\u002F\u002F Good — per-request, hydration-safe, shared by key.\nexport const useUser = () => useState('user', () => null)\n```\n\nPinia 3 (dropped Vue 2) with `@pinia\u002Fnuxt` auto-imports stores from `app\u002Fstores\u002F`. Use the\n**setup-store** form; SSR state hydrates from the payload automatically:\n\n```ts\n\u002F\u002F app\u002Fstores\u002Fcart.ts\nexport const useCartStore = defineStore('cart', () => {\n  const items = ref\u003CItem[]>([])\n  const count = computed(() => items.value.length)\n  function add(i: Item) { items.value.push(i) }\n  return { items, count, add }\n})\n```\n\n## Hydration mismatches\n\nA mismatch means the server-rendered HTML differs from the client's first render. Common causes:\n`Date.now()`\u002F`new Date()`\u002F`Math.random()` in render, reading `localStorage`\u002F`window`\u002F`document` in\n`setup`, locale\u002Ftimezone differences, invalid HTML nesting (`\u003Cp>` wrapping a `\u003Cdiv>`), and\nnon-deterministic iteration order.\n\nFix kit: wrap genuinely client-only UI in `\u003CClientOnly>`; branch with `import.meta.client` \u002F\n`import.meta.server`; do browser work in `onMounted` (never in `setup` body); and pin a\nserver-generated value with `useState` so the client reuses the exact same value instead of\nrecomputing it.\n\n```vue\n\u003Ctemplate>\n  \u003CClientOnly>\u003CLiveClock \u002F>\u003C\u002FClientOnly>\n\u003C\u002Ftemplate>\n\u003Cscript setup lang=\"ts\">\nconst seed = useState('seed', () => Math.random())   \u002F\u002F generated once on server, reused on client\nonMounted(() => { \u002F* safe: window\u002FlocalStorage here *\u002F })\n\u003C\u002Fscript>\n```\n\n## Nitro server routes\n\nFiles in `server\u002Fapi\u002F*` and `server\u002Froutes\u002F*` run on Nitro (Nuxt's server engine). Name by method\nwith `.get.ts`\u002F`.post.ts`. Validate input; throw `createError` for HTTP errors.\n\n```ts\n\u002F\u002F server\u002Fapi\u002Fproducts\u002F[id].get.ts\nexport default defineEventHandler(async (event) => {\n  const id = getRouterParam(event, 'id')\n  const { fields } = getQuery(event)\n  if (!id) throw createError({ statusCode: 400, statusMessage: 'id required' })\n  const config = useRuntimeConfig()              \u002F\u002F private keys server-only\n  const data = await fetchFromDb(id, config.dbUrl)\n  if (!data) throw createError({ statusCode: 404, statusMessage: 'Not found' })\n  return data\n})\n```\n\n`useRuntimeConfig()` exposes top-level keys **only on the server**; only `config.public.*` reaches\nthe browser bundle. Rule: a secret in `runtimeConfig.public` (or any `NUXT_PUBLIC_*` env) ships to\nevery client — keep API keys, DB URLs, and tokens at the top level, never under `public`. Type\ncalls to your own API with `$fetch\u003CProductDto>('\u002Fapi\u002F...')`. Handlers, route-rule recipes,\nmiddleware, and `defineCachedEventHandler` caching live in\n[`references\u002Fnitro-and-rendering.md`](references\u002Fnitro-and-rendering.md).\n\n## Rendering strategy\n\nSet per-route rendering in `nuxt.config.ts` with `routeRules`; the right mix is usually hybrid,\nnot all-SSR.\n\n```ts\nexport default defineNuxtConfig({\n  routeRules: {\n    '\u002F':            { prerender: true },             \u002F\u002F SSG at build\n    '\u002Fblog\u002F**':     { swr: 3600 },                   \u002F\u002F stale-while-revalidate cache 1h\n    '\u002Fproducts\u002F**': { isr: true },                   \u002F\u002F incremental static regeneration\n    '\u002Fadmin\u002F**':    { ssr: false },                  \u002F\u002F client-only SPA island\n    '\u002Fold':         { redirect: '\u002Fnew' },\n    '\u002Fapi\u002F**':      { headers: { 'cache-control': 's-maxage=60' } },\n  },\n})\n```\n\n`nuxt build` produces an SSR server; `nuxt generate` prerenders a fully static site. The **Nitro\npreset** chooses the deploy target (node-server, vercel, netlify, cloudflare-pages, …) — pick the\npreset here, then hand platform specifics to [`deployment`](..\u002Fdeployment\u002FSKILL.md),\n[`vercel`](..\u002Fvercel\u002FSKILL.md), [`netlify`](..\u002Fnetlify\u002FSKILL.md), or\n[`cloudflare`](..\u002Fcloudflare\u002FSKILL.md).\n\n## Performance\n\n- `shallowRef`\u002F`shallowReactive` for large payloads\u002Flists — skip deep proxy cost; replace the whole\n  value to update. Why: deep reactivity on a 10k-row array is pure overhead.\n- `v-memo` to freeze a subtree on stable deps; `v-once` for render-once static content.\n- `defineAsyncComponent` and Nuxt's auto `Lazy\u003CComponent>` prefix to code-split below the fold.\n- `\u003CNuxtImg>` \u002F `@nuxt\u002Fimage` for responsive, optimized images (a top LCP lever).\n- Shrink the SSR payload with `pick`\u002F`transform` on `useFetch`\u002F`useAsyncData`.\n- Vue 3.6 **Vapor Mode** (compile-time, no-VDOM, opt-in per component via `\u003Cscript setup vapor>`) is\n  a 2026 preview targeting mid-2026 stable — treat as opt-in, not the default.\n- Targets: LCP \u003C 2.5s, CLS \u003C 0.1, INP \u003C 200ms.\n\n## Anti-patterns → STOP\n\n| Smell | Why it is wrong | Do instead |\n|---|---|---|\n| `await $fetch()` for page data in `setup` | runs on server AND client → double API hit, mismatch | `useAsyncData(key, () => $fetch(...))` \u002F `useFetch` |\n| Module-level `ref`\u002F`reactive` for shared state | one instance per server process → leaks across requests | `useState(key, init)` or a Pinia store |\n| `window`\u002F`localStorage`\u002F`document` in `setup` body | undefined on server → hydration mismatch | `onMounted`, `import.meta.client`, or `\u003CClientOnly>` |\n| Treating Nuxt like Next RSC (\"use server\", server components) | Vue has no RSC boundary; whole component renders + hydrates | model it as SSR + client hydration |\n| Destructuring a `reactive()` object | detaches the value from the proxy → loses reactivity | `toRefs()`, or read `state.x`, or prefer `ref` |\n| Secret in `runtimeConfig.public` \u002F `NUXT_PUBLIC_*` | shipped into the client bundle | top-level `runtimeConfig`, server-only |\n| `useFetch`\u002F`useState` in a plain-Vue (non-Nuxt) app | those auto-imports don't exist there | client `fetch` in `onMounted` + Pinia\u002F`provide` |\n| `\u003CClientOnly>` wrapping everything to \"fix\" mismatches | kills SSR, hurts SEO\u002FLCP, hides the real bug | find the non-deterministic source; pin with `useState` |\n| Same fetch in two components without a shared `key` | duplicate requests, divergent refs | one stable `key` → shared deduped result |\n| `ref(hugeArray)` \u002F deep `reactive` on big lists | per-element proxy overhead | `shallowRef`\u002F`shallowReactive`, replace whole value |\n\n## Verify\n\n`scripts\u002Fverify.sh` runs from the project root. With a `nuxt.config.{ts,js,mjs}` it runs `nuxi\ntypecheck` (fallback `vue-tsc --noEmit`), the package `lint` script if present, `vitest run` if\nVitest is present, then `nuxi build`; with no Nuxt config, `vue-tsc --noEmit`, lint, vitest, then\n`vite build`. Keep `strict: true` in tsconfig so the typecheck is worth running. Every missing tool\nis a yellow SKIP, never a failure; everything is read-only except the final build, which writes\n`.nuxt\u002F`\u002F`.output\u002F` (or `dist\u002F`). No installs, no network mutations, safe to re-run, exits 0 on a\nclean\u002Fempty target.\n\n## Project grounding (02-DOCS + CLAUDE.md)\n\nIn a project with a `02-DOCS\u002F` layer (the [`harness`](..\u002Fharness\u002FSKILL.md) Karpathy wiki), read\n`02-DOCS\u002Fwiki\u002Fstack\u002Fvue-nuxt.md` first and stay consistent with it. If it is missing or stale,\ncreate\u002Fupdate it with this app's real choices — rendering mode per route (`routeRules`), the\n`useFetch`\u002F`useAsyncData` conventions, `useState` vs Pinia, the Nitro preset\u002Fdeploy target, the\ndesign-system hookup — bump its `Updated` date, and link it from a `## Knowledge map` section in\nthe root `CLAUDE.md` (creating that section, and `CLAUDE.md` itself, if absent). No `02-DOCS\u002F`\nlayer? Skip silently. Technical conventions are *recorded, not gated* — never block the task.\n\nNuxt 3 → 4 deltas (`app\u002F` move, `compatibilityVersion`, shared-key data, shallowRef payload,\nrenamed APIs) and Vue 3.4 → 3.5 changes are in\n[`references\u002Fmigration-nuxt4.md`](references\u002Fmigration-nuxt4.md).\n",{"name":5,"tags":24,"origin":30,"recommends":31,"description":7},[25,26,27,28,29],"vue","nuxt","frontend","web","ssr","risco",[32,33,34],"design","deployment","secure-coding","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Fvue-nuxt",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill vue-nuxt",{"tool":49,"command":50},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill vue-nuxt",{"tool":52,"command":53},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill vue-nuxt","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fvue-nuxt\u002FSKILL.md",true,[57,63,67,71,75,79],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"evals\u002Fcases.yaml","REFERENCE","参考文档",3844,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fvue-nuxt\u002Fevals\u002Fcases.yaml",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"evals\u002FREADME.md",906,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fvue-nuxt\u002Fevals\u002FREADME.md",{"path":68,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fdata-and-state.md",5192,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fvue-nuxt\u002Freferences\u002Fdata-and-state.md",{"path":72,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fmigration-nuxt4.md",3952,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fvue-nuxt\u002Freferences\u002Fmigration-nuxt4.md",{"path":76,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fnitro-and-rendering.md",4525,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fvue-nuxt\u002Freferences\u002Fnitro-and-rendering.md",{"path":80,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Freactivity.md",5352,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fvue-nuxt\u002Freferences\u002Freactivity.md",[84,91,96,103,110,117],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":92,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]