Skip to content

Integrations

Integrations

xAI

Grok Build

xAI Grok app builder — ship Foundry UIs in live preview sandboxes.

AGENTS.md (project root)
Prompt paste in Grok Build chat
Optional: .grok/skills notes

Setup

  1. Copy AGENTS.md contents into your project root so Grok Build inherits Foundry rules on every turn.
  2. When starting a new app, paste the Quick Prompt and describe the screen.
  3. Ask Grok to copy components from Foundry’s src/components/ui rather than inventing new primitives.
  4. For motion or 3D, reference Foundry’s motion tokens and Three.js playground patterns.

Tips

  • Grok Build runs a live preview — ask for demo-ready UI, not scaffolds.
  • Prefer “copy Foundry Button/Card patterns” over “make it look modern”.
  • Request mobile checks (~390px) and dark mode in the same prompt.

Quick Prompt

Paste into Grok Build when generating UI.

Works alongside project rules — the prompt steers a single task; files below keep every session consistent.

AGENTS.md

AGENTS.md — Auto-loaded project instructions for Grok Build

AGENTS.md

Inline system rules

chat / system context — Paste if you cannot add AGENTS.md yet

chat / system context

Example Grok Build prompt

prompt — Full task example

prompt