Using keyword data in the build to fix AI-drafted SEO pages
Hooking Dinkum's keyword data into Plandalf's build so the build lists what to fix next.
Claude left 20 uncommitted AI-drafted SEO pages in the Plandalf site repo today: six new payment fee calculators, a Stripe test cards page, and 13 guides under /learn. The strategy was right, the build passed, and the writing still read like a textbook.
Instead of just hand-polishing those 20 pages and moving on, I tried turning the whole thing into a loop that checks itself.
The goal
Plandalf gets 28 Google clicks a month right now, mostly brand searches, while Dinkum already has 154 keyword clusters mapped for it (42 gaps, 85 weak, 17 cannibalised). I wanted one command that pulls Dinkum’s live numbers, scans the repo for prose and design debt, and hands any agent a ranked next task without me having to re-brief it every session.
What changed
- Built
npm run growth:brief(scripts/growth-loop-brief.mjs) inside the site repo. It reads Dinkum’stoday.jsonandkeyword-map.json, runsdeclaude_lint.pyacross every/learnguide, checks every tool page for shareable outputs and hero consistency, and writes a ranked brief to.cache/growth-loop/brief.md. - Wired
/learnand/tools/intodesign-gate.mjsandseo-gate.mjs. Neither gate was actually checking the 20 new pages before today. - Fixed the hero spacing across
ToolHero(elements were sitting right on the bottom edge becauseProductHerohas zero bottom padding), dropped real Plandalf product visuals into all 13/learnhero stages, and added shareable summary/link outputs to all 8 tools. - Rewrote all 13
/learnguides out of the stiff Claude template voice, built/tools/shopify-fee-calculator(shopify fees, 9,900 US searches/month, KD 19), and stripped “With Prices” out of/comparisons/samcart-alternative’s title so it stops splitting 303 impressions with our SamCart pricing post. - Pushed 21 new pages to
main(400 canonical URLs in the sitemap) and submitted/tools,/tools/stripe-test-cards,/tools/shopify-fee-calculatorand/learnin Search Console.
Surprises
Two things stood out. First, npm run growth:brief immediately caught a real bug in our own workflow: we had built 20 new pages without adding their URL prefixes to design-gate.mjs, so CI was saying “0 failures” while skipping them completely. Second, running browser QA caught a dark-grey caption sitting on a dark-blue painting on /tools/stripe-test-cards and an off-centre search box on /learn that looked fine in code.
Also, swapping small generic SVG icons on /tools for 160px full-width UI previews made the index feel like the actual product instead of a template directory.
Where the bottleneck is
Drafting pages with AI is cheap now. The bottleneck isn’t writing 2,000 words, it’s closing the loop between real search data (Dinkum), mechanical quality gates (design-gate, declaude_lint), and visual checks so each pass leaves the site cleaner than the last.
Next
- Watch Search Console over the next 14 days to see whether the KD 0–9 tools (
stripe test cards,venmo fee calculator,etsy fee calculator,stripe vs paypal) index and pick up clicks without extra backlinks. - Add fee-change email alerts on Cloudflare D1 to the calculators so sellers have a reason to come back.
- Run the next
growth:briefpass on the open KD 0–7 gaps (samcart reviews,discount calculator,markup calculator).




