Repository navigation
docs(glossary): add glossary index, rule-category hubs and term pages - #1082
Merged
Merged
Conversation
/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]>
…st #3139 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]>
…rm set #3146 Signed-off-by: Nik Cubrilovic <[email protected]>
… review findings #3139 Signed-off-by: Nik Cubrilovic <[email protected]>
Contributor
PR too large for auto-reviewThis 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 ( Diff measured: 97 reviewable files, 8927 changed lines (0 generated files ignored). |
This was referenced Oct 23, 2026
Closed
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 runnablesquirrel audit --rule-include ...command, related terms and references./rules/<category>hubs upgraded in place (same URLs, no redirects): search-intent titles plussidebarTitle, "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).docs.json, between Rules and Reference.docs/scripts/glossary.ts(--write/--check) generates the marker-delimited blocks fromdocs/scripts/glossary/terms.jsonandhubs.json, and--checkis chained intobun run checkandmake validate. It also fails on any.md/.mdxunderdocs/scripts/, so author notes cannot be published as pages.Counts
rules/*/index.mdxfiles, including the performance and agents group pages)Checks
bun x [email protected] check --strict: pass (501 pages)bun scripts/check-links.ts: passbun scripts/glossary.ts --check: pass (64/64 term pages);--writeis idempotentbun test ./scripts/glossary.test.ts ./scripts/check-links.test.ts: 52 passpackages/rules/tests/docs-rule-pages.test.tsanddocs-category-table.test.ts: passrule-count-consistency.test.tsrun against this branch: 133 passSize
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