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/setup-studio.sh
View on GitHub#!/bin/bash
# Nuxt Studio Setup Script
# Configures Nuxt Studio for production content editing
set -e
echo "π¨ Nuxt Studio Setup"
echo "===================="
echo ""
# Check if we're in a Nuxt project
if [ ! -f "nuxt.config.ts" ]; then
echo "β Error: No nuxt.config.ts found. Run setup-nuxt-content.sh first."
exit 1
fi
# Check if @nuxt/content is installed
if ! grep -q "@nuxt/content" package.json; then
echo "β Error: @nuxt/content not installed. Run setup-nuxt-content.sh first."
exit 1
fi
# Detect package manager
if [ -f "bun.lockb" ]; then
INSTALL_CMD="bun add"
elif [ -f "pnpm-lock.yaml" ]; then
INSTALL_CMD="pnpm add"
elif [ -f "yarn.lock" ]; then
INSTALL_CMD="yarn add"
else
INSTALL_CMD="npm install"
fi
# Install Nuxt Studio
echo "π₯ Installing nuxt-studio@alpha..."
$INSTALL_CMD nuxt-studio@alpha
echo ""
echo "β
nuxt-studio installed!"
echo ""
# Prompt for GitHub repository details
echo "π GitHub Repository Configuration"
echo ""
read -p "GitHub username/org: " GITHUB_OWNER
read -p "Repository name: " GITHUB_REPO
read -p "Branch (default: main): " GITHUB_BRANCH
GITHUB_BRANCH=${GITHUB_BRANCH:-main}
echo ""
echo "π GitHub OAuth Setup Required"
echo ""
echo "To use Nuxt Studio, you need to create a GitHub OAuth app:"
echo ""
echo "1. Visit: https://github.com/settings/developers"
echo "2. Click 'New OAuth App'"
echo "3. Settings:"
echo " - Application name: Your app name"
echo " - Homepage URL: https://yourdomain.com"
echo " - Callback URL: https://yourdomain.com"
echo "4. Copy the Client ID and generate a Client Secret"
echo ""
read -p "Press ENTER when you've created the OAuth app..."
# Add to nuxt.config.ts
echo ""
echo "π Updating nuxt.config.ts..."
# Create backup
cp nuxt.config.ts nuxt.config.ts.backup
# Add studio configuration (user will need to adjust)
cat >> nuxt.config.ts << EOF
// Nuxt Studio Configuration
studio: {
route: '/_studio',
repository: {
provider: 'github',
owner: '$GITHUB_OWNER',
repo: '$GITHUB_REPO',
branch: '$GITHUB_BRANCH'
}
}
EOF
echo "β
Updated nuxt.config.ts (please verify the configuration)"
echo ""
# Create .env.example
echo "π Creating .env.example..."
cat > .env.example << 'EOF'
# Nuxt Studio GitHub OAuth Configuration
STUDIO_GITHUB_CLIENT_ID=your_github_oauth_client_id
STUDIO_GITHUB_CLIENT_SECRET=your_github_oauth_client_secret
# Optional: Branch name for different environments
# STUDIO_GITHUB_BRANCH_NAME=main
EOF
# Create or update .env
if [ ! -f ".env" ]; then
echo "π Creating .env file..."
cp .env.example .env
echo "β οΈ Please edit .env and add your GitHub OAuth credentials"
else
echo "β οΈ .env file exists. Please add these variables:"
cat .env.example
fi
# Add .env to .gitignore if not already there
if [ -f ".gitignore" ]; then
if ! grep -q "^\.env$" .gitignore; then
echo ".env" >> .gitignore
echo "β
Added .env to .gitignore"
fi
else
echo ".env" > .gitignore
echo "β
Created .gitignore with .env"
fi
echo ""
echo "π Nuxt Studio setup complete!"
echo ""
echo "β οΈ IMPORTANT: Next Steps"
echo ""
echo "1. Edit .env and add your GitHub OAuth credentials:"
echo " STUDIO_GITHUB_CLIENT_ID=your_client_id"
echo " STUDIO_GITHUB_CLIENT_SECRET=your_client_secret"
echo ""
echo "2. Verify nuxt.config.ts has 'nuxt-studio' in modules array"
echo ""
echo "3. For production deployment:"
echo " - Add environment variables to your hosting platform"
echo " - Ensure SSR is enabled (not static generation)"
echo " - Create separate OAuth app for staging if needed"
echo ""
echo "4. Access Studio at: http://localhost:3000/_studio (after running dev server)"
echo " Or use keyboard shortcut: Ctrl + ."
echo ""
echo "π Resources:"
echo " - Nuxt Studio Docs: https://github.com/nuxt-content/studio"
echo " - OAuth Setup Guide: skills/nuxt-content/references/studio-setup-guide.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 |