programmatic-seo-pages
Skill10 starsChanged 6 months agoMITView on GitHub
Use when generating SEO pages at scale from data: location pages, "X vs Y" comparison pages, "alternatives to X", integration pages, feature templates, or any pattern producing hundreds of pages from rows. Not for one-off marketing pages or thin/spammy content.
In this repository56 other files it gives its agents.
- accessibility-passSkill
- analytics-eventsSkill
- api-error-handlingSkill
- audit-logging-backendSkill
- background-jobs-and-cronSkill
- dark-mode-and-themingSkill
- dashboard-charts-rechartsSkill
- edge-functions-and-webhooksSkill
- email-and-notificationsSkill
- error-states-and-empty-uiSkill
- feature-flags-and-togglesSkill
- file-upload-storageSkill
- i18n-multi-languageSkill
- lovable-prompting-playbookSkill
- lovable-ship-checklistSkill
- migration-playbookSkill
- multi-tenant-backendSkill
- onboarding-copySkill
- optimistic-updatesSkill
- payment-failed-and-recoverySkill
- payment-webhook-idempotencySkill
- payment-webhook-testingSkill
- performance-budgetSkill
- pg-cron-recipesSkill
- pg-cron-scheduled-jobsSkill
- pg-cron-with-pg-net-edgeSkill
- postgres-full-text-searchSkill
- postgres-triggers-and-functionsSkill
- pricing-and-billingSkill
- programmatic-seo-content-qualitySkill
- rate-limiting-edgeSkill
- realtime-and-subscriptionsSkill
- refactor-safe-diffSkill
- release-notesSkill
- seo-core-web-vitalsSkill
- seo-landing-pageSkill
- seo-meta-tags-spaSkill
- seo-sitemap-generationSkill
- seo-ssr-and-prerenderingSkill
- seo-structured-dataSkill
- server-input-validationSkill
- shadcn-patternsSkill
- soft-delete-and-archivingSkill
- stripe-one-time-payment-webhooksSkill
- stripe-payment-webhooksSkill
- supabase-auth-flowsSkill
- supabase-database-designSkill
- supabase-rls-and-authSkill
- support-replySkill
- tanstack-infinite-queriesSkill
- tanstack-mutations-and-invalidationSkill
- tanstack-prefetch-and-hydrationSkill
- tanstack-query-alternativeSkill
- tanstack-router-data-loadersSkill
- tanstack-start-server-routesSkill
- typed-api-hooks-formsSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 125
Use a small RelatedX component per template, deterministic per row (sorted by proximity, popularity, etc.).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Programmatic SEO pages
Generate many high-intent SEO pages from a single template + a dataset. Done right, this captures long-tail traffic the brand team would never write by hand. Done wrong, you ship thin doorway pages and tank the whole domain.
Companion skills: programmatic-seo-content-quality, seo-ssr-and-prerendering, seo-meta-tags-spa, seo-structured-data, seo-sitemap-generation.
Common patterns
| Pattern | Examples | Search intent |
| Location pages | /locations/[city], /dentist/[city] | "dentist in austin" |
| Comparisons | /compare/[a]-vs-[b] | "notion vs evernote" |
| Alternatives | /alternatives/[brand] | "alternatives to mailchimp" |
| Integrations | /integrations/[tool] | "stripe integration" |
| Templates / use-cases | /templates/[category]/[name] | "marketing plan template" |
| Glossary / wiki | /glossary/[term] | "what is bounce rate" |
Pick one or two patterns first. Don't ship five at once.
Data model
Each template needs a row per page with enough unique data to justify existence:
create table public.location_pages (
slug text primary key,
city text not null,
state text not null,
country text not null,
lat numeric, lng numeric,
service_areas text[],
testimonials jsonb,
avg_price_cents int,
faqs jsonb, -- [{ q, a }]
hero_image_url text,
published boolean default false,
noindex boolean default false,
created_at timestamptz default now(),
updated_at timestamptz default now()
);
create index location_pages_published_idx on public.location_pages (published) where published = true;Rules:
publishedboolean so drafts never leak into sitemap.noindexflag per row — kill underperformers without deleting.- Enough unique fields per row to write 300+ words of real content (testimonials, FAQs, local stats, prices).
Route + template
// /locations/[slug]
export default function LocationPage() {
const { slug } = useParams();
const { data: page } = useLocationPage(slug);
if (!page) return <NotFound />;
return (
<>
<Seo
title={`${page.service} in ${page.city}, ${page.state}`}
description={`Find ${page.service} in ${page.city}. ${page.unique_hook}.`}
path={`/locations/${page.slug}`}
image={page.hero_image_url}
/>
<JsonLd data={buildLocalBusinessSchema(page)} />
<JsonLd data={buildFaqSchema(page.faqs)} />
<JsonLd data={buildBreadcrumbSchema(page)} />
<Hero city={page.city} state={page.state} hook={page.unique_hook} />
<LocalStats data={page.stats} />
<Testimonials items={page.testimonials} />
<ServiceAreas items={page.service_areas} />
<Faq items={page.faqs} />
<RelatedLocations city={page.city} state={page.state} />
</>
);
}Each section must take page-specific data. If your testimonials section says "Loved by customers" identically on every page, it's filler.
Prerender at build
These pages must be in the raw HTML — Googlebot can render JS, but at scale you'll hit crawl-budget issues.
// vite-ssg includedRoutes
export async function includedRoutes() {
const slugs = await fetchAllPublishedSlugs();
return [
"/",
"/pricing",
...slugs.map((s) => `/locations/${s}`),
];
}For thousands of pages: split into chunks and run prerender in parallel, or move to true SSR (seo-ssr-and-prerendering).
URL structure
- Single segment when possible:
/alternatives/[brand]not/best/alternatives/to/[brand]/2026. - Hyphens, lowercase, no stop-words (
mailchimp-alternativesnotthe-best-mailchimp-alternatives). - One canonical URL per row — never multiple URLs leading to the same content.
Internal linking
Programmatic pages need internal links to be discovered and ranked:
- Cross-link siblings: every location links to 5–10 nearby cities.
- Link from canonical hub pages:
/locationslists all cities;/integrationslists all tools. - Link contextually from blog content and the home page where natural.
- Use a small
RelatedXcomponent per template, deterministic per row (sorted by proximity, popularity, etc.).
OG images per page
Generate dynamically — one PNG per row, cached.
- Build-time: render via Satori → store in Supabase Storage → reference in
og:image. - Edge runtime: Vercel OG (
@vercel/og) or Cloudflare Workers — generate on first request, cache.
Cheap fallback: a single branded OG with the page title overlaid via CSS in a screenshot service.
Avoid
- Generating 5,000 pages overnight from a CSV without unique content.
- Identical content with one swapped keyword (this is a doorway page; Google penalizes).
- Listing in sitemap before pages render with real data.
- Building pages for keywords that have zero search demand (use Search Console / Ahrefs to validate).
- Auto-publishing without a quality threshold (
programmatic-seo-content-quality).
Checklist
- Data model rich enough for unique content per page.
published+noindexflags so you can curate.- Per-page meta, OG, JSON-LD (LocalBusiness/Product/SoftwareApp + FAQPage + BreadcrumbList).
- Internal linking between siblings and to a hub.
- Prerendered or SSR'd — populated HTML on first request.
- Included in
sitemap.xmlonly whenpublished = true.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

