/cogni-website:website-legalfrom cogni-website
Generates jurisdiction-specific legal pages (Impressum, Datenschutzerklärung, Cookie-Hinweis) for DE, AT, CH, EU from boilerplate templates. Captures legal entity facts and patches the project build pipeline.
Ships in cogni-website. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate jurisdiction-specific legal pages from reviewable boilerplate templates. The skill never invents legal text — all wording comes from the template bundles in references/jurisdictions/. Claude only fills {{placeholders}} with facts captured from the user.
The generated pages are templates, not legal advice. Always print the disclaimer in the final summary: "Diese Texte sind Vorlagen. Vor der Veröffentlichung durch eine Anwältin oder einen Anwalt prüfen lassen." Adapt the disclaimer to project language.
A website-project.json must exist in the working directory. If missing, redirect to website-setup. A website-plan.json is not required — website-legal can run before or after website-plan. If the plan does not yet exist, the skill writes the legal page entries to a queue file (legal-pages.json) that website-plan will pick up.
Read website-project.json. Extract:
language (drives all user-facing prompts and template language; default de)company (name, tagline, contact)legal_config (may be missing, partial, or complete)If legal_config is missing, create an empty object.
If legal_config.jurisdiction is not set, ask the user via AskUserQuestion:
"In welcher Rechtsordnung wird die Website veröffentlicht?"
Options:
Persist the choice to legal_config.jurisdiction.
Read references/legal-config-schema.md to learn the full field set, then check which fields are still missing for the chosen jurisdiction (see the requirement matrix in that file).
Ask only for missing fields. Adapt the questions to project language. Group questions logically — capture the legal entity in one round, then the responsible person, then VAT/registration in a third round so the user is not overwhelmed.
Required-by-jurisdiction matrix (high level — see references/legal-config-schema.md for exact rules):
| Field | DE | AT | CH | EU |
|---|---|---|---|---|
legal_entity.legal_name | required | required | required | required |
legal_entity.legal_form | required | required | recommended | recommended |
legal_entity.address | required | required | required | required |
legal_entity.register_court | required (if HRB) | — | — | optional |
legal_entity.register_number | required (if HRB) | required (FN) | optional (CHE) | optional |
legal_entity.vat_id | required (if applicable) | required (if applicable) | optional | required (if applicable) |
responsible_person.name | required (§55 RStV) | required (§24 MedienG) | recommended | recommended |
responsible_person.address | required if differs from legal_entity | required if differs | optional | optional |
supervisory_authority | required (if regulated) | required (if regulated) | optional | optional |
professional_regulations | required (if regulated profession) | required (if regulated) | optional | optional |
dispute_resolution.os_platform_link | required (EU consumer business) | required (EU consumer business) | — | required (EU consumer) |
contact.email | required | required | required | required |
contact.phone | required | required | recommended | recommended |
data_protection.controller_name | required (DSGVO Art. 13) | required | required (revDSG) | required |
data_protection.dpo_contact | required if DPO mandatory | required if DPO mandatory | optional | required if DPO mandatory |
Persist captured fields immediately to website-project.json → legal_config after each round, so a long capture session is never lost.
Before generating templates, run a completeness check against the matrix. If required fields for the chosen jurisdiction are still missing, list them and ask the user one more time. If the user explicitly says "use placeholder for now", insert a literal «TODO: <field>» marker — never invent values.
Pick the bundle directory from ${CLAUDE_PLUGIN_ROOT}/skills/website-legal/references/jurisdictions/:
| Jurisdiction | Bundle path | Page slugs |
|---|---|---|
de | references/jurisdictions/de/ | impressum, datenschutz, cookies |
at | references/jurisdictions/at/ | impressum, datenschutz, cookies |
ch | references/jurisdictions/ch/ | impressum, datenschutz, cookies |
eu | references/jurisdictions/eu/ | legal-notice, privacy-policy, cookies |
Each bundle contains three files: an imprint/legal-notice template, a privacy template, and a cookies template, all with the .md.tmpl extension.
For each template file in the bundle:
Read tool.{{placeholder}} token with the corresponding value from legal_config, company, or the current date. Supported placeholder paths are documented in references/placeholder-schema.md.«TODO: <placeholder>» so the gap is visible in the rendered HTML.{{generated_at}} with the current date in ISO format and {{generated_at_human}} with the localized form (e.g. "8. April 2026" for de).content/legal/{slug}.md in the project directory. Create the content/legal/ directory if it does not exist.The output is markdown, not HTML. The existing page-generator agent renders these markdown files to HTML during website-build using the legal page templates from ${CLAUDE_PLUGIN_ROOT}/libraries/legal-pages.md.
If website-plan.json exists in the project directory:
legal-) so re-runs are idempotent.${CLAUDE_PLUGIN_ROOT}/libraries/EXAMPLE_WEBSITE_PLAN.md (legal section). Each entry has:
id: legal-imprint, legal-privacy, legal-cookiestype: legal-imprint | legal-privacy | legal-cookiesslug: pages/impressum | pages/datenschutz | pages/cookies (or legal-notice/privacy-policy for EU)title: localized page title — site titlemeta_description: short SEO description (e.g. "Impressum gemäß § 5 TMG")source_files: ["content/legal/{slug}.md"]sections: ["legal-header", "legal-body"]footer_only: true — exclude from primary nav, include in footer legal columnlegal_links array. Labels and slugs come from the jurisdiction bundle and the project language — never hardcode German. The DE example below is illustrative only; for eu the slugs become legal-notice / privacy-policy and the labels are English:
[
{ "label": "Impressum", "href": "/pages/impressum.html" },
{ "label": "Datenschutz", "href": "/pages/datenschutz.html" },
{ "label": "Cookies", "href": "/pages/cookies.html" }
]
If website-plan.json does not yet exist, write the entries and the legal_links array to legal-pages.json in the project directory. The website-plan skill will merge legal-pages.json into the plan it generates (see the page-type-registry for details).
Render the summary in the project language. The German example below is the shape, not a literal template — translate the labels when language differs.
Rechtliche Seiten erstellt für Rechtsordnung: {jurisdiction_name}
Generierte Seiten:
✓ content/legal/impressum.md ({n} Wörter)
✓ content/legal/datenschutz.md ({n} Wörter)
✓ content/legal/cookies.md ({n} Wörter)
Konfiguration:
Rechtsträger: {legal_entity.legal_name}
Anschrift: {legal_entity.address.city}
Verantwortlich: {responsible_person.name}
USt-IdNr.: {legal_entity.vat_id}
Offene Platzhalter: {n} ← bitte vor Veröffentlichung füllen
Plan aktualisiert: ja|nein (legal-pages.json zwischengespeichert)
⚠ Diese Texte sind Vorlagen. Vor der Veröffentlichung durch eine Anwältin oder
einen Anwalt prüfen lassen.
Nächster Schritt: /website-build — Seiten generieren (oder /website-plan, falls
noch nicht ausgeführt).
If any «TODO: ...» placeholders are still present, list them explicitly so the user can fix them before building.
The skill is idempotent. Re-running it:
legal_config from website-project.jsoncontent/legal/*.md with freshly rendered templateslegal-* page entries in website-plan.json (no duplication)If the user wants to switch jurisdictions, ask them to confirm — switching deletes the old templates and writes new ones. Old captured facts in legal_config are preserved where the new jurisdiction needs the same fields.
All user-facing text and template output use the project language field. Default de. Each jurisdiction bundle currently ships with German templates (DE/AT/CH) and an English template (EU). When the project language differs from the bundle language, render the templates as-is and warn the user.
${CLAUDE_PLUGIN_ROOT}/skills/website-legal/references/legal-config-schema.md — full schema and per-jurisdiction requirement rules${CLAUDE_PLUGIN_ROOT}/skills/website-legal/references/placeholder-schema.md — list of supported {{placeholders}} and their source paths${CLAUDE_PLUGIN_ROOT}/skills/website-legal/references/jurisdictions/{de,at,ch,eu}/ — boilerplate templates${CLAUDE_PLUGIN_ROOT}/libraries/legal-pages.md — HTML/CSS pattern for legal page rendering${CLAUDE_PLUGIN_ROOT}/libraries/EXAMPLE_WEBSITE_PLAN.md — reference for the legal page entries and legal_links arrayreferences/jurisdictions/at/cookies.md.tmpl (opens in a new tab)references/jurisdictions/at/datenschutz.md.tmpl (opens in a new tab)references/jurisdictions/at/impressum.md.tmpl (opens in a new tab)references/jurisdictions/ch/cookies.md.tmpl (opens in a new tab)references/jurisdictions/ch/datenschutz.md.tmpl (opens in a new tab)references/jurisdictions/ch/impressum.md.tmpl (opens in a new tab)references/jurisdictions/de/cookies.md.tmpl (opens in a new tab)references/jurisdictions/de/datenschutz.md.tmpl (opens in a new tab)references/jurisdictions/de/impressum.md.tmpl (opens in a new tab)references/jurisdictions/eu/cookies.md.tmpl (opens in a new tab)references/jurisdictions/eu/legal-notice.md.tmpl (opens in a new tab)references/jurisdictions/eu/privacy-policy.md.tmpl (opens in a new tab)references/legal-config-schema.md (opens in a new tab)references/placeholder-schema.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cogni-work/insight-wave --plugin cogni-website6 skills in this plugin
/website-buildThis skill builds the static website by orchestrating CSS generation, parallel page
generation, hero rendering, and site assembly. It produces a deployable output/website/
folder from the website-plan.json blueprint. This skill should be used when the user
mentions "build the website", "generate website", "website build", "Website erstellen",
"Website generieren", "Seiten erzeugen", "HTML erzeugen", "render the website",
"assemble the site", "create all pages", or wants to execute the website plan — even
if they don't say "build" explicitly. Requires website-plan.json.
/website-planThis skill plans the site structure for a cogni-website project interactively — discovering
available content, proposing pages, mapping content to page sections, and generating
website-plan.json. It should be triggered when the user mentions "plan the website",
"site structure", "which pages", "website plan", "plan pages", "Seitenstruktur",
"Website planen", "Seiten festlegen", "map content to pages", "which pages do I need",
"welche Seiten brauche ich", or wants to decide what pages their website should have
— even without saying "plan" explicitly. Requires website-project.json.
/website-previewThis skill previews the generated website in a browser, validates links, and reports
structural issues. It should be triggered when the user mentions "preview website",
"open website", "Website anzeigen", "Website öffnen", "show me the website",
"check the website", "validate links", "website preview", "how does it look",
"wie sieht es aus", "test the website", "Website testen", or wants to see the
generated site in a browser — even without saying "preview" explicitly.
Requires a built website in output/website/.
/website-resumeThis skill resumes, continues, or checks status of a cogni-website project. It is the
primary re-entry point for returning to website work across sessions. It should be
triggered when the user mentions "continue website", "resume website", "website status",
"where was I", "Website fortsetzen", "Website-Status", "weiter mit der Website",
"was fehlt noch", "pick up where I left off", "website status check", or opens a
session involving an existing website project — even without saying "resume" explicitly.
/website-setupThis skill initializes a cogni-website project by discovering content sources from
cogni-portfolio, cogni-marketing, cogni-trends, and cogni-knowledge, selecting a theme,
and scaffolding the project directory. It should be triggered when the user mentions
creating a website, starting a new website project, setting up a website, "build me a
website", "company website", "customer website", "generate a website", "website setup",
"Website erstellen", "Homepage erstellen", "Internetauftritt", "Webseite generieren",
"online presence", "web presence", or wants to turn portfolio content into a web
presence — even without saying "setup" explicitly.
Other plugins' skills for the same job