From nuxt-skills
Builds typed, content-driven Nuxt applications with @nuxt/content. Guides on collections, queryCollection, Markdown/MDC rendering, content databases, hooks, custom sources, search, and Content v2 migrations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/nuxt-skills:nuxt-contentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. Inspect the installed `@nuxt/content` version, `content.config.ts`, matching files under `content/`, and the Nuxt surface that consumes them. The branch is understood when the collection, source glob, schema, and consumer agree.
@nuxt/content version, content.config.ts, matching files under content/, and the Nuxt surface that consumes them. The branch is understood when the collection, source glob, schema, and consumer agree.| Task | Open |
|---|---|
| Collection types, schemas, indexes, local/remote sources, or locale prefixes | Collections |
| Filtering, sorting, pagination, navigation, surroundings, or search | Querying |
Markdown, MDC, ContentRenderer, prose components, or code highlighting | Rendering |
| Database adapters, markdown processing, renderer aliases, or deployment storage | Configuration |
| Hooks, transformers, custom sources, raw content, debugging, or Content v2 migration | Advanced |
| Visual editing, authentication, media, drafts, or Git publishing | nuxt-studio skill |
| Writing or restructuring documentation prose | document-writer skill |
// content.config.ts
import { defineCollection, defineContentConfig } from '@nuxt/content'
import { z } from 'zod'
export default defineContentConfig({
collections: {
docs: defineCollection({
type: 'page',
source: 'docs/**',
schema: z.object({
updatedAt: z.date().optional(),
}),
}),
},
})
<script setup lang="ts">
const route = useRoute()
const { data: page } = await useAsyncData(route.path, () => {
return queryCollection('docs').path(route.path).first()
})
</script>
<template>
<ContentRenderer v-if="page" :value="page" />
</template>
Use npx nuxi typecheck to verify generated collection types. When a query is empty, confirm that its collection source includes the file—especially .navigation.yml—before changing query logic.
npx claudepluginhub onmax/nuxt-skills --plugin nuxt-skillsGit-based CMS for Nuxt that manages content via Markdown/YAML/JSON/CSV files with type-safe queries, SQL storage, full-text search, and Nuxt Studio editing.
Configures and operates the self-hosted Nuxt Studio editor for Nuxt Content. Covers installation, OAuth/custom auth, media, drafts, Git publishing, and SSR deployment.
Provides setup and troubleshooting for Content Collections, transforming Markdown/MDX into type-safe TypeScript data with Zod schemas in Vite+React apps for blogs and docs sites.