跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
营销与销售

seo-site-setup

Technical and on-page setup for a website that is being built or fixed. Covers rendering, HTML structure, on-page basics, link attributes, robots.txt, sitemap naming, structured data validation, speed, images, languages, and measurement. For AI crawler rules, llms.txt, and accessible names, use seo-agent-readiness. Use before a site goes live, or when the owner asks what is missing.

rankmyseo · 已有 AI 审核记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add rankmyseo/skills --skill seo-site-setup

技能说明


name: seo-site-setup description: Technical and on-page setup for a website that is being built or fixed. Covers rendering, HTML structure, on-page basics, link attributes, robots.txt, sitemap naming, structured data validation, speed, images, languages, and measurement. For AI crawler rules, llms.txt, and accessible names, use seo-agent-readiness. Use before a site goes live, or when the owner asks what is missing.

SEO site setup

Read seo first if you have not read it in this session. Its rules for account writes, guest keys, and reading results apply here.

Goal: search engines and AI tools can read every public page, every page says what it is, the markup validates, and the owner can measure it from day one.

Acceptance: for any public page, the owner can see the title, description, one H1, canonical link, and main text in the raw HTML. The schema validates with no errors. robots.txt allows search crawlers and points to the sitemap.

Make the changes yourself, in the files or builder you can reach. If you cannot reach the site, write each change out exactly (where it goes, the old value, the new value, and the reason) and give it to the owner. If you do not know the stack, ask once.

1. Address and URL form

  • Pick one host, with www or without it. Redirect the other with a 301 (permanent) redirect.
  • Use HTTPS only. Redirect HTTP to HTTPS.
  • Pick one URL form, with or without a trailing slash. Redirect the other form to it. The same page must not answer 200 on both forms.
  • Each page sets a canonical link that uses the chosen form.

2. Rendering: main text in the first HTML response

  • Put each page's text, title, description, and links in the HTML the server sends. Use server-side rendering, static generation, or prerendering. Prefer this over client-side rendering, where the browser builds the page with JavaScript.
  • Why: Google's crawler runs JavaScript. In published tests, several AI crawlers do not, so client-rendered text can be invisible to them.
  • Test: curl -s https://example.com/page | grep -i "a phrase from the main text". If the phrase is missing, the page depends on JavaScript. Fix that before launch.

3. HTML structure

  • Set lang on the html element.
  • One h1 per page. Headings follow in order: h2 before h3, never skip a level.
  • Use landmarks: header, nav, main, article, section, aside, footer.
  • Buttons are button elements. Links are a elements with an href.
  • Every form input has a label. Every informative image has alt text. Decorative images get empty alt.
  • Include the viewport meta tag so the page works on phones.
  • Use real tables for tables and real lists for lists.
  • Every button, link, and field needs a name that assistive tools and browser agents can read. The rules are in seo-agent-readiness, section 3.

4. On-page basics

  • Title: unique to the page, under 60 characters, main keyword near the start.
  • Description: unique to the page, 140 to 160 characters, saying what the reader gets.
  • H1: matches the page's intent in plain words.
  • First paragraph: answers the search in two or three sentences.
  • Canonical link: points to the page itself, in the chosen URL form.
  • Open Graph: title, description, and an image of about 1200 by 630 pixels for sharing.
  • Link text: describes the target, for example "cost of rank tracking", not "click here".

5. Link attributes

  • Internal links: a plain a element with no rel attribute. Do not put nofollow on internal links.
  • Paid or affiliate links: rel="sponsored".
  • User-generated links, such as comments and forum posts: rel="ugc".
  • Other links you do not want to endorse: rel="nofollow".
  • Google treats these values as hints, not commands. To keep a page out of Search, use noindex. To keep a crawler off a path on your own site, use robots.txt.
  • Several values can be combined, for example rel="sponsored ugc".

6. robots.txt

  • Serve /robots.txt at the site root, as plain text, with a 200 status.
  • Allow public pages for search crawlers. Do not block CSS or JavaScript files.
  • Add a Sitemap line that points to the sitemap file.
  • Keep staging, preview, and admin areas out of the sitemap, and add noindex or a password.

Rules for AI crawlers (search answers, model training, and reading on a person's request) need the owner's answers first. They are in seo-agent-readiness, section 1. Do not write one here on a guess.

After any hosting or CDN change, open /robots.txt again. Some one-click settings add rules that block search crawlers by accident.

7. Sitemap

  • The file name can differ from sitemap.xml. Any name works if robots.txt points to it with a Sitemap line.
  • List only canonical, indexable URLs that return 200. Keep lastmod accurate.
  • Make sure the XML parses.
  • Submit it in Search Console. Bing does not index a sitemap URL that only redirects.

8. AI crawlers, llms.txt, and agents

Run seo-agent-readiness before launch. It holds the AI crawler rules for robots.txt, the llms.txt file, accessible names for every control, and the agent reference scans.

9. Structured data (JSON-LD), validated

  • Use JSON-LD. Mark up only what is visible on the page.
  • Homepage: Organization and WebSite. Inner pages: BreadcrumbList. Posts: Article. Local business: LocalBusiness with a real address (see seo-local).
  • Product pages in a shop: Product with name, image, and an offers block that has price and priceCurrency (more in seo-product-pages). Use one page per product, not a category page. Put the markup in the first HTML response; Google says markup added by JavaScript makes shopping crawls less frequent and less reliable. Use one URL per currency.
  • Do not mark up the business's own star rating on its own site. Google shows review stars for LocalBusiness only on sites that collect reviews about other businesses.
  • Do not add FAQPage or HowTo for a search appearance. Google no longe
阅读完整来源 ↗