Skip to content

feat(ai): a product's landing page starts from its world - #546

Merged
lorant-one merged 1 commit into
feat/3-0-breaking-cleanupfrom
feat/3-0-breaking-cleanup-giduz4
Nov 17, 2026
Merged

lorant-one merged 1 commit into
feat/3-0-breaking-cleanupfrom
feat/3-0-breaking-cleanup-giduz4

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Before: the marketing-hero bundle handed an agent the template hero (text-effect headline, CTA pair, logo cloud, glow) as the gold example and the default. Asked for something "unique", every model drew the same page. Hex was banned everywhere, even in a hero scene's artwork. The validator flagged a StyleScope config's hex seeds whenever an earlier style value in the file was cast with as CSSProperties.

After: the bundle opens with a "Start here: Brand world" step, which is recipes.md #9. It asks for a direction card and three worlds, dropping the name pun and the house default (charcoal, one orange, Fraunces, a tilted card). The first screen shows the product's work, and the page is checked with the swap and category tests. The template hero stays as one option.

How:

  • Recipe and bundle. New recipes.md fix: resolve TurbopackInternalError - Next.js package not found #9 holds the brand-world step. A task's new first field renders its recipes at the top of the bundle; marketing-hero uses it, adds StyleScope, and gets a new description and quality line.
  • Rules. rules.compact.md and rules.md allow hex in seeds and in a hero scene's artwork: named classes in one sheet, scoped under the page class. The scene is outside the one-ambient-layer budget.
  • Gotchas.
    • StyleScope.headingFont: heading: "var(--font-heading)" names itself, so headings fall back to the body sans.
    • StyleScope.paint: a StyleScope paints no background, so a light paper card shows dark on dark.
  • Validator. hasLiteralColor reads a style={…} value only up to its own closing brace. The old pattern stopped at the next }} anywhere in the file. It also skips *Seed props and a Mascot's color. A test covers both.
  • AGENTS.md. The "Designed, not stock" bullet points at the bundle's Start here step.
  • Regenerated. The ai/ files are regenerated: marketing-hero.md is 43 kB against a 60 kB cap, and the catalog is unchanged apart from its date.

Checks: the AI harness tests pass (876), the lint gate is at its baseline, and the validator was re-run on the 18 benchmark builds. Its colour flags now come only from real stray hex: a style={{ color: "#120d0a" }}, and the Tailwind builds' inline SVG.


Generated by Claude Code

The marketing-hero bundle opens with a "find the world first" step
(recipes.md #9): a direction card, three worlds without the name pun or
the house default, a first screen that shows the product's work, and
the swap test. The template hero is one option, not the default.

Rules allow hex in seeds and in a hero scene's artwork (named classes in
one scoped sheet), and put that scene outside the ambient-layer budget.
Gotchas for a display face that never reaches Heading and a StyleScope
that paints no background. The validator's style match no longer runs
past a cast style value into a StyleScope config, and accepts a Mascot's
color.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YJHdG7ZbpQS64MtL5PVbT1
@lorant-one
lorant-one merged commit cb31955 into feat/3-0-breaking-cleanup Nov 17, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants