seo-best-practices — Claude Code skill: what it does, how to install
Provides search optimization guidelines for web apps. Helps configure metadata, JSON-LD schemas, rendering modes, and Core Web Vitals.
npx skills add Mindrally/skills --skill seo-best-practices -a claude-codeWhat seo-best-practices does
The skill instructs the agent to enforce technical search engine optimization standards across modern web frameworks. It requires semantic HTML tags like main or article, heading hierarchies from h1 to h6, descriptive kebab-case URLs, and meaningful link text. Image rules mandate explicit width and height values to prevent layout shifts, WebP formatting, and descriptive alt attributes.
Performance guidelines focus on Core Web Vitals metrics including LCP, CLS, and FID. The instructions favor React Server Components. They minimize 'use client' and client state hooks. Non-critical components require dynamic imports and Suspense wrappers with fallbacks.
For metadata handling, the rules target framework-native tools. Next.js setups use the metadata export or generateMetadata alongside Open Graph and canonical tags. Nuxt.js apps rely on useHead and useSeoMeta composables. Because the guide prioritizes server rendering and Server Components, purely client-rendered single-page applications will clash with its architectural rules.
What it helps with
- generate dynamic metadata using
generateMetadatain Next.js - embed JSON-LD structured data for rich snippets
- reduce layout shifts and improve Core Web Vitals with React Server Components
- configure Open Graph, Twitter Cards, and canonical tags
- implement semantic markup, sitemaps, and robots.txt
Example prompts for the agent
- Configure dynamic Open Graph and Twitter Card metadata for Next.js product pages
- Add JSON-LD structured data and fix heading hierarchy across the blog template
- Refactor this client view into React Server Components wrapped in Suspense to improve Core Web Vitals
How to install seo-best-practices
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill seo-best-practices -a claude-code2Manually: put the files in place
~/.claude/skills/seo-best-practices/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/seo-best-practices/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill seo-best-practices -a codex2Manually: put the files in place
.agents/skills/seo-best-practices/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill seo-best-practices -a cursor2Manually: put the files in place
.cursor/skills/seo-best-practices/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills seo-best-practices2Manually: put the files in place
.github/skills/seo-best-practices/SKILL.md1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill seo-best-practices -a gemini-cli2Platform CLI
gemini skills install https://github.com/Mindrally/skills --path seo-best-practicesManually: put the files in place
.devin/skills/seo-best-practices/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Mindrally/skills --skill seo-best-practices -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about seo-best-practices
How do I install seo-best-practices in Claude Code?
Run npx skills add Mindrally/skills --skill seo-best-practices -a claude-code. Alternatively, place the file directly at ~/.claude/skills/seo-best-practices/SKILL.md.
What does the seo-best-practices skill do?
It provides guidelines for technical SEO, covering metadata in Next.js and Nuxt.js, semantic HTML, Core Web Vitals tuning, and JSON-LD structured data.
Which frontend frameworks have specific metadata rules in this skill?
The skill includes dedicated metadata guidelines for Next.js via metadata and generateMetadata, and for Nuxt.js using useHead and useSeoMeta.
Source text
SKILL.md · Apache-2.0
--- name: seo-best-practices description: Apply SEO best practices for web applications including metadata, performance optimization, and search engine optimization techniques. metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # SEO Best Practices You are an expert in SEO (Search Engine Optimization) for modern web applications. Apply these guidelines when building web applications to ensure optimal search engine visibility and ranking. ## Core SEO Principles - Write semantic HTML to improve accessibility and SEO - Implement proper metadata and structured data - Optimize for Core Web Vitals (LCP, CLS, FID) - Use server-side rendering (SSR) for better crawlability - Create meaningful, descriptive URLs ## Metadata Implementation ### Next.js Applications - Use the built-in `metadata` object or `generateMetadata` function for dynamic SEO - Implement Open Graph and Twitter Card meta tags - Create dynamic metadata based on page content - Include canonical URLs to prevent duplicate content issues ### Nuxt.js Applications - Use `useHead` and `useSeoMeta` composables for SEO metadata - Implement SEO best practices using Nuxt's built-in composables - Leverage auto-generated meta tags where appropriate ## Technical SEO Requirements ### Performance Optimization - Minimize 'use client', 'useEffect', and 'setState'; favor React Server Components (RSC) - Wrap client components in Suspense with fallback - Use dynamic loading for non-critical components - Optimize images: use WebP format, include size data, implement lazy loading - Implement proper caching strategies ### Content Structure - Use proper heading hierarchy (h1-h6) - Include descriptive alt text for all images - Create meaningful link text (avoid "click here") - Implement structured data (JSON-LD) for rich snippets - Use semantic HTML elements (header, main, nav, article, section, aside, footer) ### URL and Routing - Use lowercase with dashes for URLs (kebab-case) - Create descriptive, keyword-rich URLs - Implement proper 301 redirects for moved content - Create XML sitemaps and robots.txt - Use canonical tags for duplicate content ### Mobile and Accessibility - Design mobile-first responsive layouts - Ensure sufficient color contrast for text - Provide keyboard navigation for interactive elements - Implement ARIA labels where semantic HTML is insufficient - Ensure fast loading on mobile networks ## Image SEO - Always include descriptive alt text for images - Use appropriate image formats (WebP preferred) - Implement lazy loading for below-the-fold images - Include width and height attributes to prevent layout shift - Use descriptive file names for images - Implement responsive images with srcset ## Content Guidelines - Write unique, valuable content for each page - Include target keywords naturally in content - Create compelling meta titles (50-60 characters) - Write engaging meta descriptions (150-160 characters) - Use internal linking to establish content hierarchy - Keep content fresh and regularly updated ## Monitoring and Testing - Use Lighthouse for performance and SEO audits - Monitor Core Web Vitals in Search Console - Test with Google's Mobile-Friendly Test - Validate structured data with Rich Results Test - Regularly check for crawl errors and broken links
© Mindrally · Apache-2.0 · Mindrally/skills