/cogni-website:website-planfrom cogni-website
Plans site structure for cogni-website projects by discovering content, proposing pages, and mapping content to page templates, producing website-plan.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.
Read when SKILL.md points to them.
Plan the site structure by discovering available content, proposing pages, and mapping content sources to page templates. Produces website-plan.json — the blueprint that website-build executes.
A website-project.json must exist (created by website-setup). If not found, redirect to the setup skill.
Read website-project.json to get:
Go beyond the counts from setup — read actual content to understand what's available for each page type.
Narratives first — these are the primary spine of narrative pages (home, about, capability, persona, approach). Raw entity JSON becomes enrichment, not the spine.
The v2 portfolio-communicate customer-narrative layout produces one arc-structured file per website component. Each file carries arc_id + arc_display_name in its YAML frontmatter (see cogni-portfolio/skills/portfolio-communicate/references/templates-customer-narrative.md for the scope → arc mapping). Read the arc id once per file and store it on the plan entry — step 6a dispatches on it:
output/communicate/customer-narrative/home.md — frontmatter + prose. Arc: jtbd-portfolio. Spine for the homepage.output/communicate/customer-narrative/about.md — frontmatter + prose. Arc: company-credo. Spine for the About page (now a structured narrative page, not a flat entity page).output/communicate/customer-narrative/approach.md — frontmatter + prose. Arc: engagement-model. Spine for the How-We-Work / Unser Ansatz page.output/communicate/customer-narrative/capabilities/*.md — each becomes the spine for one capability page. Arc: corporate-visions. Extract the feature slug from the filename.output/communicate/customer-narrative/for/*.md — each becomes the spine for one persona landing page. Arc: jtbd-portfolio. Extract market + persona slugs from frontmatter (or from the {market}--{persona} filename).v1 backward-compat: if website-project.json carries an enriched_portfolio_narratives.v1 sub-object (legacy layout: portfolio-overview.md, market/*.md, customer/*.md), read those files instead and proceed in legacy mode. In legacy mode there is no about.md, capabilities/*.md, or approach.md — the planner falls back to flat entity templates for those page types and prints a one-line reminder to rerun portfolio-communicate for the v2 layout. Do not mix layouts: if v2 keys are present, ignore any v1 sub-object that survived a previous setup run.
Entities for enrichment — still scan, still useful, but secondary:
products/*.json — extract names, descriptions, positioning, maturityfeatures/*.json — extract names, IS statements, product mappingpropositions/*.json — extract IS/DOES/MEANS, market mappingsolutions/*.json — extract solution types, pricing tierspackages/*.json — extract bundle tiersmarkets/*.json — extract market names, segmentsoutput/README.md — fallback company overview prose if no home.md narrative exists (or, in legacy mode, no portfolio-overview.md)content/thought-leadership/*.md — extract titles, dates, markets from frontmattercontent/demand-generation/*.md — extract titles, dates, formatscontent/lead-generation/*.md — extract titles, formatsIf sources.trends_project is set in website-project.json:
tips-trend-report.md — extract investment theme titles and executive summarytips-value-model.json — extract solution template names and rankingsinsights page typeIf sources.research_projects is non-empty in website-project.json:
output/draft-v*.md)resources page typeBased on discovered content, propose a page list. Apply these rules:
| Page Type | Include When | Source spine | Arc | Always/Conditional |
|---|---|---|---|---|
home | Always | customer-narrative/home.md if present, else portfolio.json + top propositions | jtbd-portfolio | Always |
about | Always | customer-narrative/about.md if present, else portfolio.json (flat fallback) | company-credo | Always — structured when v2 narrative exists, flat otherwise |
capability | Per customer-narrative/capabilities/*.md found | customer-narrative/capabilities/{feature-slug}.md | corporate-visions | One page per capability narrative. Replaces product-detail for features that have a v2 narrative. |
persona | Per customer-narrative/for/*.md found | customer-narrative/for/{market}--{persona}.md | jtbd-portfolio | One page per persona narrative. Renamed from v1 audience. |
approach | If customer-narrative/approach.md present | customer-narrative/approach.md | engagement-model | Conditional on v2 narrative. Single page (How We Work / Unser Ansatz). |
products | Always | products/*.json | — | Always — proposed even when exactly one product exists; it is the index for the capability and product-detail pages. references/page-type-registry.md is authoritative for inclusion — products sits in its Always include row. |
product-detail | Per product without a capability narrative | products/{slug}.json + features + propositions | — | Flat fallback when no capabilities/{slug}.md exists |
solutions | ≥1 solution | solutions/*.json | — | Conditional |
blog-index | Marketing content exists AND include_blog: true | Marketing content/ tree | — | Conditional |
blog-post | Per marketing article | Single marketing markdown file | — | One per article |
case-studies | Customer narratives exist AND include_case_studies: true (legacy — prefer persona / capability) | Per-customer narrative | — | Conditional |
insights | Trend report exists AND include_insights: true | tips-trend-report.md | — | Conditional |
resources | Research syntheses exist AND include_resources: true | Research output/draft-v*.md | — | Conditional |
custom | User requests ad-hoc pages | User-specified | — | Per user request |
contact | Always | Company details from project config | — | Always |
legal-imprint / legal-privacy / legal-cookies | Managed by website-legal skill | Legal templates | — | Footer-only — never proposed by website-plan directly |
The capability, persona, and approach page types are first-class narrative pages. They get their own URL trees:
capability → pages/leistungen/{feature-slug}.html (DE) or pages/capabilities/{feature-slug}.html (EN)persona → pages/fuer/{market}--{persona}.html (DE) or pages/for/{market}--{persona}.html (EN)approach → pages/unser-ansatz.html (DE) or pages/approach.html (EN)Capability pages appear in the header navigation as a dropdown under "Leistungen" / "Capabilities" when at least two exist; persona pages appear under "Für Sie" / "For You" when at least two exist; approach appears as a top-level link. Visitors can jump directly to the content tuned to their role, their problem, or their evaluation question.
Deduplication discipline (enforced by the v2 customer-narrative templates — do not break it):
home only. Other pages link to it, they do not restate it.about only. Capability and persona pages link out.Present the proposed structure as a table:
Vorgeschlagene Seitenstruktur:
| Seite | Typ | Quelle | Inhalt |
|-------|-----|--------|--------|
| Startseite | home | Portfolio-Übersicht | Hero + Wertversprechen + Produkte |
| Über uns | about | portfolio.json | Unternehmensgeschichte + Mission |
| Produkte | products | products/*.json | Produktübersicht (3 Produkte) |
| Cloud Platform | product-detail | cloud-platform.json | Features + Benefits + Preise |
| ... | ... | ... | ... |
| Blog | blog-index | marketing/ | 10 Artikel |
| Insights | insights | tips-trend-report.md | Investitionsthemen + Trends |
| Ressourcen | resources | research reports | Forschungsberichte |
| Kontakt | contact | Konfiguration | Formular + Kontaktdaten |
Gesamt: 14 Seiten
Ask the user to review and modify:
"Stimmt die Seitenstruktur so? Sie können Seiten hinzufügen, entfernen oder umordnen."
Common modifications:
Iterate until the user confirms.
Auto-generate navigation from the confirmed page list:
Header navigation rules, applied in this precedence order:
product-detail pages (rule 2 may add a lone capability page here).capability pages when at least two exist (step 3). With exactly one, emit no dropdown and attach that page as a child of the Produkte dropdown — the products page already indexes capability pages (step 3).persona pages when at least two exist. With exactly one, emit no dropdown and link it from the footer only, so a single page never claims a top-level slot.approach page exists.custom page — top-level links when they exist and the cap allows, otherwise a footer column under the same demotion rule below.Cap the header at 6 top-level items, excluding the CTA; 5 reads better where the page set allows it. When the rules above produce more than 6, demote in this order until the header fits — Fallstudien first, then Blog, then Unser Ansatz — into a footer column. Never drop a page to satisfy the cap: Produkte, the two narrative dropdowns and Über uns are never demoted, and pages carrying footer_only: true (step 7, legal pages) never count toward it.
Footer columns:
Every page demoted from the header must appear in one of these columns.
Present navigation for approval:
"Navigation: Produkte (mit Dropdown) | Leistungen (mit Dropdown) | Für Sie (mit Dropdown) | Unser Ansatz | Über uns — CTA: Kontakt aufnehmen"
For each page, determine:
source_files — markdown files to read for prose content (narrative is primary when present)source_entities — JSON entity files for structured enrichmentsections — ordered list of section blocks (see step 6a for narrative pages)meta_description — SEO description (generate from content)Use the page type definitions from ${CLAUDE_PLUGIN_ROOT}/libraries/page-templates.md as reference for section lists and the "Section Block Library" appendix for narrative-page section patterns.
For every page whose spine is a customer-narrative/*.md file (home, about, capability, persona, approach — any page entry that carries an arc_id), do not emit a flat list of generic template section names. Instead, decompose the narrative into an ordered sequence of section blocks using cogni-workspace's web-section pattern. This produces scroll-driven reading experiences instead of entity-card dumps. The existing block_type library (hero, problem-statement, stat-row, feature-alternating, feature-grid, comparison, timeline, testimonial, text-block, cta) covers all four arcs — no new block types are required for company-credo or engagement-model.
Arc-to-block hints (a starting point — the decision tree below selects the final block):
| Arc | Element | Typical block |
|---|---|---|
jtbd-portfolio | Jobs → Friction → Portfolio → Invitation | hero → problem-statement → feature-grid → cta |
company-credo | Mission → Conviction → Credibility → Promise | hero → text-block (or feature-alternating) → stat-row/testimonial → cta |
corporate-visions | Why Change → Why Now → Why You → Why Pay | problem-statement → stat-row → feature-alternating → cta |
engagement-model | Principles → Process → Partnership → Outcomes | feature-grid → timeline → feature-alternating → stat-row / cta |
$CLAUDE_PLUGIN_ROOT/../cogni-publishing/references/arc-taxonomy.md is authoritative for the arc element names — the ordered elements of each arc and their German labels, under its ## Arc Element Names section. Read that file once per plan to confirm the element sequence and its localized labels instead of duplicating them here. That file maps each arc_id to a visual arc type for the rendering skills; it carries no element → block mapping.
The element → block choice is this plugin's own. The hint table above is the short form; the fuller quick reference is the Section Block Library appendix in ${CLAUDE_PLUGIN_ROOT}/libraries/page-templates.md. Either way the step 2 decision tree below governs the final block, because it types each section on actual content shape.
The decomposition rules are defined in cogni-workspace's web-section libraries and referenced rather than duplicated here. Read once, apply per page:
$CLAUDE_PLUGIN_ROOT/../cogni-publishing/references/web-section-architecture.md (see the "Section Type Decision Tree" heading)$CLAUDE_PLUGIN_ROOT/../cogni-publishing/references/web-section-copywriting.mdFor each narrative page, walk the markdown in order:
hero block. Use the narrative H1 as the assertion headline, the intro paragraph as the subline, and the final-step CTA verb as the hero button text. Section theme: dark.problem-statement (light)stat-row (dark)feature-grid (light-alt)feature-alternating (light, alternate side per block)timeline (light-alt)testimonial (dark)comparison (light-alt)text-block (light)cta block (accent).dark), CTA last (accent), and no two adjacent non-bookend blocks may share a section_theme. Swap light ↔ light-alt to resolve collisions.citations array on the page spec so the generator can render a footnote block at the bottom of the page.Each section block in sections[] is an object, not a bare string:
{
"block_type": "problem-statement",
"section_theme": "light",
"arc_role": "problem",
"section_label": "Ihre Herausforderungen",
"headline": "Legacy-Systeme kosten €134 Millionen pro Jahr — unsichtbar",
"body": "...",
"bullets": [
"Tarifkalkulation dauert 4 Wochen statt 4 Tage",
"44% Kundenabbruch in digitalen Journeys"
],
"stat_number": "€134M",
"confidence": 0.87,
"source_anchor": "## Ihre Herausforderungen"
}
source_anchor lets the page-generator find the exact H2 in the narrative markdown and lift the copy verbatim without re-authoring it.
Back-compat note. Legacy page types (about, products, product-detail, blog-*, insights, resources, contact, legal-*) keep using the flat sections: ["hero", "features", "cta"] string-array form. The page-generator agent accepts both shapes and picks its renderer accordingly. Do not retrofit legacy pages unless the user asks for it.
Check the project directory for legal-pages.json — this is the queue file written by website-legal when it runs before website-plan. If it exists:
website-plan.json: a pages[] array with legal-* entries and a legal_links[] array.legal-* page entries to the plan's pages[].legal_links array onto the plan as a top-level field.legal-pages.json after a successful merge — it has served its purpose.If legal-pages.json does not exist but legal_config.jurisdiction is set in website-project.json, print a reminder at the end of step 8: "Hinweis: Rechtliche Seiten fehlen — bitte /website-legal ausführen, bevor /website-build läuft."
Write the complete plan following the format in ${CLAUDE_PLUGIN_ROOT}/libraries/EXAMPLE_WEBSITE_PLAN.md.
Footer-only pages: any page with footer_only: true (legal pages, optionally also custom legal-adjacent pages) must be excluded from the auto-generated header navigation in step 5. They are linked exclusively from the footer legal column built from the legal_links array.
Key fields per page:
{
"id": "unique-page-id",
"type": "page-type",
"slug": "path/relative/to/output",
"title": "Page Title — Site Title",
"meta_description": "SEO description (max 160 chars)",
"source_files": ["../path/to/content.md"],
"source_entities": { "products": "../path/to/products/*.json" },
"sections": ["hero", "features", "cta"],
"hero_renderer": "pencil"
}
Website-Plan erstellt: website-plan.json
{N} Seiten geplant
{M} Inhaltsquellen zugeordnet
Navigation: {nav_items} Hauptpunkte + {dropdown_children} Dropdown-Einträge
Nächster Schritt: /website-build — Seiten generieren und Website zusammenbauen
Page slugs determine the output file path:
index → output/website/index.htmlpages/produkte → output/website/pages/produkte.htmlpages/produkte/cloud-platform → output/website/pages/produkte/cloud-platform.htmlpages/blog/article-slug → output/website/pages/blog/article-slug.htmlGerman slugs: replace umlauts (ü→ue, ö→oe, ä→ae, ß→ss), lowercase, hyphens.
Consult ${CLAUDE_PLUGIN_ROOT}/libraries/page-templates.md for the HTML section patterns and CSS class reference for each page type. Consult ${CLAUDE_PLUGIN_ROOT}/libraries/EXAMPLE_WEBSITE_PLAN.md for a complete plan example with commentary.
All user-facing text (page titles, meta descriptions, navigation labels, section headlines) in the language from website-project.json. JSON field names remain English.
What 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-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