/cogni-website:website-buildfrom cogni-website
Builds a static website from a website-plan.json blueprint: generates CSS, renders hero, creates all pages in parallel, and assembles output/website/. Includes legal compliance checks for DE/AT/CH/EU.
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; scripts run unread.
Orchestrate the full website generation pipeline: shared CSS, homepage hero, parallel page generation, and site assembly.
Both website-project.json and website-plan.json must exist (from setup and plan skills). If missing, redirect to the appropriate skill.
Read website-project.json and website-plan.json. Extract:
Before validating sources, check the legal-pages state:
legal_config.jurisdiction from website-project.json.jurisdiction is null: warn the user — "Keine Rechtsordnung konfiguriert. Die Website hat kein Impressum, keine Datenschutzerklärung und keinen Cookie-Hinweis. Vor Veröffentlichung in DE/AT/CH/EU rechtliche Pflicht. Bitte /website-legal ausführen oder explizit bestätigen, dass diese Seiten extern bereitgestellt werden." Do not abort — let the user proceed if they confirm.jurisdiction is set, scan website-plan.json for legal-* page entries (ids starting with legal-).website-legal immediately via the Skill tool.content/legal/*.md) for unfilled «TODO: ...» markers and warn the user about each one before continuing — these will appear as visible markers in the published HTML.legal_config.cookie_categories.uses_analytics and legal_config.cookie_categories.uses_marketing_cookies. If either is true, warn loudly: "Die Website verwendet Analyse- oder Marketing-Cookies. Der statische Cookie-Hinweis erfüllt nicht die Anforderungen von DSGVO/TTDSG/ePrivacy — er ist nur für Seiten mit ausschließlich technisch notwendigen Cookies korrekt. Vor der Veröffentlichung muss output/website/.partials/cookie-notice.html durch ein echtes Consent-Management-Tool ersetzt werden." Do not abort — let the user proceed if they confirm.Before generating anything, verify that the source files referenced in the plan still exist. Content may have changed since planning — a deleted product or moved narrative would cause a page-generator agent to fail.
For each page in website-plan.json:
source_files existsource_entities resolve to at least one fileIf sources are missing: present a summary of affected pages and missing files. Ask whether to proceed (skipping those pages) or abort. Do not silently launch agents with broken source references.
If all sources exist: proceed without interruption.
mkdir -p output/website/{css,pages,images,.partials}
Ensure the directory structure matches the plan's slug paths. Create subdirectories for nested pages (e.g., pages/produkte/, pages/blog/).
If output/design-variables.json does not exist or is outdated:
cogni-publishing/references/design-variables-pattern.mdoutput/design-variables.jsonDelegate to the site-assembler agent with:
project_dir: absolute path to website projectplugin_root: $CLAUDE_PLUGIN_ROOTwebsite_plan: full plan JSONtheme_path: from project configdesign_variables_path: path to design-variables.jsonThe site-assembler produces:
output/website/css/style.cssoutput/website/.partials/header.htmloutput/website/.partials/footer.htmloutput/website/sitemap.xmlWait for this to complete before page generation.
If the homepage page spec has "hero_renderer": "pencil":
Delegate to the hero-renderer agent with:
project_dir: absolute pathplugin_root: $CLAUDE_PLUGIN_ROOThome_page_spec: homepage page spec from plantheme_path: from project configdesign_variables: from design-variables.jsoncompany: company object from project configlanguage: from project configThe hero-renderer produces:
output/website/.partials/hero.htmloutput/website/images/hero-bg.pngRead the generated navigation partials:
output/website/.partials/header.htmloutput/website/.partials/footer.htmlFor the homepage, also read output/website/.partials/hero.html if it exists.
Launch page-generator agents in parallel for each page in the plan. For each page, provide:
{
"page_spec": {page spec from plan},
"project_dir": "{absolute path}",
"plugin_root": "$CLAUDE_PLUGIN_ROOT",
"navigation_header": "{header HTML with active state for this page}",
"navigation_footer": "{footer HTML}",
"site_title": "{site title from plan}",
"language": "{language}",
"design_variables": {design variables JSON}
}
Active state: For each page, mark the matching nav link with site-nav__link--active class in the header HTML before passing it to the agent.
Stylesheet href: every generated page links the stylesheet as root-relative /css/style.css — no per-page calculation. This matches the root-relative nav hrefs used by the header/footer partials. Do not pass a css_path field to page-generator; the agent hardcodes the href in its HTML skeleton.
Homepage hero: For the homepage page-generator, include the hero HTML partial in the prompt so it can splice it into the hero section instead of generating a CSS-only hero.
Narrative pages (section-block form): For pages whose sections[] is an array of block objects (from website-plan step 6a — typically home, market, audience), the planner has already done the narrative decomposition. Pass the blocks through verbatim. Do not let the page-generator re-decompose them — the instruction to the agent should be "render each block using the matching pattern from the Section Block Library in page-templates.md, lifting copy from the narrative source file at the source_anchor for each block."
Parallelism: Launch all page-generator agents in a single message for maximum parallelism. Independent pages have no dependencies on each other.
After all agents return:
Website erstellt: output/website/
{N} Seiten generiert
{M} Bilder erstellt
CSS: {size}KB
Gesamtgröße: {total}KB
Dateien:
├── index.html (Startseite)
├── css/style.css
├── pages/
│ ├── produkte.html
│ ├── produkte/cloud-platform.html
│ ├── ...
│ └── kontakt.html
├── images/
│ └── hero-bg.png
└── sitemap.xml
Nächste Schritte:
• /website-preview — Website im Browser öffnen und prüfen
• python3 -m http.server -d output/website 8080 — Lokaler Testserver
• Output-Ordner auf Netlify/Vercel/S3 deployen
⚠ Rechtliche Inhalte (Impressum, Datenschutz, Cookies) sind Vorlagen.
Bitte vor der Veröffentlichung durch eine Anwältin oder einen Anwalt prüfen lassen.
The skill supports partial rebuilds:
Detect the mode from the user's request and skip unnecessary steps.
${CLAUDE_PLUGIN_ROOT}/libraries/page-templates.md — HTML patterns for page types${CLAUDE_PLUGIN_ROOT}/libraries/legal-pages.md — HTML pattern for legal-* page types and the cookie-notice partial${CLAUDE_PLUGIN_ROOT}/libraries/navigation-patterns.md — Header, footer, breadcrumb CSS${CLAUDE_PLUGIN_ROOT}/libraries/EXAMPLE_WEBSITE_PLAN.md — Plan format reference${CLAUDE_PLUGIN_ROOT}/skills/website-build/scripts/generate-css.py — Standalone CSS generator from design-variables.json (alternative to site-assembler agent for CSS-only updates)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
static-site-generator, website-pipeline, legal-compliance, ssg
npx claudepluginhub cogni-work/insight-wave --plugin cogni-website6 skills in this plugin
/website-legalGenerate legally required pages (Impressum, Datenschutzerklärung, Cookie-Hinweis, or the EU
equivalents) for a cogni-website project based on the publishing jurisdiction (DE, AT, CH, EU).
Captures the legal entity facts, fills jurisdiction-specific boilerplate templates, writes the
markdown source files, and patches website-plan.json so the existing build pipeline renders them.
Use this skill whenever the user mentions "Impressum", "Datenschutz", "Datenschutzerklärung",
"Cookie-Hinweis", "DSGVO", "GDPR", "Pflichtangaben", "rechtliche Seiten", "legal pages", "legal
notice", "privacy policy", "compliance pages", "TMG", "ECG", "revDSG", "Rechtstexte erzeugen",
or wants to add legally required content for Germany, Austria, Switzerland, or the EU — even if
they don't say "skill" or name a specific page. Requires website-project.json (from website-setup).
/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