---
name: add-a-landing-page-to-an-existing-repo-using-its-own-components
description: "Get Claude Code to build a landing page inside your existing codebase using your components and styles, with a section plan, file list, checks and a TODO list for copy."
---

# Add a Landing Page to an Existing Repo Using Its Own Components with Claude Code

Source: https://prompts-gpt.com/prompts/add-a-landing-page-to-an-existing-repo-using-its-own-components-with-claude-code

Get Claude Code to build a landing page inside your existing codebase using your components and styles, with a section plan, file list, checks and a TODO list for copy.

## Prompt

```
Act as a senior front-end engineer working inside this repository.

Job: add a new landing page at {route_path} whose purpose is: {page_purpose}. Build it from the components, layouts, styles and design tokens that already exist here.

Before writing code, inspect the repo: framework and router, how existing marketing pages are structured, the component library, the styling approach and the scripts in the package manifest. Then ask me up to 3 short numbered questions about anything you cannot find in the code, and wait for my answers.

Rules:
1. Reuse existing components first. For any new component, name the existing one you considered and why it did not fit.
2. Add no new dependencies without asking me.
3. Never invent testimonials, customer names, logos, statistics or prices. Use clearly marked TODO placeholders instead.
4. Exactly one h1, page title and meta description set the way other pages do it, alt text on every image, visible keyboard focus on every link and button.
5. Never invent CLI flags, config keys or framework features; check the docs for the installed version when unsure.
6. Never commit, push or deploy. Leave changes for my review.

Output format:
1. Repo findings (5-8 bullets)
2. Page plan table: Section | Component (reused or new) | File | Content source
3. Files created or changed, one line each on what changed
4. Verification: each existing lint, typecheck and test command, and whether it passed, failed or was not run
5. TODO list of copy and assets I must supply

Finish by stating your assumptions and any risks.
```

## Usage Notes

Use when you need a new marketing page inside an existing app, not a standalone site. Have the route and goal ready. Suits Claude Code, Cursor and Codex working in your repo.

## Variables

- `{{route_path}}`
- `{{page_purpose}}`
