Step 13: SEO Rules Engine (2026 Guide)
Enforce on-page SEO best practices as hard constraints in the AI writing prompt.
On-page SEO is a checklist that most AI writers ignore. They produce grammatically correct, readable content — but forget to include the primary keyword in the H1, over-densify the keyword, miss meta description character limits, or skip internal link opportunities. seorankar.com's Step 13 — SEO Rules Engine — codifies every on-page SEO best practice as an explicit rule that the AI must follow, transforming vague "write good SEO content" instructions into precise, verifiable constraints.
These rules are not post-processing checks — they are pre-generation instructions. By building SEO requirements directly into the AI's system prompt, seorankar.com ensures compliance at the source, eliminating the need for an SEO audit after every article and significantly reducing the rate of re-generation requests.
The SEO Rules Enforced
seorankar.com's SEO Rules Engine enforces the following on-page rules:
Keyword in H1: The primary keyword or a close variant must appear in the H1 heading.
Keyword in first paragraph: The primary keyword must appear in the first 100 words of the article body.
Keyword density: Primary keyword at 0.5%–1.5% of total word count (1 mention per 100–200 words). Prevents keyword stuffing and thinness simultaneously.
Secondary keyword distribution: Secondary keywords distributed across different H2 sections — no section should have more than 2 secondary keywords to avoid focus dilution.
Meta description: Exactly 120–160 characters. Primary keyword in the first half. Includes a call-to-action phrase.
Title tag: 50–60 characters. Primary keyword in the first 40 characters.
Image alt text: Every image placeholder includes an alt text requirement with the primary or secondary keyword.
Internal link anchors: Anchor text for internal links must be descriptive (not "click here") and use target page keywords.
Schema markup: Article type (Article, HowTo, or FAQPage) determined by content type and added to the output.
URL slug: Generated as lowercase, hyphen-separated, keyword-first (e.g., "serp-analysis-guide").
Output of This Step
SEO constraint ruleset included in the master prompt as hard requirements for the AI writer.
💡 Pro Tips
- →Keyword density rules are ranges, not targets — aim for the middle of 0.5%–1.5%, not the maximum.
- →The title tag character limit is critical — Google truncates titles at ~60 characters. seorankar.com generates titles and validates length automatically.
- →Schema markup (HowTo, FAQPage, Article) is one of the highest-ROI on-page SEO investments — it enables rich results at no ranking cost.
- →Internal link rules should reference your actual site structure — seorankar.com's internal links step (14b) automatically selects relevant pages from your sitemap.
Frequently Asked Questions
Q: What keyword density is considered stuffing?
Generally, keyword density above 2% is considered stuffing by modern Google algorithms. seorankar.com caps at 1.5% and flags any output that exceeds this during the QA step.
Q: Does the title tag rule affect the WordPress post title?
Yes. The WordPress post title and the SEO title (set via RankMath in Step 18) are generated separately. The post title can be longer; the SEO title must be 50–60 characters for proper SERP display.
Q: Are these rules based on Google's official guidelines?
They are based on a combination of Google's published guidance, Google Search Quality Rater Guidelines, and extensive industry testing. Google doesn't publish specific keyword density rules, but 0.5%–1.5% is a well-established safe range across the SEO community.
Ready to automate your SEO pipeline?
seorankar.com runs all 20 steps automatically — from keyword research to WordPress publish.