Skip to content
Back to skills

Programmatic Seo

ASecurity

Programmatic page generation at scale using template-based SEO and data pipelines: keyword pattern mining, template architecture, and indexation for 100-100K+ pages. Use when building SEO pages at scale or scoping a programmatic SEO build.

  • 1,271 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added May 30, 2026
ai-agentspythongobashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add borghei/Claude-Skills --skill programmatic-seo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Programmatic Seo?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Programmatic Seo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/borghei-programmatic-seo/badge)](https://www.skillsdirectory.com/skills/borghei-programmatic-seo)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: programmatic-seo
description: >
  Programmatic page generation at scale using template-based SEO and data
  pipelines: keyword pattern mining, template architecture, and indexation for
  100-100K+ pages. Use when building SEO pages at scale or scoping a programmatic
  SEO build.
license: MIT + Commons Clause
metadata:
  version: 1.1.0
  author: borghei
  category: marketing-growth
  domain: seo
  updated: 2026-06-15
  tags: [seo, programmatic, templates, content-at-scale, data-driven-seo]
---
# Programmatic SEO

Production-grade framework for building SEO page sets at scale. Covers the full lifecycle from keyword pattern discovery through template design, data pipeline construction, quality assurance, and post-launch optimization. Designed for deployments ranging from 50 to 100,000+ pages.

## Core Capabilities

- **Opportunity assessment & playbook selection** — validate demand, rate data sources (Tier S-F), score the competitive moat, then pick from 14 page-set playbooks via the selection matrix and the weighted build-vs-skip decision matrix.
- **Keyword pattern mining** — extract repeating `[variable]` structures, map head/torso/long-tail/zero-volume distribution, and classify search intent.
- **Data pipeline design** — source → extraction → transformation → enrichment → validation → publication, with per-record quality gates and per-data-type update cadence.
- **Template architecture & quality control** — 6-zone page structure, the 3-of-5 uniqueness rule, URL conventions, pre-publication QA, thin-content detection, and hub-and-spoke internal linking.
- **Indexation & optimization** — crawl-budget strategy, tiered indexation priority, IndexNow, phased launch sequence, post-launch metrics dashboard, and anti-pattern / penalty avoidance.

## When to Use

**Use this skill when:**
- You have a repeating keyword pattern with 50+ variations
- You have (or can acquire) structured data to populate pages
- The search intent is consistent across variations
- Your domain has sufficient authority to compete

**Do NOT use when:**
- Each page requires unique editorial content (use content-creator instead)
- Total addressable pages < 30 (manual content is more effective)
- You lack a data source and would be generating thin placeholder content
- Your domain authority is below DR 20 and competitors are DR 60+

## Clarify First

Before scoping the build, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

- **Keyword pattern:** the repeating `[variable]` structure with 50+ variations (drives keyword mining and template variables).
- **Structured data source:** the dataset that populates pages and its quality tier (drives the data pipeline and the 3-of-5 uniqueness rule; thin-content risk).
- **Search intent:** whether intent is consistent across all variations (drives playbook selection and template architecture).
- **Domain authority & scale:** your DR vs competitors and target page count (drives the build-vs-skip decision and indexation strategy).

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

## Quick Start

Run from the skill folder. The sample files are in `assets/`.

```bash
# Find repeating keyword patterns (CSV with keyword + volume columns, or one keyword per line)
python3 scripts/keyword_pattern_miner.py assets/sample_keywords.csv --top 5

# Score a page template (or rendered pages) against the pSEO quality checks
python3 scripts/template_scorer.py assets/sample_template.html
python3 scripts/template_scorer.py --pages page1.html page2.html --similarity-check

# Validate the dataset that will fill the template
python3 scripts/data_validator.py assets/flawed_page_data.csv --rules assets/page_data_rules.json \
  --min-words 90 --min-fields 6 --as-of 2026-12-01
```

All three take `--format json` (`--json` still works), accept the input file positionally or via
the original flag (`--keywords`, `--template`, `--file`), and report what they read.

- **keyword_pattern_miner.py** ranks patterns such as `payroll software for [VAR]` with keyword count,
  possible pages, total volume and a tier mix. A missing or unreadable volume is reported as missing,
  never counted as zero. Flags unreadable volumes, duplicate keywords, a file with no volume column,
  and no pattern repeating `--min-pattern` times.
- **template_scorer.py** checks word count, unique-word ratio, a single H1, title 30-60 characters,
  meta description 120-160 characters, schema markup, 3+ internal links, breadcrumbs and (templates
  only) 5+ template variables. Each failed check gets a paste-ready fix (a trimmed `<title>`, a drafted
  meta description, a JSON-LD block). With `--similarity-check`, page pairs above 0.8 word-set
  similarity are flagged. In a template, placeholders count as written, so re-check lengths on rendered
  pages.
- **data_validator.py** checks column completeness, duplicate keys, words per record (`--min-words`,
  default 300), populated fields per record (`--min-fields` or `min_fields` in the rules file), and
  record age (`--max-age`, default 90 days, measured from `--as-of` or today). Findings name the rows and
  quote their values. A rules file can set `required_fields`, `key_fields`, `text_fields`,
  `date_fields` and `min_fields`.

Thresholds (500 words per page, 300 words per record, 90 days, the opportunity-score weights, the
0.8 similarity line) are this skill's internal heuristics, not published search-engine limits.
Scores are heuristic summaries of the same checks; the verdict and exit code come from the findings.

**Exit codes (all three):** `0` no findings, `1` findings to fix, `2` unusable input (missing, empty
or binary file, no header or data rows, no keywords, invalid rules file, bad flags). Errors print one
`BLOCKED:` line to stderr.

**Example output** (the `data_validator.py` command above, excerpt):

```
pSEO DATA VALIDATION
Read: assets/flawed_page_data.csv: 6 rows, 8 columns (slug, industry, headline, intro, details, price_from, tools_tested, updated); rules: assets/page_data_rules.json
  Data quality score: 25/100 (internal heuristic: -20 Critical, -10 High, -5 Medium)
  Uniqueness: 1 duplicate(s) on slug
  Freshness: 1 record(s) older than 90 days as of 2026-12-01 in updated

Findings
  1. [Critical] thin_content: 2 records (33.3%) have fewer than 90 total words
     Rows: row 7 (slug='payroll-software-for-gyms'): 0 words; row 5 (slug='payroll-software-for-nonprofits'): 5 words
     Fix: Add 90 words of record-specific data to row 7 (slug='payroll-software-for-gyms') (and bring the other 1 up to 90), or set those rows to noindex until they reach 90 words.
  2. [High] incomplete_field: Field 'price_from' is 66.7% complete (4/6 rows)
     Rows: row 3 (slug='payroll-software-for-construction'); row 7 (slug='payroll-software-for-gyms')
     Fix: Fill 'price_from' in rows 3, 7, or drop those rows from the page set so no page renders an empty 'price_from'.
...
FIX 9 issues
```

**Samples:** `sample_*` (exit 0), `flawed_*` (exit 1), `malformed_*` (exit 2) for each tool, plus
`page_data_rules.json`. The sample records are about 100 words each, so the sample runs pass
`--min-words 90`; at the default 300 they would be flagged as thin.

## References

Load the reference that matches the phase you are in — keep this file lean and pull detail on demand:

- **[references/strategy-and-playbooks.md](references/strategy-and-playbooks.md)** — initial assessment (opportunity validation, data-source tiers, competitive moat), the 14 playbooks, playbook selection matrix, and the build-vs-skip decision matrix. Read when scoping an opportunity and choosing what to build.
- **[references/keyword-and-data.md](references/keyword-and-data.md)** — keyword pattern identification, volume distribution analysis, intent classification, and the full data pipeline (quality gates, update cadence). Read when mining keywords or designing the data feed.
- **[references/templates-and-quality.md](references/templates-and-quality.md)** — 6-zone page architecture, uniqueness requirements, URL structure, pre-publication QA checklist, thin-content detection, hub-and-spoke linking, and anti-patterns. Read when designing templates and QA gates.
- **[references/launch-and-optimization.md](references/launch-and-optimization.md)** — crawl-budget management, indexation priority, IndexNow, phased launch sequence, post-launch metrics dashboard, troubleshooting table, output artifacts, and success criteria. Read when launching and monitoring the page set.

## Scope & Limitations

**In scope:**
- Keyword pattern mining and volume distribution analysis
- Data pipeline design (source > extraction > transformation > validation > publication)
- Template architecture with uniqueness requirements
- Quality control frameworks including thin content detection
- Hub-and-spoke internal linking for pSEO page sets
- Phased indexation strategy and crawl budget management
- Post-launch optimization and monitoring dashboards

**Out of scope:**
- Individual editorial content creation (use Content Production)
- Data collection or web scraping implementation
- CMS or static site generator setup and configuration
- Server infrastructure for large-scale deployments
- Paid acquisition for pSEO pages
- Legal compliance for data usage rights

**Known limitations:**
- Google's 2026 helpful content system can deindex large page sets retroactively if quality drops below threshold
- Programmatic SEO at Tier F data (public/scraped) carries high penalty risk regardless of template quality
- Engagement metrics (bounce rate, time on page) now influence indexation decisions for pSEO pages
- AI content detection is improving — fully automated content generation without human oversight is increasingly risky
- Travel site case study: 50,000 city-swap pages had 98% deindexed within 3 months (per 2025 industry data)

## Related Skills

- **seo-audit** -- Run after pSEO pages are live to diagnose indexation issues, thin content warnings, or ranking problems across the page set.
- **schema-markup** -- Add structured data to pSEO templates (Product, FAQ, LocalBusiness) for rich snippet eligibility at scale.
- **site-architecture** -- Plan hub-and-spoke structure and crawl budget management for large pSEO deployments (500+ pages).
- **competitor-alternatives** -- Use the Comparisons playbook when building "[X] vs [Y]" pages; competitor-alternatives has dedicated comparison page frameworks.
- **content-creator** -- Use when individual pages in the set need editorial-quality unique content beyond template generation.

Files in this skill

  • SKILL.md24.2 KB
  • scripts/data_validator.py10.1 KB
  • scripts/keyword_pattern_miner.py8.8 KB
  • scripts/template_scorer.py9.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.