Skip to content

Integrations

Integrations

Cursor

Cursor

Project rules + Composer prompts so Cursor always builds with Foundry.

.cursor/rules/foundry.mdc
.cursor/rules/foundry-components.mdc
Optional: Cursor User Rules

Setup

  1. Create .cursor/rules/foundry.mdc with the Foundry agent rules (alwaysApply: true).
  2. Add foundry-components.mdc for import paths and preferred patterns.
  3. In Composer/Agent, reference @.cursor/rules/foundry.mdc when starting large UI work.
  4. Use the Quick Prompt as a Composer custom instruction for UI-only tasks.

Tips

  • Scope rules with globs (e.g. src/**/*.{tsx,ts,css}) to keep non-UI work free.
  • Pin component examples in the rules so Cursor matches your Button/Card APIs.
  • Enable “include project rules” in Agent mode for multi-file refactors.

Quick Prompt

Paste into Cursor when generating UI.

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

Project rule

.cursor/rules/foundry.mdc — Always-on Foundry rules for Agent + Composer

.cursor/rules/foundry.mdc

Component import map

.cursor/rules/foundry-components.mdc — Pinned import paths so Cursor matches your kit

.cursor/rules/foundry-components.mdc

Composer starter

Composer custom instruction — Optional per-chat instruction

Composer custom instruction