Prompt to compare your page against top-ranking pages and list missing sections
This prompt asks an AI assistant to take the pages that currently rank for one query, record their headings, word counts, tables, FAQs and structured data, set them beside your page, and list the sections you are missing in order of how many rivals have them. It copies no text and promises no ranking.
Last reviewed
Key facts
- The comparison is about structure: which questions a page answers, not which words it uses.
- The list of rivals comes from a search result you can show, not from the assistant's memory.
- Treat a missing section as a question about what your reader needs.
- Test status: not run end to end. No search results were fetched for this page and no comparison was produced.
The prompt
Paste this into Claude Code, Cursor, Codex or another AI coding assistant with your project folder open, and replace everything in square brackets first. See how to run it in each tool.
You are comparing one of our pages with the pages that rank for the same query. Our page is [OUR_URL]. The query is [QUERY: for example "export webflow site to html"]. The country is [COUNTRY: US].
STEP 1: RIVALS
Use a web search for [QUERY] and take the first [N: 5] organic results that are real pages, not videos or ads. Skip our own domain. Show me the list of URLs and stop if fewer than 3 are usable.
STEP 2: READ
Fetch our page and each rival page. For every page record: the h1, every h2 and h3 in order, word count of the main content, number of tables, number of code blocks, whether there is an FAQ section, the schema types in its JSON-LD, and the date shown on the page.
STEP 3: MATRIX
Write GAP.md with a table: one row per distinct section topic (group headings that mean the same thing), one column per page, a mark where the page covers it. Add a count of rivals that cover each topic.
STEP 4: MISSING
List topics that at least 2 rivals cover and we do not, most common first. For each, give one line on why a reader might want it. Then list what we cover that no rival does.
STEP 5: OUTLINE
Suggest an outline for our page that adds the missing topics. Use only facts from our product pages and from official documentation. Mark any topic where we have no fact to put in.
RULES
- Do not copy sentences, headings or tables from the rivals. Record topics in your own words.
- Do not say the changes will improve ranking. You cannot know that.
- Do not edit our page. Output files only.
- Skip pages you cannot fetch and say so.How to run it
- Choose one query and one page. Several queries per page produce a muddy comparison.
- Run the prompt and check the list of rival URLs before it reads them. Remove any that are not a real match.
- Read GAP.md and pick the missing topics your reader would want, not every row.
- Write the new sections from your own facts, then compare again in a month to see whether the matrix changed.
The Firecrawl path
The search endpoint returns ranked web results for a query, with a country setting, and scrapeOptions can attach each page as markdown in the same response. Markdown keeps the heading levels, which is what the matrix needs. The scrape endpoint fetches our own page the same way, so all pages are read by one method. Credits are on the billing page, and search results vary by location and time, so note the date you ran it.
curl -s -X POST https://api.firecrawl.dev/v2/search \
-H "Authorization: Bearer $FIRECRAWL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "export webflow site to html",
"limit": 5,
"country": "US",
"scrapeOptions": { "formats": ["markdown"] }
}'Without a key, search in a private browser window, copy the first few organic URLs into the prompt, and let the assistant fetch them.
What to record for each page
| Signal | Why it matters | How to read it |
|---|---|---|
| h2 and h3 order | Shows which questions the page answers | Group headings by meaning, not exact words |
| Word count | A rough size to compare | Compare ranges, not single numbers |
| Tables and code | Show whether the topic needs data or commands | Count them per page |
| FAQ and schema types | Show how the page is packaged for answers | Note the types in JSON-LD |
| Date shown | Shows how fresh the page claims to be | Treat as the page's own claim |
Verify the result
Check that the rivals are real matches and that the gaps are gaps.
grep -c "https\?://" GAP.md
curl -s https://example.com/your-page | grep -o "<h[23][^>]*>[^<]*" | head -20
grep -ci "rank" GAP.md- Each rival URL opens and truly targets the same query.
- Every topic listed as missing is absent from our page when you search it for the topic.
- GAP.md contains no promise of ranking and no copied sentences.
What can go wrong
- Search results differ by country, device and day. Record when and where you ran it.
- Copying rival structure line by line makes a page that is the same as theirs. Add what only you can say.
- A long page that covers every topic can read worse than a short one that answers well. Cut sections your reader will not need.
Frequently asked questions
Does matching rival sections improve ranking?
Nobody can promise that. The comparison shows what readers of that query are offered, so you can decide if your page leaves out something useful.
How many rivals should I compare?
Five is enough to see which topics repeat. Fewer than three gives you no pattern, and more than eight adds work with little new information.
Can I run this on a page of an exported site?
Yes. Compare the live page or the preview address. The result is easy to act on in an export, since you hold the HTML.
What if my page ranks already?
Run it anyway for a page that has slipped, and watch for sections that rivals added. Pair it with the refresh prompt.
Official documentation
Free tools for this job
- Meta Tags AuditorAudit title, description, H1, Open Graph, and Twitter tags across URLs.
- AI FAQ GeneratorGenerate structured FAQ sections from a topic or URL for your website.
- Indexability CheckerDecide indexability using robots.txt, meta robots, canonical, and status code.
- HTTP Header SEO InspectorInspect SEO-relevant HTTP headers for URL lists in bulk.
Start with the files
Prompts work best on a WebExport download of your site. Paste your public URL into the export form and get a ZIP. The Free plan covers 1 site, 5 exports a month, 15 pages and 20 MB per export. Professional is a $9.99 one-time purchase with unlimited pages.