pseo-data
Installation
SKILL.md
pSEO Data Architecture
Design and implement the structured data layer that feeds all programmatic SEO pages. This is the foundation every other pSEO skill depends on.
Core Principles
- Single source of truth: All page data flows from one data layer
- SEO-complete models: Every content model includes all fields needed for metadata, schema markup, and linking
- Unique slugs by construction: Slug generation enforces uniqueness at the data level
- Type safety: All data models are fully typed (TypeScript interfaces/types)
- Separation of concerns: Data fetching is decoupled from page rendering
Implementation Steps
1. Define Content Models
Create TypeScript interfaces for each page type using a two-tier model. The lightweight index tier is safe to hold in memory for all pages; the heavy full tier is loaded per-page only.