local-business
它能做什么
这项技能检查并添加 LocalBusiness 架构标记,这是一种描述有实体经营地点的商家的结构化数据。适用于本地商家和管理其网站的人。
适用场景
- ✓当你请智能体在首页或联系页面添加本地商家结构化数据的时候。
- ✓当你希望搜索结果更清楚地显示地址、营业时间和电话号码的时候。
- ✓当你在审核现有网站,需要确认其商家标记包含必需信息的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/local-business/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为网站添加本地商家结构化数据,让 Google 知道我的地址和营业时间。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会在页面中添加一个 JSON-LD 代码块,列出商家名称、地址、电话、网站、营业时间和位置。然后它会建议使用 Google 的 Rich Results Test 工具检查结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Add LocalBusiness schema markup
LocalBusiness schema enables Google to show your business details (hours, address, phone, rating) directly in search results and Google Maps, improving local visibility without requiring a click.
Quick Reference
- Add LocalBusiness JSON-LD schema to your homepage and contact page
- Required properties: @type, name, address (PostalAddress), telephone
- Include openingHours, geo coordinates, and image for richer results
- Use a more specific sub-type when available (Restaurant, DentalClinic, etc.)
Check
Check the page source for a JSON-LD script block with @type matching 'LocalBusiness' or a sub-type (Restaurant, Store, etc.). Verify the required properties are present: name, address with PostalAddress, telephone, and url. Validate with Google's Rich Results Test.
Fix
Add a <script type='application/ld+json'> block to the homepage with LocalBusiness schema. Include: @context, @type, name, address (with streetAddress, addressLocality, addressRegion, postalCode, addressCountry), telephone, url, openingHours, and geo. Use a specific sub-type if applicable.
Explain
LocalBusiness structured data tells Google the essential details about a physical business. This data powers the Knowledge Panel in search results, the local pack ('map pack'), and integrations with Google Maps. Without it, Google has to guess business details from unstructured page content.
Code Review
Find JSON-LD script blocks with @type 'LocalBusiness' or a sub-type. Verify required fields: name, address.streetAddress, address.addressLocality, address.addressRegion, address.postalCode, address.addressCountry, telephone, url. Check that address values match the visible on-page address text. Validate with Google's Rich Results Test API.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/local-business
常见问题
哪些信息是必需的?
这项技能把类型、名称、邮政地址和电话列为必填项;营业时间和坐标则建议填写,以获得更丰富的结果。
我应该使用更具体的商家类型吗?
如果有合适的类型,应该使用,例如 Restaurant 或 DentalClinic。
哪些页面应添加这些标记?
这项技能建议添加到首页和联系页面。
详情
作者的原始描述
Use when auditing a local business website's structured data. Applies to any business that serves customers at a physical location or specific geographic area.
热度
- GitHub 星标
- 75k
- 排名
- #2929
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。