Schema
by coreyhaines31 / marketingskills
Add, fix, or optimize schema markup and structured data on your site.
Expert guide for on-page SEO optimization.
Listed ·Updated
Install data from skills.sh
SEO On Page Optimization is an On-Page SEO skill for AI agents, published in the seoskills.sh catalog. Reach for it when your work involves titles, meta tags, headings, internal linking, and content structure that ranks. Install it with one command and it runs inside your own agent, so the work happens in your workflow, not a separate SEO tool.
The title tag is the single most important on-page ranking factor.
| Rule | Value |
|---|---|
| Length | 50-60 characters (Google truncates at ~580px) |
| Primary keyword | Place within first 60 chars, ideally near the start |
| Brand | Append at end with separator: Primary Keyword - Brand |
| Uniqueness | Every page must have a unique title |
| Format | `Primary Keyword - Secondary Keyword |
Blog post: "How to [Action] [Topic] in [Year] | Brand"
Product: "[Product Name] - [Key Feature] | Brand"
Category: "[Category] - Shop [Subcategory] Online | Brand"
Homepage: "Brand - [Primary Value Proposition]"
Service: "[Service] in [Location] | Brand"
MCP Tool: Use analyze_page to extract and evaluate the current title tag, or generate_meta_suggestions to get AI-powered title recommendations.
Not a direct ranking factor, but directly impacts CTR (click-through rate) from search results.
| Rule | Value |
|---|---|
| Length | 150-160 characters (Google truncates at ~920px) |
| Primary keyword | Include naturally — Google bolds matching query terms |
| CTA | Include a call-to-action (Learn, Discover, Shop, Get) |
| Uniqueness | Every page must have a unique description |
| No quotes | Avoid double quotes — Google truncates at " |
[Value proposition with keyword]. [Supporting detail]. [CTA].
MCP Tool: Use analyze_page or generate_meta_suggestions for current analysis + suggestions.
Headings define content hierarchy and help search engines understand page structure.
H1: Primary Topic (one only)
H2: Major Section 1
H3: Subsection
H3: Subsection
H2: Major Section 2
H3: Subsection
H4: Detail
H2: Major Section 3
H1: Topic
H3: Section (skipped H2!)
H5: Detail (skipped H4!)
MCP Tool: Use analyze_headings with targetKeyword parameter to validate structure and keyword presence.
| Location | Priority | Notes |
|---|---|---|
| Title tag | Critical | First 60 chars |
| H1 | Critical | Primary keyword |
| First 100 words | High | Natural mention early |
| H2/H3 headings | High | Secondary/related keywords |
| URL slug | High | Hyphenated, concise |
| Meta description | Medium | For CTR, not ranking |
| Image alt text | Medium | Describe image with keyword if relevant |
| Last paragraph | Low | Natural mention |
MCP Tool: Use analyze_page with includeContent: true to get word count and content analysis.
| Element | Best Practice |
|---|---|
| Alt text | Descriptive, 125 chars max, include keyword where relevant. Decorative images: alt="" |
| File name | Descriptive with hyphens: blue-running-shoes.webp not IMG_4532.jpg |
| Format | WebP or AVIF preferred, JPEG for photos, PNG for transparency, SVG for icons |
| File size | Under 200KB per image, use compression tools |
| Dimensions | Specify width and height attributes to prevent CLS |
| Lazy loading | Add loading="lazy" to below-the-fold images |
| Responsive | Use srcset and sizes for responsive images |
Good: "Blue Nike running shoes on a trail"
Good: "SEO audit dashboard showing Core Web Vitals scores"
Bad: "image1"
Bad: "shoes shoes running shoes blue shoes nike shoes" (keyword stuffing)
Bad: (empty alt on non-decorative image)
MCP Tool: Use analyze_images to audit all images on a page for alt text, size, format, and lazy loading.
Internal links distribute link equity (PageRank) and help search engines discover and understand your site structure.
Good: "Learn about technical SEO auditing"
Good: "our guide to keyword research"
Bad: "click here"
Bad: "this article"
Bad: "https://example.com/page" (naked URL)
MCP Tool: Use analyze_internal_links to map all links, evaluate anchor text quality, and detect broken links.
/seo-audit-checklist not /p?id=123&cat=seo/technical-seo not /technical_seo/category/subcategory/page)/seo-audit not /the-complete-guide-to-seo-auditEssential for social sharing appearance and click-through from social platforms.
<meta property="og:title" content="Page Title">
<meta property="og:description" content="Page description">
<meta property="og:image" content="https://example.com/image.jpg">
<meta property="og:url" content="https://example.com/page">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Page Title">
<meta name="twitter:description" content="Page description">
<meta name="twitter:image" content="https://example.com/image.jpg">
summary_large_imagePrevent duplicate content issues by specifying the preferred version of a page.
<link rel="canonical" href="https://example.com/page">| Element | Check | Pass Criteria |
|---|---|---|
| Title tag | Present, unique, correct length | 50-60 chars, contains keyword |
| Meta description | Present, unique, correct length | 150-160 chars, includes CTA |
| H1 | Present, single, contains keyword | Exactly one H1 with primary keyword |
| Heading hierarchy | No skipped levels | H1 > H2 > H3 (no jumps) |
| Images | Alt text present | All non-decorative images have descriptive alt |
| Internal links | Descriptive anchors | No "click here", relevant anchors |
| Canonical | Present, self-referencing | Absolute HTTPS URL |
| OG tags | Present | og:title, og:description, og:image, og:url |
| URL | Clean, keyword-rich | Hyphens, lowercase, concise |
| Content | Sufficient, original | Meets word count for page type |
| Tool | Use For |
|---|---|
analyze_page | Comprehensive on-page analysis with scoring |
analyze_headings | Heading structure validation |
analyze_images | Image alt text and optimization audit |
analyze_internal_links | Link mapping and anchor text analysis |
generate_meta_suggestions | AI-powered meta tag improvement suggestions |
See COMMON_MISTAKES.md for the 15 most frequent on-page SEO mistakes. See CHECKLISTS.md for step-by-step audit checklists. See EXAMPLES.md for before/after optimization examples.
Not using the CLI? Copy the SKILL.md and paste it straight into ChatGPT, Claude, or any agent.