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.

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 ""
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