aeo-local-business-schema
Skill5 starsChanged 19 days agoApache-2.0View on GitHub
Add or fix LocalBusiness structured data and keep name, address and phone (NAP) consistent across a site, Google Business Profile and directories, so local searchers and AI answer engines get the right facts. Use when someone asks about "local SEO schema", "LocalBusiness JSON-LD", "opening hours markup", "NAP consistency", "service area", "show up for plumber near me in ChatGPT", or wrong hours or address appearing in answers. Works for WordPress and static HTML. Uses the aeo-research MCP server (analyze_website_aeo, check_ai_visibility) if connected.
In this repository23 other files it gives its agents.
- aeo-ai-crawler-accessSkill
- aeo-ai-referral-analyticsSkill
- aeo-answer-first-contentSkill
- aeo-article-author-schemaSkill
- aeo-citation-earningSkill
- aeo-content-freshnessSkill
- aeo-eeat-trust-signalsSkill
- aeo-faq-qa-schemaSkill
- aeo-indexabilitySkill
- aeo-llms-txtSkill
- aeo-organization-entitySkill
- aeo-page-metadataSkill
- aeo-product-schemaSkill
- aeo-server-renderingSkill
- aeo-site-structureSkill
- aeoSkill
- aeo-structured-data-validationSkill
- aeo-visibility-trackingSkill
- seo-bing-coverageSkill
- seo-cannibalizationSkill
- seo-content-decaySkill
- seo-high-intent-ctrSkill
- seo-traffic-dropSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Does not apply, or needs care, when:
- Distinctive: line 43
Ask the owner which version is true.
- Very specific: line 69
Use the same string for name as on the storefront and the Business Profile.
- Distinctive: line 81
Put the same NAP in visible HTML (footer or contact page).
- Distinctive: line 91
Directories: Update the main ones to the confirmed NAP.
- Very specific: line 101
Run check_ai_visibility with location-specific prompts written like a customer, for example "emergency plumber in Guelph Ontario" or "best …
- Very specific: line 106
Use compare_competitor_visibility with the business and two or three local rivals to see who is cited.
- Distinctive: line 108
Search a few prompts yourself and read whether the engine states the right hours and address.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LocalBusiness schema and NAP consistency
For a business with a physical location or service area, the facts that matter are name, address, phone, hours, and where it serves. This skill puts those facts in markup and makes them agree everywhere they appear.
Note: the scoring engine has no local-business rule yet. analyze_website_aeo will not fail
a site for missing LocalBusiness markup. Detection uses its structured-data findings plus manual
inspection.
When this matters / when it doesn't
Matters for businesses customers visit or that travel to customers (trades, clinics, restaurants, shops).
Does not apply, or needs care, when:
- The business is online-only with no location or service area. Use Organization markup
(
aeo-organization-entity), not LocalBusiness. - The owner does not want the address public (home-based service business). Google Business Profile guidance is that service-area businesses "should hide your business address". Do not put a home address in markup either. Ask.
- Reviews are the goal. Self-reviews do not earn stars (see Pitfalls).
Markup is not what makes a business appear in local results. Google says local results rely mainly on relevance, distance and prominence, and that "there's no way to request or pay for a better local ranking". Do the work because accurate facts help users and engines, not as a ranking lever.
Detect
analyze_website_aeoon the homepage and contact page; read structured-data findings.- View source for
ld+json. Look for a LocalBusiness (or subtype) node,address,telephone,openingHoursSpecification. - Collect the business's name, address and phone from: the site footer, the contact page, the schema, Google Business Profile, and two or three directories. Put them in a table and compare character by character (suite numbers, "St" vs "Street", phone format, business name variants).
- Ask the owner which version is true. Never decide this yourself.
Decide
- Subtype: Google says use "the most specific LocalBusiness sub-type possible". schema.org
has many (Store, Dentist, LegalService, FoodEstablishment, HomeAndConstructionBusiness,
MedicalBusiness and others). For several types, use an array in
@type; Google notesadditionalTypeisn't supported. - Storefront or service area? Storefront: show the address. Service-area business: hide the
address in Business Profile, and describe the area in text and with
areaServed. Note that Google's LocalBusiness property tables do not listareaServed; it is valid schema.org, so it is harmless and helps other consumers, but do not expect a Google feature from it. - Multiple locations: one node per location, each with its own page, phone and hours.
- Departments: nest as
department, named{store name} {department name}unless the department has its own brand.
Google's properties:
| Properties | |
| Required | name, address (PostalAddress, as complete as possible) |
| Recommended | telephone (with country and area code, e.g. +12122459600), url, geo (latitude and longitude with at least 5 decimal places), openingHoursSpecification, priceRange (under 100 characters), department; aggregateRating/review only for sites that capture reviews of other local businesses |
Implement
- One LocalBusiness JSON-LD block on the homepage or contact page (and each location page).
Use the same string for
nameas on the storefront and the Business Profile. - Hours, per Google's format:
Omit"openingHoursSpecification": [ { "@type": "OpeningHoursSpecification", "dayOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday"], "opens": "09:00", "closes": "17:00" } ]validFromandvalidThroughfor year-round hours. Closing past midnight: one spec, for exampleopens: "18:00",closes: "03:00". Closed all day:00:00and00:00. Seasonal closure:00:00/00:00withvalidFromandvalidThroughin YYYY-MM-DD. - Put the same NAP in visible HTML (footer or contact page). Markup must describe visible content.
- Google Business Profile. Claim and verify it; this is separate from your site and drives the map listing. Rules from Google's guidelines: the name "should reflect your business's real-world name, as used consistently on your storefront, website, stationery"; no keywords, taglines, or phone numbers in the name; a precise address, no P.O. boxes or virtual offices; service-area businesses may have one profile with a service area (not much beyond about two hours' drive) and should hide a home address; use a local phone number and the location-specific website URL; choose few, specific categories. Keep hours, including holiday hours, current. Respond to reviews.
- Directories. Update the main ones to the confirmed NAP. Google lists prominence factors as including links and reviews; it does not publish a "citations" rule, so do not claim that directory listings are a ranking factor. Consistent real-world facts are the goal.
Stack specifics: references/wordpress.md, references/static-html.md.
Verify
- Rich Results Test and validator.schema.org: no errors; warnings reviewed.
- Rendered hours and phone in the markup equal the visible page and the Business Profile.
- Run
check_ai_visibilitywith location-specific prompts written like a customer, for example "emergency plumber in Guelph Ontario" or "best dentist near Westboro Ottawa". The tool has no location parameter; the place name must be inside the prompt. It queries Perplexity Sonar only and needs a Perplexity key. Each run is one sample, so repeat prompts, record which sources are cited, and compare before and after rather than claiming a cause. Usecompare_competitor_visibilitywith the business and two or three local rivals to see who is cited. - Search a few prompts yourself and read whether the engine states the right hours and address. Wrong facts there usually trace to an outdated directory, not the site.
Pitfalls
- Name variants ("Smith Plumbing", "Smith Plumbing Ltd.", "Smith Plumbing Guelph") across sources.
- Stuffing keywords or the city into the business name; it can get the Business Profile suspended.
- Markup for a location the business does not staff.
- Hours in markup that ignore holidays or differ from the profile.
- Self-serving reviews: if the business controls the reviews about itself, its
LocalBusiness/Organizationpages are ineligible for star results, including via an embedded third-party widget. Do not addaggregateRatingto your own business node. - A home address published against the owner's wishes.
- Several LocalBusiness nodes on one page that conflict.
Sources
- Local business structured data: https://developers.google.com/search/docs/appearance/structured-data/local-business (verified 2026-11-13)
- Review snippet (self-serving reviews): https://developers.google.com/search/docs/appearance/structured-data/review-snippet (verified 2026-11-13)
- Business Profile guidelines: https://support.google.com/business/answer/3038177 (verified 2026-11-13)
- Tips to improve local ranking: https://support.google.com/business/answer/7091 (verified 2026-11-13)
- schema.org LocalBusiness: https://schema.org/LocalBusiness ; areaServed: https://schema.org/areaServed ; OpeningHoursSpecification: https://schema.org/OpeningHoursSpecification (verified 2026-11-13)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

