website-conventions
Rules every website follows: light and dark mode, own imprint and privacy pages with fixed routes and locale redirects, a footer on every page, and nothing built that the shared web library provides.
Files1
View on GitHubSKILL.mdskills/conventions/website-conventions/SKILL.md
GitHubWebsite conventions
One rule set for every website, so each site is built and reviewed the same way.
When to use
- Building a website or a landing page.
- Adding or changing an imprint, privacy or terms page.
- Reviewing a website against the baseline.
- A site needs a feature the shared web library might already offer.
Rules
Shared web library
- A site implements nothing the shared web library provides or will provide.
- A missing piece is an issue in the shared web library first. The site waits or uses the released version. It never keeps a private copy.
- The redirect set comes from the shared web library, not from the site.
- The library never ships legal texts.
Theme
- Every site offers light and dark mode with the shared theme and the theme switch.
Legal pages
- Every site has its own imprint and privacy statement, and its own terms when it sells something.
- The texts are written for that site's features and live in its repository.
- The texts are never shared between sites and never shipped by the library.
- The owner reviews every text before it goes live. The texts are not legal advice.
- The pages exist in German and English.
- The page texts are site content in both languages. The repository language rule covers code and documentation only.
- The terms page exists only for a site that sells something. Otherwise
/termsand/agbare both left out. - The imprint has no dispute resolution section. No arbitration statement, no online dispute platform link.
Routes
- English names:
/imprint,/privacy,/terms. - German aliases:
/impressumfor the imprint,/datenschutzand/datenschutzerklaerungfor privacy,/agbfor the terms. - Every unprefixed path and every alias redirects server side to the page of the negotiated
locale,
/de/...or/en/.... - Example:
/impressumgoes to/de/imprintfor a German visitor and to/en/imprintfor an English one. - The locale comes from the visitor's choice, then the
Accept-Languageheader, then the site default.
Footer
- A footer on every page links the imprint, the privacy page and, where present, the terms.
Steps
Build a site
- Find the web library the site depends on, from its dependency file. Check that its released version supports the routes, the redirects, the theme and the theme switch.
- File an issue in the library for every gap, see
issue. Wait or use the released version. - Register the routes once.
- Wire the theme and the theme switch.
- Add the footer links on every page.
- Read the site's real features and config values: cookies, analytics, forms, hosting, payments.
- Write the imprint and privacy text from those facts, in German and English.
- Write the terms only if the site sells something.
- Check the redirects: request each path without JavaScript and expect a 3xx status.
- Run the repository's verify command, see
repo-conventionsConfigverify. - List for the owner every text to review and every fact the site could not supply.
Review a site
Report findings through review or work-review.
- Light and dark mode work with the shared theme and the switch.
- Request each path without JavaScript. Expect a 3xx status and a
Locationheader to the page of the right locale. A site that sells nothing has no/termsand no/agb. - The locale order is visitor choice, header, site default.
- German and English pages exist.
- The footer links the pages on every page.
- The imprint has no dispute resolution section.
- The texts are the site's own and match what the site really does.
- No code copies a feature of the shared web library.
Guardrails
- Never copy a legal text from another site or from the library.
- Never call a text legal advice.
- Never mark a text final before the owner reviewed it.
- Never invent a provider detail, a VAT ID or a retention period. Ask the owner.
- Never keep a private copy of a library feature to avoid waiting.
- Never add a dispute resolution section to an imprint.
References
repo-conventionsfor the repository layout and the verify command.issuefor the library issue.reviewandwork-reviewfor reporting findings.