本文へスキップ
Skillpedia
SEO対策75k · #3005

robots-txt

できること

このスキルは、ウェブサイトのルートにあるrobots.txtファイルを確認し、有効であり、サイト全体をブロックしていないことを確かめます。検索エンジンに自サイトのコンテンツを見つけてもらいたいサイト運営者向けです。

使う場面

  • ✓ウェブサイトのrobots.txtファイルを作成または確認するようエージェントに頼むとき。
  • ✓サイトが検索に出てこず、robots.txtのブロックのルールが原因かもしれないとき。
  • ✓新しいサイトを公開し、サイトマップへのリンクを含んだきれいなrobots.txtを用意したいとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/robots-txt/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/robots-txt/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のrobots.txtファイルを確認し、サイトをブロックしておらず、サイトマップを指しているかを確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、robots.txtファイルを取得し、正しい指示で有効な応答を返すかを確認します。サイト全体を誤ってブロックしていないか調べ、本番用のサイトマップを指すSitemapの行を追加します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Publish a robots.txt file

robots.txt is the first file crawlers fetch; misconfigured directives can silently block search engines from crawling your entire site, killing organic visibility.

Quick Reference

  • Serve a valid robots.txt at /robots.txt on the production domain, returning HTTP 200
  • Include a Sitemap: directive pointing to your XML sitemap
  • Never disallow crawling of CSS/JS assets that render your pages
  • Avoid blocking all crawlers with Disallow: / on a live site

Check

Fetch /robots.txt on the live domain and verify it returns HTTP 200, uses correct User-agent / Disallow / Allow syntax, and includes a Sitemap: directive pointing to the XML sitemap. Check for accidental Disallow: / directives.

Fix

Create or update robots.txt at the web root with valid directives. Add a live Sitemap: line for the production sitemap URL. Remove any Disallow: / rules that block the whole site or resources needed for rendering.

Explain

Explain how robots.txt controls crawler access, why an accidental Disallow: / can delist a site, and why CSS/JS must remain accessible for rendering-based indexing.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Publish a robots.txt file. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/robots-txt

よくある質問

robots.txtがすべてをブロックしていると、どうなりますか?

このスキルによると、サイト全体に誤ってDisallowを付けると、検索から削除されることがあります。

CSSとJavaScriptはブロックすべきですか?

いいえ。このスキルによると、検索エンジンがページを描画できるように、これらのファイルはアクセス可能なままにする必要があります。

robots.txtはインデックスを制御しますか?

制御するのはクロールです。このスキルは、ページのインデックスを制御するにはnoindexタグを使うと説明しています。

詳細

作者による元の説明

Use when applies to any public website. Use when auditing technical SEO foundations or diagnosing crawl coverage gaps.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#3005
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル