faq
它能做什么
这项技能添加隐藏的结构化数据,用于描述页面上已有的问答。适用于希望搜索结果显示更丰富内容的网站所有者。
适用场景
- ✓当你的落地页或博客文章已有可见的 FAQ 部分的时候。
- ✓当你希望搜索结果显示问题和答案的细节的时候。
- ✓当你需要检查现有 FAQ 标记是否与页面内容相符的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/faq/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我落地页上的问题添加 FAQ 结构化数据标记。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会根据页面上可见的问题和答案构建一个 FAQPage 数据块。然后它会检查标记内容是否与访客在页面上实际看到的内容一致。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Add FAQPage schema markup
Valid FAQPage structured data can generate rich results in Google Search, displaying expandable question-and-answer pairs directly in the SERP. This increases click-through rate and SERP real estate without requiring a higher ranking position.
Quick Reference
- Add
FAQPageJSON-LD withmainEntityquestion/answer pairs to pages that contain FAQ sections - Each
Questionmust includeacceptedAnswerwith anAnswertype containing thetextproperty - Only use FAQPage schema when the page actually contains FAQ-style question-and-answer content visible to users
Check
Check pages that contain FAQ or Q&A sections. For each: (1) Is there a <script type="application/ld+json"> block with "@type": "FAQPage"? (2) Does it include a mainEntity array of Question objects? (3) Does each Question have a name (the question text) and an acceptedAnswer with "@type": "Answer" and a text property? (4) Does the schema content match what is visible on the page?
Fix
- Identify pages with FAQ-style content (a section of questions and answers visible to users).
- Add a JSON-LD script to the page
<head>or<body>:
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "How do I reset my password?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Click 'Forgot password' on the login page and enter your email address. You will receive a reset link within 5 minutes."
}
}
]
}
- Validate the markup using Google's Rich Results Test at https://search.google.com/test/rich-results.
- Ensure every question in the schema has a corresponding visible answer on the page.
Explain
FAQPage structured data enables Google to display expandable Q&A pairs directly in search results as a rich result. This increases the page's visible footprint in the SERP and can improve click-through rate. Invalid or mismatched schema (questions in markup not visible on page) will cause Google to ignore it and may trigger a manual action.
Code Review
Parse all <script type="application/ld+json"> blocks. Find any with "@type": "FAQPage". Validate that mainEntity is an array, each item has "@type": "Question", name is a non-empty string, and acceptedAnswer is an object with "@type": "Answer" and a non-empty text. Cross-reference each question in the schema against visible question elements on the page.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/faq
常见问题
没有 FAQ 部分的页面可以添加 FAQ 标记吗?
这项技能说明,只有当页面向用户展示问答内容时,才应使用 FAQ 标记。
使用什么格式?
这项技能使用 JSON-LD,即一个脚本块,列出每个问题及其答案。
每个问题必须包含什么?
正如这项技能所述,每个问题都需要一个名称,以及带有文本属性的已接受答案。
详情
作者的原始描述
Use when adding FAQ sections to landing pages or blog posts, generating FAQPage JSON-LD from existing Q&A content, or validating that structured data on pages with FAQ sections is syntactically and semantically correct.
热度
- GitHub 星标
- 75k
- 排名
- #2839
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。