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
- Create .cursor/rules/foundry.mdc with the Foundry agent rules (alwaysApply: true).
- Add foundry-components.mdc for import paths and preferred patterns.
- In Composer/Agent, reference @.cursor/rules/foundry.mdc when starting large UI work.
- 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.mdcComponent import map
.cursor/rules/foundry-components.mdc — Pinned import paths so Cursor matches your kit
.cursor/rules/foundry-components.mdcComposer starter
Composer custom instruction — Optional per-chat instruction
Composer custom instruction