secondsky/claude-skills / plugins/nuxt-content/skills/nuxt-content
nuxt-content
VerifiedNuxt 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 16.7 KB |
| assets/blog-collection.example.ts | script | 3.7 KB |
| assets/content.config.example.ts | script | 1.8 KB |
| assets/docs-collection.example.ts | script | 5.9 KB |
| assets/nuxt.config.example.ts | script | 1.9 KB |
| references/collection-examples.md | markdown | 6.6 KB |
| references/deployment-checklists.md | markdown | 4.8 KB |
| references/error-catalog.md | markdown | 9.9 KB |
| references/mdc-syntax-reference.md | markdown | 2.0 KB |
| references/query-operators.md | markdown | 2.9 KB |
| references/studio-setup-guide.md | markdown | 4.1 KB |
| scripts/deploy-cloudflare.shexecutable | script | 2.7 KB |
| scripts/deploy-vercel.shexecutable | script | 1.9 KB |
| scripts/setup-nuxt-content.shexecutable | script | 5.2 KB |
| scripts/setup-studio.shexecutable | script | 3.8 KB |
| templates/blog-collection-setup.ts | script | 7.1 KB |
scripts/deploy-cloudflare.sh
View on GitHub#!/bin/bash
# Cloudflare Pages Deployment Helper
# Assists with deploying Nuxt Content to Cloudflare Pages with D1
set -e
echo "βοΈ Cloudflare Pages Deployment"
echo "==============================="
echo ""
# Check if we're in a Nuxt project
if [ ! -f "nuxt.config.ts" ]; then
echo "β Error: No nuxt.config.ts found."
exit 1
fi
# Check if wrangler is installed
if ! command -v wrangler &> /dev/null; then
echo "π¦ Wrangler CLI not found. Installing..."
npm install -g wrangler
fi
echo "β
Wrangler CLI ready"
echo ""
# Login to Cloudflare
echo "π Logging into Cloudflare..."
wrangler login
echo ""
echo "π D1 Database Setup"
echo ""
read -p "D1 Database name (default: nuxt-content-db): " DB_NAME
DB_NAME=${DB_NAME:-nuxt-content-db}
# Check if database exists
echo "Checking if database exists..."
if wrangler d1 list | grep -q "$DB_NAME"; then
echo "β
Database '$DB_NAME' already exists"
else
echo "Creating D1 database..."
wrangler d1 create "$DB_NAME"
echo "β
Database created"
fi
echo ""
echo "βοΈ Configuring nuxt.config.ts for Cloudflare..."
# Check if preset is already set
if ! grep -q "preset.*cloudflare" nuxt.config.ts; then
# Create backup
cp nuxt.config.ts nuxt.config.ts.backup
# Add or update nitro preset
if grep -q "nitro:" nuxt.config.ts; then
echo "β οΈ Please manually add preset: 'cloudflare_pages' to nitro config"
else
cat >> nuxt.config.ts << 'EOF'
nitro: {
preset: 'cloudflare_pages'
}
EOF
echo "β
Added Cloudflare Pages preset to nuxt.config.ts"
fi
fi
echo ""
echo "ποΈ Building for Cloudflare Pages..."
npm run build -- --preset=cloudflare_pages
if [ $? -eq 0 ]; then
echo "β
Build successful!"
else
echo "β Build failed. Please check errors above."
exit 1
fi
echo ""
echo "π Ready for deployment!"
echo ""
echo "π Next Steps:"
echo ""
echo "1. Go to Cloudflare Dashboard β Workers & Pages"
echo "2. Create new Pages project or select existing"
echo "3. Connect your GitHub repository"
echo "4. Build settings:"
echo " - Build command: npm run build"
echo " - Build output directory: .output/public"
echo "5. Add D1 binding:"
echo " - Settings β Functions β D1 Database Bindings"
echo " - Variable name: DB (must be exactly 'DB')"
echo " - D1 Database: $DB_NAME"
echo "6. Environment variables (if using Studio):"
echo " - STUDIO_GITHUB_CLIENT_ID"
echo " - STUDIO_GITHUB_CLIENT_SECRET"
echo ""
echo "Or deploy directly with Wrangler:"
echo " wrangler pages deploy .output/public"
echo ""
echo "π Resources:"
echo " - Cloudflare Pages: https://pages.cloudflare.com/"
echo " - D1 Docs: https://developers.cloudflare.com/d1/"
echo " - Deployment Guide: skills/nuxt-content/references/deployment-checklists.md"
echo ""
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 119k | Updated | Claude CodeCodex | Verified | Install |
| 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: 118k | Updated | Claude CodeCodex | Verified | Install |