返回技能列表

seo-onpage

rampstackco
更新于 2 days ago
8 次查看
239
27
239
在 GitHub 上查看
其他general

关于

This skill performs comprehensive on-page SEO audits and optimizations for individual web pages. It analyzes and improves eight key dimensions including title tags, meta descriptions, headers, content, links, images, URLs, and schema markup. Use it whenever you need to audit, optimize, or write SEO-friendly copy for a single page to improve search performance.

快速安装

Claude Code

推荐
主要方式
npx skills add rampstackco/claude-skills -a claude-code
插件命令备选方式
/plugin add https://github.com/rampstackco/claude-skills
Git 克隆备选方式
git clone https://github.com/rampstackco/claude-skills.git ~/.claude/skills/seo-onpage

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

On-Page SEO

Optimize a single page for search relevance, click-through, and crawler comprehension. Stack-agnostic. Works on any CMS, framework, or static site.


When to use

  • Auditing or optimizing a single page (homepage, product page, article, landing page)
  • Writing or reviewing title tags and meta descriptions
  • Fixing header structure or content hierarchy
  • Reviewing internal links from or to a page
  • Improving a page's CTR from search results

When NOT to use

  • Site-wide crawl, indexing, or speed issues (use seo-technical)
  • Keyword research or intent mapping (use seo-keyword)
  • Competitor SERP analysis (use seo-competitor)
  • Auditing many pages at once for prune/merge decisions (use seo-content-audit)

Required inputs

  • The page URL or the draft content if pre-launch
  • The primary target query (one phrase the page should rank for)
  • The page's role in the site (commercial, informational, navigational)

If the target query is unknown, run seo-keyword first or ask the user to name one.


The framework: 8 dimensions

A complete on-page audit covers eight dimensions. Score each as Pass, Needs work, or Fail. Note the specific fix.

1. Title tag

  • One unique title per URL across the site
  • Roughly 50 to 60 characters (longer gets truncated in SERPs)
  • Primary query near the front
  • Brand at the end if it earns inclusion
  • Distinct from the H1 (often very similar, but should not be identical word-for-word)

2. Meta description

  • One unique description per URL
  • Roughly 150 to 160 characters
  • Restates the value proposition, not the title
  • Includes a soft CTA where natural
  • Treats the description as ad copy that earns the click

3. Header structure

  • Exactly one H1 per page
  • H1 contains or paraphrases the primary query
  • H2 sections cover the major sub-topics
  • H3+ used only when an H2 has genuine sub-points
  • No skipped levels (no H2 followed by H4)
  • Headers describe sections accurately enough that a reader could navigate by them alone

4. Body content

  • Opens with the primary user intent answered in the first paragraph
  • Covers the topic comprehensively (define your competition's depth, then match or exceed it)
  • Includes related entities and supporting concepts naturally
  • Avoids keyword stuffing (write for the reader, not the bot)
  • Reading level matches the audience (run a readability check)
  • Paragraphs short enough to scan on mobile (3 to 5 lines)

5. Internal links

  • At least 2 to 3 outbound internal links to closely related pages
  • At least 2 to 3 inbound internal links from related pages
  • Anchor text is descriptive, not "click here" or "learn more"
  • Links to canonical URLs, not redirects
  • No broken internal links

6. Images and media

  • Every meaningful image has descriptive alt text (skip alt for purely decorative images)
  • File names are descriptive ("blue-running-shoe.jpg" not "IMG_4032.jpg")
  • Modern format used where supported (WebP, AVIF)
  • Lazy loading on below-the-fold images
  • Width and height attributes set to prevent layout shift

7. URL slug

  • Lowercase, hyphen-separated
  • Includes the primary query naturally (no stuffing)
  • Short (under 60 characters where possible)
  • No dates unless the page is genuinely time-bound
  • No session IDs, tracking parameters, or random hashes
  • Matches the site's URL pattern conventions

8. On-page schema

  • Appropriate Schema.org type for the content (Article, Product, FAQPage, HowTo, Recipe, etc.)
  • Required properties filled (review Schema.org docs for the type)
  • Validates in Google's Rich Results Test or equivalent
  • Matches what is visible on the page (do not lie to crawlers)
  • Author and publisher schema linked correctly for content pages

Workflow

  1. Confirm the target query. If unclear, ask. Do not optimize without one.
  2. Render the page. View it as a user would. Read the content top to bottom.
  3. View the rendered HTML. Inspect the actual served markup, not just the visual page. Check <title>, <meta>, headers, and schema in the source.
  4. Run the 8-dimension framework. Score each, note specific fixes.
  5. Prioritize. Group fixes into Critical (broken or missing), Important (suboptimal), and Nice-to-have (polish).
  6. Write the report. Use the template in references/audit-template.md.
  7. Offer to draft fixes. If the user wants, draft the new title, meta, headers, or copy directly.

Failure patterns

When you spot one of these, push back before delivering.

  • "Make it more SEO." Vague. Ask for the target query and what's broken first.
  • "Add the keyword 5 times in the body." Keyword density is not a real ranking signal. Prioritize relevance and topical depth instead.
  • Optimizing a page that is not crawlable or indexable. Check seo-technical first. No on-page work helps a noindexed page.
  • Optimizing a page with no clear user intent. A page that does not serve a real query will not rank no matter how well-tagged it is.
  • Targeting the same query as another page on the site. This is cannibalization. Use seo-content-audit to decide which page should rank.

Output format

Default output is a markdown audit at seo-audit-[page-slug].md in the project root. Structure:

  1. Page summary (URL, target query, role)
  2. Score across 8 dimensions
  3. Critical fixes
  4. Important fixes
  5. Nice-to-have polish
  6. Drafted replacements (if requested)

Keep audits under 1500 words. If a page needs more detail, link to deeper appendices.


Reference files

GitHub 仓库

rampstackco/claude-skills
路径: skills/seo-onpage
0
agent-skillsai-agentsanthropicclaudeclaude-aiclaude-code

相关推荐技能

seo-keyword

其他

该Skill用于执行全面的SEO关键词研究,帮助开发者发现、分类和优先处理目标关键词。它能根据搜索意图对关键词进行分类,并将其聚类为主题组,以指导内容生产和内容策略规划。当开发者需要进行关键词研究、构建主题地图、分析搜索意图或规划内容日历时,可触发此Skill来识别排名机会和内容缺口。

查看技能

seo-technical

其他

这是一个全面的技术SEO审计工具,当用户遇到抓取、索引、页面体验或网站性能问题时自动触发。它能诊断从robots.txt、站点地图到核心网页指标、结构化数据等广泛的技术SEO问题。开发者可在网站流量下降、迁移或出现索引问题时使用它进行快速深度检查。

查看技能

seo-content-audit

其他

该Skill用于系统性地审计网站现有内容,帮助开发者根据内容表现和SEO价值,对每篇内容做出保留、更新、合并、重定向或删除的决策。它适用于解决内容衰减、关键词蚕食、流量下降等常见SEO问题,并能优先处理内容更新。当开发者需要进行内容盘点、应用内容优化框架或执行站点级内容策略时,可触发此Skill。

查看技能

seo-aeo-geo

其他

这个Skill帮助开发者优化内容和网站结构,以适应AI驱动的搜索体验,如AI摘要和生成式答案引擎。它指导如何让内容被大型语言模型引用、出现在AI概述中,并创建llms.txt等未来化SEO措施。当开发者需要针对AI搜索进行优化,或担忧传统搜索流量被AI取代时,即可使用此Skill。

查看技能