/digital-marketing-pro:programmatic-seo
Purpose
Plan and audit SEO pages generated at scale from structured data sources (databases, APIs, CSV/JSON files). Enforces quality gates to prevent thin content penalties, index bloat, and Google's Scaled Content Abuse policy.
Input Required
The user must provide (or will be prompted for):
- URL or data source: Existing programmatic pages to audit, or data source details for planning
- Page type: What kind of pages are being generated (location, product, integration, glossary, template, tool)
- Data source: CSV/JSON files, API endpoints, database queries — or existing pages to analyze
- Target scale: How many pages will be generated
- Current status: New build or auditing existing programmatic pages
Process
- Load brand context: Read
~/.claude-marketing/brands/_active-brand.json for the active slug, then load ~/.claude-marketing/brands/{slug}/profile.json. Apply industry context and compliance rules. Check for brand guidelines at ~/.claude-marketing/brands/{slug}/guidelines/_manifest.json.
- Data source assessment: Evaluate the data powering programmatic pages — row count, column uniqueness, missing values, duplicate detection (>80% field overlap), data freshness
- Template engine planning: Design templates that produce genuinely unique pages — variable injection points, content blocks (static vs dynamic), conditional logic, supplementary content. Validate each page passes the "standalone value test"
- URL pattern strategy: Design URL hierarchy — lowercase hyphenated slugs, logical structure, uniqueness enforcement, under 100 characters, consistent trailing slash
- Internal linking automation: Hub/spoke model, related items (3-5 per page), breadcrumbs with BreadcrumbList schema, cross-linking by shared attributes, varied anchor text
- Thin content safeguard check: Apply quality gates (see below)
- Canonical strategy: Self-referencing canonicals, parameter handling, pagination strategy, manual page priority
- Sitemap integration: Auto-generate entries, split at 50K URLs,
<lastmod> from actual data timestamps, exclude noindexed pages
- Index bloat prevention: Noindex low-value pages, pagination handling, faceted navigation canonicalization, crawl budget monitoring for 10K+ pages
- Score and report: Score each dimension, produce prioritized action plan
Quality Gates
Scale Thresholds
| Metric |
Threshold |
Action |
| Pages without content review |
100+ |
WARNING: require content audit before publishing |
| Pages without justification |
500+ |
HARD STOP: require explicit user approval and thin content audit |
| Unique content per page |
<40% |
Flag as thin content (penalty risk) |
| Unique content per page |
<30% |
HARD STOP: scaled content abuse risk |
| Word count per page |
<300 |
Flag for review (may lack sufficient value) |
Scaled Content Abuse Context (2025-2026)
Google's Scaled Content Abuse policy (introduced March 2024) saw major enforcement escalation:
- June 2025: Wave of manual actions targeting AI-generated content at scale
- August 2025: SpamBrain update enhanced pattern detection for AI-generated link schemes and content farms
- Result: 45% reduction in low-quality, unoriginal content in search results
Enhanced quality gates for programmatic pages:
- Content differentiation: 30-40%+ of content must be genuinely unique between any two programmatic pages (not just city/keyword string replacement)
- Human review: Minimum 5-10% sample review of generated pages before publishing
- Progressive rollout: Publish in batches of 50-100 pages. Monitor indexing and rankings for 2-4 weeks before expanding. Never publish 500+ simultaneously without quality review.
- Standalone value test: Each page should pass: "Would this page be worth publishing even if no other similar pages existed?"
- Site reputation abuse: Publishing programmatic content under a high-authority domain (not your own) may trigger site reputation abuse penalties (enforced aggressively since November 2024)
Safe vs Risky Programmatic Pages
Safe at scale:
- Integration pages (with real setup docs, API details, screenshots)
- Template/tool pages (with downloadable content, usage instructions)
- Glossary pages (200+ word definitions with examples, related terms)
- Product pages (unique specs, reviews, comparison data)
- Data-driven pages (unique statistics, charts, analysis per record)
Penalty risk at scale:
- Location pages with only city name swapped in identical text
- "Best [tool] for [industry]" without industry-specific value
- "[Competitor] alternative" without real comparison data
- AI-generated pages without human review and unique value-add
- Pages where >60% of content is shared template boilerplate
Uniqueness Calculation
Unique content % = (words unique to this page) / (total words on page) x 100
Measured against all other pages in the programmatic set. Shared headers, footers, and navigation excluded. Template boilerplate IS included.
URL Pattern Library
Common Patterns
/tools/[tool-name]: Tool/product directory pages
/[city]/[service]: Location + service pages
/integrations/[platform]: Integration landing pages
/glossary/[term]: Definition/reference pages
/templates/[template-name]: Downloadable template pages
/compare/[product-a]-vs-[product-b]: Comparison pages
URL Rules
- Lowercase, hyphenated slugs derived from data
- Logical hierarchy reflecting site architecture
- No duplicate slugs — enforce uniqueness at generation time
- Keep URLs under 100 characters
- No query parameters for primary content URLs
- Consistent trailing slash usage (match existing site pattern)
Output
A structured programmatic SEO assessment containing:
Programmatic SEO Score: XX/100
| Category |
Status |
Score |
| Data Quality |
score |
/100 |
| Template Uniqueness |
score |
/100 |
| URL Structure |
score |
/100 |
| Internal Linking |
score |
/100 |
| Thin Content Risk |
score |
/100 |
| Index Management |
score |
/100 |
- Critical issues (fix immediately)
- High priority (fix within 1 week)
- Medium priority (fix within 1 month)
- Recommendations: data source improvements, template modifications, URL pattern adjustments, quality gate compliance actions
- Progressive rollout plan with batch sizes and monitoring checkpoints
Agents Used
- seo-specialist — Programmatic page analysis, quality gate enforcement, URL strategy, template evaluation
- content-creator — Template content design, uniqueness optimization
Scripts Used
- tech-seo-auditor.py — Check technical SEO issues across programmatic page samples
- content-scorer.py — Score content quality and uniqueness per template
- competitor-scraper.py — Analyze competitor programmatic page patterns
1---2name: programmatic-seo3description: "Plan or audit SEO pages generated at scale from structured data — data-source quality, template uniqueness, URL patterns, internal linking, canonicals, sitemaps, and index-bloat prevention — enforcing hard quality gates against thin content and Google's Scaled Content Abuse policy (uniqueness thresholds, batch rollout limits, standalone value test). Produces a /100 scorecard with prioritized fixes and a progressive rollout plan. Triggers on \"/digital-marketing-pro:programmatic-seo\", \"plan programmatic landing pages\", \"audit our location pages\", \"will 5000 generated pages get us penalized\", \"design a template engine for pSEO\". Reads the brand profile and guidelines; plans and audits only — it does not generate or publish the pages."4argument-hint: "[URL or plan]"5user-invocable: true6---78# /digital-marketing-pro:programmatic-seo910## Purpose1112Plan and audit SEO pages generated at scale from structured data sources (databases, APIs, CSV/JSON files). Enforces quality gates to prevent thin content penalties, index bloat, and Google's Scaled Content Abuse policy.1314## Input Required1516The user must provide (or will be prompted for):1718- **URL or data source**: Existing programmatic pages to audit, or data source details for planning19- **Page type**: What kind of pages are being generated (location, product, integration, glossary, template, tool)20- **Data source**: CSV/JSON files, API endpoints, database queries — or existing pages to analyze21- **Target scale**: How many pages will be generated22- **Current status**: New build or auditing existing programmatic pages2324## Process25261. **Load brand context**: Read `~/.claude-marketing/brands/_active-brand.json` for the active slug, then load `~/.claude-marketing/brands/{slug}/profile.json`. Apply industry context and compliance rules. Check for brand guidelines at `~/.claude-marketing/brands/{slug}/guidelines/_manifest.json`.272. **Data source assessment**: Evaluate the data powering programmatic pages — row count, column uniqueness, missing values, duplicate detection (>80% field overlap), data freshness283. **Template engine planning**: Design templates that produce genuinely unique pages — variable injection points, content blocks (static vs dynamic), conditional logic, supplementary content. Validate each page passes the "standalone value test"294. **URL pattern strategy**: Design URL hierarchy — lowercase hyphenated slugs, logical structure, uniqueness enforcement, under 100 characters, consistent trailing slash305. **Internal linking automation**: Hub/spoke model, related items (3-5 per page), breadcrumbs with BreadcrumbList schema, cross-linking by shared attributes, varied anchor text316. **Thin content safeguard check**: Apply quality gates (see below)327. **Canonical strategy**: Self-referencing canonicals, parameter handling, pagination strategy, manual page priority338. **Sitemap integration**: Auto-generate entries, split at 50K URLs, `<lastmod>` from actual data timestamps, exclude noindexed pages349. **Index bloat prevention**: Noindex low-value pages, pagination handling, faceted navigation canonicalization, crawl budget monitoring for 10K+ pages3510. **Score and report**: Score each dimension, produce prioritized action plan3637## Quality Gates3839### Scale Thresholds4041| Metric | Threshold | Action |42|--------|-----------|--------|43| Pages without content review | 100+ | WARNING: require content audit before publishing |44| Pages without justification | 500+ | HARD STOP: require explicit user approval and thin content audit |45| Unique content per page | <40% | Flag as thin content (penalty risk) |46| Unique content per page | <30% | HARD STOP: scaled content abuse risk |47| Word count per page | <300 | Flag for review (may lack sufficient value) |4849### Scaled Content Abuse Context (2025-2026)5051Google's Scaled Content Abuse policy (introduced March 2024) saw major enforcement escalation:5253- **June 2025**: Wave of manual actions targeting AI-generated content at scale54- **August 2025**: SpamBrain update enhanced pattern detection for AI-generated link schemes and content farms55- **Result**: 45% reduction in low-quality, unoriginal content in search results5657**Enhanced quality gates for programmatic pages:**5859- **Content differentiation**: 30-40%+ of content must be genuinely unique between any two programmatic pages (not just city/keyword string replacement)60- **Human review**: Minimum 5-10% sample review of generated pages before publishing61- **Progressive rollout**: Publish in batches of 50-100 pages. Monitor indexing and rankings for 2-4 weeks before expanding. Never publish 500+ simultaneously without quality review.62- **Standalone value test**: Each page should pass: "Would this page be worth publishing even if no other similar pages existed?"63- **Site reputation abuse**: Publishing programmatic content under a high-authority domain (not your own) may trigger site reputation abuse penalties (enforced aggressively since November 2024)6465### Safe vs Risky Programmatic Pages6667**Safe at scale:**68- Integration pages (with real setup docs, API details, screenshots)69- Template/tool pages (with downloadable content, usage instructions)70- Glossary pages (200+ word definitions with examples, related terms)71- Product pages (unique specs, reviews, comparison data)72- Data-driven pages (unique statistics, charts, analysis per record)7374**Penalty risk at scale:**75- Location pages with only city name swapped in identical text76- "Best [tool] for [industry]" without industry-specific value77- "[Competitor] alternative" without real comparison data78- AI-generated pages without human review and unique value-add79- Pages where >60% of content is shared template boilerplate8081### Uniqueness Calculation8283Unique content % = (words unique to this page) / (total words on page) x 1008485Measured against all other pages in the programmatic set. Shared headers, footers, and navigation excluded. Template boilerplate IS included.8687## URL Pattern Library8889### Common Patterns90- `/tools/[tool-name]`: Tool/product directory pages91- `/[city]/[service]`: Location + service pages92- `/integrations/[platform]`: Integration landing pages93- `/glossary/[term]`: Definition/reference pages94- `/templates/[template-name]`: Downloadable template pages95- `/compare/[product-a]-vs-[product-b]`: Comparison pages9697### URL Rules98- Lowercase, hyphenated slugs derived from data99- Logical hierarchy reflecting site architecture100- No duplicate slugs — enforce uniqueness at generation time101- Keep URLs under 100 characters102- No query parameters for primary content URLs103- Consistent trailing slash usage (match existing site pattern)104105## Output106107A structured programmatic SEO assessment containing:108109### Programmatic SEO Score: XX/100110111| Category | Status | Score |112|----------|--------|-------|113| Data Quality | score | /100 |114| Template Uniqueness | score | /100 |115| URL Structure | score | /100 |116| Internal Linking | score | /100 |117| Thin Content Risk | score | /100 |118| Index Management | score | /100 |119120- Critical issues (fix immediately)121- High priority (fix within 1 week)122- Medium priority (fix within 1 month)123- Recommendations: data source improvements, template modifications, URL pattern adjustments, quality gate compliance actions124- Progressive rollout plan with batch sizes and monitoring checkpoints125126## Agents Used127128- **seo-specialist** — Programmatic page analysis, quality gate enforcement, URL strategy, template evaluation129- **content-creator** — Template content design, uniqueness optimization130131## Scripts Used132133- **tech-seo-auditor.py** — Check technical SEO issues across programmatic page samples134- **content-scorer.py** — Score content quality and uniqueness per template135- **competitor-scraper.py** — Analyze competitor programmatic page patterns