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.
Agent prompt for Cursor and Codex
You get: Repo findings, page plan table and files created or changed
The prompt
mkdir -p .agents/skills/add-a-landing-page-to-an-existing-repo-using-its-own-components && curl -sL "https://prompts-gpt.com/prompts/add-a-landing-page-to-an-existing-repo-using-its-own-components-with-claude-code/raw" -o .agents/skills/add-a-landing-page-to-an-existing-repo-using-its-own-components/SKILL.mdAct as a senior front-end engineer working inside this repository.
Job: add a new landing page at whose purpose is: . 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.Example output
How to use this prompt
- Fill {route_path} with the URL the page should live at and {page_purpose} with who it is for and the action you want.
- Open Claude Code in your repo root and paste the prompt.
- Answer its numbered questions about CTA targets, layout or copy it could not find in the code.
- Review the page plan table before it writes files; push back on any new component that duplicates an existing one.
- Run the dev server, check the page yourself, then fill the TODO copy before you commit.
- Who it’s for:
- Developers using Claude Code to add marketing pages to existing apps
- What you get:
- An uncommitted landing page built from your own components, plus a section plan, change list, verification status and a list of copy and assets still needed.
Use cases
- Adding a /for-agencies page to a Next.js SaaS app that already has a marketing layout and button library
- Shipping a campaign page for a product launch without pulling in a new UI kit
- Creating a segment page for nonprofits that matches existing pricing page styles
- Letting a junior dev scaffold a landing page that a designer can later fill with final copy
Works well with
- Claude Code: reads the repo and package scripts itself before planning the page
- Cursor agent mode: good when you want to review each file diff inline
Try another example
The same prompt filled in for a different situation.
Tips and common edits
Why this works
- Forcing repo inspection first keeps the page in your framework, layout and styling instead of a generic standalone template.
- Requiring a reason for each new component stops the agent from rebuilding buttons and cards you already have.
- TODO placeholders instead of invented testimonials or stats keep fake social proof out of production.
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.
Common edits
- Add a rule to wire the CTA to your analytics helper, naming the file where tracking lives.
- Ask for a responsive check at specific breakpoints, such as 375px and 1280px, in the verification section.
Reuse it: Use in a workflowAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Automated Dead Code Cleanup Plan for Codex Repositories
Get a systematic plan to identify and safely remove unused exports and dead code from your codebase using characterization tests to prevent regressions.
Audit Front-End Code Against Web Interface Guidelines
A SKILL.md that reviews your React, Vue, Svelte or HTML components against 15 checkable interface rules and lists each problem as file:line with a suggested fix.
Sync Test Factories and Fixtures with Database Migrations
This prompt updates your test factories, JSON fixtures, and contract tests to match new database schema changes, ensuring your test suite remains consistent with production code.
Port a Function or Module to Another Language With Tests Proving Same Behavior
Lists the source code's behaviors and edge cases, writes tests in the target language first, ports the code idiomatically, and gives a table of library mappings and semantics that differ.
Build a Testimonial and Logo Social-Proof Section in a Single HTML File
You get one HTML file with a social-proof section: CSS-drawn customer logos, headline stats and testimonial cards that switch between a grid and an accessible carousel.
Cursor Characterization-Test-First Refactor of a Legacy Module
Has Cursor lock in current behavior with characterization tests before restructuring a legacy module in small steps, so you can decide whether the refactor preserved behavior and is safe to merge.
- Infinite Logo Marquee in HTML and CSS With Pause Controls
- 3D Tilt Card Hover Effect With Glare in One HTML File
- Compare Three Feature Architectures Against Module Boundaries
- Create Accessible Keyboard Navigation Maps for Complex Web Layouts
- Decompose Framework Migrations into Subagent Work Batches
- Design a Benchmark Harness for Claude Code Agent Accuracy