Skip to content

croct-tech/croct

v1.0.0MIT

Agent skills for building with Croct: SDK integration, CLI, content modeling, CQL audiences, event tracking, personalization, and A/B testing.

croct-integrate-sdk

Use when installing or using a Croct SDK in application code: rendering slot content, evaluating CQL queries, server or client fetching, prerendering, identifying users, app ID / API key env vars, testing, or debugging. Covers JavaScript (@croct/plug, croct.fetch, croct.evaluate), React (@croct/plug-react, <CroctProvider>, useContent, <Slot>, useEvaluation, useCroct), Next.js (@croct/plug-next, fetchContent, cql, middleware/proxy, NEXT_PUBLIC_CROCT_APP_ID, CROCT_API_KEY), Vue (@croct/plug-vue), Nuxt (@croct/plug-nuxt), Shopify Hydrogen (@croct/plug-hydrogen), PHP (croct/plug-php), Laravel, Symfony, and Drupal. Triggers: slot IDs like home-hero@1, SlotContent, "Croct is not plugged in", "initial content is required for server-side rendering", "Did you forget to configure Croct's middleware?", CORS errors.

Read SKILL.md at the source

Pinned to revision 6d1ad55caa27, so it is the text this page describes rather than whatever the author pushed since.

Files

Every link opens the file at its source, pinned to the revision this page describes.