跳到正文
Skillpedia
SEO75k · #2929

local-business

它能做什么

这项技能检查并添加 LocalBusiness 架构标记,这是一种描述有实体经营地点的商家的结构化数据。适用于本地商家和管理其网站的人。

适用场景

  • ✓当你请智能体在首页或联系页面添加本地商家结构化数据的时候。
  • ✓当你希望搜索结果更清楚地显示地址、营业时间和电话号码的时候。
  • ✓当你在审核现有网站,需要确认其商家标记包含必需信息的时候。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/local-business/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2929
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能