Skip to content

Detect single-page sites: unscored finding plus a summary signal #1209

Description

@nc9

Problem

When a site is a single page, the audit gives correct results ("Scanned 1 of 1 discovered page"), but nothing in the report tells the owner that being a single page is itself a limitation, or why. Many owners think of their one-page site as "a bunch of pages", meaning its sections (#about, #services, #contact), and are surprised the audit read one page.

The cost is real and not obvious:

  • Search engines index URLs, not fragments. A #services section can't rank, show in results, or be deep-linked from a search result on its own.
  • The whole site has one <title>, one meta description and one topic signal.
  • AI agents and answer engines cite URLs, so the site offers one thing to cite.

This shouldn't be a scored problem. Single-page sites are often deliberate (landing pages, portfolios, events, small projects), and a penalty would nag owners about content strategy rather than flag a defect.

Proposal

  1. Detect a single-page site deterministically, from data the crawl already has. All of these must hold:
    • the crawl completed: not capped, not time-stopped, no unfetched pages;
    • exactly one HTML page was fetched in scope;
    • the sitemap, if any, lists at most one in-scope URL;
    • the fetched page has no same-site links to another path (only fragment, external, mailto: and tel: links);
    • the page has 3 or more fragment links that resolve to element ids on the page (a sectioned page, where some sections could stand as pages). A plain one-section page doesn't trigger it.
  2. Add an informational, unscored finding (suggested id crawl/single-page-site) that has no effect on the health score or category scores. It lists the in-page sections found (fragment ids, up to 10). The solution text explains the indexing trade-off above in plain terms, and says that if any section is something the owner wants found in search or cited by agents, they should give it its own page with its own title and description. If the single page is deliberate, nothing needs to change.
  3. Carry the signal to the editor's summary: buildEditorSummaryRequest (packages/report/src/editor-summary.ts) adds singlePageSite: true and the section count to the coverage input when the detection holds, so the cloud summary can say "this site is a single page" instead of treating one page as a thin audit. The private service change is tracked internally.

Acceptance Criteria

  • A fixture site with one page, no sitemap or a one-URL sitemap, no same-site path links, and 3+ fragment links to section ids produces the crawl/single-page-site finding, listing the section ids.
  • The finding is informational: health score and category scores are identical with and without it.
  • No finding when the crawl was capped or time-stopped, or left URLs unfetched.
  • No finding when the page links to another same-site path, even if that path 404s.
  • No finding for a one-page site with fewer than 3 in-page section links.
  • No finding for a multi-page site.
  • buildEditorSummaryRequest sends coverage.singlePageSite: true and the section count only when the finding fires, and omits both otherwise. The existing request tests are unchanged.
  • Rule added in all four places (rule file, category index, docs page under docs/rules/crawl/, rule counts) and make validate passes in docs/.
  • scripts/test-suites.ts --run rules and --run rest pass.

Skill: no change expected to the squirrelscan agent skill.

Activity

  1. added
    enhancement
    size: M
    rules
    on Oct 27, 2026
  2. nc9 commented on Oct 27, 2026

    @nc9
    ContributorAuthor

    The cloud summary side of point 3 is tracked internally.

  3. added theissue type on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementrulessize: M

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions