Index of every page on this site: llms.txt
All skills
subinternal avatar

/clickd-page-system

@a37d423
by subinternalsubinternal/clickd2 stars
1
Run it yourself

Builds a site's page templates and shared components so search engines and AI assistants read every page well, and proves each pattern with clickd. Covers one h1 and a real outline, landmarks, an answer-first opening, structured data for each kind of page, share tags, canonical and indexing, internal links and hubs, images, speed and contrast, spacing on one scale with an even rhythm, and moving an existing site onto it a template at a time. Use when building or reworking a site's layout, page templates, components or design system, adding a new kind of page, or when clickd findings point at a shared template. About the structure of pages and their spacing, not their color, type or brand.

Use this Skill: https://skilld.dev/gh/subinternal/clickd/clickd-page-system

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesoutline-and-accessibility.md

≈1.8k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Outline, landmarks and accessibility

A page's outline is what a screen reader lists, what a crawler takes as the page's parts, and what an assistant lifts a passage from. The same markup serves all three. This file is for step 3 of the skill, and for the landmarks in step 2.

How clickd reads the outline

Knowing what code counts saves guessing.

  • one-h1 counts every h1 in the whole HTML the server sends, header and footer included, not only those in <main>. A logo wrapped in an h1, or a second h1 in a mobile menu that is hidden by CSS, is a second h1.
  • The page's own text is what is inside <main>, with nav, form, script, style, noscript and template taken out. With no <main>, it is the <body> less its top-level header, footer and aside. Word counts (content-in-html, depth) and lists (liftable-blocks) are read from there.
  • question-headings looks at the h2, h3 and summary elements inside the content for one that ends in a question mark.
  • answer-first finds the first h2 that is a question and counts the words of the first paragraph after it: 25 to 90 words passes. Code checks only place and length; whether it truly answers is the judge's rule, answers-the-question, or a person's read.

clickd_rules() gives each rule's current wording. If it says something different from this file, it is right.

The outline, worked

Before: sizes chosen by look, a logo as the h1, the answer after a picture.

<header><h1 class="logo">Hollow Creek Drainage</h1></header>
<main>
  <h1>French Drains</h1>
  <h4>Fast, reliable service</h4>
  <img src="/img/hero.jpg">
  <h3>How deep should a french drain be?</h3>
  <div class="cta">Call now!</div>
  <p>It depends on many factors.</p>
</main>

After: one h1, levels in order, the answer right under its question.

<header><a class="logo" href="/">Hollow Creek Drainage</a></header>
<main id="content">
  <h1>French drain installation in St. Louis</h1>
  <p>We dig and lay french drains for homes and small businesses across St. Louis and St. Charles counties.</p>
  <figure><img src="/img/drain-trench.jpg" alt="A trench lined with fabric and gravel beside a house foundation" width="1200" height="800" fetchpriority="high"></figure>
  <h2>How deep should a french drain be?</h2>
  <p>Most french drains are dug 18 to 24 inches deep and 6 to 12 inches wide, deeper where they carry water away from a basement wall. The slope matters more than the depth: about one inch of fall for every eight feet of run, so water keeps moving to the outlet.</p>
  <h3>When a deeper drain is needed</h3>
  <p>...</p>
  <h2>How much does a french drain cost?</h2>
  <p>...</p>
</main>
  • The heading's look comes from a class, never from picking a level. MDN says it plainly: do not use heading elements to resize text.
  • An h3 sits under an h2; a new h2 may follow an h3 or h4, since that closes a section. Going down skips no level.
  • A sidebar or footer that repeats on every page keeps the same heading levels on every page, whatever the content is.
  • Headings come from the page's data. A template that types "Why choose us" into every page gives every page the same outline and adds shared text that counts against pages-are-distinct.

Landmarks

<body>
  <a class="skip" href="#content">Skip to the content</a>
  <header>...<nav aria-label="Main">...</nav></header>
  <main id="content">...</main>
  <aside aria-labelledby="related">...</aside>
  <footer><nav aria-label="Site">...</nav></footer>
</body>
  • One <main>, top-level, not inside another landmark.
  • header and footer are the page's banner and footer only when their parent is body. Inside <article> or <main> they are just part of that content.
  • Two nav elements each get their own label. The label does not repeat the role: "Main", not "Main navigation", since a screen reader already says "navigation".
  • Every piece of the page sits inside some landmark, so nothing is skipped by someone moving landmark to landmark.
  • The skip link is the first thing in body and points at <main>'s id. WCAG 2.2 success criterion 2.4.1 asks for a way past blocks repeated on every page.

Language, names and focus

  • <html lang="en">, or the page's real language, set per page on a site in several. WCAG 2.2 success criterion 3.1.1 asks that the page's language can be read by software.
  • Every link and button has words a person can read out of context: "French drain prices", not "Read more". An icon-only control has an aria-label.
  • A form field has a <label>, never a placeholder alone.
  • A sticky header must not cover the element that has keyboard focus. WCAG 2.2 success criterion 2.4.11 asks that a focused control is not entirely hidden.
  • Text and its background meet 4.5 to 1, large text 3 to 1, in every theme (success criterion 1.4.3). Measure with a contrast tool in each theme; do not judge it by eye.

Accordions, tabs and hidden text

  • An accordion built on <details> and <summary> keeps its text in the HTML, and clickd reads a summary that ends in a question mark as a question heading.
  • Tabs or accordions that fetch their panel by script on click put nothing in the HTML for a crawler. Render every panel on the server and hide with CSS or hidden.
  • Text hidden from everyone is not content. Do not mark up an FAQ that is in a closed panel the server never sends.

Check it

What How Pass Fail
One h1 and the order https://clickd.com/h1-checker?url=<page> One h1, no level skipped going down Two h1, or an h2 then an h4
What a crawler gets https://clickd.com/agent-view?url=<page>, or clickd_check({ kind: "agent", url }) The main text, headings in order, the answer under the first question A shell a script fills in, or the menu as the text
h1 count in the raw HTML curl -s <page> | grep -o '<h1' | wc -l 1 0, or 2 and more
Every template at once clickd_pages({ site, failing: "one-h1" }) An empty list Pages of one template, which points at that template

The curl count reads the HTML the server sends, which is what clickd and most AI crawlers read. A browser's inspector shows the page after scripts ran, which can differ.

Sources

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts22d3 checks · Risk SAFE
  • Gen Agent Trust Hub22d

    The skill provides a structured framework and local scripts for auditing website templates to improve SEO and AI readability. It includes a measurement script for layout analysis and utilizes external auditing tools from clickd.com.

  • Socket22d

    No alerts

  • Snyk22d

    Risk: LOW · No issues

Signed by skilld at a37d423. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 3 weeks ago
metadata
{
  "author": "subinternal",
  "version": "2.3.0"
}

README badge

README badge for subinternal/clickd/clickd-page-system