/optimize command performs a final SEO optimization pass on completed articles, validating all elements meet best practices.
Usage
Path to the article file to optimize (in
drafts/ or rewrites/)Examples
What It Does
Comprehensive SEO Audit
- Keyword Analysis
- Heading Structure
- Content Quality
Primary Keyword Density: 1-2% throughout articleKeyword Placement Check:
- In H1 headline ✓
- In first 100 words ✓
- In 2-3 H2 headings ✓
- In meta title ✓
- In meta description ✓
- In URL slug ✓
Link Optimization
Internal Links (3-5+ required)
- Count current internal links
- Verify contextual relevance
- Check keyword-rich anchor text
- Ensure natural integration
- Validate variety (pillar, blog, product, resources)
- Cross-reference
context/internal-links-map.md - Test for broken links
Meta Element Optimization
Requirements:
- Length: 50-60 characters
- Primary keyword included naturally
- Compelling and click-worthy
- Consider adding brand name
- Distinct from other page titles
Requirements:
- Length: 150-160 characters
- Primary keyword included
- Clear value proposition
- Call-to-action phrase
- Encourages SERP click
- Doesn’t cut off mid-sentence
Requirements:
- Concise but descriptive
- Primary keyword included
- Lowercase, hyphens between words
- 3-5 words ideal
- No stop words unless necessary
Advanced SEO Analysis
The optimize command includes comprehensive analysis from specialized modules:Search Intent
Verifies content matches user search intent (informational/commercial/transactional/navigational)
Keyword Density & Clustering
Detailed density analysis, keyword stuffing detection, topic clustering with TF-IDF
Content Length Comparison
Compares word count against top 10-20 SERP competitors for optimal length
Readability Score
Flesch Reading Ease, Flesch-Kincaid Grade Level, sentence structure analysis
SEO Quality Rating
Overall score (0-100) with category breakdowns and specific recommendations
Featured Snippet
Identifies snippet opportunities (question, list, table formats)
Output
Creates comprehensive optimization report saved to:SEO Score (0-100)
- Score Breakdown
- Publishing Decision
- Keyword Optimization: /25
- Technical SEO: /25
- Content Quality: /25
- User Experience: /25
- Overall Score: /100
Priority Fixes
List of critical issues:Optimization Recommendations
Quick Wins (5-10 minutes)
Quick Wins (5-10 minutes)
- Specific keyword placement adjustments
- Meta element tweaks
- Internal link additions
- Heading optimizations
Strategic Improvements (30+ minutes)
Strategic Improvements (30+ minutes)
- Content expansion opportunities
- Structural reorganization
- Additional research needed
- Competitive gap filling
Optimized Meta Options
Link Enhancement
- Internal Links to Add
- External Links to Add
Keyword Distribution Map
Visual representation of keyword placement:Final Checklist
Agent Integration
The optimize command triggers final review from all agents:Content Analyzer
Comprehensive analysis: search intent, keyword clustering, length comparison, readability, SEO quality (0-100)
SEO Optimizer
Technical SEO final check with specific recommendations
Meta Creator
Best meta title/description options with testing recommendations
Internal Linker
Last opportunity internal linking suggestions with placement
Keyword Mapper
Final keyword distribution analysis with heatmap
Real Example
Example: Optimizing a Content Marketing Article
Example: Optimizing a Content Marketing Article
Next Steps
After optimization:- Review the report - Read all recommendations
- Address priority fixes - Fix high-priority issues
- Apply quick wins - Make fast improvements
- Publish - Move to WordPress or
published/folder
Tips
Run Before Publishing
Always optimize before publishing to catch final issues.
Fix Priority Items
Address high-priority fixes first for maximum impact.
Test All Links
Verify all internal and external links work.
Review Meta Options
Test meta titles/descriptions in SERP preview tool.
Related Commands
/write
Create articles to optimize
/publish-draft
Publish optimized articles to WordPress