Analyzes existing content for search optimization gaps, rewrites for higher rankings, and generates structured data for AI citation.
Analyze existing content for search optimization opportunities and produce improved versions that rank higher in both traditional search engines and AI citation systems. The workflow prioritizes information gain (unique insights that competitors lack) over keyword stuffing, aligns with how AI models evaluate content for citation, and generates valid structured data markup.
anthropic/claude-sonnet-4-20250514 (cloud API — requires
ANTHROPIC_API_KEY) for content analysis, gap identification, optimization
rewrites, and schema markup generation. Sonnet's long context handles
articles up to 10,000 words.target_keyword_count: 5 — number of primary keywords per piece. More
keywords dilute focus.min_word_count: 1500 — minimum target for comprehensive content.readability_target: grade-8 — accessible but authoritative. Adjust up
for technical audiences.information_gain_weight: 0.8 — heavily weight unique insights. Lower for
commodity content.ANTHROPIC_API_KEY environment variable.Accept the content to optimize as Markdown, HTML, or plain text. Parse to a clean text representation for analysis.
If Search Console API is configured, pull keyword performance data for the content URL:
If brand voice examples are provided, analyze them to extract:
Perform the SEO audit:
Generate the optimized content:
Generate schema markup:
Produce the final audit report with: