Repository navigation
Labels
Description
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
#servicessection 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
- 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:andtel: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.
- 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. - Carry the signal to the editor's summary:
buildEditorSummaryRequest(packages/report/src/editor-summary.ts) addssinglePageSite: trueand the section count to thecoverageinput 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-sitefinding, 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.
-
buildEditorSummaryRequestsendscoverage.singlePageSite: trueand 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) andmake validatepasses indocs/. -
scripts/test-suites.ts --run rulesand--run restpass.
Skill: no change expected to the squirrelscan agent skill.
Activity
nc9 commentedon Oct 27, 2026
The cloud summary side of point 3 is tracked internally.
feat(rules): crawl/single-page-site, an unscored note for one-page si…
fix(rules): dedupe single-page sections with a Set, tidy the scoring …
test(rules): a same-host file link counts as another path; comment th…
perf(rules): stop counting sitemap URLs once there is more than one #…
feat(rules): crawl/single-page-site, an unscored note for one-page si…