Loading...
Loading...
Analyze and optimize metadata for Next.js projects, including title, description, Open Graph, and Twitter Cards. Automatically detect App Router or Pages Router, provide length recommendations, keyword optimization, and best practice guidance. Supports bilingual SEO analysis in Chinese and English.
npx skill4agent add huifer/claude-code-seo metadata-optimizerapp/pages/<title>metadata<meta name="description">Primary Keyword | Secondary Keyword | Brand Name管道工服务 | 24小时紧急维修 | SF PlumbingPrimary Keyword - Secondary Keyword | Brand NamePlumbing Services | 24/7 Emergency Repair | SF PlumbingKeyword-containing call to action + unique value proposition提供专业的管道维修服务。24小时紧急服务,覆盖旧金山湾区。立即致电 (415) 555-0123。Action-oriented with keywords + unique value propositionProfessional plumbing services in San Francisco. 24/7 emergency service, covering the Bay Area. Call (415) 555-0123 now.<meta property="og:title" content="页面标题">
<meta property="og:description" content="页面描述">
<meta property="og:image" content="分享图片 URL">
<meta property="og:url" content="页面 URL">
<meta property="og:type" content="website"><meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="页面标题">
<meta name="twitter:description" content="页面描述">
<meta name="twitter:image" content="分享图片 URL">Use Glob to find all page files:
- App Router: app/**/page.tsx, app/**/page.js
- Pages Router: pages/**/*.tsx, pages/**/*.js
- Components: components/**/*.tsx, components/**/*.jsFor each file:
1. Check metadata object (App Router)
2. Check Head component (Pages Router)
3. Check <title> and <meta> tags## Page Analysis: [File Path]
### ✅ Strengths
- Title exists and is well-optimized
- Description is complete
- Contains full OG tags
### ⚠️ Areas for Improvement
- Title length: 65 characters (recommended: 50-60)
- Missing Twitter Cards tags
- Description can be more specific
### ❌ Missing Items
- og:image not defined
- og:url not defined
### Recommendations
1. Shorten Title to within 55 characters
2. Add Twitter Cards tags to enhance social media sharing效果
3. Add OG image to improve social previewLanguage: Chinese
- Title recommendation: 20-30 characters (current: 35 characters) ⚠️
- Description recommendation: 70-80 characters (current: 50 characters) ✓
- Keywords: Add primary keyword to TitleLanguage: English
- Title recommendation: 50-60 characters (current: 55) ✓
- Description recommendation: 150-160 characters (current: 120) ⚠️
- Keywords: Consider adding secondary keywordLanguage: Bilingual (Chinese + English)
- Ensure hreflang tags are used
- Check language switching functionality
- Verify translation quality/seo-check/seo-audit📊 Metadata Analysis Results
✅ 12 pages scanned
⚠️ 5 pages need optimization
❌ 2 pages lack critical metadata
Priority Fixes:
1. /about - Missing Description
2. /blog/[slug] - Title too long (75 characters)
3. /contact - Missing OG tags--verboseI will scan your Next.js project and analyze the metadata...
🔍 Detected: Next.js App Router
📁 Scanned Directory: app/
📄 15 pages found
Metadata analysis completed:
✅ Excellent Pages (10/15)
- /, /about, /services, /blog, /contact...
⚠️ Pages Needing Optimization (4/15)
1. /blog/[slug] - Title: 68 characters (recommended: 50-60)
2. /services/plumbing - Missing Description
3. /products - Missing OG image
4. /team - Missing Twitter Cards
❌ Pages with Severe Issues (1/15)
- /pricing - Completely missing metadata
It is recommended to prioritize the /pricing page, as it has no metadata at all, which will seriously affect SEO.
Would you like me to generate optimized metadata code for specific pages?app/**/*.{tsx,ts,jsx,js}<title>|<meta|metadatapage.tsxpage.js_