Disclosure: I work on VibUI, a website prompt library. It gets one short mention near the end. The workflow works with prompts you write yourself.
Short answer: when you add a landing page to an existing codebase with an AI agent, don't ask for the whole page in one go. Commit a small design-token file first, then prompt one section per request, each into its own component file, and review each diff before moving on. You get smaller diffs, fewer broken imports, and a page that matches the rest of your app. The pattern works the same way in Cursor, Claude Code, Windsurf, OpenAI Codex and GitHub Copilot agent mode.
What goes wrong when you ask an agent for the whole page?
If you have ever typed "build a marketing homepage" into an agent inside a real repo, you have probably seen some of this:
It installs a new animation or icon library you didn't ask for.
It hardcodes twenty hex values that don't exist anywhere else in your app.
It writes a 600-line page.tsx that is painful to review.
It "fixes"…