agentleFS
darkweb19darkweb19/skills/site-architecture/SKILL.md

site-architecture

Skill0 starsChanged 28 days agoApache-2.0View on GitHub

When the user wants to audit, redesign, or plan their website's structure, URL hierarchy, navigation design, or internal linking strategy. Use when the user mentions 'site architecture,' 'URL structure,' 'internal links,' 'site navigation,' 'breadcrumbs,' 'topic clusters,' 'hub pages,' 'orphan pages,' 'silo structure,' 'information architecture,' or 'website reorganization.' Also use when someone has SEO problems and the root cause is structural (not content or schema). NOT for content strategy decisions about what to write (use content-strategy) or for schema markup (use schema-markup).

66 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use popups, free-tools and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CesarjoquinSkill

    popups

    When the user wants to create or optimize popups, modals, overlays, slide-ins, or banners for conversion purposes. Also use when the user mentions "exit intent," "popup conversions," "modal optimization," "lead capture popup," "email popup," "announcement banner," "overlay," "collect emails with a popup," "exit popup," "scroll trigger," "sticky bar," or "notification bar." Use this for any overlay or interrupt-style conversion element. For forms outside of popups, see cro. For general page conversion optimization, see cro.

    Also in 23 projects that use this

  • CesarjoquinSkill

    free-tools

    When the user wants to plan, evaluate, or build a free tool for marketing purposes — lead generation, SEO value, or brand awareness. Also use when the user mentions "engineering as marketing," "free tool," "marketing tool," "calculator," "generator," "interactive tool," "lead gen tool," "build a tool for leads," "free resource," "ROI calculator," "grader tool," "audit tool," "should I build a free tool," or "tools for lead gen." Use this whenever someone wants to build something useful and give it away to attract leads or earn links. For downloadable content lead magnets (ebooks, checklists, templates), see lead-magnets.

    Also in 24 projects that use this

  • coreyhaines31Skill

    marketing-council

    When the user wants multiple expert perspectives on a marketing question — a simulated board of advisors staffed by legendary marketers (Seth Godin, David Ogilvy, Eugene Schwartz, April Dunford, Rory Sutherland, Alex Hormozi, Byron Sharp, and more). Also use when the user mentions 'marketing council,' 'board of advisors,' 'advisory board,' 'what would Seth Godin say,' 'what would Ogilvy think,' 'channel Hormozi,' 'get multiple perspectives,' 'debate this,' 'have the council review,' 'marketing mentors,' or asks how a famous marketer would approach their problem. The council gives each advisor's take through their documented frameworks, surfaces where they disagree, and synthesizes a recommendation. For executing the winning direction, hand off to positioning, offers, copywriting, ads, or the relevant skill.

    Also in 18 projects that use this

  • ukunal91appSkill

    community-marketing

    Build and leverage online communities to drive product growth and brand loyalty. Use when the user wants to create a community strategy, grow a Discord or Slack community, manage a forum or subreddit, build brand advocates, increase word-of-mouth, drive community-led growth, engage users post-signup, or turn customers into evangelists. Trigger phrases: "build a community," "community strategy," "Discord community," "Slack community," "community-led growth," "brand advocates," "user community," "forum strategy," "community engagement," "grow our community," "ambassador program," "community flywheel.

    Also in 34 projects that use this

  • ukunal91appSkill

    revops

    When the user wants help with revenue operations, lead lifecycle management, or marketing-to-sales handoff processes. Also use when the user mentions 'RevOps,' 'revenue operations,' 'lead scoring,' 'lead routing,' 'MQL,' 'SQL,' 'pipeline stages,' 'deal desk,' 'CRM automation,' 'marketing-to-sales handoff,' 'data hygiene,' 'leads aren't getting to sales,' 'pipeline management,' 'lead qualification,' or 'when should marketing hand off to sales.' Use this for anything involving the systems and processes that connect marketing to revenue. For cold outreach emails, see cold-email. For email drip campaigns, see email-sequence. For pricing decisions, see pricing-strategy.

    Also in 43 projects that use this

  • +4 more from Cesarjoquin

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. 0 are common, 16 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 60 edited versions we read keep these.

  • 16

    Distinctive

    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
  1. Very specific:

    If .claude/product-marketing-context.md exists, read it before asking questions.

    line 19
  2. Distinctive:

    Do they have an existing site?

    line 24
  3. Distinctive:

    When a site exists and they need a structural assessment.

    line 44
  4. Very specific:

    Run scripts/sitemap_analyzer.py on their sitemap.xml (or paste sitemap content)

    line 46
  5. Distinctive:

    When building a new site or doing a full redesign/restructure.

    line 53
  6. Distinctive:

    When the structure is fine but they need to improve link equity flow and topical signals.

    line 62
  7. Very specific:

    Rule of thumb: If the category URL (/blog/email-marketing/) is not a real page you want to rank, don't create the directory.

    line 87
  8. Distinctive:

    Never use nav labels like "Resources" with no landing page — it should be a real, rankable resources page.

    line 133
  9. Distinctive:

    Add breadcrumbs to every non-homepage page.

    line 138
  10. Distinctive:

    Create site-wide upward internal links to category/hub pages

    line 140
  11. Distinctive:

    Every breadcrumb segment should be a real, crawlable link — not just styled text.

    line 145
  12. Distinctive:

    Create spoke content for each major sub-question within the topic

    line 175
  13. Distinctive:

    Every spoke links to the pillar with relevant anchor text

    line 176
  14. Distinctive:

    Add contextual links from relevant existing pages

    line 214
  15. Distinctive:

    Add them to relevant hub pages

    line 215
  16. Distinctive:

    If they truly have no home, consider whether they should exist at all

    line 216
  17. Distinctive:

    Not all internal links are equal.

    line 220
  18. Distinctive:

    All output follows the structured communication standard:

    line 275
  19. Distinctive:

    programmatic-seo: When you need to generate hundreds or thousands of pages systematically.

    line 288

“Common” is measured: kept by at least 6 in 10 of the 60 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Site Architecture & Internal Linking

You are an expert in website information architecture and technical SEO structure. Your goal is to design website architecture that makes it easy for users to navigate, easy for search engines to crawl, and builds topical authority through intelligent internal linking.

Before Starting

Check for context first: If .claude/product-marketing-context.md exists, read it before asking questions.

Gather this context:

1. Current State

  • Do they have an existing site? (URL, CMS, sitemap.xml available?)
  • How many pages exist? Rough estimate by section.
  • What are the top-performing pages (if they know)?
  • Any known problems: orphan pages, duplicate content, poor rankings?

2. Goals

  • Primary business goal (lead gen, e-commerce, content authority, local search)
  • Target audience and their mental model of navigation
  • Specific SEO targets — topics or keyword clusters they want to rank for

3. Constraints

  • CMS capabilities (can they change URLs? Does it auto-generate certain structures?)
  • Redirect capacity (if restructuring, can they manage bulk 301s?)
  • Development resources (minor tweaks vs full migration)

How This Skill Works

Mode 1: Audit Current Architecture

When a site exists and they need a structural assessment.

  1. Run scripts/sitemap_analyzer.py on their sitemap.xml (or paste sitemap content)
  2. Review: depth distribution, URL patterns, potential orphans, duplicate paths
  3. Evaluate navigation by reviewing the site manually or from their description
  4. Identify the top structural problems by SEO impact
  5. Deliver a prioritized audit with quick wins and structural recommendations

Mode 2: Plan New Structure

When building a new site or doing a full redesign/restructure.

  1. Map business goals to site sections
  2. Design URL hierarchy (flat vs layered by content type)
  3. Define content silos for topical authority
  4. Plan navigation zones: primary nav, breadcrumbs, footer nav, contextual
  5. Deliver site map diagram (text-based tree) + URL structure spec

Mode 3: Internal Linking Strategy

When the structure is fine but they need to improve link equity flow and topical signals.

  1. Identify hub pages (the pillar content that should rank highest)
  2. Map spoke pages (supporting content that links to hubs)
  3. Find orphan pages (indexed pages with no inbound internal links)
  4. Identify anchor text patterns and over-optimized phrases
  5. Deliver an internal linking plan: which pages link to which, with anchor text guidance

URL Structure Principles

The Core Rule: URLs are for Humans First

A URL should tell a user exactly where they are before they click. It also tells search engines about content hierarchy. Get this right once — URL changes later require redirects and lose equity.

Flat vs Layered: Pick the Right Depth

DepthExampleUse When
Flat (1 level)/blog/cold-email-tipsBlog posts, articles, standalone pages
Two levels/blog/email-marketing/cold-email-tipsWhen category is a ranking page itself
Three levels/solutions/marketing/email-automationProduct families, nested services
4+ levels/a/b/c/d/page❌ Avoid — dilutes crawl equity, confusing

Rule of thumb: If the category URL (/blog/email-marketing/) is not a real page you want to rank, don't create the directory. Flat is usually better for SEO.

URL Construction Rules

DoDon't
/how-to-write-cold-emails/how_to_write_cold_emails (underscores)
/pricing/pricing-page (redundant suffixes)
/blog/seo-tips-2024/blog/article?id=4827 (dynamic, non-descriptive)
/services/web-design/services/web-design/ (trailing slash — pick one and be consistent)
/about/about-us-company-info (keyword stuffing the URL)
Short, human-readableLong, generated, token-filled

Keywords in URLs

Yes — include the primary keyword. No — don't stuff 4 keywords in.

/guides/technical-seo-audit ✅ /guides/technical-seo-audit-checklist-how-to-complete-step-by-step ❌

The keyword in the URL is a minor signal, not a major one. Don't sacrifice readability for it.

Reference docs

See references/url-design-guide.md for patterns by site type (blog, SaaS, e-commerce, local).


Navigation Design

Navigation serves two masters: user experience and link equity flow. Most sites optimize for neither.

Navigation Zones

ZonePurposeSEO Role
Primary navCore site sections, 5-8 items maxPasses equity to top-level pages
Secondary navSub-sections within a sectionPasses equity within a silo
BreadcrumbsCurrent location in hierarchyEquity from deep pages upward
Footer navSecondary utility links, key service pagesSitewide links — use carefully
Contextual navIn-content links, related posts, "next step" linksMost powerful equity signal
SidebarRelated content, category listingMedium equity if above fold

Primary Navigation Rules

  • 5-8 items maximum. Cognitive load increases with every item.
  • Each nav item should link to a page you want to rank.
  • Never use nav labels like "Resources" with no landing page — it should be a real, rankable resources page.
  • Dropdown menus are fine but crawlers may not engage them deeply — critical pages need a clickable parent link.

Breadcrumbs

Add breadcrumbs to every non-homepage page. They do three things:

  1. Show users where they are
  2. Create site-wide upward internal links to category/hub pages
  3. Enable BreadcrumbList schema for rich results in Google

Format: Home > Category > Subcategory > Current Page

Every breadcrumb segment should be a real, crawlable link — not just styled text.


Silo Structure & Topical Authority

A silo is a self-contained cluster of content about one topic, where all pages link to each other and to a central hub page. Google uses this to determine topical authority.

Hub-and-Spoke Model

HUB: /seo/                          ← Pillar page, broad topic
  SPOKE: /seo/technical-seo/        ← Sub-topic
  SPOKE: /seo/on-page-seo/          ← Sub-topic
  SPOKE: /seo/link-building/        ← Sub-topic
  SPOKE: /seo/keyword-research/     ← Sub-topic
    └─ DEEP: /seo/keyword-research/long-tail-keywords/   ← Specific guide

Linking rules within a silo:

  • Hub links to all spokes
  • Each spoke links back to hub
  • Spokes can link to adjacent spokes (contextually relevant)
  • Deep pages link up to their spoke + the hub
  • Cross-silo links are fine when genuinely relevant — just don't build a link for its own sake

Building Topic Clusters

  1. Identify your core topics (usually 3-7 for a focused site)
  2. For each topic: one pillar page (the hub) that covers it broadly
  3. Create spoke content for each major sub-question within the topic
  4. Every spoke links to the pillar with relevant anchor text
  5. The pillar links down to all spokes
  6. Build the cluster before you build the links — if you don't have the content, the links don't help

Internal Linking Strategy

Internal links are the most underused SEO lever. They're fully under your control, free, and directly affect which pages rank.

Link Equity Principles

  • Google crawls your site from the homepage outward
  • Pages closer to the homepage (fewer clicks away) get more equity
  • A page with no internal links is an orphan — Google won't prioritize it
  • Anchor text matters: generic ("click here") signals nothing; descriptive ("cold email templates") signals topic relevance

Anchor Text Rules

TypeExampleUse
Exact match"cold email templates"Use sparingly — 1-2x per page, looks natural
Partial match"writing effective cold emails"Primary approach — most internal links
Branded"our email guide"Fine, not the most powerful
Generic"click here", "learn more"Avoid — wastes the signal
Naked URLhttps://example.com/guideNever use for internal links

Finding and Fixing Orphan Pages

An orphan page is indexed but has no inbound internal links. It's invisible to the site's link graph.

How to find them:

  1. Export all indexed URLs (from GSC, Screaming Frog, or sitemap_analyzer.py)
  2. Export all internal links on the site
  3. Pages that appear in set A but not set B are orphans
  4. Or: run scripts/sitemap_analyzer.py which flags potential orphan candidates

How to fix them:

  • Add contextual links from relevant existing pages
  • Add them to relevant hub pages
  • If they truly have no home, consider whether they should exist at all

The Linking Priority Stack

Not all internal links are equal. From most to least powerful:

  1. In-content links — within the body copy of a relevant page. Most natural, most powerful.
  2. Hub page links — the pillar page linking to all its spokes. High equity because pillar pages are linked from everywhere.
  3. Navigation links — sitewide, consistent, but diluted by their ubiquity.
  4. Footer links — sitewide, but Google gives them less weight than in-content.
  5. Sidebar links — OK but often not in the main content flow.

See references/internal-linking-playbook.md for patterns and scripts.


Common Architecture Mistakes

MistakeWhy It HurtsFix
Orphan pagesNo equity flows in, Google deprioritizesAdd contextual internal links from related content
URL changes without redirectsInbound links become broken, equity lostAlways 301 redirect old URLs to new ones
Duplicate paths/blog/seo and /resources/seo covering same topicConsolidate with canonical or merge content
Deep nesting (4+ levels)Crawl equity diluted, users confusedFlatten structure, remove unnecessary directories
Sitewide footer links to every postFooter equity is diluted across 500 linksFooter should link to high-value pages only
Navigation that doesn't match user intentUsers leave, rankings dropRun card-sort tests — let users show you their mental model
Homepage linking nowhereHome is highest-equity page — use itLink from home to key hub pages
Category pages with no contentThin pages rank poorlyAdd content to all hub/category pages
Dynamic URLs with parameters?sort=&filter= creates duplicate contentCanonicalize or block with robots.txt

Proactive Triggers

Surface these without being asked:

  • Pages more than 3 clicks from homepage → flag as crawl equity risk. Any page a user has to click 4+ times to reach needs a structural shortcut.
  • Category/hub page has thin or no content → hub pages without real content don't rank. Flag and recommend adding a proper pillar page.
  • Internal links using generic anchor text ("click here", "read more") → wasted signal. Offer to rewrite anchor text patterns.
  • No breadcrumbs on deep pages → missing upward equity links and BreadcrumbList schema opportunity.
  • Sitemap includes noindex pages → sitemap should only contain pages you want indexed. Flag and offer to filter.
  • Primary nav links to utility pages (contact, privacy) → pushing equity to low-value pages. Nav should prioritize money/content pages.

Output Artifacts

When you ask for...You get...
Architecture auditStructural scorecard: depth distribution, orphan count, URL pattern issues, navigation gaps + prioritized fix list
New site structureText-based site tree (hierarchy diagram) + URL spec table with notes per section
Internal linking planHub-and-spoke map per topic cluster + anchor text guidelines + orphan fix list
URL redesignBefore/after URL table + 301 redirect mapping + implementation checklist
Silo strategyTopic cluster map per business goal + content gap analysis + pillar page brief

Communication

All output follows the structured communication standard:

  • Bottom line first — answer before explanation
  • What + Why + How — every finding has all three
  • Actions have owners and deadlines — no "we should consider"
  • Confidence tagging — 🟢 verified / 🟡 medium / 🔴 assumed

Related Skills

  • seo-audit: For comprehensive SEO audit covering technical, on-page, and off-page. Use seo-audit when architecture is one of several problem areas. NOT for deep structural redesign — use site-architecture.
  • schema-markup: For structured data implementation. Use after site-architecture when you want to add BreadcrumbList and other schema to your finalized structure.
  • content-strategy: For deciding what content to create. Use content-strategy to plan the content, then site-architecture to determine where it lives and how it links.
  • programmatic-seo: When you need to generate hundreds or thousands of pages systematically. Site-architecture provides the URL and structural patterns that programmatic-seo scales.
  • seo-audit: For identifying technical issues. NOT for architecture redesign planning — use site-architecture for that.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.