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.

referencesmigration.md

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

Bringing an existing site onto the page system

Most sites are not new. This is the order to move a live site onto the patterns without losing what it already ranks for, one template at a time, each proven before the next.

The order

  1. Baseline. clickd_site({ site }), clickd_brief({ site }) and clickd_pages({ site }), kept as they came back. With no key, the site's report at https://clickd.com/report/<domain>. Save the list of live addresses too: the sitemap, and clickd_map({ site }), which is listed at https://clickd.com/mcp/all (connect that address in place of /mcp to see it; every tool name answers at either address).
  2. Group pages by template. For each template, the addresses it makes and the kind clickd files them under (clickd_pages({ site, kind: "service" })). A template whose pages are filed under the wrong kind is checked against too few rules: fix the kind first (step 1 of the skill).
  3. Rank the templates. Work first on the template with the most pages failing the heaviest rules. clickd_pages({ site, failing: "<rule>" }) for each failing rule in the brief shows which template the failures share.
  4. The frame first. The shared layout touches every page at once and changes no address: title, description, canonical, landmarks, share tags, one h1 out of the header. Ship it alone and check it.
  5. One template at a time. The outline, the structured data and the links for one kind of page; ship, rescan, compare; then the next.
  6. Addresses last, and only if they must change. See below.

Each step is small enough to undo by reverting one change. Never mix a frame change and an address change in one release: if traffic moves, you will not know which did it.

What not to change while migrating

  • An address that already ranks, unless it is wrong in a way that costs more than the move.
  • The copy's meaning, prices, policies or offers. Move a paragraph under its question; do not rewrite what it says without the person.
  • noindex on a page that has it, until the person says the page should be found.
  • Anything a second system owns: a plugin's markup, a CMS field, a theme's settings. Find where it is made and change it there, or turn the plugin's part off; never patch its output after the fact.

When an address has to move

Google's guide to moving a site lays out the same steps for a few pages as for a whole domain.

  1. Map every old address to its one new address, from the sitemap, the server logs and analytics. Images and files count.
  2. Redirect each old address to its new one with a permanent, server-side redirect (301 or 308) in one hop. Never send a set of pages to the home page.
  3. Change the links in the site's own pages, menus and sitemap to the new addresses, so nothing leans on the redirect (direct-links).
  4. Each new page has a canonical to itself, and the sitemap lists the new addresses only.
  5. Keep the redirects for as long as possible, generally at least a year.

Check every mapped address with https://clickd.com/redirect-checker?url=<old address>: one hop, permanent, landing on a page that answers 200.

Where the parts live, by platform

Only what is genuinely different on each. Everywhere else the patterns are plain HTML.

Next.js (App Router)

  • Title, description, canonical (alternates.canonical) and share tags (openGraph, twitter) from export const metadata or generateMetadata in layout or page, so each page's values come from its own data. Both work only in server components.
  • JSON-LD as a <script type="application/ld+json"> in the page's server component, built from the page's data, with JSON.stringify(data).replace(/</g, '\\u003c') so no value can close the tag. Next.js's own guide gives exactly this.
  • A server component sends its text in the HTML. A client component that fetches its text after load does not: keep the page's words out of useEffect.
  • app/sitemap.ts and app/robots.ts make both files from the same data as the pages.

Shopify (Liquid themes)

  • The frame is layout/theme.liquid, the layout every template is drawn through: content_for_layout is where each page's own content goes, inside <main>.
  • JSON-LD values through the json filter, {{ product.title | json }}, which quotes and escapes them. Shopify's documentation says it escapes quotes; it says nothing of </script>, so do not pass raw HTML fields such as a description with tags into it.
  • Product data is the job of the clickd skill's shop-ready guide (references/shop-ready.md).

WordPress

  • Before writing any JSON-LD or meta tags, view the page's source and see whether a plugin already writes them. Two plugins, or a plugin and the theme, each writing an Organization give two answers: keep one and turn the other off in its settings.
  • Escape JSON-LD with wp_json_encode.

A single page app

  • Every page needs its own address the server can answer with that page's HTML: server rendering or prerendering, not a shell that a script fills in.
  • noindex must not be in the HTML the server sends if the page should be found. Google may skip rendering a page that says noindex, so a script that removes it later may never run.
  • A missing page answers 404 from the server, or the script sends it to an address that does.

Proving each release

After each release goes live:

clickd_rescan({ site, reason: "frame: canonical, landmarks, one h1" })
clickd_changes({ site, job })                       every minute or two until it says done, then rules now passing, rules newly failing, pages added and removed
clickd_pages({ site, failing: "<rule>" })           any page of the template still failing
  • A rule newly failing is the first thing to read. A frame change that adds a second h1 site-wide, or a canonical with the wrong host, shows here on every page at once.
  • Pages removed that should not be: an address that now redirects or answers 404. Check it before the next release.
  • A site is read at most once every ten minutes.

Sources

  • How to move a site: mapping old addresses, permanent server-side redirects in one hop, updating links and sitemaps, and keeping redirects a year or more.
  • Redirects and Google Search: which redirects Google reads as permanent and which as temporary, and why server-side is best.
  • How to implement JSON-LD in your Next.js application: Next.js's own guide to JSON-LD in a server component, with the < escape.
  • generateMetadata: the metadata object and function, the canonical and share fields, and that they run only in server components.
  • sitemap.xml: app/sitemap.ts, a sitemap made by a function from the site's data.
  • robots.txt: app/robots.ts, with the line that names the sitemap.
  • Layouts: theme.liquid as the layout every template is drawn through.
  • Liquid filters: json: what Shopify's json filter escapes, and what it does not say it escapes.

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