/cogni-website:website-setupfrom cogni-website
Scaffolds a cogni-website project by discovering content from insight-wave plugins (portfolio, marketing, trends, knowledge), selecting a theme, and creating website-project.json.
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.
None: SKILL.md is the whole skill.
Initialize a cogni-website project by discovering content from existing insight-wave plugins, selecting a theme, and scaffolding the project directory.
A website project aggregates content from multiple insight-wave plugins into a multi-page static website:
Setup discovers what content is available across these plugins, validates minimum requirements, captures company details, selects a visual theme, and creates website-project.json — the configuration that all downstream skills depend on.
If a website-project.json already exists in the working directory, redirect to the website-resume skill.
Scan the current directory and immediate children for website-project.json. If found, inform the user and invoke the website-resume skill instead.
Scan the workspace for insight-wave plugin projects using recursive globs. This mirrors the discovery pattern used by cogni-marketing:marketing-setup — recursive globs ensure discovery works regardless of workspace layout.
**/portfolio.json (recursive — do not use narrow single-level globs)portfolio.json to extract: company name, description, industry, languageoutput/README.mdoutput/communicate/customer-narrative/ (v2 layout — one file per website component, each arc-structured with an arc_id field in its YAML frontmatter):
home.md, arc jtbd-portfolio)about.md, arc company-credo)approach.md, arc engagement-model)capabilities/*.md, arc corporate-visions) — one per customer-facing featurefor/*.md, arc jtbd-portfolio) — one per {market}--{persona} pairwebsite-plan treats them as the primary spine for the corresponding pages rather than re-deriving content from raw entity JSON. The arc_id frontmatter field tells the planner which story-arc decomposition to apply in step 6a. Store every discovered path — the planner needs them all.portfolio-overview.md, market/*.md, or customer/*.md, it was produced by an older version of portfolio-communicate. Still discover them, but print a warning: "Gefunden: altes customer-narrative-Layout (v1). Bitte portfolio-communicate neu ausführen, um die website-orientierte v2-Struktur (home.md, about.md, capabilities/*.md, for/*.md, approach.md) zu erzeugen." The planner will still read the v1 files, but downstream dedup discipline (Roadmap on home only, differentiators on about only) depends on the v2 layout.**/marketing-project.jsonmarketing-project.json for brand voice and content strategycontent/thought-leadership/*.md, content/demand-generation/*.md, content/lead-generation/*.md**/tips-project.jsontips-trend-report.md exists alongside it (trend report completed)tips-value-model.json to count investment themes**/output/draft-v*.md (cogni-knowledge research output)Gefundene Inhaltsquellen:
Portfolio: ../acme-cloud/
✓ 3 Produkte, 8 Features, 2 Märkte, 12 Propositions
✓ Customer-Narrative (v2): home.md, about.md, approach.md, 6 Capability-Seiten, 4 Persona-Seiten
✓ Synthese erstellt
Marketing: ../acme-marketing/
✓ 4 Thought-Leadership-Artikel
✓ 6 Demand-Generation-Beiträge
✓ 2 Landing Pages
Trends: ../b2b-ict-trends/
✓ Trend-Report mit 5 Investitionsthemen
Research: ../cloud-security-report/
✓ 1 Forschungsbericht
If multiple projects of the same type are found, present all and ask the user to select one. If only one exists, confirm automatically.
Hard gate — if no portfolio project is found, warn the user that a portfolio is the minimum requirement. Offer to help set one up via cogni-portfolio:portfolio-setup. Do not proceed without a portfolio.
Hard gate — the discovered portfolio must have at least 1 product AND a company name/description. Without these, the website has no meaningful content to render.
Soft warnings (inform but allow proceeding):
Extract company information from the discovered portfolio.json:
language field)Ask only for what's missing. Adapt all user-facing text to the portfolio language (examples below use German):
"Aus dem Portfolio übernehme ich: Acme Cloud Services — Cloud-Infrastruktur für den Mittelstand. Fehlen noch: Kontakt-E-Mail und Adresse für die Kontaktseite. Können Sie die ergänzen?"
Websites published in the EU and DACH must carry mandatory legal pages (Impressum, Datenschutzerklärung, Cookie-Hinweis). Capture the foundation now so the downstream website-legal skill can render those pages without re-asking everything.
Ask via AskUserQuestion:
"In welcher Rechtsordnung wird die Website veröffentlicht?"
Options:
If the user picks a jurisdiction, immediately ask the minimum facts via a second AskUserQuestion round (one question per topic, batched in a single tool call):
Only ask for additional fields (supervisory authority, professional regulations) if the user indicates a regulated industry. The full schema is in ${CLAUDE_PLUGIN_ROOT}/skills/website-legal/references/legal-config-schema.md — do not block setup on it; the website-legal skill will fill the gaps later.
If the user picks "noch unklar", write legal_config: { jurisdiction: null } and tell them they must run /website-legal before publishing.
Persist all captured fields into the legal_config block (see step 6 for the schema).
Invoke cogni-publishing:manage-themes (Operation 11, Select Theme) to let the user select a visual theme. The theme drives all colors, fonts, and styling across the website.
Capture the operation result exactly: theme_path, theme_name, and
theme_slug. Persist all three fields in website-project.json; do not infer the
name or slug again from the path, because Operation 11 is the public owner of the
theme handoff contract.
After theme selection, derive design variables by reading the theme.md file and generating output/design-variables.json following the convention in cogni-publishing/references/design-variables-pattern.md.
Ask the user about build preferences using AskUserQuestion. Only show options for content sources that were actually discovered:
Create the website project directory and write configuration:
mkdir -p cogni-website/{output/website/{css,pages,images},output}
Write website-project.json following the schema documented in ${CLAUDE_PLUGIN_ROOT}/libraries/EXAMPLE_WEBSITE_PLAN.md (see the project config section). Key fields:
slug, name, language, theme_path, theme_name, theme_slugcompany — name, tagline, description, contact detailssources:
portfolio_project — path to portfolio directory (required)marketing_project — path to marketing directory (null if not found)trends_project — path to trends directory (null if not found)research_projects — array of paths to research report directories (empty array if none)enriched_portfolio_narratives — object with keys home, about, approach (each a single path), capabilities (map: {feature_slug} → path), and personas (map: {market}--{persona} → path). Each entry carries the file's arc_id so the planner can pick the right decomposition without re-reading the frontmatter. null if no portfolio-communicate output exists. For v1 projects that still have portfolio-overview.md / market/*.md / customer/*.md, write them into a legacy v1 sub-object ({ "v1": { "overview": ..., "markets": {...}, "personas": {...} } }) so the planner can fall back without confusing the new keys.build_options — hero_renderer, include_blog, include_case_studies, include_insights, include_resourcescontent_discovery — entity counts per source for change detection by website-resumelegal_config — jurisdiction (de/at/ch/eu/null), legal_entity (legal_name, legal_form, address, register_court, register_number, vat_id), responsible_person (name, role, address_same_as_entity), contact (email, phone), data_protection (controller_name, controller_contact, dpo_required, dpo_name, dpo_contact). Schema: ${CLAUDE_PLUGIN_ROOT}/skills/website-legal/references/legal-config-schema.md. Fields not captured in step 3a are written as null and filled later by website-legal.All boolean build options default to true when the corresponding content source exists, false when it does not. Set hero_renderer to "pencil" or "html" based on user choice.
Website-Projekt erstellt: {slug}
Konfiguration:
Unternehmen: {name}
Sprache: {language}
Theme: {theme_name}
Hero: {pencil|html}
Inhaltsquellen:
Portfolio: ✓ ({N} Produkte, {M} Features, {K} Propositions)
Marketing: {✓ N Artikel | ✗ nicht gefunden}
Trends: {✓ Trend-Report | ✗ nicht gefunden}
Research: {✓ N Berichte | ✗ nicht gefunden}
Rechtliches:
{✓ DE-Konfiguration erfasst — Impressum, Datenschutz, Cookies werden erzeugt
| ⚠ ausstehend — bitte vor Veröffentlichung /website-legal ausführen}
Nächster Schritt: /website-plan — Seitenstruktur planen und Inhalte zuordnen
Read the language field from portfolio.json. Generate all user-facing text in that language. JSON field names and slugs remain in English. Default to German (de) if not specified.
Derive the website slug from the company name:
-website suffixacme-cloud-websiteWhat SKILL.md sets; muted values are Claude Code's defaults
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-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.
Other plugins' skills for the same job