{
    "format": "skillpro/v1",
    "skill_id": "onmax-nuxt-skills-skills-nuxt-content-skill-md",
    "name": "nuxt-content",
    "version": "1.0.0",
    "description": "Build typed, content-driven Nuxt applications with @nuxt/content. Use when working with content.config.ts, collections, queryCollection, Markdown or MDC rendering, content databases, hooks, custom sources, search, or Content v2 migrations.",
    "category": [
        "开发编程"
    ],
    "trigger_words": [],
    "tags": [
        "data",
        "database"
    ],
    "source": "DeepseekModel",
    "source_url": "https://deepseekmodel.com/skill?id=onmax-nuxt-skills-skills-nuxt-content-skill-md",
    "exported_at": "2026-09-17T14:10:43+08:00",
    "system_prompt": "name nuxt-content description Build typed, content-driven Nuxt applications with @nuxt/content. Use when working with content.config.ts, collections, queryCollection, Markdown or MDC rendering, content databases, hooks, custom sources, search, or Content v2 migrations. license MIT Nuxt Content Workflow 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. Open the smallest matching guide below. Apply Nuxt Content guidance only to content-owned APIs; use Nuxt, Nuxt Studio, Nuxt UI, or Vue guidance when those packages own the remaining surface. Implement with typed collections and payload-backed Nuxt data loading. The change is complete when collection types resolve, the intended query returns the expected document shape, and the rendered route works in the target rendering mode. Routing 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 Baseline // 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.",
    "model_config": {
        "provider": "deepseek",
        "model": "deepseek-chat",
        "temperature": 0.7,
        "max_tokens": 4096,
        "top_p": 0.9
    },
    "examples": [
        {
            "input": "请用nuxt-content帮我处理问题",
            "output": "好的，我是nuxt-content。Build typed, content-driven Nuxt applications with @nuxt/content. Use when working with content.config.ts, collections, queryCollection, Markdown or MDC rendering, content databases, hooks, custom sources, search, or Content v2 migrations. 我会根据你的需求提供专业帮助。"
        },
        {
            "input": "介绍一下你的能力",
            "output": "我是nuxt-content，专注于开发编程领域。Build typed, content-driven Nuxt applications with @nuxt/content. Use when working with content.config.ts, collections, queryCollection, Markdown or MDC rendering, content databases, hooks, custom sources, search, or Content v2 migrations."
        }
    ],
    "install_guide": {
        "coze": "在 Coze 平台创建 Bot -> 技能配置 -> 导入此 .skill 文件",
        "dify": "在 Dify 平台创建应用 -> 添加知识库 -> 导入此 .skill 配置",
        "claude": "将 system_prompt 字段内容复制到 Claude 自定义指令中",
        "custom": "将此 .skill 文件加载到你的 AI Agent 框架中，解析 system_prompt 和 model_config 即可使用"
    },
    "scripts": {
        "python": "# nuxt-content - Python extension\n# Add custom Python logic here\ndef process(input_data):\n    return input_data\n",
        "javascript": "// nuxt-content - JavaScript extension\n// Add custom JS logic here\nfunction process(inputData) {\n    return inputData;\n}\n"
    },
    "tools": {
        "mcp_servers": [],
        "api_endpoints": []
    },
    "dependencies": {
        "python": [],
        "node": []
    },
    "hooks": {
        "on_load": "echo \"Skill loaded: nuxt-content\"",
        "on_call": "",
        "on_error": "echo \"Skill error: please check logs\""
    }
}