Yes, one prompt is enough to get a working tool, if you scope it properly first. I gave Claude Code a single instruction on a real Search Console export, the top 1,000 queries from my company site viperatech.com over three months, and watched it plan, write and run a Python script that grouped those queries into 242 topic clusters and flagged the 10 that Google shows but almost nobody clicks.
In the video I show the exact prompt, the plan Claude Code wrote before touching any code, the run, the two things that broke, and the fix. Below is the written version: the scoping rules I used, the prompt itself, the numbers that came back, and what I'd do with a list like this. If a spreadsheet job eats half your week and there is no budget for a developer, this is what one prompt did on real data.
What one prompt built from a Search Console export
The data was real: the Google Search Console queries export for viperatech.com, my company site, three months of web search data, exported as the top 1,000 queries. One caveat: the full Search Console account for that period holds roughly 12,000 clicks and 1.48 million impressions. The export only holds the top 1,000 queries, so every number below (3,691 clicks, 155,875 impressions, 2.37% CTR) describes that top-1,000 slice, not the whole account.
One prompt told Claude Code to group the queries, add up clicks and impressions per cluster, and flag anything that gets seen a lot but clicked rarely. It wrote a plan first, then one Python file, ran it against the real file, checked its own totals, found two problems, fixed them, and ran it again. Start to finish: about 26 minutes.
Sorting a thousand rows of keywords into topics by hand, then working out which ones are quietly underperforming, is slow spreadsheet work. The job was repetitive and structured and had a clear right answer, which makes it a fair test for an AI coding agent.
Step 1: scope it before you write a single prompt
Before I opened Claude Code I decided exactly what I wanted back, in plain terms, on paper.
- Name the exact file you want backout/clusters.csv, not "some clusters"
- Give it one jobgroup, count, flag. Nothing else in the same prompt
- Test it on real data, not a sample file or made-up rows
- Ask it to check that the totals add up, so you know nothing got lost or counted twice
That sounds obvious, and skipping it is usually why the AI's first answer comes back close but not usable. If you don't name the exact output and the one job, the agent will guess, and you'll spend longer correcting its assumptions than it would have taken to write them down first.
This is the same discipline I'd want in place before anyone touches technical SEO work or a tracking rebuild: know what the finished thing has to prove before you start building it.
Step 2: the exact prompt I used
This is Claude Code, Anthropic's coding agent. I ran this build in its desktop app under the Code tab, on my paid Claude plan. On the web it starts the same way: you describe the task in plain English and it plans, writes and runs the code itself.
Build a small Python tool, standard library only, that reads data/queries.csv (a Google Search Console queries export). Group the queries into topic clusters by their main words, add up clicks and impressions for each cluster, work out each cluster's CTR, and flag the clusters with lots of impressions but a CTR under 1%. Write the result to out/clusters.csv, run it on the real export, and show me the top 10 clusters.
Notice what's in there and what isn't. It names the input file, the library constraint (standard library only, nothing to install), the exact calculation, the flag condition, the output file, and the final check: run it on the real export and show me the top 10. One job, clearly bounded.
What Claude Code planned before writing any code
Before any code, it wrote a plan: in words, how it intended to solve the problem. That matters, because you can catch a bad assumption before it gets built into code.
Read data/queries.csv with Python's csv module and recompute CTR itself rather than trusting the CTR column in the export
- Clean every query
lower case, strip punctuation, keep part numbers whole, merge plurals and a few spellings, drop stop words and intent words like price, buy, best
File each query under its main word, the word most queries in that group share; broad words like nvidia, amd or gpu only count when nothing more specific is left
For each cluster, work out the number of queries, clicks, impressions, CTR, and average position weighted by impressions
Flag a cluster when it holds at least 1% of all impressions in the file AND its CTR is under 1%. Both thresholds can be changed from the command line
Write out/clusters.csv sorted by impressions, highest first, with each cluster's top 3 queries, then print the cluster count, flagged count, a top 10 table, and the flagged list
Run it on the real export, check the cluster totals match the file totals, and fix anything that breaks
Standard library only mattered more than it sounds: nothing to install meant the tool could run on any machine with Python already on it, no setup step, no dependency to maintain later.
Step 3: running it and checking the work
It built one Python file, cluster.py, and ran it straight on the real file. The core of it is short enough to read: sum the clicks and impressions in each cluster, divide to get CTR, and mark the ones that clear the flag rule.
It also checked its own work: the totals were re-read from the export and from the output file separately, and they matched. That's the check I'd insist on before trusting any agent's output. Ask it to prove the result against the source file.
What it found: the top 10 clusters by impressions
Here's the top of the output, straight from the printed table after the final run.
| Cluster | Queries | Clicks | Impressions | CTR | Avg Position | Flagged |
|---|---|---|---|---|---|---|
| h100 | 49 | 123 | 12,290 | 1.00% | 11.3 | No |
| h20 | 39 | 474 | 10,579 | 4.48% | 3.3 | No |
| antrack | 8 | 38 | 7,982 | 0.48% | 6.2 | Yes |
| h200 | 61 | 156 | 6,489 | 2.40% | 17.7 | No |
| amd gpu | 22 | 44 | 5,678 | 0.77% | 8.2 | Yes |
| antminer s23 hydro | 23 | 49 | 5,640 | 0.87% | 18.8 | Yes |
| a100 | 16 | 24 | 4,506 | 0.53% | 10.3 | Yes |
| 5090 | 42 | 117 | 4,486 | 2.61% | 5.8 | No |
| gddr ddr | 8 | 16 | 3,892 | 0.41% | 4.1 | Yes |
| vipera | 12 | 728 | 3,719 | 19.58% | 5.8 | No |
Two rows worth stopping on. h100 is the biggest cluster by impressions and sits right on the line at exactly 1.00% CTR, so the flag rule correctly leaves it alone: it's a cluster to watch, not fix. And vipera, the branded cluster, gets a 19.58% CTR, which is roughly what you'd expect when someone is already searching for the company by name. The flagged clusters below are a different story: unbranded, high impressions, barely clicked.
The 10 flagged clusters: seen but not clicked
The flag rule was simple and both numbers in it are adjustable: a cluster counts as having lots of impressions when it holds at least 1% of all impressions in the file (1,559 or more here), and it only gets flagged when its CTR is also under 1%.
| Cluster | Impressions | CTR | Avg Position |
|---|---|---|---|
| antrack | 7,982 | 0.48% | 6.2 |
| amd gpu | 5,678 | 0.77% | 8.2 |
| antminer s23 hydro | 5,640 | 0.87% | 18.8 |
| a100 | 4,506 | 0.53% | 10.3 |
| gddr ddr | 3,892 | 0.41% | 4.1 |
| sys-822gs-nb3rt | 3,427 | 0.82% | 5.8 |
| nvidia b100 | 3,047 | 0.95% | 8.0 |
| l40 | 2,687 | 0.37% | 10.4 |
| nvidia l20 | 2,226 | 0.54% | 7.6 |
| buy ai server | 1,917 | 0.05% | 27.0 |
A CTR under half a percent at position six points at the listing, not the ranking. The page already earns a spot on the results page; its title and description are not getting the click, so those are what I'd rewrite first.
What broke, and how it got fixed
It wasn't perfect first time. The 26-minute build includes a re-run after Claude Code spotted and corrected two problems itself.
✅ Do
- Fixed: cluster names now follow the word order of the most-searched queries in that cluster, not an arbitrary order
- Fixed: sizes and speeds (like 48gb) no longer decide which cluster a query falls into, so a single product stopped splitting into two clusters
- Result: 242 clusters, 129 with two or more queries, nothing crashed
❌ Avoid
- First run: one cluster name came out jumbled ("amd vera helios nvidia rubin")
- First run: "nvidia a40 48gb" split away from "nvidia a40 price" because 48gb appeared in more queries than a40
- First run totals: 245 clusters, 127 with two or more queries
Both issues were in the clustering logic, not the arithmetic: the totals (3,691 clicks, 155,875 impressions) matched on both runs. What changed between runs was how queries got grouped, which is exactly the kind of thing worth testing against real data before trusting the output, because a clean-looking sample file would never have surfaced either problem.
What I'd fix first from this list
Treat the output as a to-do list. A cluster like antrack is already ranking and already being shown, and the people who see it rarely click. That gap can be fixed without a ranking fight.
Open the ranking page or pages behind the cluster and read the current title and meta description as a searcher would
Rewrite the title to include the specific term people are searching (the exact query wording, not a generic category label)
Rewrite the description to answer the thing the query implies (price, availability, spec) rather than restate the title
Wait for Search Console to refresh, then check the cluster's CTR again against its old number
This is standard on-page SEO work, the clustering just told me exactly where to aim it instead of guessing from 1,000 rows of raw queries. If your own CTR has dropped across pages that used to convert, that's worth checking against what I cover in why SEO rankings drop, since position and clicks don't always move together.
Where OpenAI's Codex fits
I don't have a paid ChatGPT plan, so Codex isn't demoed anywhere in this build and I haven't used it myself. Everything below comes from OpenAI's own published material, not my testing.
Codex is OpenAI's own coding agent, built to do a similar job to Claude Code: take a plain-English instruction and plan, write and run code against it. I can't compare the two first hand, so I won't pretend to.
What I can cite is OpenAI's own case study: in its Proaction case study, OpenAI reports the team saved more than 75 hours using Codex, alongside a reported 60% boost in sales. That's OpenAI describing its own customer's results, not an independent test, so treat it as a sourced claim rather than a verdict on which agent is better.
How to scope your own AI build
The lesson here generalises past Search Console data. Any repetitive spreadsheet job with a clear rule behind it (group these, flag those, total these) is the kind of thing worth testing with an AI coding agent before paying for custom development. The free AI Agent Blueprint has the full checklist for scoping a build like this.
- Write down the exact file and format you want back, not a vague description
- Give the agent one job per prompt, not a wishlist of features
- Test it on your real, messy data on the first run, not a clean sample
- Build in a self-checkask it to confirm the output totals match the source file
This scoping discipline applies to AI workflow automation and AI agent development work too, and the clustering approach itself is useful input for generative engine optimization: grouping queries by topic is a close cousin of deciding which pages need expanding so AI answer engines can cite them properly. If you'd rather not write the prompt yourself, SEORoger is a tool I run for site analysis, and a free SEO audit shows where your own site has the same gap between impressions and clicks.
Scoping the exact output and testing on real data in the same session is what turned one prompt into a finished, self-checking tool in about 26 minutes, not a half-built script that needed a developer to finish.
