Skip to content

docs(glossary): add glossary index, rule-category hubs and term pages - #1082

Merged
nc9 merged 15 commits into
mainfrom
feat/docs-glossary-integration
Oct 23, 2026
Merged

nc9 merged 15 commits into
mainfrom
feat/docs-glossary-integration

Conversation

@nc9

@nc9 nc9 commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a docs glossary and upgrades every rule-category hub, built from one data file.

  • /glossary: an A to Z index of every term, each with its definition and the rules that check it, under stable \{#slug\} anchors.
  • /glossary/<slug>: term pages for the terms that span several rules or carry a definitional query. Each has a definition, why it matters, how squirrelscan checks it (generated rule table), how to fix it, a runnable squirrel audit --rule-include ... command, related terms and references.
  • /rules/<category> hubs upgraded in place (same URLs, no redirects): search-intent titles plus sidebarTitle, "Run only these rules", generated "Where to start" and rule tables, key terms, related categories and learn-more links. Hubs state no rule counts in prose and use no category Cards, so the private rule-count guard is unaffected. The performance and agents score-group pages get distinct titles too (fixes the duplicate "Performance" title).
  • New Glossary tab in docs.json, between Rules and Reference.
  • docs/scripts/glossary.ts (--write / --check) generates the marker-delimited blocks from docs/scripts/glossary/terms.json and hubs.json, and --check is chained into bun run check and make validate. It also fails on any .md/.mdx under docs/scripts/, so author notes cannot be published as pages.

Counts

  • 119 terms: 64 term pages, 55 index-only entries
  • 23 category hubs (25 rules/*/index.mdx files, including the performance and agents group pages)
  • 289 of 313 rules linked from at least one term
  • 97 files changed (65 new glossary pages)

Checks

  • bun x [email protected] check --strict: pass (501 pages)
  • bun scripts/check-links.ts: pass
  • bun scripts/glossary.ts --check: pass (64/64 term pages); --write is idempotent
  • bun test ./scripts/glossary.test.ts ./scripts/check-links.test.ts: 52 pass
  • packages/rules/tests/docs-rule-pages.test.ts and docs-category-table.test.ts: pass
  • Private rule-count-consistency.test.ts run against this branch: 133 pass
  • Prose gate on all 90 changed pages: 0 findings (no em-dashes)

Size

This is over 6000 lines; Nik approved landing it as one PR.

Agent skill

The squirrelscan agent skill (squirrelscan/skills) needs no change.

Closes #19

Refs squirrelscan/repo#3138 squirrelscan/repo#3139 squirrelscan/repo#3140 squirrelscan/repo#3141 squirrelscan/repo#3142 squirrelscan/repo#3143 squirrelscan/repo#3144 squirrelscan/repo#3145 squirrelscan/repo#3146 squirrelscan/repo#3147 squirrelscan/repo#3148 squirrelscan/repo#3149

nc9 added 15 commits October 24, 2026 07:45
/glossary lists all 119 terms A to Z with their definitions, aliases and the
rules that check each one, generated by glossary.ts. Every entry has an
explicit id, so /glossary#<slug> links stay stable. The Glossary tab (icon
book-a) sits after Rules; term pages join it as they are written.

scripts/glossary/term-template.mdx and AUTHORING.md (not published) show
where the generated markers go, the word budget and the copy rules.

Closes #19

Signed-off-by: Nik Cubrilovic <[email protected]>
Nine term pages: agent experience (AX), generative engine optimization
(GEO), llms.txt, AI crawler, client-side rendering, robots.txt, structured
data, JSON-LD and geo meta tags. Each opens with a one-sentence definition,
says why it matters, how squirrelscan checks it and how to fix it, with the
rules table, run command, category line and related terms generated by
glossary.ts. The GEO page says no rule measures GEO and lists the rules that
bear on it; GEO and geo meta tags link each other.

The Glossary tab gains Agent experience and SEO groups, and the index links
each written term to its page.

Signed-off-by: Nik Cubrilovic <[email protected]>
/rules/ax keeps its intro, scoring note and five pillars, and gains an intent
title and sidebarTitle from hubs.json, a "Run only these rules" section
(--rule-include ax, which also selects the ai/* rules), and generated
"Where to start", rules table (14 ax/* and 4 ai/* rules), and key terms
blocks. The rule CardGroup is replaced by the table; related categories and
"Learn more" are inline links, so the hub has no category Cards and states
no rule count.

/rules/agents gets a distinct title ("Agents score group: how agent
experience is scored") with sidebarTitle "Agents", and colons for the pillar
list's spaced hyphens.

Signed-off-by: Nik Cubrilovic <[email protected]>
Upgrade /rules/perf and /rules/images to the hub template: intent titles
from hubs.json, Run only these rules, generated Where to start, rule table
and key terms, related categories and Learn more. The perf hub states that
squirrelscan flags causes and does not measure LCP, INP or CLS.

Retitle /rules/performance so it no longer shares a title with /rules/perf,
correct its claim that some perf rules need browser rendering, and drop the
two duplicate-title baseline entries.

Signed-off-by: Nik Cubrilovic <[email protected]>
Upgrade six category hubs to the hub template: intent titles from
hubs.json, Run only these rules, generated Where to start, rule table and
key terms, related categories and Learn more. The links hub keeps Link
checking defaults unchanged; the local hub disambiguates geo meta tags
from GEO.

Signed-off-by: Nik Cubrilovic <[email protected]>
…hubs #3145

Upgrade seven category hubs to the hub template: intent titles from
hubs.json, Run only these rules, generated Where to start, rule table and
key terms, related categories and Learn more. The a11y hub drops its
stated rule count and says the checks cover part of WCAG, not
conformance; the eeat hub says squirrelscan does not measure E-E-A-T.
The content hub lists the retired content/quality rule. Both baseline
entries for these hubs are removed.

Signed-off-by: Nik Cubrilovic <[email protected]>
… and gaps hubs #3145

Upgrade the remaining seven category hubs to the hub template. Security
keeps its category Cards and its guarded count sentence unchanged;
integrity keeps Correlation gating; gaps keeps Enable gap analysis and
Options and says the gap rules currently never run (#1067). The
integrity intro now says cloaking and known-malicious-url read opt-in
probes that send requests.

Signed-off-by: Nik Cubrilovic <[email protected]>
Nine term pages: core-web-vitals, lcp, inp, cls, lazy-loading,
responsive-images, alt-text, render-blocking-resources, http-caching.
Generated nav, index links and related-term lines from glossary.ts --write.

Signed-off-by: Nik Cubrilovic <[email protected]>
Nine term pages: xml-sitemap, lastmod, noindex, robots-meta-tag,
indexability, crawl-budget, redirect-chain, http-status-code,
canonical-url. Generated nav, index links and related-term lines from
glossary.ts --write.

Signed-off-by: Nik Cubrilovic <[email protected]>
Twelve term pages: duplicate-content, title-tag, meta-description,
heading-hierarchy, character-encoding, open-graph, internal-linking,
orphan-page, broken-link, anchor-text, url-slug, hreflang. Generated
nav, index links and related-term lines from glossary.ts --write.

Signed-off-by: Nik Cubrilovic <[email protected]>
…tent #3148

Eleven term pages: thin-content, content-freshness, rich-results,
product-schema, organization-schema, local-business-schema, entity,
entity-id, e-e-a-t, ymyl, nap-consistency. Generated nav, index links
and related-term lines from glossary.ts --write.

Signed-off-by: Nik Cubrilovic <[email protected]>
…essibility and mobile #3149

Fourteen term pages. Security, integrity and legal: https,
security-headers, content-security-policy, hsts, cookie-attributes,
leaked-secrets, hacked-site, cookie-consent. Accessibility and mobile:
wcag, aria, accessible-name, color-contrast, viewport-meta-tag,
mobile-friendly. Generated nav, index links and related-term lines from
glossary.ts --write.

Signed-off-by: Nik Cubrilovic <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

PR too large for auto-review

This PR is 97 changed files (limit 80) and 8927 changed lines (limit 6000), so the automated reviewer was skipped: past that size it runs out of turns mid-session and posts nothing, which is worse than saying so.

Run it manually (/review, or a focused review per area) before merging, or split the PR.

Diff measured: 97 reviewable files, 8927 changed lines (0 generated files ignored).

nc9 added a commit that referenced this pull request Nov 17, 2026
…t --publish through the audit guard #1082

squirrel report rebuilt a rule-filtered audit without meta.partialAudit, so
report --publish sent a partial score with no marker. The marker is now saved
in the crawl's scan scope (no migration, like startRedirect) and restored by
reconstruct; report --publish decides through resolvePublishDecision.

Renumbers this PR's schema version to 1.25 (1.24 is meta.discovered, #2019),
fixes the docs claims for the report path and adds the CHANGELOG entry.

Signed-off-by: Nik Cubrilovic <[email protected]>
nc9 added a commit that referenced this pull request Nov 17, 2026
…t --publish through the audit guard #1082

squirrel report rebuilt a rule-filtered audit without meta.partialAudit, so
report --publish sent a partial score with no marker. The marker is now saved
in the crawl's scan scope (no migration, like startRedirect) and restored by
reconstruct; report --publish decides through resolvePublishDecision.

Renumbers this PR's schema version to 1.25 (1.24 is meta.discovered, #2019),
fixes the docs claims for the report path and adds the CHANGELOG entry.

Signed-off-by: Nik Cubrilovic <[email protected]>
nc9 added a commit that referenced this pull request Nov 17, 2026
…t --publish through the audit guard #1082

squirrel report rebuilt a rule-filtered audit without meta.partialAudit, so
report --publish sent a partial score with no marker. The marker is now saved
in the crawl's scan scope (no migration, like startRedirect) and restored by
reconstruct; report --publish decides through resolvePublishDecision.

Renumbers this PR's schema version to 1.25 (1.24 is meta.discovered, #2019),
fixes the docs claims for the report path and adds the CHANGELOG entry.

Signed-off-by: Nik Cubrilovic <[email protected]>
nc9 added a commit that referenced this pull request Nov 17, 2026
…t --publish through the audit guard #1082

squirrel report rebuilt a rule-filtered audit without meta.partialAudit, so
report --publish sent a partial score with no marker. The marker is now saved
in the crawl's scan scope (no migration, like startRedirect) and restored by
reconstruct; report --publish decides through resolvePublishDecision.

Renumbers this PR's schema version to 1.25 (1.24 is meta.discovered, #2019),
fixes the docs claims for the report path and adds the CHANGELOG entry.

Signed-off-by: Nik Cubrilovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Idea: Add Glossary page

1 participant