Skip to content

secondsky/claude-skills / plugins/nuxt-content/skills/nuxt-content

nuxt-content

Verified

Nuxt Content v3 Git-based CMS for Markdown/MDC content sites. Use for blogs, docs, content-driven apps with type-safe queries, schema validation (Zod/Valibot), full-text search, navigation utilities. Supports Nuxt Studio production editing, Cloudflare D1/Pages deployment, Vercel deployment, SQL storage, MDC components, content collections.

assets/blog-collection.example.ts

View on GitHub
// Blog Collection Setup Example
// Complete configuration for a blog with Nuxt Content

import { defineContentConfig, defineCollection } from '@nuxt/content'
import { z } from 'zod'

export default defineContentConfig({
  collections: {
    blog: defineCollection({
      type: 'page',
      source: 'blog/**/*.md',
      schema: z.object({
        // Required fields
        title: z.string(),
        description: z.string(),
        date: z.date(),
        author: z.string(),

        // Optional fields with defaults
        published: z.boolean().default(false),
        featured: z.boolean().default(false),
        tags: z.array(z.string()).default([]),

        // Images
        image: z.string(),
        imageAlt: z.string().optional(),

        // Categories with enum
        category: z.enum([
          'news',
          'tutorial',
          'update',
          'announcement',
          'case-study'
        ]),

        // SEO fields
        seo: z.object({
          ogImage: z.string().optional(),
          ogDescription: z.string().optional(),
          keywords: z.array(z.string()).optional()
        }).optional(),

        // Reading time (auto-calculated or manual)
        readingTime: z.number().optional()
      })
    }),

    // Authors as separate collection
    authors: defineCollection({
      type: 'data',
      source: 'authors/*.yml',
      schema: z.object({
        name: z.string(),
        bio: z.string(),
        avatar: z.string(),
        role: z.string().optional(),
        social: z.object({
          github: z.string().optional(),
          twitter: z.string().optional(),
          linkedin: z.string().optional(),
          website: z.url().optional()
        }).optional()
      })
    })
  }
})

/*
File Structure:
===============

content/
  blog/
    2024-01-15-first-post.md
    2024-01-20-second-post.md
    2024-02-01-tutorial.md
  authors/
    john-doe.yml
    jane-smith.yml

Example Blog Post (content/blog/2024-01-15-first-post.md):
===========================================================

---
title: 'Getting Started with Nuxt Content'
description: 'Learn how to build a blog with Nuxt Content v3'
date: 2024-01-15
author: 'john-doe'
published: true
featured: true
tags: ['nuxt', 'content', 'tutorial']
image: '/images/blog/nuxt-content.jpg'
imageAlt: 'Nuxt Content logo'
category: 'tutorial'
seo:
  ogImage: '/images/blog/nuxt-content-og.jpg'
  keywords: ['nuxt', 'cms', 'markdown']
readingTime: 5
---

# Getting Started with Nuxt Content

Content goes here...

<!--more-->

Full article content after the excerpt...
---

Example Author (content/authors/john-doe.yml):
===============================================

name: John Doe
bio: Full-stack developer and technical writer
avatar: /images/authors/john-doe.jpg
role: Senior Developer
social:
  github: johndoe
  twitter: johndoe
  website: https://johndoe.com

Query Examples:
===============

// List all published posts
const posts = await queryCollection('blog')
  .where('published', '=', true)
  .select('path', 'title', 'description', 'date', 'author', 'image', 'category')
  .order('date', 'DESC')
  .all()

// Get featured posts
const featured = await queryCollection('blog')
  .where('featured', '=', true)
  .where('published', '=', true)
  .limit(3)
  .all()

// Filter by category
const tutorials = await queryCollection('blog')
  .where('category', '=', 'tutorial')
  .where('published', '=', true)
  .all()

// Search by tags
const nuxtPosts = await queryCollection('blog')
  .where('tags', 'IN', ['nuxt'])
  .all()

// Get post with author
const post = await queryCollection('blog')
  .path('/blog/first-post')
  .first()

const author = await queryCollection('authors')
  .where('id', '=', post.author)
  .first()

*/
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall