← Files WixARCHIVED FILE

skills/wix-headless/references/blog/INSTRUCTIONS.md

1.69 KB · Oct 4, 2026 · 12:02 UTC

↓ Download file

---
name: blog-implementer
description: "Implements blog vertical via Wix Blog app — @wix/blog SDK, @wix/ricos rich content, RSS/sitemap. Scopes: seed, components, pages. Extends references/shared/IMPLEMENTER.md."
---

# Blog Implementer

Extends `references/shared/IMPLEMENTER.md`. Read that file first for phase routing, REST auth + doc lookups, prompt-inlined inputs (no site.json reads), return contract, style conventions, and common failure modes.

## Scope routing

| Scope | Phase | Reference |
|-------|-------|-----------|
| `seed` | Seed (post seeding via REST with Ricos content) | `./BLOG_CONTENT.md` |
| `components` | Components (blog service module, RicosViewer, consts, astro.config sitemap) | `../astro/blog/BLOG_SETUP.md` |
| `pages` | Pages (listing, detail, RSS, BlogPost layout, home contribution) | `../astro/blog/BLOG_PAGES.md` |

Cover images are generated by the shared image agent (`image-phase-2-entity` scope) AFTER `seed` completes — not by this agent.

## Files this vertical creates / contributes

See `<SKILL_ROOT>/references/verticals/blog.md` frontmatter.

## Blog-specific failure modes

| Wrong | Right |
|---|---|
| `import { items } from "@wix/data"` for blog queries | `import { posts } from "@wix/blog"` — use the Blog SDK |
| `<article set:html={post.content} />` | `<RicosViewer client:only="react" content={post.richContent} />` — content is Ricos format |
| Skip `wixMetadata` on `[...slug].astro` | Required for Wix page routing + SEO |
| Query posts without `RICH_CONTENT` fieldset | Always request `RICH_CONTENT` or `post.richContent` is undefined |
| Scoped `<style>` for RicosViewer overrides | `<style is:global>` — React islands don't inherit scoped Astro styles |

SHA-256: 6a99e0e59e9c3f1230d1fdce6271575cea15e17fb53f51f865d15d43fa827a7e