build-frontend
Use this skill whenever a developer wants to use Prepr CMS content in a website or app, in any stack (Next.js, Nuxt, Astro, SvelteKit, React, Vue, Angular, Laravel, PHP, plain Node or anything else that speaks HTTP). Covers writing Prepr GraphQL queries from the schema, setting up a fetcher or client (fetch, Axios, graphql-request, urql, Apollo, a PHP client), access tokens and environment variables, fragments, generated TypeScript types and type-safe components, rendering stacks, dynamic content and rich text as components, images, slug routing, 404s and redirects, locales, caching and revalidation with webhooks, preview, draft mode and visual editing with the Prepr toolkit. Also use it to debug Prepr GraphQL errors or empty results in front-end code.
- License
- MIT
Pinned to revision b2122d5d6590, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/build-frontend/SKILL.md
- skills/build-frontend/references/caching-preview.md
- skills/build-frontend/references/fetchers.md
- skills/build-frontend/references/mcp-connection.md
- skills/build-frontend/references/queries.md
- skills/build-frontend/references/rendering.md
- skills/build-frontend/references/toolkit.md
- skills/build-frontend/references/types.md
Every link opens the file at its source, pinned to the revision this page describes.