canonical-header
できること
このスキルは、ページのcanonicalのシグナルが互いに一致しているかを確認します。HTMLとHTTPヘッダーの両方でcanonicalのアドレスを設定する、サイトの運営者や開発者向けです。
使う場面
- ✓ページがHTMLのcanonicalタグとLinkヘッダーの両方を送っているとき。
- ✓ページとサーバーの応答で、canonicalのシグナルが異なるとき。
- ✓検索で重複コンテンツの問題が出ているとき。
スキルのリンク
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/canonical-header/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私の商品ページのcanonicalタグとLinkヘッダーを比べ、一致するようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、HTMLのcanonicalタグとHTTPのLinkヘッダーを比べ、どちらか一方を更新して、両方が同じcanonicalのURLを示すようにします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Sync HTML canonical tags and Link headers
Conflicting canonical-url signals can lead search engines to ignore both declarations, potentially causing duplicate content issues and incorrect indexing.
Quick Reference
- Ensure the
rel="canonical"tag in your HTML matches theLinkcanonical-url header if both are used - Avoid sending conflicting signals to search engines about the primary version of a page
- Maintain consistency across all methods of declaring your canonical URL
Check
Compare the HTML canonical tag with the HTTP Link header to ensure they point to the exact same URL.
Fix
Update either the HTML tag or the HTTP header so that they provide a consistent canonical URL signal.
Explain
Explain the risks of sending conflicting technical SEO signals to search engine crawlers.
Code Review
Review metadata generation, rendered HTML, structured data, and response headers related to Sync HTML canonical tags and Link headers. 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/canonical-header
よくある質問
両者が食い違うと、何が問題ですか?
矛盾するシグナルが、検索エンジンに両方の宣言を無視させるおそれがあると、このスキルは説明しています。
どちらを変更すべきですか?
どちらでもよいですが、最終的なcanonicalのURLが両方で同じであることが条件です。
これはどんな問題を防ぎますか?
重複コンテンツの問題と、誤った索引です。
詳細
作者による元の説明
Use when auditing metadata, crawlability, structured data, or indexability related to Sync HTML canonical tags and Link headers. Verify the rendered HTML and HTTP response rather than relying only on source files.
人気
- GitHubのスター
- 75k
- ランキング
- #2766
- ライセンス
- MIT
- 更新日
- 2026/10/31
コメント
- …
このリポジトリの他のスキル
frontendchecklist
75kコマンドラインツールを使って、フロントエンドのコードとライブページを、アクセシビリティ、速度、SEO、セキュリティに関する380以上のルールと照らし合わせて確認します。
frontend-checklist-global
75kフロントエンドのプロジェクトを、386のFront-End Checklistのルールすべてと照らし合わせて監査し、見つかった問題ごとに具体的な修正方法を示します。
404-page
75k見つからないページの画面に役立つリンクがあり、本物の404ステータスを返すかを確認し、迷った訪問者が目的のページを見つけられるようにします。
about-page
75kサイトの運営者が誰かを説明する、分かりやすいAboutページがあるかを確認し、訪問者と検索エンジンからの信頼を高めます。
似ているスキル
competitive-platform-analysis
280k競合他社を把握するのに役立ちます。より深い分析を行う前に、競合企業を特定し、分類し、絞り込みます。
competitive-report-structure
280k包括的な競合レポートを作成します。情報をまとめて業界全体の状況や提言を示し、チームの認識をそろえるのに役立ちます。
lead-intelligence
280kエージェントが重要な人物を見つけて連絡を取るのを支援します。見込み客を分析し、アプローチを提案し、メールやSNSを通じたアウトリーチを管理します。