schema

Generate Next.js JSON-LD page and layout TSX templates from frontmatter.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/pulse-energy-eu/geo-content --skill schema-pulse-energy-eu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: schema
Source: https://github.com/pulse-energy-eu/geo-content/tree/main/.claude/skills/schema
Command: npx skills add https://github.com/pulse-energy-eu/geo-content --skill schema-pulse-energy-eu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill generates Next.js JSON-LD integration templates from a customer's frontmatter, reducing manual setup and ensuring consistent structured data across pages.

Core Features & Use Cases

  • Reads company-context and a sample article to produce a per-page schema (page-schema.tsx) and a global layout schema (layout-schema.tsx).
  • Produces JSON-LD for BlogPosting, FAQPage (when FAQs exist), and BreadcrumbList, with proper escaping and TypeScript types.
  • One-time per customer onboarding; optimized for seamless integration into Next.js projects.

Quick Start

Run the schema skill for a customer folder (e.g. hyperspell) with an optional sample article path. The generated files will be placed at the customer's root: page-schema.tsx and layout-schema.tsx. Ensure you have a valid company-context in the customer folder.

Frequently Asked Questions about schema

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate JSON-LD structured data in Next.js from blog post frontmatter?

You can generate Next.js JSON-LD structured data from frontmatter by using a template generator that reads article metadata and outputs TypeScript TSX components. This produces per-page and global layout schemas with proper escaping and types.

What types of JSON-LD schemas are needed for a Next.js blog?

A Next.js blog typically requires BlogPosting, FAQPage, and BreadcrumbList JSON-LD schemas. The FAQPage schema is included specifically when FAQs exist in the article frontmatter, while BreadcrumbList handles navigation structure.

How do I add structured data to both Next.js pages and layouts?

Structured data can be added to Next.js pages and layouts by generating separate TSX templates: a per-page schema file for individual article data and a global layout schema for site-wide company context. Both use safe JSON-LD encoding.

Do I need a company-context file to generate Next.js structured data templates?

Yes, a valid company-context file is required in the customer folder to generate Next.js structured data templates. The generator reads this context alongside a sample article to produce accurate global and per-page schemas.

Can I automatically validate JSON-LD output against a sample article in Next.js?

JSON-LD output can be validated against a sample article during template generation. The process reads the sample article path to ensure the produced BlogPosting and BreadcrumbList schemas match the actual frontmatter structure.

What's the best way to ensure consistent structured data across multiple Next.js blog pages?

Consistent structured data across Next.js pages is achieved by generating standardized TypeScript templates with proper JSON-LD encoding. This one-time onboarding setup produces reusable page-schema.tsx and layout-schema.tsx files for all articles.