---
Optimizes Next.js applications for 2025 SEO including Core Web Vitals, E-E-A-T signals, Schema markup, and technical SEO best practices.
/plugin marketplace add vanman2024/ai-dev-marketplace/plugin install nextjs-frontend@ai-dev-marketplacešØ EXECUTION NOTICE FOR CLAUDE
When you invoke this command via SlashCommand, the system returns THESE INSTRUCTIONS below.
YOU are the executor. This is NOT an autonomous subprocess.
Immediately after SlashCommand returns, start executing Phase 0, then Phase 1, etc.
CRITICAL: All generated files must follow security rules:
your_ga_id_here, your_site_url_here.env files with .gitignore.env.example with placeholders onlyArguments: $ARGUMENTS
Goal: Optimize a Next.js application for 2025 SEO best practices including Core Web Vitals, E-E-A-T signals, Schema markup, meta optimization, and technical SEO.
Core Principles:
Phase 1: Discovery Goal: Understand current SEO state and scope
Actions:
test -f app/sitemap.ts && echo "Sitemap: Found" || echo "Sitemap: Missing"
test -f app/robots.ts && echo "Robots: Found" || echo "Robots: Missing"
grep -r "Metadata" app/layout.tsx 2>/dev/null && echo "Metadata: Found" || echo "Metadata: Check needed"
Phase 2: SEO Audit Goal: Run comprehensive SEO analysis using seo-specialist-agent
Actions:
Task(description="SEO audit for Next.js app", subagent_type="nextjs-frontend:seo-specialist-agent", prompt="You are the SEO specialist agent. Perform a comprehensive 2025 SEO audit for this Next.js application.
Target: $ARGUMENTS
Audit Checklist:
Technical SEO
Meta Optimization
Core Web Vitals Preparation
E-E-A-T Signals
Schema Markup
Deliverable: Detailed audit report with specific recommendations and priority levels (High/Medium/Low)")
Phase 3: Implement Meta Configuration Goal: Set up comprehensive metadata configuration
Actions:
// Ensure metadata export exists with:
// - metadataBase
// - title template
// - description
// - openGraph configuration
// - twitter configuration
// - robots configuration
Phase 4: Sitemap & Robots Goal: Implement dynamic sitemap and robots.txt
Actions:
test -f app/sitemap.ts || echo "Creating sitemap.ts"
test -f app/robots.ts || echo "Creating robots.ts"
Phase 5: Schema Markup Implementation Goal: Add structured data for rich snippets
Actions:
Phase 6: Core Web Vitals Optimization Goal: Optimize for LCP, INP, and CLS
Actions:
grep -r "next/image" app --include="*.tsx" | wc -l
grep -r "next/font" app --include="*.tsx" | wc -l
Phase 7: Generate SEO Report Goal: Create comprehensive SEO status report
Actions:
Display final summary:
SEO Optimization Complete
========================
ā
Metadata configured in app/layout.tsx
ā
Dynamic sitemap at app/sitemap.ts
ā
Robots.txt at app/robots.ts
ā
Schema markup implemented
ā
Core Web Vitals optimized
Next Steps:
1. Test with Google Search Console
2. Run PageSpeed Insights
3. Submit sitemap to Google
4. Monitor Core Web Vitals in production