Programmatic SEO

Builds a set of pages from a dataset, one row per page, and keeps the set useful as it grows. Most proposed programs shouldn't run: the skill qualifies the idea first and says no in writing when the data can't make each page worth reading on its own. When it can, the dataset lives in a Sheet, a workflow writes each page from its row using only that row's facts, pages go to the CMS as drafts in batches, and nothing scales until a pilot is indexed and a random sample passes review. Sets of near-identical pages with swapped names are exactly what Google's scaled-content policies target; the quality gates here exist to keep a set out of that category.

Requires SlateBy SlateMIT licencev1.0.0

Add it to your agent

npx skills add slatehq-repo/marketing-skills --skill programmatic-seo

Works in Claude Code, Cursor, Codex and other agents that read skills. Or copy the skill into your agent's skills folder (for Claude Code, .claude/skills/programmatic-seo/).

DownloadView on GitHub

When to use

  • "Programmatic SEO", "pSEO", "generate pages from a spreadsheet", "template pages at scale", "[product] for [industry] pages", "bulk publish to Webflow", "should we do pSEO", "our generated pages aren't ranking".
  • When you hold structured data that answers a repeating search pattern better than anyone else.
  • Not for "X vs Y" and alternatives pages: use comparison-pages-at-scale. Integration pages: integration-pages-at-scale. Glossaries: glossary-pages. City pages: location-landing-pages.
  • Not for publishing a batch that's already written and approved: use bulk-content-publishing.
  • Not for working out why existing pages aren't indexed: use indexation-diagnosis.

What you need

Required:

  • The page pattern and its goal: for example "[template type] template" pages that lead to sign-up.
  • The data source: what fills each page, who owns it, how it's collected and how often it changes.
  • Where pages will live: the CMS, and the collection or post type.

Ask for, or assume and state:

  • Market: country and language for keyword data. Default: where most customers are.
  • Review capacity: hours a month someone can spend reading sampled pages. No capacity means no program.
  • Existing pages in the pattern: consolidate them into the set, don't duplicate them.
  • Voice: from Brand Kit, or ask.

Data and tools

  • In Slate: Sheets hold the dataset and run a published workflow on every row. Workflows write each page from its row (adding web research, keyword data or brand context steps where needed). Publishing sends drafts to WordPress, Webflow or Sanity (Strapi in the app); Slate CMS creates pages from a saved template. Semrush sizes the pattern. Page audit and Web research check generated pages; Search Console data on Pages tracks impressions and clicks per page after launch. Brand Kit holds voice and product facts.
  • With the Slate MCP server:
    • Demand: keyword_research with view: "overview" on a sample of pattern instances, view: "related" for modifiers, view: "organic_results" to see what ranks.
    • Dataset: create_sheet with the columns, import_csv_to_sheet for rows, get_sheet for column IDs, edit_sheet_rows (mode: "add" or "update"), get_sheet_rows to read back.
    • Generation: resolve_workflow_intent, get_block_schema, save_workflow (create_new: true); test on one row with run_workflow (test_mode: true, the row's values as initial_inputs, and the user's confirmation); get_workflow_run; then publish_workflow, because Sheets run only published workflows. Add it with manage_sheet_columns (action: "add", a column of kind: "workflow" whose config_json holds the workflow_id and a binding for every input). Pilot with execute_sheet (scope: "column", selectionMode: "first_rows", rowLimit: 10), continue with "remaining_rows", retry with "failed_rows"; watch get_sheet_execution_state.
    • Publishing: Webflow query_webflow (view: sites, collections, fields) then publish_webflow_item (action: "createPage", field_mappings, is_draft: true); Sanity query_sanity (view: "schema") then publish_sanity_document (action: "createDocument", later "publishDocument"); WordPress publish_wordpress_post (action: "createPost", post_status: "draft"; standard posts only); Slate CMS cms_template (action: "instantiate" with template_key, site_id, title, slug, data_payload) and cms_publish. Never guess a connection, site or collection: read it or ask.
    • QC and tracking: web_research (action: "scrape") and seo_page_audit on sampled pages; web_research (action: "sitemap", include_string with the folder) to confirm pages are listed; query_pages (view: "list", search with the folder, date_range) for impressions and clicks.
  • Without Slate: not without rebuilding the pipeline: a spreadsheet, a script that calls a language model per row, the CMS's import or API, a keyword tool and Search Console. Everything in the procedure still applies.

Procedure

  1. Qualify. Run the five tests in references/qualify-and-design.md: real data per page, real demand, intent that data can answer, a refresh cadence you can staff, and review capacity. Two or more fail: recommend against, in writing, with a smaller alternative. One fails: propose a narrower scope that passes all five. Record the verdict before building anything.
  2. Shape the pattern. List the variables and count the combinations. Keep only combinations with demand or genuinely distinct data; the rest never get a page. Set the URL pattern (a subfolder of the main domain) and the hub pages that will list the set.
  3. Build the dataset in a Sheet: one row per page; identifier columns (slug, name), source fields, computed fields (comparisons, rankings, derived categories), related-row fields (5–15 siblings per row), an update tag per field (static, slow, volatile), a required-fields check, and status and QC-notes columns. Rows that miss a required field stay drafts.
  4. Design the template with the patterns in the reference: the answer in the first 100–200 words, the same H2 set on every page filled from data, sections that hide when their data is missing, titles that use a distinguishing field (not just the name), structured data generated from the same fields, link slots, sources and an updated date.
  5. Build the generation workflow. Inputs are the row's fields. The writing step uses only the supplied data and says so when a fact is missing; it never fills gaps from general knowledge. A final step returns title, meta description, slug, body and structured data, and flags rows with missing required facts. Test on one row, publish the workflow, and bind it to a workflow column.
  6. Pilot 10 rows chosen across data density (sparse, typical, rich), not just the first rows. Read every page as a searcher would. A page fails if it doesn't answer its query, is less useful than what ranks now, or can't be told apart from two siblings on substance. Compare body text across the pilot: when less than about 40% of a page's body is unique to it, fix the template or the data. Any failure: fix and re-pilot.
  7. Publish the pilot as drafts, check the field mapping in the CMS, then go live only with the user's explicit approval. Link the pilot from its hub and the navigation, and make sure it's in the sitemap.
  8. Gate on indexing. After 2–4 weeks, check which pilot pages get impressions and what Search Console's page indexing report says. If fewer than half have impressions after four weeks, or many sit in "Crawled - currently not indexed", stop and diagnose before scaling.
  9. Scale in batches that grow only while each batch indexes (for example 50, then 100, then 250). Sample every batch with the sizes in references/quality-control.md. If more than 5% of sampled pages fail review, halt generation, fix the template or data, re-sample, then resume.
  10. Run the program. Refresh volatile fields on their cadence, sample monthly for active sets and quarterly for stable ones, track cohorts by batch and template version, and prune pages with no impressions after six months (noindex, merge or redirect). Keep QC and refresh status in the Sheet.

Output

## Programmatic SEO plan: <pattern>, <date>
Verdict: <go / go smaller / no-go>. Tests: data <pass/fail>, demand <…>, intent <…>, refresh <…>, review capacity <…>.

### Pattern and scale
Variables · combinations considered <n> · pages planned <n> (why the rest are cut) · URL pattern · hubs

### Dataset (Sheet: <name>)
| Field | Source | Required | Update tag | Populated % |

### Template
Title, H1 and meta patterns · section list with the field behind each · hide rules · structured data type · link slots

### Pilot review
| Row | Draft URL | Answers query | Distinct from siblings | Unique body % | Missing fields | Pass/fail | Note |
Failure rate <n>% (threshold 5%). Decision: <scale / fix and re-pilot>.

### Rollout and upkeep
Batch sizes and gates · sample size per batch · refresh cadence per field · pruning rules · owner

Quality checks

  • The qualification verdict is recorded, including when it's no.
  • Every fact on a generated page traces to the row's data or a cited source; nothing was filled in by the model.
  • No page publishes with a required field missing.
  • Pilot pages are distinct on substance, not just names.
  • Nothing went live without explicit approval, and every CMS target was read or confirmed, not guessed.
  • The 5% threshold and the indexing gate were applied, not skipped.
  • Every live page links to its hub and siblings and is in the sitemap; none is orphaned.

Common mistakes

  • Name-swap pages. Identical text with a different city or product name is a doorway page; it gets filtered or penalised.
  • Phantom demand. Keyword tools show volume for permutations nobody types; check the results page for each sampled instance.
  • Letting the model invent facts to fill sparse rows. Hide the section instead.
  • Publishing everything at once. Thousands of unindexed pages are harder to fix than fifty.
  • Orphans. Pages reachable only through the sitemap rarely rank; link them from hubs and siblings.
  • No refresh plan. Prices, counts and dates go stale and drag the whole set down.

Reference files

The skill loads these when it needs them. They install with it.

Run these skills on live data in Slate

Slate brings keyword data, Search Console, GA4 and how ChatGPT, Perplexity and Google AI answer about your brand into one workspace, so every skill runs on real numbers.