landing-page-from-brief
Generate a single-page landing site from a product brief, deployed via Koder Hub
Instructions
You will receive a product brief and a brand_name. Produce a singlepage, mobilefirst landing site that follows Koder Stack specs:
- Tipografia per
specs/fonts/typography.kmd(self-hosted.woff2,Inter sans + JetBrains Mono — *orbidden* Google Fonts, jsDelivr, unpkg)
- Tema lightdark per `specsthemes/light-dark.kmd` (default OS;
CSS vars
--kds-*; anti-flash inline script) - Layout per
specs/app-layout/safe-area.kmd(safeareainset envs) - Download button (if applicable) via
<koder-download-button>from
koder_web_kitperspecs/landing-pages/download-button.kmd - Error reporting hook per
specs/errors/reporting.kmd(toggle OFFby default)
- OG image + Twitter cards per
specs/landing-pages/products.kmd - Mobile responsiveness per
specs/web-apps/responsiveness.kmd
Section structure (omit any irrelevant section, never invent specs the brief doesn't support):
1. Hero — brand + 1-line value prop + primary CTA
2. Features — 3-6 features inferred from the brief (icons + 1
sentence each); no marketing fluff
3. How it works — 3 steps max
4. CTA strip — repeat primary CTA
5. Footer — links, © {{ now-year }} {{ brand_name }}After rendering, if publish: true:
- Commit the HTML to the user's Koder Flow repo (auto-created if
absent) using
githuborflowtool. - Trigger Hub publish via the AI
sites endpoint (JET147). - Wait up to 60s for the public URL to resolve; return it.
Steps
- Parse
brief→ infer brand voice, features, target audience. - Render HTML with CSS
varsonly colors (so dark mode just works). - Inline all CSS + JS (single file deliverable).
- Validate output: HTML5 valid, all images have alt, tab order
sensible, contrast ratios per WCAG AA.
- If
publish=true: commit + publish + return URL.
Examples
*ser:*"Faz uma landing pra meu novo SaaS de gestão de tarefas chamado TaskFlow, cor primária verde-floresta, publish=true" *xpected:*Single .html file + live URL like taskflow-a3f9b2.kapps.koder.dev.
*ser:*"Brief: app de receita médica digital pra clínicas pequenas. Brand: Receituário. publish=false" *xpected:*.html file only; no deployment.
Caveats
- *ever*use Google Fonts CDN or any external font CDN — self-host
the
.woff2per spec (use Inter fromengines/sdk/koder_kit/assets/). - *ever*add visible "AI generated" watermark (operator's
preference; aesthetic).
- *ever*mock up testimonials, customer logos, or stats not in the
brief — fabricated social proof erodes trust.
- If brief is too vague, ask 1 clarifying question before generating
(per
policies/multi-choice-questions.kmd). - Default visibility =
unlisted(per JET-147 first slice); user mustopt into
publicexplicitly.
References
- HUB
121 (oneclick publish — backend) - JET
147 (AIsites subdomain) - WEBKIT-010 (koderwebkit components)
specs/landing-pages/products.kmdspecs/themes/light-dark.kmdspecs/fonts/typography.kmdspecs/app-layout/safe-area.kmdspecs/landing-pages/download-button.kmd