Advance-Labs/aeo-toolkit / skills/aeo-structured-data-validation
aeo-structured-data-validation
Verified| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.7 KB |
| references/nextjs.md | markdown | 999 B |
| references/wordpress.md | markdown | 1.7 KB |
references/nextjs.md
View on GitHub# Structured data validation in Next.js
- Emit JSON-LD as a native `<script type="application/ld+json">` in a server component, with
`JSON.stringify(data).replace(/</g, '\\u003c')` (Next.js JSON-LD guide, verified 2026-11-13).
Building the string yourself is how invalid JSON gets in.
- Validate the output, not the component: `curl -s http://localhost:3000/path` against a
production build (`next build && next start`), since dev rendering can differ.
- Common duplicates: a root `layout.tsx` that emits an Organization plus a page that emits its
own with a different `@id`, or a third-party SEO package (`next-seo`) running alongside hand
written blocks. Pick one.
- Do not read the origin from the request; use one env-configured canonical origin, or preview
deployments publish their own `@id`s.
- TypeScript: types from `schema-dts` catch wrong property names at compile time.
- ISR and cached pages: confirm the cached HTML has the markup, and that updated data
regenerates it.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |