local-business-internal-linking

Generate CMS-sourced related area, service, and post blocks with in-body cross-links.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/redbananastudios/ai-library --skill local-business-internal-linking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: local-business-internal-linking
Source: https://github.com/redbananastudios/ai-library/tree/main/skills/local-business-seo/skills/local-business-internal-linking
Command: npx skills add https://github.com/redbananastudios/ai-library --skill local-business-internal-linking

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It prevents local service websites from falling into “link rot” by automating internal linking between related areas, services, and blog posts using CMS-driven lists instead of manual, error-prone spreadsheets.

Core Features & Use Cases

  • Automated 4+4+3 related blocks: Renders RelatedAreas (4 items ordered by distance), RelatedServices (4 sibling services excluding the current one), and RelatedPosts (3 latest published insights excluding the current one).
  • In-body cross-link rule: Ensures area pages include at least two nearby area mentions in flowing prose with varied anchor text to avoid templated or duplicate anchors.
  • Anti-pattern prevention: Guards against hardcoded link lists, duplicate anchor text, accidental duplication of blocks, and empty or overly broad cross-linking.

Quick Start

Use the local-business-internal-linking pattern to wire CMS-driven RelatedAreas, RelatedServices, and RelatedPosts blocks into your local service page templates, and then enforce the in-body rule so each area page mentions at least two nearby areas with varied anchor text.

Frequently Asked Questions about local-business-internal-linking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate internal linking for local business websites without manual spreadsheets?

Prevent link rot by replacing hardcoded link lists with CMS-sourced queries that automatically render related areas, services, and posts blocks. This ensures your internal linking stays in sync with content changes without manual spreadsheet updates.

What is the best way to structure CMS queries for related service and area pages?

Structure CMS queries with ordered exclusion logic, using stable sorting fields like distanceFromHqMiles for areas and publishedAt for posts. This ensures related blocks display contextually accurate items while always excluding the current page.

How do I avoid duplicate anchor text and SEO anti-patterns in automated internal links?

Avoid duplicate anchor text by enforcing varied anchor text rules and requiring in-body cross-links with nearby area mentions. This prevents templated links and ensures your automated internal linking follows SEO best practices.

Can I use Sanity GROQ queries to build related content blocks for local service pages?

Yes, you can use Sanity GROQ queries to build related content blocks. The system requires ordered CMS queries with exclusion logic to dynamically generate related areas, services, and posts blocks for your local service pages.

When should I add in-body cross-links to local area pages?

Add in-body cross-links to area pages when publishing long-form content. You must include at least two nearby area mentions in flowing prose to satisfy contextual linking requirements and avoid empty cross-linking anti-patterns.