seo-setup
Quick setup for Nuxt SEO with best practices
- 0
- Installs
- —
- Rating
- —
- Success rate
- 1
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 b7004fd20ede406a… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
seo-setup.md
SEO Setup Command
Quickly set up comprehensive SEO for a Nuxt project using @nuxtjs/seo.
Arguments
site-url: Your production URL (required)site-name: Your site name (required)
Setup Steps
Step 1: Install @nuxtjs/seo
bunx nuxi module add @nuxtjs/seo
# or: npx nuxi module add @nuxtjs/seo
Step 2: Configure nuxt.config.ts
Add site configuration:
export default defineNuxtConfig({
modules: ['@nuxtjs/seo'],
site: {
url: '${site-url}',
name: '${site-name}',
description: 'Your site description here',
defaultLocale: 'en'
},
// Optional: Organization identity for Schema.org
schemaOrg: {
identity: {
type: 'Organization',
name: '${site-name}',
url: '${site-url}',
logo: '${site-url}/logo.png'
}
},
// Optional: Route-specific SEO rules
routeRules: {
'/admin/**': { robots: 'noindex, nofollow' },
'/api/**': { robots: 'noindex' }
}
})
Step 3: Add Default OG Image
Create a default OG image template in components/OgImage/:
<!-- components/OgImage/Default.vue -->
<template>
<div class="w-full h-full flex flex-col justify-center items-center bg-gradient-to-br from-green-500 to-blue-600 p-16">
<h1 class="text-6xl font-bold text-white text-center">
{{ title }}
</h1>
<p v-if="description" class="text-2xl text-white/80 text-center mt-4">
{{ description }}
</p>
</div>
</template>
<script setup>
defineProps<{
title: string
description?: string
}>()
</script>
Step 4: Set Up app.vue Meta Defaults
<!-- app.vue -->
<script setup>
useSeoMeta({
titleTemplate: '%s | ${site-name}',
ogSiteName: '${site-name}',
twitterCard: 'summary_large_image'
})
</script>
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
Step 5: Verify Setup
After setup, verify:
- Visit
http://localhost:3000/robots.txt - Visit
http://localhost:3000/sitemap.xml - Check page source for meta tags
- Use browser dev tools to verify OG tags
Post-Setup Checklist
- Restart dev server after config changes
- Add page-specific meta using
useSeoMeta() - Create OG images for key pages with
defineOgImage() - Add structured data with
useSchemaOrg() - Test with Google Rich Results Test
- Submit sitemap to Google Search Console
Quick Reference
<!-- Example page SEO -->
<script setup>
useSeoMeta({
title: 'Page Title',
description: 'Page description for search results',
ogImage: '/images/og-page.jpg'
})
defineOgImage({
component: 'Default',
title: 'Page Title',
description: 'For social sharing'
})
useSchemaOrg([
defineWebPage({
name: 'Page Title'
})
])
</script>
Files
1- seo-setup.md
b2508cf8ad3.0 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from secondsky/claude-skills8
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Interactive setup wizard for better-auth authentication. Guides through database, framework, OAuth providers, and plugin configuration.
Run a focused blindspot pass for unfamiliar, ambiguous, or high-risk work
Debug Bun applications and diagnose common issues
Deploy Bun applications to various platforms
Initialize a new Bun project with optional framework selection
Migrate existing Node.js/npm projects to Bun
Optimize Bun application performance and bundle size
Related methodology skillsscan passed
Create comprehensive integration testing plan with inline tests and refactoring recommendations
Cleans up all git branches marked as [gone] (branches that have been deleted on the remote but still exist locally), including removing associated worktrees.