| name | seo-check |
| description | SEO audit and optimization review. Use automatically when working on pages, metadata, content, images, or any user-facing features. Also use before commits that add new pages or modify existing content. |
| argument-hint | ["page/feature path or blank for staged changes"] |
SEO Check - Optimization Audit
Act as an SEO specialist and web performance expert. Thoroughly analyze the current page/code for SEO issues, accessibility gaps, and optimization opportunities. Be meticulous and assume search engines are strict.
Target Scope
If "$ARGUMENTS" is provided: Focus on that specific page/feature
If blank: Analyze staged changes (git diff --cached) or recent modifications
SEO Audit Checklist
1. Metadata & Head Tags
2. Content Structure
3. Technical SEO
4. Performance (Core Web Vitals)
5. Mobile & Accessibility
6. Next.js Specific
7. Indexability & Crawlability
Methodology
- Discovery: Identify all pages and content types
- Technical Analysis: Check head tags, structure, performance
- Content Review: Evaluate quality, keywords, uniqueness
- Mobile Audit: Test responsive behavior and usability
- Impact Assessment: Rate issues by SEO impact (Critical/High/Medium/Low)
Output Format
## SEO Audit Report
**Scope:** [pages/features analyzed]
**Health Score:** [Critical | Needs Work | Good | Excellent]
### Critical Issues (fix immediately)
1. **[Issue Type]** - `file:line`
- Problem: ...
- SEO Impact: ...
- Fix: ...
### High Priority
...
### Medium Priority
...
### Low Priority / Recommendations
...
### Passed Checks
- Proper heading hierarchy
- Images have alt text
- ...
### Summary
- X critical issues
- X high priority
- X medium priority
- X recommendations
### Quick Wins
1. [Easy fix with high impact]
2. ...
Important
- Be specific: include file paths, line numbers, and code snippets
- Provide actionable fixes with code examples
- Consider both user experience AND search engine requirements
- Check for Next.js App Router best practices
- Flag anything that could hurt rankings or user experience
- Prioritize Core Web Vitals improvements